Australian AuzTrains and NSWTrains

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
GarryG
Tycoon
Tycoon
Posts: 5916
Joined: 14 Feb 2015 00:44
Location: Newcastle, Australia

Re: Australian AuzTrains and NSWTrains

Post by GarryG »

Here the game and source for AuzTrainsOtherStatesV32.
Attachments
AuzTrainsOtherStatesV32.grf
(515.86 KiB) Downloaded 73 times
AuzTrainsOtherStatesV32Source.rar
(4.18 MiB) Downloaded 63 times
Soot Happens
Screenshot Of The Month Winner March 2020
All my projects are GPLv2 License unless stated.
Auz Road Sets: viewtopic.php?f=29&t=87335
Auz Project Releases: viewtopic.php?f=67&t=84725
Auz Trains: http://www.tt-forums.net/viewtopic.php?f=26&t=74193
Auz Industry Sets: http://www.tt-forums.net/viewtopic.php?f=26&t=74471
Auz Objects: viewtopic.php?f=26&t=75657
Auz Bridges: viewtopic.php?f=26&t=75248
Auz Stations: viewtopic.php?f=26&t=76390
Auz Tracks: viewtopic.php?f=26&t=82691
Auz Subway Stations: viewtopic.php?f=26&t=85335
Auz Eyecandy TramTracks: viewtopic.php?t=89908
User avatar
GarryG
Tycoon
Tycoon
Posts: 5916
Joined: 14 Feb 2015 00:44
Location: Newcastle, Australia

Re: Australian AuzTrains and NSWTrains

Post by GarryG »

AuzTrainsNSWV34
Subject: Adding new coal wagons, NR and 44 diesels

Been updating the NSW Train set.
It a slow process but hope to add all the different colour schemes for the diesel locos.
Image of some of the progress I done.
Coal NRs and 44s.png
Coal NRs and 44s.png (50.05 KiB) Viewed 11909 times
The NR class done 10 so far:
National_Rail;
SteelLink;
SeaTrains;
Trailerail;
TheGhan;
Pacific_National;
QUBE;
Great_Southern;
Aurizon (QR);
Genesee & Wyoming (G&W);

44 Class done 6 so far:
FreightCorp;
Candy;
Reverse;
RedTerror;
Tuscan;
RailFirst;
Putting company emblems on the BatWing Coal Wagons:
Pacific National;
Genesee & Wyoming (G&W);
Aurizon (QR);
Glencore;
FreightRail;

You can use these if like but reminded that be a lot more added to it when I get chance. The NR type locos still have a variety to add such as Crawfords, First Rail, QR, SSR, SCT, and a few more.
Attachments
AuzTrainsNSWV34.grf
(8.96 MiB) Downloaded 162 times
Soot Happens
Screenshot Of The Month Winner March 2020
All my projects are GPLv2 License unless stated.
Auz Road Sets: viewtopic.php?f=29&t=87335
Auz Project Releases: viewtopic.php?f=67&t=84725
Auz Trains: http://www.tt-forums.net/viewtopic.php?f=26&t=74193
Auz Industry Sets: http://www.tt-forums.net/viewtopic.php?f=26&t=74471
Auz Objects: viewtopic.php?f=26&t=75657
Auz Bridges: viewtopic.php?f=26&t=75248
Auz Stations: viewtopic.php?f=26&t=76390
Auz Tracks: viewtopic.php?f=26&t=82691
Auz Subway Stations: viewtopic.php?f=26&t=85335
Auz Eyecandy TramTracks: viewtopic.php?t=89908
User avatar
kamnet
Moderator
Moderator
Posts: 8605
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: Australian AuzTrains and NSWTrains

Post by kamnet »

This video was posted on YouTube the other day and it's a fascinating look at the Australian railroad scene.

https://www.youtube.com/watch?v=2MzawTi00yI
User avatar
GarryG
Tycoon
Tycoon
Posts: 5916
Joined: 14 Feb 2015 00:44
Location: Newcastle, Australia

Re: Australian AuzTrains and NSWTrains

Post by GarryG »

AuzTrainsNSWV35
Subject: Container trains.

