Bundesbahn set [Planning & pasting - 2,13% done]

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

What do you think about this?

Poll ended at 18 Aug 2004 08:40

Great
112
69%
Useless
16
10%
I only use freight trains
8
5%
I don't use DB trains at all
12
7%
I'm boring and only use the ICE-3 ;o)
15
9%
 
Total votes: 163

User avatar
Bernhard
Transport Coordinator
Transport Coordinator
Posts: 293
Joined: 11 Mar 2004 11:26
Location: 52º31'20"N 13º17'51"O

Post by Bernhard »

thats right. But it is impossible (at the Moment) to code Wendezugsteuerung. My RE160 allways drives Steuerwagen in front, engine rear............. sorry, no way. (at the moment. )
User avatar
Railmanager
Engineer
Engineer
Posts: 28
Joined: 13 Jan 2005 12:57
Location: Germany / NRW
Contact:

Post by Railmanager »

Thats okay, but can you code that only locomotives with the right "Wendezugsteuerung" can be combinated with the RE160?
User avatar
Bernhard
Transport Coordinator
Transport Coordinator
Posts: 293
Joined: 11 Mar 2004 11:26
Location: 52º31'20"N 13º17'51"O

Post by Bernhard »

i'm sure that there are people who can do that (is who right :? )

i'm absolute beginner!!!! :oops:

But i will have a look in the wiki and try.
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

railmamanager wrote:Thats okay, but can you code that only locomotives with the right "Wendezugsteuerung" can be combinated with the RE160?
Yes, that can be done. Use callback 1D.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
User avatar
Bernhard
Transport Coordinator
Transport Coordinator
Posts: 293
Joined: 11 Mar 2004 11:26
Location: 52º31'20"N 13º17'51"O

Post by Bernhard »

but 1D is the 'bit mask of cargo types' isn't it?

I could use that if the engine wouln't be an engine but an overriding action2, or am i wrong?

Do you know a way to code it a way, that sometimes the engine is in front and sometimes the Steuerwagen??

I tried some graphical tricks, but it doesn't fit.
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

Bernhard wrote:but 1D is the 'bit mask of cargo types' isn't it?
Property 1D is indeed "bit mask of cargo types", but I said "callback".
Select which callbacks are used by setting property 1E. Unfortunately, the list of bits to set in prop 1E is incomplete; it does not tell which bit to set to use callback 1D. I'd guess that bit 6 (0x40) is the one you want.
Bernhard wrote:Do you know a way to code it a way, that sometimes the engine is in front and sometimes the Steuerwagen?
AIUI, you have (traveling left):
[Steuerwagen (which is really an engine)][car][car][car][car]...[real engine]
which you want to appear as (traveling left):
[real engine][car][car][car][car]...[Steuerwagen]
AFAICT, this is not possible, because there is no way for the Steuerwagen to determine which engine, if any, has been attached, and it has to know that to know which engine it needs to look like.

So, did I manage to clear things up, or just muddy the waters?
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

DaleStan wrote:
Bernhard wrote:but 1D is the 'bit mask of cargo types' isn't it?
Property 1D is indeed "bit mask of cargo types", but I said "callback".
Select which callbacks are used by setting property 1E. Unfortunately, the list of bits to set in prop 1E is incomplete; it does not tell which bit to set to use callback 1D. I'd guess that bit 6 (0x40) is the one you want.
Actually, callback 1D is used always, don't set any bits in prop 1E for it. The reason is that I'm running out of bits, and I want to reserve the remaining ones for callbacks that are actually useful to turn off.
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
User avatar
Bernhard
Transport Coordinator
Transport Coordinator
Posts: 293
Joined: 11 Mar 2004 11:26
Location: 52º31'20"N 13º17'51"O

Post by Bernhard »

Hi DaleStan,

yes, you cleared up a lot, Thanks very much.
I will try with the callbacks.

Another question :oops:

Where do i code the 'gradual loading' (hope that's what i think) the way how fast wagons are loaded/unloaded?
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

It's prop 07. (Wiki page is here)

@Patchman:
Wouldn't it be possible to disable a callback with an appropriately constructed Var2 (ie one that doesn't return a callback result), regardless of the setting of prop 1E?
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Patchman
Tycoon
Tycoon
Posts: 7575
Joined: 02 Oct 2002 18:57
Location: Ithaca, New York
Contact:

