[Freeciv-Dev] [patch #1574] add a player to a running game

2013-02-01 Thread Helen
Follow-up Comment #20, patch #1574 (project freeciv): Yes; At the moment I get the list of tried tiles and from time to time the message 'unit / city to close'. Perhaps the reason why another try is needed should also be printed for the other tiles. Should the number of tries limited to some

[Freeciv-Dev] [patch #1574] add a player to a running game

2010-04-18 Thread Matthias Pfafferodt
Update of patch #1574 (project freeciv): Status: In Progress = Ready For Test ___ Reply to this item at: http://gna.org/patch/?1574 ___ Nachricht

[Freeciv-Dev] [patch #1574] add a player to a running game

2010-04-17 Thread Matthias Pfafferodt
Follow-up Comment #16, patch #1574 (project freeciv): updated patch; changes: * do not return the player at all (see patch #1616) comments to the newcomers.sav file (file #8974): * the new player has only basic techs * there is no check if the game was started; in pregame

[Freeciv-Dev] [patch #1574] add a player to a running game

2010-04-17 Thread Ulrik Sverdrup
Follow-up Comment #17, patch #1574 (project freeciv): What kind of hint do you mean for debugging? A simple message when a bad terrain tile is tried? ___ Reply to this item at: http://gna.org/patch/?1574

[Freeciv-Dev] [patch #1574] add a player to a running game

2010-04-17 Thread Matthias Pfafferodt
Follow-up Comment #18, patch #1574 (project freeciv): What kind of hint do you mean for debugging? A simple message when a bad terrain tile is tried? Yes; At the moment I get the list of tried tiles and from time to time the message 'unit / city to close'. Perhaps the reason why another try is

[Freeciv-Dev] [patch #1574] add a player to a running game

2010-04-14 Thread Ulrik Sverdrup
Follow-up Comment #12, patch #1574 (project freeciv): Attaching a later version of the newcomers scenario file. This version uses some new functions, just to check that there are no tiles or units close where we put the newcomer. I have other patches for create_unit_full and some other things

[Freeciv-Dev] [patch #1574] add a player to a running game

2010-04-14 Thread Matthias Pfafferodt
Follow-up Comment #13, patch #1574 (project freeciv): I have not had success in applying the latest patch to try it :-( I added the current version of the patch. The order of applying the patches is: * patch #1613: cleanup stdinhand.c:handle_stdin_input() * patch #1615: cleanup player name

[Freeciv-Dev] [patch #1574] add a player to a running game

2010-04-14 Thread Ulrik Sverdrup
Follow-up Comment #14, patch #1574 (project freeciv): create_player returns NULL, because the player-creating commands (newcomer and pregame) only take struct player *, not struct player ** arguments that are needed to be able to write the pointer back to the caller.

[Freeciv-Dev] [patch #1574] add a player to a running game

2010-04-14 Thread Ulrik Sverdrup
Follow-up Comment #15, patch #1574 (project freeciv): This version of newcomers.sav works anyway. This version tries to create settlers and attack units to match the currently alive nations.. something similar to the newcomers code. (file #8974)

[Freeciv-Dev] [patch #1574] add a player to a running game

2010-04-12 Thread Matthias Pfafferodt
Follow-up Comment #10, patch #1574 (project freeciv): I think the interface could be create_player(player name, nation name) with both arguments as string. Is it possible to set nation name to nil to get a NULL pointer in freeciv? This way it would be possible to define a nation but also a

[Freeciv-Dev] [patch #1574] add a player to a running game

2010-04-11 Thread Matthias Pfafferodt
Follow-up Comment #8, patch #1574 (project freeciv): reworked patch: add a player to a running game * clear player knowledge (see player_map_free() and server_remove_player()) (file #8912) ___ Additional Item Attachment: File name:

[Freeciv-Dev] [patch #1574] add a player to a running game

2010-04-11 Thread Matthias Pfafferodt
Update of patch #1574 (project freeciv): Depends on: = patch #1615 ___ Reply to this item at: http://gna.org/patch/?1574 ___ Nachricht

[Freeciv-Dev] [patch #1574] add a player to a running game

2010-04-11 Thread Matthias Pfafferodt
Update of patch #1574 (project freeciv): Depends on: = patch #1613 ___ Reply to this item at: http://gna.org/patch/?1574 ___ Nachricht

[Freeciv-Dev] [patch #1574] add a player to a running game

2010-04-11 Thread Ulrik Sverdrup
Follow-up Comment #9, patch #1574 (project freeciv): I wonder if it should be possible to choose the nation for the player to be created. It would make sense for scenario scripts. nil/NULL would be random nation (that part works very well by the way, seems to pick nations of the same category as

[Freeciv-Dev] [patch #1574] add a player to a running game

2010-04-10 Thread Matthias Pfafferodt
Follow-up Comment #6, patch #1574 (project freeciv): new version of the patch (code cleanup) Another option is to not make a /create command (while game is running), but just make it a Lua script action, we make create_player(..) that calls the player creation code you have written. That way,

[Freeciv-Dev] [patch #1574] add a player to a running game

2010-04-10 Thread Ulrik Sverdrup
Follow-up Comment #7, patch #1574 (project freeciv): Here is how to add a function to the API. It's called 'create_player' in the API (rhymes well with create_unit, create_base, etc). All is needs is that the wrapper function api_actions_create_player in server/scripting/api_actions.h can find

[Freeciv-Dev] [patch #1574] add a player to a running game

2010-04-07 Thread Ulrik Sverdrup
Follow-up Comment #3, patch #1574 (project freeciv): Nice, the code looks pretty simple actually. I find the same map inconsistency when reviving a player (creating a new player in a dead player's slot). Looking at the map editor, it seems the server thinks the player can see the whole map,

[Freeciv-Dev] [patch #1574] add a player to a running game

2010-04-07 Thread Matthias Pfafferodt
Follow-up Comment #4, patch #1574 (project freeciv): updated patch; the players knowledge about the map is cleared; no errors anymore and it is working! about the lua code: * no gold (additional functions needed as you said in patch #1494) * the newcomer() function can be called multiple times

[Freeciv-Dev] [patch #1574] add a player to a running game

2010-04-02 Thread Matthias Pfafferodt
Update of patch #1574 (project freeciv): Status:None = In Progress Assigned to:None = syntron ___ Follow-up Comment #1: updated version of

[Freeciv-Dev] [patch #1574] add a player to a running game

2010-04-02 Thread Matthias Pfafferodt
Follow-up Comment #2, patch #1574 (project freeciv): Found the first bug. The no player has no knowledge about the map. So the unit placed by the editor results in error messages like: 1: build_tile_data() tile (40,32) has no terrain!

[Freeciv-Dev] [patch #1574] add a player to a running game

2010-03-31 Thread Matthias Pfafferodt
URL: http://gna.org/patch/?1574 Summary: add a player to a running game Project: Freeciv Submitted by: syntron Submitted on: Mittwoch 31.03.2010 um 23:54 Category: general Priority: 3 - Low