Bundesbahn set [Planning & pasting - 2,13% done]
Moderator: Graphics Moderators
- Railmanager
- Engineer
- Posts: 28
- Joined: 13 Jan 2005 12:57
- Location: Germany / NRW
- Contact:
Yes, that can be done. Use callback 1D.railmamanager wrote:Thats okay, but can you code that only locomotives with the right "Wendezugsteuerung" can be combinated with the RE160?
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
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
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.
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.
Property 1D is indeed "bit mask of cargo types", but I said "callback".Bernhard wrote:but 1D is the 'bit mask of cargo types' isn't it?
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.
AIUI, you have (traveling left):Bernhard wrote:Do you know a way to code it a way, that sometimes the engine is in front and sometimes the Steuerwagen?
[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
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
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.DaleStan wrote:Property 1D is indeed "bit mask of cargo types", but I said "callback".Bernhard wrote:but 1D is the 'bit mask of cargo types' isn't it?
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.
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?
@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
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
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.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?
thx very much!DaleStan wrote:It's prop 07. (Wiki page is here)
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).

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).
It's possible, Lakie did it.Saskia wrote:Another question: Do you think it would be possible to refit a complete train from one livery to another (different CargoIDs)?
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.

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."
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."
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.

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."
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."
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.
~ Lakie
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."
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."
"her", it's a girlLakie wrote:(Probably better to link him to here, Purno. Since it has a link to the source code)

Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.

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."
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."
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.

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.

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."
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."
Who is online
Users browsing this forum: Ahrefs [Bot] and 16 guests