fodev.net

FOnline Development => Questions and Answers => Topic started by: chenzo1331 on January 15, 2017, 03:25:57 pm

Title: TB stuck in loop
Post by: chenzo1331 on January 15, 2017, 03:25:57 pm
Has anyone else had an issue of TB getting stuck in a loop and shipping out your turn? I'm using reloaded sdk. Thought it may have been due to changes I made, but standard sdk seems to do it on my pc too
Title: Re: TB stuck in loop
Post by: fonliner on January 15, 2017, 03:38:45 pm
I'm not sure but when you are logged with admin access there is something strange with turn-based combat. Don't know what it is exactly...
Title: Re: TB stuck in loop
Post by: chenzo1331 on January 15, 2017, 03:46:30 pm
oh lol. I think that may be it. I'm playing without admin access now and it hasn't done it again yet :) thanks
Title: Re: TB stuck in loop
Post by: JovankaB on January 21, 2017, 06:51:17 pm
https://github.com/rotators/fo2238/blob/1d2c7c8223bc1724af1b50c022d3600d1ddfb2e3/Server/scripts/main.fos#L2986

If you have admin access your turn is skipped unless the server is in debug mode.

The main reason is to not give away the presence of a hidden admin / game master on the map during turn based combat ;) Also there is no reason for server staff to interfere with player experience by taking part in battle, or even just delaying it. They can do their things with commands outside of their turn. This probably should be made optional though.

You can disable it by commenting "_EndTurn(cr);" in line 2991 (in Reloaded it might be a different line).