Re: [OTTD] UKRS2 - Latest version 1.05 (02/01/2013)
Posted: 25 Apr 2016 10:55
Pikkawiki is down??
The place to talk about Transport Tycoon
https://www.tt-forums.net/
In your previous post you told us what to change in order to have the engines run at full speed for all track types.PikkaBird wrote:That'd be the problem, then. No plans to fix this at the current time, I'm afraid.Transportman wrote:NuTracks 2 changed labels to the Standardized Railtype Scheme.
Code: Select all
// Rail Translation Table
419 * 86 00 08 01 14 00 12
"RAIL" // 00 01
"ELRL" // 01 02
"3RDR" // 02 04
"3RDC" // 03 08
// bunch of nutracks nonsense for powering JB / dual power speed
"3LOW" "CLOW" "3MED" "CMED" "MTRO" "MTRC" "MTRS" "MTRU" "MTRT" // 04-0C
"ELOW" "EMED" "EHIG" "HSTR" "DBNE" "DBHE" "DBHS" // 0D-13
// 3rd available = 02 0C
// OHLE available = 01 01 , 03 03 , 05 05 , 07 07 , 0D 13
Instead of mucking about with NFO code, wouldn't it maybe be possible to modify the problem locomotives with an NML patch? Like how theres the NARS 2.5 Passenger mod that increases the capacity of passenger cars. Would it be possible to make an NML GRF that changes the dual power stuff to use the updated railtype scheme used by Nutracks (and I suppose pretty much every other railtype grf now)PikkaBird wrote:Here's the rail table from UKRS2
I guess all you'd have to do is replace the 16 "nutracks nonsense" labels with the updated equivalents.Code: Select all
// Rail Translation Table 419 * 86 00 08 01 14 00 12 "RAIL" // 00 01 "ELRL" // 01 02 "3RDR" // 02 04 "3RDC" // 03 08 // bunch of nutracks nonsense for powering JB / dual power speed "3LOW" "CLOW" "3MED" "CMED" "MTRO" "MTRC" "MTRS" "MTRU" "MTRT" // 04-0C "ELOW" "EMED" "EHIG" "HSTR" "DBNE" "DBHE" "DBHS" // 0D-13 // 3rd available = 02 0C // OHLE available = 01 01 , 03 03 , 05 05 , 07 07 , 0D 13
Thanks, I'll see if I can manage to butcher it into a working modPikkaBird wrote:I guess all you'd have to do is replace the 16 "nutracks nonsense" labels with the updated equivalents.
That would probably be easier Would it be possible to edit just the locomotive stats without including the sprites in the mod?NekoMaster wrote:Instead of mucking about with NFO code, wouldn't it maybe be possible to modify the problem locomotives with an NML patch? Like how theres the NARS 2.5 Passenger mod that increases the capacity of passenger cars. Would it be possible to make an NML GRF that changes the dual power stuff to use the updated railtype scheme used by Nutracks (and I suppose pretty much every other railtype grf now)
grfcodec tries to make strings where it makes sense, iirc. In any case, if you can just replace sprite 419 with the commented version and edit it.cmircea wrote:Thing is, I believe in the decompiled NFO (using grfcodec) it appears as just decimals, not the actual letters. That would make it a bit more difficult to change. Haven't fiddled with bytes or ASCII codes too much, gotta read the NFO spec on this.
There's no such thing as an "NML patch" - NewGRFs cannot modify each other, and an additional NewGRF can only override vehicle properties, not alter or insert code.NekoMaster wrote:Instead of mucking about with NFO code, wouldn't it maybe be possible to modify the problem locomotives with an NML patch?
In sprite 494, change "94 00" to "00 84",PikkaBird, if you don't mind, what would it take to remove the restrictions on brake wagons?
Code: Select all
// vv vv
494 * 15 02 00 94 81 7F 06 00 0F 01 00 84 02 03 00 84
Thank you! Looks like grfcodec converts the track types to strings, so that's easierPikkaBird wrote:grfcodec tries to make strings where it makes sense, iirc. In any case, if you can just replace sprite 419 with the commented version and edit it.
Code: Select all
RAIL
ELRL
3RDR
3RDC
3LOW = SAA3 // standard gauge, low speed, low axle load, 3rd rail power
CLOW = SAAZ // standard gauge, low speed, low axle load, catenary & 3rd rail power
3MED = SBA3 // standard gauge, medium speed, low axle load, 3rd rail power
CMED = SBAZ // standard gauge, medium speed, low axle load, catenary & 3rd rail power
MTRO = SSA3 // standard gauge, subterranean, low axle load, 3rd rail power
MTRC = SSA3 // standard gauge, subterranean, low axle load, 3rd rail power
MTRS = SSA3 // standard gauge, subterranean, low axle load, 3rd rail power
MTRU = SSA3 // standard gauge, subterranean, low axle load, 3rd rail power
MTRT = SSA3 // standard gauge, subterranean, low axle load, 3rd rail power
ELOW = SAAE // standard gauge, low speed, low axle load, catenary power
EMED = SBAE // standard gauge, medium speed, low axle load, catenary power
EHIG = SCAE // standard gauge, high speed, low axle load, catenary power
HSTR = SDAE // standard gauge, high speed, low axle load, catenary power
DBNE
DBHE
DBHS
The "Transport Tycoon Style" parameter only provides one wagon / cargo. That's not very realistic.PikkaBird wrote:Alternatively, use the "Transport Tycoon Style" wagon selection, or a less silly NewGRF.
Code: Select all
9491 * 9 07 00 04 0E "3RDRU"
9492 * 9 07 00 04 0E "3RDCU"
9493 * 9 07 00 04 0E "3LOWU"
9494 * 9 07 00 04 0E "CLOWU"
9495 * 9 07 00 04 0E "3MEDU"
9496 * 9 07 00 04 0E "CMEDU"
9497 * 9 07 00 04 0E "MTROU"
9498 * 9 07 00 04 0E "MTRCU"
9499 * 9 07 00 04 0E "MTRSU"
9500 * 9 07 00 04 0E "MTRUU"
9501 * 9 07 00 04 0E "MTRTU"
Code: Select all
10136 * 31 04 00 7F 01 "bBrush Class 92 (Electric)" 00
...
10142 * 9 07 00 04 0E "3RDC" 01
Code: Select all
10216 * 35 04 00 7F 01 85 "Bidwell Tripworker (Electric)" 00
...
10222 * 9 07 00 04 0E "3RDC" 01
Code: Select all
13591 * 30 04 00 7F 01 "hABB Class 325 (Electric)" 00
...
13596 * 9 07 00 04 0E "3RDC" 01
Code: Select all
13794 * 28 04 00 7F 01 80 "Electrostar (Electric)" 00
...
13799 * 9 07 00 04 0E "3RDC" 01
Code: Select all
14033 * 32 04 00 7F 01 "iHitachi A-Train (Electric)" 00
...
14038 * 9 07 00 04 0E "3RDC" 01
Those are the basic railtypes and should be left alone. The first two are defaults and the second two should be defined by any worthwhile rail set.*CMircea wrote:What do we map the RAIL, ELRL, 3RDR, 3RDC to? Specifically, what speed limits?
Map the railtypes to whichever ones you tend to build when you're playing. For all the BAD FEATURES my newgrfs have had over the years, I have to doff my hat to anyone who ever thought rail weights and speed limits were a worthwhile idea.What do we map to the speed classes: E, F, G, H, I? Do we care about axle loads?
Nope, the last official version is done with. As I've said to others in this thread, you can release your changes if you want to; just make sure you change both the GRF name and GRFID.One more question, if I find the replacement rail type codes, would you be willing to release an official update with the fix? Looks like quite a few players have stumbled into this issue and I suppose it would be greatly appreciated. I assume you still have the source code, just not the time to research and make the changes yourself, which is fair enough
*These sprites default locomotives back to ELRL if your track set doesn't define 3RDR and 3RDC (or if you're not using a track set). You don't need to change them.I found references to the rail type codes in several other places in the GRF
9491-9503 disable the Type JB if no 3rd rail railtypes are defined. If the locomotive appears with your chosen rail set, you don't need to do anything here. If it doesn't, deleting sprite 9502 will remove the effect of the check.What I don't understand are the sprites 9931 through 9941 - they are missing the # of sprites to jump over, as well as having a "U" at the end of the rail type. Why?
Code: Select all
// == no Type JB if no 3rd rail ==
9491 * 9 07 00 04 0E "3RDR" 55 // skip if 3rd is defined
9492 * 9 07 00 04 0E "3RDC" 55 // skip if 3rd is defined
9493 * 9 07 00 04 0E "3LOW" 55 // skip if 3rd is defined
9494 * 9 07 00 04 0E "CLOW" 55 // skip if 3rd is defined
9495 * 9 07 00 04 0E "3MED" 55 // skip if 3rd is defined
9496 * 9 07 00 04 0E "CMED" 55 // skip if 3rd is defined
9497 * 9 07 00 04 0E "MTRO" 55 // skip if 3rd is defined
9498 * 9 07 00 04 0E "MTRC" 55 // skip if 3rd is defined
9499 * 9 07 00 04 0E "MTRS" 55 // skip if 3rd is defined
9500 * 9 07 00 04 0E "MTRU" 55 // skip if 3rd is defined
9501 * 9 07 00 04 0E "MTRT" 55 // skip if 3rd is defined
// -----------------------
9502 * 7 00 00 01 01 79
06 00 // no climate availability
// -----------------------
9503 * 2 10 55
Oh yeah, I remember the BAD FEATURES thread.PikkaBird wrote:For all the BAD FEATURES my newgrfs have had over the years, I have to doff my hat to anyone who ever thought rail weights and speed limits were a worthwhile idea.
OK then, if that is your decision. I will make sure to change the GRF ID and make the name clear that it is a mod, not the official UKRS (as well as in the description). The credits and everything else will remain, of course. I'll post the GRF here if/when I manage to make a working version with these changes.PikkaBird wrote:Nope, the last official version is done with. As I've said to others in this thread, you can release your changes if you want to; just make sure you change both the GRF name and GRFID.
Sure, but that only if Pikka wanted to release his sources. Or even without the sources, you can still do it (though it takes a lot longer to understand the code), but Pikka's permission would still be required.NekoMaster wrote:it would maybe help if someone could port URKS2 to NML so that people like me can help out and provide fixes, tweaks, and possibly additional stuff to the set.
Same for "axle weight". Both features allow to provide cheap light rail for the early years and/or branch lines, thus improving variety.CMircea wrote:Having track-specific speed limits makes sense. You wouldn't see an Eurostar or TGV going at 300 km/h on rusty rails with cracked wood sleepersPikkaBird wrote: For all the BAD FEATURES my newgrfs have had over the years, I have to doff my hat to anyone who ever thought rail weights and speed limits were a worthwhile idea.
Code: Select all
32 * 253 08 08 "CM" 10 00 "UK Railway Set (UKRS2)" 00 94 "Version "
32 * 253 08 08 "DD" 10 00 "UK Railway Set (UKRS2)" 00 94 "Version "