I couldn't contain myself.
I been videoing lots of container trains in the Newcastle area so I can make some more containers of different companies and colours that we see here in Australia.
These are some I done past few days and a lot more to come.
Containers.png
Containers.png (8.21 KiB) Viewed 11074 times
Those on left side are noprmal containers for furniture and other goods.
First 2 rows on right are refrigerated containers.
The one below these suppose t a load of steel.
The one bottom right I seen wagons covered with a black cover. No idea what under the cover, but thought I try make these as well.

The containers wagons I did to date have empty wagons when they not loaded. I like to change this and put containers on some of them .. besides the empty containers need to be sent back to be re-loaded. Still have some empty wagons but not as many.

Working on those ideas today.

Cheers
Soot Happens
Screenshot Of The Month Winner March 2020
All my projects are GPLv2 License unless stated.
Auz Road Sets: viewtopic.php?f=29&t=87335
Auz Project Releases: viewtopic.php?f=67&t=84725
Auz Trains: http://www.tt-forums.net/viewtopic.php?f=26&t=74193
Auz Industry Sets: http://www.tt-forums.net/viewtopic.php?f=26&t=74471
Auz Objects: viewtopic.php?f=26&t=75657
Auz Bridges: viewtopic.php?f=26&t=75248
Auz Stations: viewtopic.php?f=26&t=76390
Auz Tracks: viewtopic.php?f=26&t=82691
Auz Subway Stations: viewtopic.php?f=26&t=85335
Auz Eyecandy TramTracks: viewtopic.php?t=89908
User avatar
GarryG
Tycoon
Tycoon
Posts: 5916
Joined: 14 Feb 2015 00:44
Location: Newcastle, Australia

Re: Australian AuzTrains and NSWTrains

Post by GarryG »

AuzTrainsNSWV35
Subject: Update.


I've done all I can do for this weekend with the AuzTrainsNSW.

Change Log
* Added more containers to the OCY and OSF Wagons.
* Added Containers to some of the empty wagons in the OCY, ODF, RRZY, CQXY wagons.
* Made a set of Double Stack wagons with only the low deck with a container.

In Image the top train hauled by some FreightCorp locos you can see some of the Double Stack wagons with only the low deck with a container.
The bottom train is a QUBE Logistic train with Double Stack wagons.
Containers Trains.png
Containers Trains.png (62.33 KiB) Viewed 11073 times
Both trains have empty containers and some empty wagons. When they are loaded the empty containers are removed and a different colour container is added.

I HOPE the changes I have made do NOT interfere with a game in progress.

If you like to give these a try here the latest version also the source.
Attachments
AuzTrainsNSWV35.grf
(9.23 MiB) Downloaded 43 times
AuzTrainsNSWV35Source.rar
(12.69 MiB) Downloaded 38 times
Soot Happens
Screenshot Of The Month Winner March 2020
All my projects are GPLv2 License unless stated.
Auz Road Sets: viewtopic.php?f=29&t=87335
Auz Project Releases: viewtopic.php?f=67&t=84725
Auz Trains: http://www.tt-forums.net/viewtopic.php?f=26&t=74193
Auz Industry Sets: http://www.tt-forums.net/viewtopic.php?f=26&t=74471
Auz Objects: viewtopic.php?f=26&t=75657
Auz Bridges: viewtopic.php?f=26&t=75248
Auz Stations: viewtopic.php?f=26&t=76390
Auz Tracks: viewtopic.php?f=26&t=82691
Auz Subway Stations: viewtopic.php?f=26&t=85335
Auz Eyecandy TramTracks: viewtopic.php?t=89908
User avatar
belgi
Traffic Manager
Traffic Manager
Posts: 206
Joined: 01 Jan 2023 14:34
Location: Hluboka nad Vltavou, CZ

Re: Australian AuzTrains and NSWTrains

Post by belgi »

Looks very good mate!
We don't have trains that carry two containers on top of each other (they wouldn't fit anywhere :-D), but I will try it as soon as possible.
And if the trains were in extrazoom, that would be great :-)
User avatar
GarryG
Tycoon
Tycoon
Posts: 5916
Joined: 14 Feb 2015 00:44
Location: Newcastle, Australia

Re: Australian AuzTrains and NSWTrains

Post by GarryG »

