Page 6 of 7
Re: You can have 65535 types of vehicles to choose since r12924!
Posted: 07 Sep 2008 02:56
by cnww
Having gotten tired of waiting for somebody else to do it I spent the last few hours reading up on GRF files and have modified the origengs.grf with grfcodec in an effort to make the vehicles usable.
The GRF copies vehicles by modifying one property each for each original vehicle. The grf I started with (downloaded from the first post in this thread) sets property 07 (load amount) to zero, making all the original vehicles available but carry no cargo (or in the case of aircraft, no passengers).
I had to set at least one property per vehicle to get the copies to appear, so the attached (I hope) grf does the following:
Trains - Set property 25 (user bitmask) to zero.
Road Vehicles - Set property 1C (misc flags) to zero (so none of the original road vehicles can be a tram or use two company colors)
Ships - Set property 17 (misc flags) to zero (so none of the original ships can use two company colors either)
Aircraft - Set property 17 (misc flags) to zero (so none of the original aircraft can be seaplanes... Has anyone ever actually seen a GRF that includes a seaplane?)
n.b. I don't have TTDPATCH or a Windows/DOS machine to run it on, so there is a good chance that this only works with OpenTTD. Tested with SVN r14239. If you encounter any problems please feel free to fix them and post the results

Re: You can have 65535 types of vehicles to choose since r12924!
Posted: 07 Sep 2008 09:42
by FooBar
Nicely done!
cnww wrote:n.b. I don't have TTDPATCH or a Windows/DOS machine to run it on, so there is a good chance that this only works with OpenTTD.
I think there's no need for this to work in TTDPatch, since you can't have a large vehicle replacement set AND the original vehicles in there at the same time anyways.
Re: You can have 65535 types of vehicles to choose since r12924!
Posted: 07 Sep 2008 10:59
by LordAzamath
cnww wrote:
n.b. I don't have TTDPATCH or a Windows/DOS machine to run it on, so there is a good chance that this only works with OpenTTD. Tested with SVN r14239. If you encounter any problems please feel free to fix them and post the results

You don't need windows/DOS to run TTDP.
WINE Is Not Emulator
Re: You can have 65535 types of vehicles to choose since r12924!
Posted: 07 Sep 2008 15:01
by Digitalfox
cnww wrote:Having gotten tired of waiting for somebody else to do it I spent the last few hours reading up on GRF files and have modified the origengs.grf with grfcodec in an effort to make the vehicles usable.
The GRF copies vehicles by modifying one property each for each original vehicle. The grf I started with (downloaded from the first post in this thread) sets property 07 (load amount) to zero, making all the original vehicles available but carry no cargo (or in the case of aircraft, no passengers).
I had to set at least one property per vehicle to get the copies to appear, so the attached (I hope) grf does the following:
Trains - Set property 25 (user bitmask) to zero.
Road Vehicles - Set property 1C (misc flags) to zero (so none of the original road vehicles can be a tram or use two company colors)
Ships - Set property 17 (misc flags) to zero (so none of the original ships can use two company colors either)
Aircraft - Set property 17 (misc flags) to zero (so none of the original aircraft can be seaplanes... Has anyone ever actually seen a GRF that includes a seaplane?)
n.b. I don't have TTDPATCH or a Windows/DOS machine to run it on, so there is a good chance that this only works with OpenTTD. Tested with SVN r14239. If you encounter any problems please feel free to fix them and post the results

Thank you cnww, I've updated the first post with your fixed GRF

Re: You can have 65535 types of vehicles to choose since r12924!
Posted: 09 Sep 2008 02:24
by DaleStan
LordAzamath wrote:WINE Is Not Emulator
I think you're missing article there.
Re: You can have 65535 types of vehicles to choose since r12924!
Posted: 11 Sep 2008 17:05
by Ammler
Digitalfox wrote:
Thank you cnww, I've updated the first post with your fixed GRF