Post by Patchman »

DaleStan wrote:@Patchman:
Wouldn't it be possible to disable a callback with an appropriately constructed Var2 (ie one that doesn't return a callback result), regardless of the setting of prop 1E?
That should work. If a callback is called but returns a regular action 2 (not a var.action 2 nor a callback result), then the default value for the callback should be used, which is whatever is appropriate for the specific callback. E.g., the load time callback would use prop 07 if it fails.
Josef Drexler

TTDPatch main | alpha/beta | nightly | manual | FAQ | tracker
No private messages please, you'll only get the answering machine there. Send email instead.
User avatar
Bernhard
Transport Coordinator
Transport Coordinator
Posts: 293
Joined: 11 Mar 2004 11:26
Location: 52º31'20"N 13º17'51"O

Post by Bernhard »

DaleStan wrote:It's prop 07. (Wiki page is here)
thx very much!
User avatar
Saskia
Director
Director
Posts: 523
Joined: 22 Feb 2004 14:23
Location: Cologne, Germany
Contact:

Post by Saskia »

Bernhard, looks as if you really get the Wendezugsteuerung working :) Another question: Do you think it would be possible to refit a complete train from one livery to another (different CargoIDs)?

BTW, I'm currently doing | / \ views for 194 , 216 and 232 (V300). I also made another style for 614, will show you soon ...

And Railmanager adds some vehicles to the table (link in my sig).
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Post by Purno »

Saskia wrote:Another question: Do you think it would be possible to refit a complete train from one livery to another (different CargoIDs)?
It's possible, Lakie did it.
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
User avatar
Saskia
Director
Director
Posts: 523
Joined: 22 Feb 2004 14:23
Location: Cologne, Germany
Contact:

Post by Saskia »

Oh, really? :) In which set?
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Post by Purno »

Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
User avatar
Lakie
TTDPatch Developer
TTDPatch Developer
Posts: 1799
Joined: 26 May 2004 16:37
Location: Britain
Contact:

Post by Lakie »

It isn't a set really, but yes. The Bm73 does have refittable liveries.
However the train DOES NOT change cargo type.
(Probably better to link him to here, Purno. Since it has a link to the source code)

Refitable liveries can be done by the use of callbacks.


[edit] Just about recovered from a trabble stomic ache...


2 different ways.

If you just want to refit the livery, and not change the cargo id.
then you can use what I did for the Bm7. (look for bit7 in the source code)

If you want the graphics to change with the cargo id, just use a callback to asign a different graphics as the cargo type changes.
And use an override for the attached wagons, refering to this callback. (If needed)

For Example.

Code: Select all

-1 * 14         02 00 1A 81 B9 00 FF 01 01 00 09 09 00 00
Use graphics 01 if cargo type is steel
Use graphics 00 if cargo type anything else

~ Lakie
TTDpatch Developer 2005 - 2010 ~ It all started because of shortened vehicle not loading correctly, now look where I've gone with it!
Grfs coded ~ Finnish Train Set (Teaser) | Bm73 (Release 3) | Emu 680 (Release 3)| Glass Station (Release 1) | UK Roadset (Version 1.1a) | New Water Coasts (Version 7)
Pikka: "Lakie's a good coder, but before he'll add any feature to TTDP you have to convince him that you're not going to use it to destroy the world as we know it."
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Post by Purno »

Lakie wrote:(Probably better to link him to here, Purno. Since it has a link to the source code)
"her", it's a girl :wink:
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
User avatar
jvassie
Tycoon
Tycoon
Posts: 3421
Joined: 18 Dec 2002 18:00
Location: High Wycombe, England
Contact:

Post by jvassie »

How is progress going?

I cant wait to see this set complete!

James
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Post by Purno »

AFAIK, the project died since Saskia 'left' :(

So we'll need a new project leader... (or we need Saskia back)

In short: no progress, sorry.
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
User avatar
jvassie
Tycoon
Tycoon
Posts: 3421
Joined: 18 Dec 2002 18:00
Location: High Wycombe, England
Contact:

Post by jvassie »

oh well! :roll:

it was a good project, lets hope the flames are rekindled some time in the near future! :D

James
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: Ahrefs [Bot] and 16 guests