Re: [Widelands-dev] send_player_* commands

2014-11-12 Thread Fòram na Gàidhlig
Yes, sounds like a good solution. 12/11/2014 08:13, sgrìobh Tibor Bamhor: > I wanted to avoid notifications because the ship returns its state and I > hoped this should be enough. But if there is a send_player_* command > waiting in a queue, the actual ship's state might be changed soon. And > fr

Re: [Widelands-dev] send_player_* commands

2014-11-12 Thread Tibor Bamhor
I wanted to avoid notifications because the ship returns its state and I hoped this should be enough. But if there is a send_player_* command waiting in a queue, the actual ship's state might be changed soon. And from time to time it led to a crash. But now I added notifications saying that ship i

Re: [Widelands-dev] send_player_* commands

2014-11-12 Thread Fòram na Gàidhlig
> is it possible to know that previous send_player_* command was processed > yet? send_player_command returns void, so I don't think so. > My AI can send these commands every 5 seconds, and it seems that first > one is not executed and AI (not knowing this) sends another command. > Then first o

[Widelands-dev] send_player_* commands

2014-11-10 Thread Tibor Bamhor
Hi, is it possible to know that previous send_player_* command was processed yet? My AI can send these commands every 5 seconds, and it seems that first one is not executed and AI (not knowing this) sends another command. Then first one is executed, state of ship is changed and second one crashes