belgi wrote: 10 Dec 2023 15:08 Looks very good mate!
We don't have trains that carry two containers on top of each other (they wouldn't fit anywhere ), but I will try it as soon as possible.
And if the trains were in extrazoom, that would be great
Glad you like. I have no idea how to code for extra zoom or if I need to re-draw them again. If it just a simple add on to the code maybe I can add it, but I will not re-draw them.
Soot Happens
Screenshot Of The Month Winner March 2020
All my projects are GPLv2 License unless stated.
Auz Road Sets: viewtopic.php?f=29&t=87335
Auz Project Releases: viewtopic.php?f=67&t=84725
Auz Trains: http://www.tt-forums.net/viewtopic.php?f=26&t=74193
Auz Industry Sets: http://www.tt-forums.net/viewtopic.php?f=26&t=74471
Auz Objects: viewtopic.php?f=26&t=75657
Auz Bridges: viewtopic.php?f=26&t=75248
Auz Stations: viewtopic.php?f=26&t=76390
Auz Tracks: viewtopic.php?f=26&t=82691
Auz Subway Stations: viewtopic.php?f=26&t=85335
Auz Eyecandy TramTracks: viewtopic.php?t=89908
User avatar
OzTrans
Tycoon
Tycoon
Posts: 1680
Joined: 04 Mar 2005 01:07

Re: Australian AuzTrains and NSWTrains

Post by OzTrans »

GarryG wrote: 10 Dec 2023 20:59 I have no idea how to code for extra zoom or if I need to re-draw them again. If it just a simple add on to the code maybe I can add it, but I will not re-draw them.
Extra zoom requires, that the sprites are redrawn. If a normal sprite is 32x8 pixels, 2-zoom sprites will then be 64x16 pixels large.
User avatar
GarryG
Tycoon
Tycoon
Posts: 5916
Joined: 14 Feb 2015 00:44
Location: Newcastle, Australia

Re: Australian AuzTrains and NSWTrains

Post by GarryG »

OzTrans wrote: 10 Dec 2023 22:28 Extra zoom requires, that the sprites are redrawn. If a normal sprite is 32x8 pixels, 2-zoom sprites will then be 64x16 pixels large.
Thank you for the information. Looks like have to leave mine as is. I can not change some of the trains and carriages as I did not draw them all. Some where provided by others who asked me not to alter them.
Soot Happens
Screenshot Of The Month Winner March 2020
All my projects are GPLv2 License unless stated.
Auz Road Sets: viewtopic.php?f=29&t=87335
Auz Project Releases: viewtopic.php?f=67&t=84725
Auz Trains: http://www.tt-forums.net/viewtopic.php?f=26&t=74193
Auz Industry Sets: http://www.tt-forums.net/viewtopic.php?f=26&t=74471
Auz Objects: viewtopic.php?f=26&t=75657
Auz Bridges: viewtopic.php?f=26&t=75248
Auz Stations: viewtopic.php?f=26&t=76390
Auz Tracks: viewtopic.php?f=26&t=82691
Auz Subway Stations: viewtopic.php?f=26&t=85335
Auz Eyecandy TramTracks: viewtopic.php?t=89908
User avatar
JohnFranklin523
Traffic Manager
Traffic Manager
Posts: 162
Joined: 15 Mar 2022 13:01
Location: Shandong, China (may go to UK for further study)
Contact:

Re: Australian AuzTrains and NSWTrains

Post by JohnFranklin523 »

Hi Garry, sincerely thanks for all your fantastic and splendid work. :bow:

However, I would like to make trains fantastic even more by contributing to the codes: I would bring some functional changes to AuzTrains. :twisted:

Function 1: Trains have different running costs in stationary, moving slowly and full-speed-ahead conditions. The higher the current speed of a train is, the higher the running cost will be at the same time. Or simply, running costs increase along with speed increase.

Function 2: Luxury, high-speed (if any) or sleeper trains make long-distance passengers pay more than commuter or suburban trains. Similarly, food in refrigerated wagons spoils slower than in boxcars (that is, refrigerated wagons make long-distance food profit more than boxcars).

Function 3: Restaurant cars (if any) half the running costs of passenger coaches and make long-distance passengers pay even more.

