Update of bug #22575 (project freeciv):
Planned Release: 2.6.0 => 2.6.0, 3.0.0
Summary: "Unit doing illegal activity in savegame!" => "Unit
doing illegal activity in savegame!" for activities with tech requirement
_______________________________________________________
Follow-up Comment #1:
I've seen the same message loading a 2.5 savegame with units building
farmland.
I think the problem in both cases is that units are doing activities that
require technology, but sg_load_players() (which loads units) is called before
sg_load_researches(), so the players have no technology at this point.
----
When I load file #22063 (from 2.4) into S2_6 r29125, I get this message 5
times:
* [l tgt="unit" id=1478 /]
* [l tgt="unit" id=1392 /]
* [l tgt="unit" id=888 /]
* [l tgt="unit" id=705 /]
* [l tgt="unit" id=110 /]
All of these units are building railroads. Some of them are doing it on river
tiles.
If I remove the tech requirement for railroad from terrain.ruleset, some of
the errors go away. If I remove "RequiresBridge" from railroads, the rest go
away.
----
Could the fix be as simple as calling sg_load_researches() before
sg_load_players()? There is a separate step sg_load_players_basic(); does that
do everything needed to load research?
Otherwise I guess whatever dependencies sg_load_researches() has will need to
be move to sg_load_players_basic().
_______________________________________________________
Reply to this item at:
<http://gna.org/bugs/?22575>
_______________________________________________
Message sent via/by Gna!
http://gna.org/
_______________________________________________
Freeciv-dev mailing list
[email protected]
https://mail.gna.org/listinfo/freeciv-dev