[Freeciv-Dev] [patch #4011] Lua: edit.change_terrain and edit.place_resource

2017-05-02 Thread Marko Lindqvist
Update of patch #4011 (project freeciv): Status:None => Duplicate Assigned to:None => cazfi Open/Closed:Open => Closed _

[Freeciv-Dev] [patch #4011] Lua: edit.change_terrain and edit.place_resource

2016-01-20 Thread Marko Lindqvist
Update of patch #4011 (project freeciv): Planned Release: => 3.0.0 ___ Follow-up Comment #9: As resources are becoming form of extras separate edit.place_resource() is not to be added. edi

[Freeciv-Dev] [patch #4011] Lua: edit.change_terrain and edit.place_resource

2014-02-25 Thread Marko Lindqvist
Follow-up Comment #8, patch #4011 (project freeciv): Well, editor needs to handle similar case of terrain changes, so checking edithand.c... see check_edited_tile_terrains(). ___ Reply to this item at: _

[Freeciv-Dev] [patch #4011] Lua: edit.change_terrain and edit.place_resource

2014-02-25 Thread J. M. Gorbach
Follow-up Comment #7, patch #4011 (project freeciv): >Are you recalculating the continents? Ehm... no, because I don't know where I have to look. I searched in the code *num_continents* and *last_num_continents*. Maybe I have to work in server/generator files (i.e. utilities.c) or in ai/default/ (

[Freeciv-Dev] [patch #4011] Lua: edit.change_terrain and edit.place_resource

2014-02-25 Thread Marko Lindqvist
Follow-up Comment #6, patch #4011 (project freeciv): You have not said anything about my comment #2. Are you recalculating the continents? (note also the case that changing one ocean tile to land tile can cause two continents to merge, requuiring complete reorganization of their ids)

[Freeciv-Dev] [patch #4011] Lua: edit.change_terrain and edit.place_resource

2014-02-25 Thread J. M. Gorbach
Follow-up Comment #5, patch #4011 (project freeciv): In my patch from 'tile_change_terrain' to 'tile_set_terrain'. Fix... but when I turn Grassland into Ocean (resource: Whales). in begin_turn() [srv_main.c::881]: assertion 'cont < 0' failed. in begin_phase() [srv_main.c::972]: assertion 'cont <

[Freeciv-Dev] [patch #4011] Lua: edit.change_terrain and edit.place_resource

2014-02-25 Thread J. M. Gorbach
Follow-up Comment #4, patch #4011 (project freeciv): I checked another time... File: server/sanitycheck.c Function: static void check_map(const char *file, const char *function, int line) Specific: 193 SANITY_TILE(ptile, cont > 0); and 195 if (!is_ocean_tile(tile1)) { 196

[Freeciv-Dev] [patch #4011] Lua: edit.change_terrain and edit.place_resource

2014-01-04 Thread J. M. Gorbach
Follow-up Comment #3, patch #4011 (project freeciv): I checked another time... I added scripting lua (transform terrain -mountain- and place resource -gold-) in the scenario. If I turn ocean, deep ocean or lake in mountains, there are error messages. Same position, exactly on sanity_check(). If

[Freeciv-Dev] [patch #4011] Lua: edit.change_terrain and edit.place_resource

2013-10-30 Thread Marko Lindqvist
Follow-up Comment #2, patch #4011 (project freeciv): "cont" is probably short for "continent". You are not setting continent id correctly (< 0 indicates the tile is oceanic). ___ Reply to this item at: _

[Freeciv-Dev] [patch #4011] Lua: edit.change_terrain and edit.place_resource

2013-09-01 Thread Sveinung Kvilhaugsvik
Follow-up Comment #1, patch #4011 (project freeciv): How you can debug the assertions (in case you didn't know): The text "in begin_turn() [srv_main.c::881]" indicate that you should look at the function begin_turn() in the file srv_main.c, line 881. If you don't have the sources that gave the as

[Freeciv-Dev] [patch #4011] Lua: edit.change_terrain and edit.place_resource

2013-07-17 Thread J. M. Gorbach
URL: Summary: Lua: edit.change_terrain and edit.place_resource Project: Freeciv Submitted by: gorb Submitted on: Wed 17 Jul 2013 10:46:27 AM GMT Category: general Priority: 5 -