All needed are some switch blocks, callbacks, and cargo_age_period tricks. They are pretty easy for me. But if you find them hard, I can assist you, and help with all of the codes.

These are just advice. But these have become necessary in large maps without high-speed rails (like Australia) since the recent cargo payment updates in spring, making long-distance passengers much less profitable.

Again, I am able to code all of these features. :twisted:
Leaping Liu Never Dies
跨越不死,曙光永生
The founder of China Set; the operator of JFServer.
My GRFs besides China Set
My Scenarios and Heightmaps
User avatar
GarryG
Tycoon
Tycoon
Posts: 5916
Joined: 14 Feb 2015 00:44
Location: Newcastle, Australia

Re: Australian AuzTrains and NSWTrains

Post by GarryG »

JohnFranklin523 wrote: 11 Dec 2023 12:29 However, I would like to make trains fantastic even more by contributing to the codes: I would bring some functional changes to AuzTrains.
That would be very nice if you like to do that :D :bow: .

The latest source is a few post back. But can send you separate source to of different items if like.

Function 1: I believe Trains use more fuel when starting up from a standing start, accelerating or needed extra power for hill climbs. When at normal track speed I believe it a bit cheaper on fuel.

Function 2: Fast trains here is the XPT and Xplorer in NSW and the Tilt Trains in Queensland.
* These express trains could have a slight increase in profit compared to most of the commuter trains.
* Sleeper coaches only held 20 people but could have a profit as it it a full second class carriage of around 72 people.
* First Class would have about 54 passengers compared to 72 in a second class. So probably have same profit as a second class.
* Back in the 1800s we also had a third class.

Food ..
* Refrigerated cars or containers increase profit as it would not spoil.
* Louver Van since these was specially designed to carry fruit and vegetables probably could have a increase in profit as well but not as high at the refrigerated type. But still need to be delivered within a certain time frame.
* Box Cars was not suitable for fruit and vegetables so these would need to reach there destination quickly so they do not spoil. If delivered within a certain time be normal profit but would decrease if delayed.

Function 3: Different income for different carriages would be very nice.
* Buffet service where people would buy food and take it back to their seats. (HUB Sets, DEB Set, XPT and the DMU Xplorer has this type of service).
* Dining Car/Cafeteria where passengers would sit at tables to eat their meals.

If you would like the privilege of making these codes for me that would be great.

What further information would you like from me? I could do a list of the different coach types and what freight wagons are refrigerated and louver.

Thank you again for your offer.

Cheers

EDIT:

Just checking on your ideas and it reminded me. I haven't done any non-air conditioned dinning and buffet cars. That will need to be my next project.
Soot Happens
Screenshot Of The Month Winner March 2020
All my projects are GPLv2 License unless stated.
Auz Road Sets: viewtopic.php?f=29&t=87335
Auz Project Releases: viewtopic.php?f=67&t=84725
Auz Trains: http://www.tt-forums.net/viewtopic.php?f=26&t=74193
Auz Industry Sets: http://www.tt-forums.net/viewtopic.php?f=26&t=74471
Auz Objects: viewtopic.php?f=26&t=75657
Auz Bridges: viewtopic.php?f=26&t=75248
Auz Stations: viewtopic.php?f=26&t=76390
Auz Tracks: viewtopic.php?f=26&t=82691
Auz Subway Stations: viewtopic.php?f=26&t=85335
Auz Eyecandy TramTracks: viewtopic.php?t=89908
User avatar
GarryG
Tycoon
Tycoon
Posts: 5916
Joined: 14 Feb 2015 00:44
Location: Newcastle, Australia

Re: Australian AuzTrains and NSWTrains

Post by GarryG »

AuzTrainsNSWV36
Subject: Added non air-conditioned dining cars.

So that you can make your long distance passenger trains a bit more realistic I did a AB Class Dining car.
It becomes available in September 1935 and seats 36 diners. In 1948 a improved AB becomes available in 1948 that can sit 48 diners.
Express Pass with Dining Car.png
Express Pass with Dining Car.png (17.19 KiB) Viewed 10539 times
I intend to do a few more, but might not be till the weekend. In 1884 the Redfern Carriages introduced a State Dining car. From 1941 Buffet type cars was introduced, so plan to add these as soon as I get chance.

