Dutch Tram Set Release Candidate 1 released 2008/08/12

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Dutch Tram Set Release Candidate 1 released 2008/08/12

Post by FooBar »

Thing is that there's only a limited number of vehicle slots. LV4 uses almost all of them, thus any other vehicle set has to overwrite some of these vehicles.

For this purpose some guidelines were established by a few people amongst whom the creator of LV4 (George). I can't really do more than follow the guidelines, which I did. Same goes for the other tram sets out there.
The 'LV4 compatibility' as stated in the readme refers to the vehicle cost being rebalanced if both sets are active.

On the other hand you're free to modify the Dutch Tram Set for the vehicles to occupy other, more convenient, slots as the license permits that.
User avatar
BlueEagle_nl
Transport Coordinator
Transport Coordinator
Posts: 352
Joined: 28 Jan 2006 09:44
Skype: tilly5014
Location: Tillywood, The Netherlands

Re: Dutch Tram Set Release Candidate 1 released 2008/08/12

Post by BlueEagle_nl »

well, then I should advise: pick the one you like most (Dutch Tramset or LV4) and play with only that one. So, if you want our trams, leave out LV4 and the other way around.

I think the problem is in that both sets share the same VehIDs. That way the Tramset will overwrite the LV4 vehicles which share the same ID when the Tramset is loaded last, and vice versa.
Also, it's possible that one of the two sets automatically disables all vehicles using the same ID, before defining its own vehicles. This is what happens in the Dutch Trainset: All original trains get disabled, and afterwards replaced by the Dutch ones.

