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

Back to archive index
OSDN Ticket System norep****@osdn*****
Thu Oct 7 10:38:30 JST 2021


#42944: assert failure in is_goods_type_in_range()

  Open Date: 2021-09-28 19:17
Last Update: 2021-10-06 21:38

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-10-06 21:38 Updated by: ddeanbrown

Comment:

Ihnatus reverted my change to the wiki page, saying -
Code says it's possible to supply "Traderoute" range, plz discuss if not

---------------------------------------------------------------------
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
Back to archive index