In the mean time here the update game file with the 2 AB Dining cars.
Attachments
AuzTrainsNSWV36.grf
(9.24 MiB) Downloaded 35 times
Soot Happens
Screenshot Of The Month Winner March 2020
All my projects are GPLv2 License unless stated.
Auz Road Sets: viewtopic.php?f=29&t=87335
Auz Project Releases: viewtopic.php?f=67&t=84725
Auz Trains: http://www.tt-forums.net/viewtopic.php?f=26&t=74193
Auz Industry Sets: http://www.tt-forums.net/viewtopic.php?f=26&t=74471
Auz Objects: viewtopic.php?f=26&t=75657
Auz Bridges: viewtopic.php?f=26&t=75248
Auz Stations: viewtopic.php?f=26&t=76390
Auz Tracks: viewtopic.php?f=26&t=82691
Auz Subway Stations: viewtopic.php?f=26&t=85335
Auz Eyecandy TramTracks: viewtopic.php?t=89908
User avatar
JohnFranklin523
Traffic Manager
Traffic Manager
Posts: 162
Joined: 15 Mar 2022 13:01
Location: Shandong, China (may go to UK for further study)
Contact:

Re: Australian AuzTrains and NSWTrains

Post by JohnFranklin523 »

GarryG wrote: 11 Dec 2023 22:53 Function 1: I believe Trains use more fuel when starting up from a standing start, accelerating or needed extra power for hill climbs. When at normal track speed I believe it a bit cheaper on fuel.

...

What further information would you like from me?
Trains should cost more when accelerating. However, most trains with "variable costs" in OpenTTD only use current speed to decide costs. xUSSR Trainset has somehow done with some influence of acceleration (trains cost more when accelerating than full speed ahead), but still, it did not account hill climbs. I don't know if it is feasible in OpenTTD, after all it is a game engine older than me. :oops:

About further information, I want to know how you compile the NML file into GRF file. Both NML and PNML are found in your source. However, there is no "makefile", which is a must for the PNML way of compiling. Are you more familiar with whole NML file editing and compiling? I am more familiar with PNMLs and makefile compiling. In my opinion, PNML will make your life easier, without finding codes in thousands of lines; however, I don't know if you can manage to run the makefile... I use WSL (Windows subsystem Linux) to run the makefile, which needs at least Windows 10. However your system is Windows 7 if I recall correctly. And I don't know if you can understand Linux.

But anyway, "makefile" also compiles PNML into a whole NML file. This means I can still provide you with the NML file even if using PNMLs and makefile.
Attachments
PNMLs and makefile make your life much easier. But the premise is Windows 10/11 and capability of Linux...
PNMLs and makefile make your life much easier. But the premise is Windows 10/11 and capability of Linux...
Screenshot 2023-12-12 101918.png (81.02 KiB) Viewed 10534 times
Leaping Liu Never Dies
跨越不死,曙光永生
The founder of China Set; the operator of JFServer.
My GRFs besides China Set
My Scenarios and Heightmaps
User avatar
GarryG
Tycoon
Tycoon
Posts: 5916
Joined: 14 Feb 2015 00:44
Location: Newcastle, Australia

Re: Australian AuzTrains and NSWTrains

Post by GarryG »

JohnFranklin523 wrote: 12 Dec 2023 02:23 About further information, I want to know how you compile the NML file into GRF file. Both NML and PNML are found in your source.
I just got home from videoing a few trains.

The PNML I don't use them they be just left overs from 2CC Train set as I learnt what I could from that code. I should have delete them since I don't reference to them.
To compile the nml I code I use the DOS window and go to the directory CD/tools/nml/auztrainsNSW. And then run nmlc AuzTrainsNSWV36.nml

Got no idea how to make a "makefile". Honest I don't see any reason to use it.

I did try Windows 10 when it first come out, but went back to Windows 7 as didn't like the Outlook as when get emails it never showed the senders email address so never knew if real or spam. Outlook that comes with Windows 7 and Office2013 did show the sends address. Beside Window 7 does what I want so see no reason to update.

