The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: Foxglove on October 18, 2012, 07:04:17 AM

Title: r5991 - Cannot put a new factory
Post by: Foxglove on October 18, 2012, 07:04:17 AM
Just started a new map in multiplayer in r5990 and realized somewhy a neutral player isnt able to place factories. Do you know why it happens and how it could be avoided?
Also in this nightly build I cant put new factories on old maps/savegames I played in old nightly builds/versious.

Upd. Actually if I put "Only town factories" or "Only not in town factories" checkbox in "Add a new factory" menu, and try to put a new factory, it builds one (or couple of them, didnt really notice), but not in those place I wanted. Most likely it builds much closer to the city if I selected "Only town factories" checkbox.

Upd2. Updated to 5991, the same issue.
Title: Re: r5991 - Cannot put a new factory
Post by: Dwachs on October 18, 2012, 08:05:04 AM
In multiplayer, factories can be placed by a client/human that has public player unlocked. This was added to prevent cheating/hacking, where a hacked client could circumvent some checks.

There seems to be a bug with placing single factories. But this bug should only be present in network mode.
Title: Re: r5991 - Cannot put a new factory
Post by: Foxglove on October 18, 2012, 08:07:50 AM
Is it fixable? Makes it hard to play, since me & my buddy are playing sort of very customized multiplayer game, with putting industry zones in special places and other stuff, and not having this option to place factories where ever we want makes our idea of custom towns map sort of impossible.
Title: Re: r5991 - Cannot put a new factory
Post by: Dwachs on October 18, 2012, 08:13:07 AM
If you can compile the program yourself, then changing line 4600 in simwerkz.cc to 'return true;' should fix it. (not tested)

Placing factories in offline mode should work (ie not multiplayer, not on server). Save your network game, load it again in offline mode (simutrans not started as server), place factories, save, restart server. Of course, this is not convenient, but better than waiting for the fix to propagate to the nightly page.
Title: Re: r5991 - Cannot put a new factory
Post by: Foxglove on October 18, 2012, 08:14:10 AM
No, I dont know how to compile...
Will it be fixed in the next nightly build though? It can wait a day for sure.
Title: Re: r5991 - Cannot put a new factory
Post by: Dwachs on October 18, 2012, 08:15:54 AM
Did the offline method work?

I cannot make any promises, when it will be fixed. :-X It's done, when it's done.
Title: Re: r5991 - Cannot put a new factory
Post by: Foxglove on October 18, 2012, 08:17:09 AM
Offline method doesnt really suit my partner :(
Well I hope you will fix it on days, meanwhile I will downgrade to the older build. Will check nightly few days later, thank you.
Title: Re: r5991 - Cannot put a new factory
Post by: Dwachs on October 18, 2012, 05:42:31 PM
should be fixed in r5992.
Title: Re: r5991 - Cannot put a new factory
Post by: Foxglove on October 19, 2012, 09:28:56 AM
It works! Thank you again mate.
Title: Re: r5991 - Cannot put a new factory
Post by: Dwachs on October 19, 2012, 11:29:28 AM
thanks for reporting :)