Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Fri Dec 14, 2018 11:29 am

All times are UTC




Post new topic  Reply to topic  [ 8 posts ] 
Author Message
PostPosted: Wed Apr 25, 2018 10:58 pm 
Offline
Route Supervisor
Route Supervisor

Joined: Sun Apr 03, 2016 8:19 pm
Posts: 466
I decided to finish TTD-Scale after all.

Right now I have a working version that replaces the default and electric rails. Currently trying to figure out how to make separate tracktypes.

Unfortunately, compatibility is defined from the train set outwards. Unless train and track sets include TYTX and ELTX compatibility in their code, it will not be possible to use ToyTrax.

I have created two versions of ToyTrax. One is ToyTraxReplace, which replaces RAIL and ELRL with the rails I made (for use with OpenGFX Toyland). The other is ToyTrax, which defines the tracks as separate railtypes. The code and graphics are released in GPL v2.

Attachment:
File comment: v1.6, source code and NewGRFs
toytrax_railtype.zip [131.65 KiB]
Downloaded 12 times

_________________
Licenses for my work...
You automatically have my permission to re-license graphics or code by me if needed for use in any project that is not GPL v2, on the condition that if you release any derivatives of my graphics they're automatically considered as ALSO GPL v2 (code may remain unreleased, but please do provide it) and carry this provision in GPL v2 uses.
Please ask someone in-the-know to be sure that the graphics are done by me. Especially TTD-Scale, long story.


Last edited by SimYouLater on Wed Aug 08, 2018 9:24 pm, edited 12 times in total.

Top
   
PostPosted: Thu Apr 26, 2018 5:02 am 
Offline
Graphics Moderator
Graphics Moderator
User avatar

Joined: Mon Sep 13, 2004 1:21 pm
Posts: 5305
Location: The Moon
Quote:
How do I alter this code to make ToyTrax show up even if a large track set (NuTracks, AuzTracks) is loaded?


Only 16 railtype IDs are available (including the default four, which may be hidden but not undefined), so your tracks won't show up if all the IDs have already been used. Track sets are a bit like Industry sets, in that loading more than one is rarely a good idea.

Quote:
Also, how do I disable fences?


By providing blank fence sprites. :)

_________________
Pikkarail.com blog | Patreon
Dev reference: NML Specs - NewGRF Specs - Savegame Internals - NoAi API - NoGo API


Top
   
PostPosted: Thu Apr 26, 2018 6:57 pm 
Offline
Route Supervisor
Route Supervisor

Joined: Sun Apr 03, 2016 8:19 pm
Posts: 466
PikkaBird wrote:
Quote:
How do I alter this code to make ToyTrax show up even if a large track set (NuTracks, AuzTracks) is loaded?


Only 16 railtype IDs are available (including the default four, which may be hidden but not undefined), so your tracks won't show up if all the IDs have already been used. Track sets are a bit like Industry sets, in that loading more than one is rarely a good idea.


When I load ToyTrax as the only track set and use a custom ID, only the normal rails are available. Also, I have loaded AuzTracks, Early Rail, 600m Narrow Gauge, Wired and VacTrains together with no issues. I've also loaded North American Track Set, Early Rail, 600m Narrow Gauge, Wired and VacTrains with only overwriting of the maglev as an issue. That said, I use JGRPP so I have 32 slots to fill.

PikkaBird wrote:
Quote:
Also, how do I disable fences?


By providing blank fence sprites. :)


I was going to ask how to do that, only to find fences.png and fixing it in literally less than a minute. Thanks!

_________________
Licenses for my work...
You automatically have my permission to re-license graphics or code by me if needed for use in any project that is not GPL v2, on the condition that if you release any derivatives of my graphics they're automatically considered as ALSO GPL v2 (code may remain unreleased, but please do provide it) and carry this provision in GPL v2 uses.
Please ask someone in-the-know to be sure that the graphics are done by me. Especially TTD-Scale, long story.


Top
   