Are you using TTD/TTDPatch or OpenTTD? I know OpenTTD supports multiple vehicle sets (at least for trains, but IMO it'd support road vehicles as well), even if they share the same Vehicle IDs, without overwriting other vehicles (unless defined in the GRF itself).
User avatar
SAC
Tycoon
Tycoon
Posts: 1519
Joined: 03 Jun 2004 16:35
Location: Gothenburg, Sweden

Re: Dutch Tram Set Release Candidate 1 released 2008/08/12

Post by SAC »

Thanks BlueEagle, but that's not an option. In that case I would be left without no road vehicles at all, well, accept the original ones perhaps, but no... horrifying thought... :mrgreen:
FooBar wrote: On the other hand you're free to modify the Dutch Tram Set for the vehicles to occupy other, more convenient, slots as the license permits that.
Hmm, that's an option I guess! Would anyone care to point me to exactly what part of the codes are referring to ID's? :wink:
Simuscape - Chose Your Destination;
Simuscape | Visual Studio | INFRA Diary

INFRA Downloads - Chose Your Destination;
Simuscape | INFRA - A World of its own
User avatar
BlueEagle_nl
Transport Coordinator
Transport Coordinator
Posts: 352
Joined: 28 Jan 2006 09:44
Skype: tilly5014
Location: Tillywood, The Netherlands

Re: Dutch Tram Set Release Candidate 1 released 2008/08/12

Post by BlueEagle_nl »

These lines are you looking for in the NFO:

Code: Select all

 XX * 10	 03 01 01 YY 01 FF FB 00 08 00
XX: Sprite Number
YY: Vehicle ID: Change this to another hexadecimal function, but be aware not to use existing GRFIDs. When double GRFIDs exist, the last defined will overwrite the first (so that'd be no problem if the vehicles don't exist at the same time)

The beforelast digit may vary also, but I don't know the meaning of it...
User avatar
DJ Nekkid
Tycoon
Tycoon
Posts: 2141
Joined: 30 Nov 2006 20:33

Re: Dutch Tram Set Release Candidate 1 released 2008/08/12

Post by DJ Nekkid »

she probably needs to adjust the action 0's as well ... same format, but with

xx * yy 00 01 01 zz <stuff>

iirc ^^
Member of the
ImageImage
User avatar
BlueEagle_nl
Transport Coordinator
Transport Coordinator
Posts: 352
Joined: 28 Jan 2006 09:44
Skype: tilly5014
Location: Tillywood, The Netherlands

Re: Dutch Tram Set Release Candidate 1 released 2008/08/12

Post by BlueEagle_nl »

ok, i thought the 3s were enough.. but then, I'm using GRFMaker to work with GRFs...
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Dutch Tram Set Release Candidate 1 released 2008/08/12

Post by FooBar »

Don't forget the 4's and 2'nds ;)

Here's an example for you. I made the vehID's bold. For each vehicle that hex number should be the same.

You best start at the very bottom, as there's a list with all vehicles which includes both name and vehID. For example this one:
-1 * 0 04 01 7F 01 47 "HTM '800-er' 821-830 BRU" 00
-1 * 0 00 01 14 01 47 00 \w1929-01-01 03 \b35 04 \b35 08 \b80 13 \b11 14 \b54 0F \b30 07 \b15 11 \b149 09 \b143 02 20 0A 48 4C 00 00 10 FF 0E FF 06 07 12 49 17 90 1C 01 16 3F 00 00 00 1A 00
The first line is the action 4 which sets the name. The second one the action 0 which sets the statistics. 47 is the VehID here (and thus replacing the Powernaught Toy Van, see http://wiki.ttdpatch.net/tiki-index.php ... mmendation).

Now you have to find the 1/2/3 chain in the upper part of the nfo file corresponding to the vehicle which you're re-ID'ing. For the HTM '800-er' 821-830 BRU it's this:
//[47] HTM Brugeoise 821-830 + Towed wagon series 751-781
-1 * 0 01 01 02 08
// Format: spritenum pcxfile xpos ypos compression ysize xsize xrel yrel
-1 sprites/dutramset.pcx 2 160 01 19 7 -4 -10
-1 sprites/dutramset.pcx 42 160 01 16 17 -9 -7
-1 sprites/dutramset.pcx 82 160 01 15 26 -13 -8
-1 sprites/dutramset.pcx 122 160 01 16 17 -9 -8
-1 sprites/dutramset.pcx 162 160 01 19 7 -4 -10
-1 sprites/dutramset.pcx 202 160 01 16 17 -9 -9
-1 sprites/dutramset.pcx 242 160 01 15 26 -13 -8
-1 sprites/dutramset.pcx 282 160 01 16 17 -9 -11

-1 sprites/dutramset.pcx 2 190 01 19 7 -4 -10
-1 sprites/dutramset.pcx 42 190 01 16 19 -11 -6
-1 sprites/dutramset.pcx 82 190 01 11 29 -15 -6
-1 sprites/dutramset.pcx 122 190 01 16 19 -10 -8
-1 sprites/dutramset.pcx 162 190 01 19 7 -4 -10
-1 sprites/dutramset.pcx 202 190 01 16 19 -10 -8
-1 sprites/dutramset.pcx 242 190 01 11 29 -13 -4
-1 sprites/dutramset.pcx 282 190 01 16 19 -10 -10

-1 * 0 02 01 AA 01 01 00 00 00 00

-1 * 0 02 01 BB 01 01 01 00 01 00


-1 * 0 01 01 01 01
-1 sprites/dutramset.pcx 322 160 01 12 50 -25 -6
-1 * 0 02 01 FB 01 01 00 00 00 00


-1 * 0 02 01 11 81 40 00 FF 01 AA 00 00 00 BB 00

-1 * 0 02 01 10 81 10 00 FF 01 47 80 01 01 FF 80

-1 * 0 02 01 09 81 10 00 FF 01 4B 80 01 01 11 00 //SOUND EFFECT

-1 * 0 02 01 08 81 0C 00 FF 02 09 00 33 33 10 00 16 16 11 00


-1 * 0 03 01 01 47 01 FF FB 00 08 00
For vehicles with only one part this chain is a bit shorter, for vehicles with more parts it's a bit longer (this one has two parts) but the basic structure is the same and either way you'll have to change the vehID in four places for each vehicle (for some even eight times, but then the vehicle is referenced twice in the lower part and there are two seperate structures available.

At the (almost) very bottom you can find this list:
-1 * 0 00 01 02 01 44 11 \b14 09 \b13
-1 * 0 00 01 02 01 45 11 \b13 09 \b11
-1 * 0 00 01 02 01 46 11 \b18 09 \b16
-1 * 0 00 01 02 01 47 11 \b19 09 \b18
-1 * 0 00 01 02 01 48 11 \b17 09 \b14
-1 * 0 00 01 02 01 49 11 \b10 09 \b10
-1 * 0 00 01 02 01 4A 11 \b21 09 \b21
-1 * 0 00 01 02 01 4B 11 \b21 09 \b22
-1 * 0 00 01 02 01 4C 11 \b20 09 \b20
-1 * 0 00 01 02 01 4D 11 \b21 09 \b23
-1 * 0 00 01 02 01 4E 11 \b22 09 \b23
-1 * 0 00 01 02 01 4F 11 \b21 09 \b21
-1 * 0 00 01 02 01 50 11 \b23 09 \b24
-1 * 0 00 01 02 01 51 11 \b24 09 \b26
-1 * 0 00 01 02 01 52 11 \b22 09 \b24
-1 * 0 00 01 02 01 53 11 \b24 09 \b26
-1 * 0 00 01 02 01 54 11 \b25 09 \b28
-1 * 0 00 01 02 01 55 11 \b27 09 \b29
-1 * 0 00 01 02 01 56 11 \b28 09 \b30
-1 * 0 00 01 02 01 57 11 \b30 09 \b32
Change that accordingly, otherwise the vehicle prices will be very off compared to LV4.

Also note that the code examples will look slightly different in your case, because this is from the source file and not a decoded file.


Finally, I'll make you an offer which you probably can't refuse:
If you make me a list with current VehID's and the ones you'd like to have instead, I offer to do de re-ID'ing for you :P
User avatar
SAC
Tycoon
Tycoon
Posts: 1519
Joined: 03 Jun 2004 16:35
Location: Gothenburg, Sweden

Re: Dutch Tram Set Release Candidate 1 released 2008/08/12

Post by SAC »

FooBar wrote:

Finally, I'll make you an offer which you probably can't refuse:
If you make me a list with current VehID's and the ones you'd like to have instead, I offer to do de re-ID'ing for you :P
:shock:

...wait...

:shock:

Okey, I need to get to work now and won't be back until 01 this morning, but let me get back with an edit to this post once back home!

:P
Simuscape - Chose Your Destination;
Simuscape | Visual Studio | INFRA Diary

INFRA Downloads - Chose Your Destination;
Simuscape | INFRA - A World of its own
User avatar
BlueEagle_nl
Transport Coordinator
Transport Coordinator
Posts: 352
Joined: 28 Jan 2006 09:44
Skype: tilly5014
Location: Tillywood, The Netherlands

Re: Dutch Tram Set Release Candidate 1 released 2008/08/12

Post by BlueEagle_nl »

If you find any bugs in the Tramset, besides incompatibility with other GRFs, please post them to the Bugtracker, at http://blueeagle.byethost32.com/dutchset/bugs.
User avatar
SAC
Tycoon
Tycoon
Posts: 1519
Joined: 03 Jun 2004 16:35
Location: Gothenburg, Sweden

Re: Dutch Tram Set Release Candidate 1 released 2008/08/12

Post by SAC »

Now... Thanks for the help BlueEagle and DJ Nekkid! :P

FooBar, I'm really greateful for your offer and will of course accept! I took a closer look at George's LV4 and all I can say is that I never use any of his earlier vehicles with ID's ranging from 00 to 09. I believe I don't even use the ones with ID 0A or 0B either. Is this helpful?

If you manage to help me with this I'll send you one of the test files for the new feature "New Objects"! I do hope you play TTDP though for them to work! :P
Simuscape - Chose Your Destination;
Simuscape | Visual Studio | INFRA Diary

INFRA Downloads - Chose Your Destination;
Simuscape | INFRA - A World of its own
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Dutch Tram Set Release Candidate 1 released 2008/08/12

Post by FooBar »

SAC wrote:FooBar, I'm really greateful for your offer and will of course accept! I took a closer look at George's LV4 and all I can say is that I never use any of his earlier vehicles with ID's ranging from 00 to 09. I believe I don't even use the ones with ID 0A or 0B either. Is this helpful?

If you manage to help me with this I'll send you one of the test files for the new feature "New Objects"! I do hope you play TTDP though for them to work! :P
According to this (which I just discovered) George has reserved some IDs for trams in LV4. I think it makes the most sense to use those IDs as an alternative for the Dutch Tramset Vehicles. Could you confirm that there are currently no trams in LV4? I'm not using it, so I wouldn't know... :roll:

And a peek into some of your wonderful graphics would do just fine as 'payment' for my services :wink:
You can expect a LV4 compatible version either tonight or somewhere tomorrow.
User avatar
SAC
Tycoon
Tycoon
Posts: 1519
Joined: 03 Jun 2004 16:35
Location: Gothenburg, Sweden

Re: Dutch Tram Set Release Candidate 1 released 2008/08/12

Post by SAC »

Nope, there are no trams in George's LV4! :P
Simuscape - Chose Your Destination;
Simuscape | Visual Studio | INFRA Diary

INFRA Downloads - Chose Your Destination;
Simuscape | INFRA - A World of its own
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Dutch Tram Set Release Candidate 1 released 2008/08/12

Post by FooBar »

Good! In that case I think using 30 through 47 would do just fine!
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Dutch Tram Set Release Candidate 1 released 2008/08/12

Post by FooBar »

The version of the Dutch Tram Set as attached below should be better compatible with LV4.
Attachments
DutchTramSetLV4CompatibleVersionSpeciallyCompiledForSAC.zip
(230.32 KiB) Downloaded 556 times
User avatar
BlueEagle_nl
Transport Coordinator
Transport Coordinator
Posts: 352
Joined: 28 Jan 2006 09:44
Skype: tilly5014
Location: Tillywood, The Netherlands

Re: Dutch Tram Set Release Candidate 1 released 2008/08/12

Post by BlueEagle_nl »

[EDIT]SAC[/EDIT]*, please test the GRF and confirm it works correctly (read: gets you all vehicles of LV4 and the Tramset). When it does, I'll add this 'special' release to the Downloads page of the Website, with a note for LV4 Compatibility

*: Sorry, used the wrong name...
Last edited by BlueEagle_nl on 10 Nov 2008 17:26, edited 1 time in total.
User avatar
Ameecher
Tycoon
Tycoon
Posts: 11919
Joined: 12 Aug 2006 15:39
Contact:

Re: Dutch Tram Set Release Candidate 1 released 2008/08/12

Post by Ameecher »

BlueEagle_nl wrote:Infra, please test the GRF and confirm it works correctly (read: gets you all vehicles of LV4 and the Tramset). When it does, I'll add this 'special' release to the Downloads page of the Website, with a note for LV4 Compatibility
Her name is SAC, not Infra ;)
Image
User avatar
SAC
Tycoon
Tycoon
Posts: 1519
Joined: 03 Jun 2004 16:35
Location: Gothenburg, Sweden

Re: Dutch Tram Set Release Candidate 1 released 2008/08/12

Post by SAC »

Many thanks FooBar and BlueEagle! I will check it out tomorrow evening after work! :P
Simuscape - Chose Your Destination;
Simuscape | Visual Studio | INFRA Diary

INFRA Downloads - Chose Your Destination;
Simuscape | INFRA - A World of its own
User avatar
BlueEagle_nl
Transport Coordinator
Transport Coordinator
Posts: 352
Joined: 28 Jan 2006 09:44
Skype: tilly5014
Location: Tillywood, The Netherlands

Re: Dutch Tram Set Release Candidate 1 released 2008/08/12

Post by BlueEagle_nl »

Well, it's FooBar who did the work... I'll just offer it for download at the Dutch Sets Site as soon as it's tested...
User avatar
SAC
Tycoon
Tycoon
Posts: 1519
Joined: 03 Jun 2004 16:35
Location: Gothenburg, Sweden

Re: Dutch Tram Set Release Candidate 1 released 2008/08/12

Post by SAC »

Well, I've tested it and everything works fine - in my game at least! Thank you FooBar for doing this! :P And go ahead Blue eagle and post it! :P
Simuscape - Chose Your Destination;
Simuscape | Visual Studio | INFRA Diary

INFRA Downloads - Chose Your Destination;
Simuscape | INFRA - A World of its own
User avatar
FooBar
Tycoon
Tycoon
Posts: 6553
Joined: 21 May 2007 11:47
Location: The Netherlands
Contact:

Re: Dutch Tram Set Release Candidate 1 released 2008/08/12

Post by FooBar »

You're welcome!

I'll also add a pointer to the third post of this topic to where people can find this new LV4 compatible grf.
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Semrush [Bot] and 35 guests