Revival of subsidiaries patch
Moderator: OpenTTD Developers
Re: Revival of subsidiaries patch
That is a problem that i have been trying to solve since i posted the idea and i can see many ways around it so i have decided it isnt one of my better ideas.
Re: Revival of subsidiaries patch
I checked it. on R11158 this does not happen, but on R11188.Well, loading previously saved games works, thank you.
But I have found another bug. As soon as I build docks, it is destroyed in a few seconds, automatically.... -> It appears also in a game where your original patch file is applied, without later modifications to load previously saved games..... -> railway stations, airports, bus stops and truck loading areas are OK....
Docks built on a raised land aren't destroyed, but on the sea level they are...
I will check the differences between these two versions.
edit:
I found the error. It was a little hack in the code.
I had set CheckOwnership in players.cpp to return true without checking.
somewhere between R11158 and R11188 they added code which inserts commands to remove docks everey now and then.
without the working checks in CheckOwnership this removed the docks.
Now I do the correct checks so that a don't need the hack in CheckOwnership anymore. But I think these commands to remove docks are an error, but not mine.
I added a corrected patch. If you enable shared stations shared tracks will be enabled, too. If you disable shared tracks shared stations will be disabled.
If you use this Patch against ChrisIN you have to change the savegame version in saveload.cpp, line 32, and in settings.cpp, lines 1571-1578.
- Attachments
-
- shared_r11188.diff
- (23.62 KiB) Downloaded 97 times
Re: Revival of subsidiaries patch
i've got a lot of problems applying the patch with chrisIn, can you please upload a diff for the chrisIn only, pleaseeee.
i love this patch.
i love this patch.
Re: Revival of subsidiaries patch
Here is a chrisin+shared patch.
use this in a fresh checkout, not on a patched chrisin.
This patch is untested. It compiles and I started the game but I tested nothing else.
use this in a fresh checkout, not on a patched chrisin.
This patch is untested. It compiles and I started the game but I tested nothing else.
- Attachments
-
- chrisin_patched.diff
- (528.83 KiB) Downloaded 126 times
Re: Revival of subsidiaries patch
Thank you, I will test it as soon as I have some time 

Re: Revival of subsidiaries patch
You can find the new thread for this project at: http://www.tt-forums.net/viewtopic.php?f=33&t=34292
Who is online
Users browsing this forum: No registered users and 9 guests