Cheers pal
Soot Happens
Screenshot Of The Month Winner March 2020
All my projects are GPLv2 License unless stated.
Auz Road Sets: viewtopic.php?f=29&t=87335
Auz Project Releases: viewtopic.php?f=67&t=84725
Auz Trains: http://www.tt-forums.net/viewtopic.php?f=26&t=74193
Auz Industry Sets: http://www.tt-forums.net/viewtopic.php?f=26&t=74471
Auz Objects: viewtopic.php?f=26&t=75657
Auz Bridges: viewtopic.php?f=26&t=75248
Auz Stations: viewtopic.php?f=26&t=76390
Auz Tracks: viewtopic.php?f=26&t=82691
Auz Subway Stations: viewtopic.php?f=26&t=85335
Auz Eyecandy TramTracks: viewtopic.php?t=89908
User avatar
belgi
Traffic Manager
Traffic Manager
Posts: 206
Joined: 01 Jan 2023 14:34
Location: Hluboka nad Vltavou, CZ

Re: Australian AuzTrains and NSWTrains

Post by belgi »

GarryG wrote: 10 Dec 2023 22:44
OzTrans wrote: 10 Dec 2023 22:28 Extra zoom requires, that the sprites are redrawn. If a normal sprite is 32x8 pixels, 2-zoom sprites will then be 64x16 pixels large.
Thank you for the information. Looks like have to leave mine as is. I can not change some of the trains and carriages as I did not draw them all. Some where provided by others who asked me not to alter them.
Sorry mate! :oops: I just dreamed that :-)
Of course, I understand that it would be very difficult, and maybe even impossible, to flip everything to extra zoom.
I like your graphics though. And I love your work! :bow:

I wish you a nice day
User avatar
JohnFranklin523
Traffic Manager
Traffic Manager
Posts: 162
Joined: 15 Mar 2022 13:01
Location: Shandong, China (may go to UK for further study)
Contact:

Re: Australian AuzTrains and NSWTrains

Post by JohnFranklin523 »

GarryG wrote: 12 Dec 2023 08:24 Got no idea how to make a "makefile". Honest I don't see any reason to use it.
I don't know how to make a "makefile" either. But I just copied the makefile from 2cc Trains in NML to my project. And it works. You don't even need to understand what is in the makefile. Just use them (Makefile, Makefile.config, Makefile.dist). You can change Makefile.config to rename the project, and Makefile.dist to issue a different version. You can see a makefile and pnml system here: https://github.com/JohnFranklin523/China-Set-Trains