Now, we have two locations with same file? You should only link to the post of the author, it might be, he will/need to update it again...
Greets
Ammler
Re: You can have 65535 types of vehicles to choose since r12924!
Posted: 11 Sep 2008 18:04
by LordAzamath
DaleStan wrote:LordAzamath wrote:WINE Is Not Emulator
I think you're missing article there.
Yep. I wanted to say Wine Is Not an Emulator, but failed miserably.
Re: You can have 65535 types of vehicles to choose since r12924!
Posted: 11 Sep 2008 20:07
by Digitalfox
Ammler wrote:Digitalfox wrote:
Thank you cnww, I've updated the first post with your fixed GRF

Now, we have two locations with same file? You should only link to the post of the author, it might be, he will/need to update it again...
Greets
Ammler
And if he erases it or accidentally a mod erases his post?

Re: You can have 65535 types of vehicles to choose since r12924!
Posted: 02 Oct 2008 09:38
by TrueTenacity
Does this change permit one to use wagons from one set on trains from another?
Re: You can have 65535 types of vehicles to choose since r12924!
Posted: 02 Oct 2008 10:06
by maquinista
TrueTenacity wrote:Does this change permit one to use wagons from one set on trains from another?
Yes, You can mix wagons of various trainsets.
Re: You can have 65535 types of vehicles to choose since r12924!
Posted: 02 Oct 2008 10:09
by TrueTenacity
that's awesome...
I'm guessing it can't be enabled on an already running game?
Re: You can have 65535 types of vehicles to choose since r12924!
Posted: 02 Oct 2008 10:51
by Gremnon
It can, actually, but expect some bugs, glitches and similar to crop up.
Re: You can have 65535 types of vehicles to choose since r12924!
Posted: 02 Oct 2008 10:58
by TrueTenacity
Oh lovely...
I'll give it a try tonight and let you know.... a few glitches here and there i can live with...
Besides, Bugs, Glitches and whatnot are part of the deal with using nightlies... although I've yet to encounter something.... aside from me crashing the game by doing something stupid...
Re: You can have 65535 types of vehicles to choose since r12924!
Posted: 03 Oct 2008 08:24
by TrueTenacity
Ok, I enabled the option, loaded the extra engine sets and then applied them...
It works wonderfully!
The only problem I have encountered so far was with my upgrading of the ISR patch which broke a few stations...
definitely lovely.... will put it to good use over the new week... i think a new game might be in order to appreciate the awesomeness....
Re: You can have 65535 types of vehicles to choose since r12924!
Posted: 04 Oct 2008 10:17
by FooBar
TrueTenacity wrote:The only problem I have encountered so far was with my upgrading of the ISR patch which broke a few stations...
That has nothing to do with this feature.
Also, read the complete post when you download something new:
Warning: station IDs have changed, which makes ISR v0.8.0 incompatible with savegames made with previous versions. To update old savegames follow the instructions in the first post. Do not complain if you ignore this warning and your game crashes.
Re: You can have 65535 types of vehicles to choose since r12924!
Posted: 05 Oct 2008 17:02
by nightfever
after installing the UK set, i still don't have the original maglev locos and waggons
i ONLY have siemens transrapid and mtrack coelacanth
i've looked for the option in the first post, and installed original engines, but still doesn't work
Re: You can have 65535 types of vehicles to choose since r12924!
Posted: 05 Oct 2008 20:15
by FooBar
And you do have a nightly version and you do have the appropriate option enabled in the advanced settings?
Re: You can have 65535 types of vehicles to choose since r12924!
Posted: 05 Oct 2008 20:23
by nightfever
FooBar wrote:And you do have a nightly version and you do have the appropriate option enabled in the advanced settings?
will i be able to load saved games after installing the nightly version?
Re: You can have 65535 types of vehicles to choose since r12924!
Posted: 05 Oct 2008 22:13
by Gremnon
Usually, yes. It's newer version saves loading on older versions that won't work.
Re: You can have 65535 types of vehicles to choose since r12924!
Posted: 25 Dec 2008 14:43
by BlackKrystal
Hello
I read for 2 hours this topic, in ever directions, and i still don't understand how to do it work !
I'm not a newbie, but i've no config file, and no "patch option" (which must be only with TTDPatch, i think...)
I run with the 0.6.3, the latest stable.
So, where's the bug ?
Thx for response, i'm very excited thinking i can mix GRF set !