[Freeciv-tickets] [freeciv] #42944: assert failure in is_goods_type_in_range()

アーカイブの一覧に戻る
OSDN Ticket System norep****@osdn*****
Wed Sep 29 08:21:47 JST 2021


#42944: assert failure in is_goods_type_in_range()

  Open Date: 2021-09-29 02:17
Last Update: 2021-09-29 02:21

URL for this Ticket:
    https://osdn.net//projects/freeciv/ticket/42944
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=42944

---------------------------------------------------------------------

Last Changes/Comment on this Ticket:
2021-09-29 02:21 Updated by: cazfi

Comment:

While this should be caught at ruleset loading time instead of triggering runtime assert, the doc/README.effects list "City" as the only valid range for "Good" requirement.

---------------------------------------------------------------------
Ticket Status:

      Reporter: ddeanbrown
         Owner: (None)
          Type: Bugs
        Status: Open
      Priority: 5 - Medium
     MileStone: (None)
     Component: (None)
      Severity: 5 - Medium
    Resolution: None
---------------------------------------------------------------------

Ticket details:

3.0.0-beta2
Playing with my custom ruleset, got this error msg at runtime (ruleset loaded OK) - 
Please report this message at https://osdn.net/projects/freeciv/ticket/
in is_goods_type_in_range() [../../freeciv-3.0.0/common/requirements.c::1792]: assertion 'FALSE' failed.
Invalid range 4.
Cause is this effect in my effects.ruleset -
; Make minimum trade from a traderoute >= 1; change down-round to up-round by
; adding 1 to city center.
[effect_traderoute_minimum0\]
type    = "Output_Add_Tile"
value   = 1
reqs    =
{ "type", "name", "range"
"Good", "Goods", "Traderoute"
"CityTile", "Center", "Local"
"OutputType", "Trade", "Local"
}

This line looks like the trigger. I think it should be OK, according to the wiki page https://freeciv.fandom.com/wiki/Requirements - 
"Good", "Goods", "Traderoute"

game.ruleset has -

[goods_0\]
name=_("Goods")
from_pct=0
to_pct=0
onetime_pct=0


-- 
Ticket information of Freeciv project
Freeciv Project is hosted on OSDN

Project URL: https://osdn.net/projects/freeciv/
OSDN: https://osdn.net

URL for this Ticket:
    https://osdn.net/projects/freeciv/ticket/42944
RSS feed for this Ticket:
    https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=42944



More information about the Freeciv-tickets mailing list
アーカイブの一覧に戻る