The best advantage to use makefile and pnml ("P" means partial) is the ability to split the whole NML files with thousands of lines into relatively small parts. Modifying a whole big file is somehow inconvenient (even you search for something by a search bar, you have to find what you want in lots of results, and don't forget that scrollbar cannot position precisely in a big file) and risky (what if you deleted that file unconsciously?). Also, you can define some shortcuts in PNML file, and the makefile system would turn the custom definitions into NML language.

Well, if you cannot understand, it is also fine for me to modify the whole NML file...

If you don't understand what is in the GitHub link, here is the source of China Set:
Attachments
China-Set-Trains.rar
For your information, this is the source of the newest China Set: Trains. You can use it as a reference.
(8.13 MiB) Downloaded 36 times
Leaping Liu Never Dies
跨越不死,曙光永生
The founder of China Set; the operator of JFServer.
My GRFs besides China Set
My Scenarios and Heightmaps
User avatar
GarryG
Tycoon
Tycoon
Posts: 5916
Joined: 14 Feb 2015 00:44
Location: Newcastle, Australia

Re: Australian AuzTrains and NSWTrains

Post by GarryG »

JohnFranklin523 wrote: 12 Dec 2023 09:12 Well, if you cannot understand, it is also fine for me to modify the whole NML file...

If you don't understand what is in the GitHub link, here is the source of China Set:
I will have another read of your information tomorrow after a good night sleep :D It might sink in better :roll: Been out and about all afternoon watching trains so came home tied.

Cheers pal
Soot Happens
Screenshot Of The Month Winner March 2020
All my projects are GPLv2 License unless stated.
Auz Road Sets: viewtopic.php?f=29&t=87335
Auz Project Releases: viewtopic.php?f=67&t=84725
Auz Trains: http://www.tt-forums.net/viewtopic.php?f=26&t=74193
Auz Industry Sets: http://www.tt-forums.net/viewtopic.php?f=26&t=74471
Auz Objects: viewtopic.php?f=26&t=75657
Auz Bridges: viewtopic.php?f=26&t=75248
Auz Stations: viewtopic.php?f=26&t=76390
Auz Tracks: viewtopic.php?f=26&t=82691
Auz Subway Stations: viewtopic.php?f=26&t=85335
Auz Eyecandy TramTracks: viewtopic.php?t=89908
User avatar
GarryG
Tycoon
Tycoon
Posts: 5916
Joined: 14 Feb 2015 00:44
Location: Newcastle, Australia

Re: Australian AuzTrains and NSWTrains

Post by GarryG »

GarryG wrote: 12 Dec 2023 11:17 JohnFranklin523
Been having a look at the China-set. The graphics are really stunning. I doubt that I will ever make my set that good.

I started a set some time ago making the carriages longer using ideas from the xUSSR Railway Set v0.5. They looked really good and maybe I should finish it and make this my main set. Only did coaches so far.
Long Vehicles-1.png
Long Vehicles-1.png (23.85 KiB) Viewed 10314 times
Still looking through the pnml codes to try understand how to do "running_cost_factor:" and how it works.

Looking at Coach yz25g and it has "running_cost_factor: 6 * runningcostfactor() * cafecostfactor() + accostfactor();"

If I could learn how that works and what I need, maybe I could add this to sleeping cars, dining cars and 1st class coaches.

Cheers pal
Soot Happens
Screenshot Of The Month Winner March 2020
All my projects are GPLv2 License unless stated.
Auz Road Sets: viewtopic.php?f=29&t=87335
Auz Project Releases: viewtopic.php?f=67&t=84725
Auz Trains: http://www.tt-forums.net/viewtopic.php?f=26&t=74193
Auz Industry Sets: http://www.tt-forums.net/viewtopic.php?f=26&t=74471
Auz Objects: viewtopic.php?f=26&t=75657
Auz Bridges: viewtopic.php?f=26&t=75248
Auz Stations: viewtopic.php?f=26&t=76390
Auz Tracks: viewtopic.php?f=26&t=82691
Auz Subway Stations: viewtopic.php?f=26&t=85335
Auz Eyecandy TramTracks: viewtopic.php?t=89908
User avatar
JohnFranklin523
Traffic Manager
Traffic Manager
Posts: 162
Joined: 15 Mar 2022 13:01
Location: Shandong, China (may go to UK for further study)
Contact:

Re: Australian AuzTrains and NSWTrains

Post by JohnFranklin523 »

GarryG wrote: 12 Dec 2023 22:00 Been having a look at the China-set. The graphics are really stunning. I doubt that I will ever make my set that good.

I started a set some time ago making the carriages longer using ideas from the xUSSR Railway Set v0.5. They looked really good and maybe I should finish it and make this my main set. Only did coaches so far.

Still looking through the pnml codes to try understand how to do "running_cost_factor:" and how it works.

Looking at Coach yz25g and it has "running_cost_factor: 6 * runningcostfactor() * cafecostfactor() + accostfactor();"

If I could learn how that works and what I need, maybe I could add this to sleeping cars, dining cars and 1st class coaches.

Cheers pal
The extrazoom and 32bpp graphics of China Set: Trains are from a 3D rendering software. It is impossible to draw them pixel by pixel. They are made not by me, but by another developer, who is now seriously busy with his postgraduate study and spending nearly all the spare time with his girlfriend. :lol:

The newest xUSSR Railway Set released is 0.7.1, with a main set (trains), addon set (more trains), and dedicated rail set. The quality of xUSSR set is very high, and is somehow the target of China Set: Trains, with long trains and somehow "hardcore" functions.

The running cost factor of YZ25G should be explained. "6" is the basis of the running cost of this coach, calculated by some formulae. "runningcostfactor()" changes the running cost of this coach according to its current speed, multiplying the cost basis by 1 (stationary), 2 (< 30 km/h), 3 (30-70 km/h), 4 (70-110 km/h), or 5 (nearly full speed). "cafecostfactor()" doubles the running cost if there is NO restaurant car attached. "accostfactor()" is somehow more tricky: if there is an air conditioner generator car or an engine with air conditioner functions attached, then the running cost factor of this coach will increase by 2, to simulate the increasing costs of air conditioner / head-end power supply for longer trains.

For example, a YZ25G coach running at its full speed with a restaurant car and air conditioner generator car attached currently has the running cost factor of:

Code: Select all

6 * 5 * 1 + 2 = 32
When there is no restaurant car or air conditioner generator car, the running cost factor when full speed becomes:

Code: Select all

6 * 5 * 2 + 0 = 60
But the restaurant car would be costly to run, so it is better suited for long trains with long-distance operation.

HOWEVER, THESE FUNCTIONS SHOULD BE DEFINED BY SOME SWITCH BLOCKS BEFORE USING IT.
You CANNOT use them directly without previous definitions.

You can check functions.pnml for their definition. (And I also defined some tricks related to cargo_age_period, or "comfort index".)
Leaping Liu Never Dies
跨越不死,曙光永生
The founder of China Set; the operator of JFServer.
My GRFs besides China Set
My Scenarios and Heightmaps
User avatar
GarryG
Tycoon
Tycoon
Posts: 5916
Joined: 14 Feb 2015 00:44
Location: Newcastle, Australia

Re: Australian AuzTrains and NSWTrains

Post by GarryG »

JohnFranklin523 wrote: 13 Dec 2023 04:43 The extrazoom and 32bpp graphics of China Set: Trains are from a 3D rendering software. It is impossible to draw them pixel by pixel. They are made not by me, but by another developer, who is now seriously busy with his postgraduate study and spending nearly all the spare time with his girlfriend.
I not worry about trying to do these 3D graphics.
I'll stick to my original idea or maybe use idea that USSR set has with longer vehicles. So wonder if player prefer the AuzTrainsNSW with the 32 pixel long coaches or make them longer so can show better details. This image shows a FS Second Class coach. Top view is what I been using and the bottom one is what I looking at introducing.
FS Coaches.png
FS Coaches.png (3.75 KiB) Viewed 10247 times
Back in 2019 I started experimenting with the longer coaches and some freight wagons then got side tracked and forgot about them. If any one like to try here the game file. When the train stops at a station the doors of the coaches will open. But will also open on the side where there is no platform. :roll:
AuzTrainsNSWGR.grf
(1.27 MiB) Downloaded 36 times
The running cost factor of YZ25G should be explained.
Does this increase the cost to run this vehicle?

Be nice find a way to increase revenue of some coaches and freight wagons.
For instance a SFS economy coach holds 56 passengers. The SBS first class only holds 48 passengers. In the game the 1st class get less income than the economy class, so be nice to find away so the 1st class revenue is same if not a bit higher then the economy class coach.
Sleeping cars only hold 20 passengers so this too be good if can increase revenue to equal what a economy car gets.

I wasn't thinking when asked about luxury trains :oops: We have the Southern Aurora, Indian Pacific, The Ghan, and now the Great Southern that runs between Adelaide and Brisbane. So these would be nice to get higher revenue. The Southern Aurora for instances had 10 sleeping cars, lounge and a dining car but could only carry 200 passengers. Passengers would have to buy 1st class tickets and also pay extra for the sleeping berth.

Tomorrow I not go train riding .. instead I stay home and see what I can figure out with the train sets.

Cheers pal
Soot Happens
Screenshot Of The Month Winner March 2020
All my projects are GPLv2 License unless stated.
Auz Road Sets: viewtopic.php?f=29&t=87335
Auz Project Releases: viewtopic.php?f=67&t=84725
Auz Trains: http://www.tt-forums.net/viewtopic.php?f=26&t=74193
Auz Industry Sets: http://www.tt-forums.net/viewtopic.php?f=26&t=74471
Auz Objects: viewtopic.php?f=26&t=75657
Auz Bridges: viewtopic.php?f=26&t=75248
Auz Stations: viewtopic.php?f=26&t=76390
Auz Tracks: viewtopic.php?f=26&t=82691
Auz Subway Stations: viewtopic.php?f=26&t=85335
Auz Eyecandy TramTracks: viewtopic.php?t=89908
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 6 guests