PostPosted: Fri Apr 27, 2018 10:38 pm 
Offline
Route Supervisor
Route Supervisor

Joined: Sun Apr 03, 2016 8:19 pm
Posts: 466
Can someone help me to figure out why "RAIL" and "ELRL" being replaced works, but "TYTX" and "ELTX" don't add a track type?

_________________
Licenses for my work...
You automatically have my permission to re-license graphics or code by me if needed for use in any project that is not GPL v2, on the condition that if you release any derivatives of my graphics they're automatically considered as ALSO GPL v2 (code may remain unreleased, but please do provide it) and carry this provision in GPL v2 uses.
Please ask someone in-the-know to be sure that the graphics are done by me. Especially TTD-Scale, long story.


Top
   
 Post subject: Re: ToyTrax
PostPosted: Sat Apr 28, 2018 1:05 am 
Offline
Graphics Moderator
Graphics Moderator
User avatar

Joined: Mon Sep 13, 2004 1:21 pm
Posts: 5305
Location: The Moon
You'll probably have to set an introduction_date. Read https://newgrf-specs.tt-wiki.net/wiki/A ... ailability

_________________
Pikkarail.com blog | Patreon
Dev reference: NML Specs - NewGRF Specs - Savegame Internals - NoAi API - NoGo API


Top
   
 Post subject: Re: ToyTrax
PostPosted: Sat Apr 28, 2018 1:38 am 
Offline
Route Supervisor
Route Supervisor

Joined: Sun Apr 03, 2016 8:19 pm
Posts: 466
PikkaBird wrote:
You'll probably have to set an introduction_date. Read https://newgrf-specs.tt-wiki.net/wiki/A ... ailability


Thanks. Now I just need to know how to get normal trains to run on the tracks. Here's the latest code...

EDIT: So, apparently compatibility with other rail types requires compliance by other tack sets and by train sets. As a result, I will be releasing ToyTrax and hoping that other NewGRF makers will be kind enough to alter their code to include compatibility to TYTX and ELTX.


Attachments:
ToyTrax_Source.zip [226.39 KiB]
Downloaded 16 times

_________________
Licenses for my work...
You automatically have my permission to re-license graphics or code by me if needed for use in any project that is not GPL v2, on the condition that if you release any derivatives of my graphics they're automatically considered as ALSO GPL v2 (code may remain unreleased, but please do provide it) and carry this provision in GPL v2 uses.
Please ask someone in-the-know to be sure that the graphics are done by me. Especially TTD-Scale, long story.
Top
   
PostPosted: Wed May 02, 2018 9:18 pm 
Offline
Route Supervisor
Route Supervisor

Joined: Sun Apr 03, 2016 8:19 pm
Posts: 466
Latest source code added to OP, you can now use ToyTrax as a replacement or as a new tracktype!

_________________
Licenses for my work...
You automatically have my permission to re-license graphics or code by me if needed for use in any project that is not GPL v2, on the condition that if you release any derivatives of my graphics they're automatically considered as ALSO GPL v2 (code may remain unreleased, but please do provide it) and carry this provision in GPL v2 uses.
Please ask someone in-the-know to be sure that the graphics are done by me. Especially TTD-Scale, long story.


Top
   
PostPosted: Wed Aug 08, 2018 9:33 pm 
Offline
Route Supervisor
Route Supervisor

Joined: Sun Apr 03, 2016 8:19 pm
Posts: 466
Source Code has been updated for both ToyTrax and ToyTraxReplace, since I was unable to figure out how to enable compatibility with Early Rail Set and no other changes needed to be made.

_________________
Licenses for my work...
You automatically have my permission to re-license graphics or code by me if needed for use in any project that is not GPL v2, on the condition that if you release any derivatives of my graphics they're automatically considered as ALSO GPL v2 (code may remain unreleased, but please do provide it) and carry this provision in GPL v2 uses.
Please ask someone in-the-know to be sure that the graphics are done by me. Especially TTD-Scale, long story.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 8 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2018 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2018.
Hosted by Zernebok Hosting.