Modular Locomotive sheds [MLSS 0.5.2]
Moderator: Graphics Moderators
Modular Locomotive sheds [MLSS 0.5.2]
Edit: I've finished a new version, check the last post
Two days ago, I got an idea for a way to implement something that I have wanted in my games for awhile. I threw together some graphics for it yesterday afternoon, and have decided to go ahead and present what I have so far here so as to gauge what if any interest their might be out there.
First: What is this, how is it different from train sheds already present in station sets, and why bother?
This project is the first (to be released, not conceptually) component of a much larger set I am working on, that will hopefully eventually see the light of day, and provide an interesting twist on game visuals and track planning. With regard to similar items in, say, ISR, this idea is similar in that it serves primarily an "eyecandy" function. It will not introduce anything that isnt already present within the game. It will just make certain constructions more visually interesting. It differs from ISR train sheds in that it uses graphical illusions to simulate structures not yet feasible in OTTD. Why does this matter? Well, if you like to timetable trains to lay-up or stable in a depot or yard between runs, this project can add more interest to that aspect. If you are patiently awaiting depots with bi-directionality or multiple entrances, this can let you approximate that in a way that doesnt compromise the visual appearance of your depot complexes.
We can already create a depot that looks like the above image by using GRFs like Modern Depots or Bigger Depot, and simply place lots of depots behind the one you plan on using. The effect is visually appealing, and simple, but the extra depots serve no useful function, and can be a liability if purchase an expensive train and give it a complicated new set of orders only to find out you clicked the wrong building, and you will now have to sell it for a loss. At its most basic, this project improves on that by adding station tiles that match the depot. Trains drive through the station to the singular depot. While only one depot graphic is available per railtype, the station tiles can be used to add variety to the "depot".
This project aims to go beyond simply matching a stations style to a depot, and allow more complex constructions while still appearing to be one large maintanance shop. I will give more indepth examples of this in my following post. This project allows this complexity by introducing station tiles which can occlude other tiles by using their "height" to simulate distant roof surfaces. This allows junction and signal tiles to apear enclosed, meaning that small yards can be built to look like monolitioc buildings. With shunting or tight corners, trains can access one depot from various tracks, all of which appear to be part of the depot themselves.
Please read the following post(s) for a demonstration of how this will work.
Two days ago, I got an idea for a way to implement something that I have wanted in my games for awhile. I threw together some graphics for it yesterday afternoon, and have decided to go ahead and present what I have so far here so as to gauge what if any interest their might be out there.
First: What is this, how is it different from train sheds already present in station sets, and why bother?
This project is the first (to be released, not conceptually) component of a much larger set I am working on, that will hopefully eventually see the light of day, and provide an interesting twist on game visuals and track planning. With regard to similar items in, say, ISR, this idea is similar in that it serves primarily an "eyecandy" function. It will not introduce anything that isnt already present within the game. It will just make certain constructions more visually interesting. It differs from ISR train sheds in that it uses graphical illusions to simulate structures not yet feasible in OTTD. Why does this matter? Well, if you like to timetable trains to lay-up or stable in a depot or yard between runs, this project can add more interest to that aspect. If you are patiently awaiting depots with bi-directionality or multiple entrances, this can let you approximate that in a way that doesnt compromise the visual appearance of your depot complexes.
We can already create a depot that looks like the above image by using GRFs like Modern Depots or Bigger Depot, and simply place lots of depots behind the one you plan on using. The effect is visually appealing, and simple, but the extra depots serve no useful function, and can be a liability if purchase an expensive train and give it a complicated new set of orders only to find out you clicked the wrong building, and you will now have to sell it for a loss. At its most basic, this project improves on that by adding station tiles that match the depot. Trains drive through the station to the singular depot. While only one depot graphic is available per railtype, the station tiles can be used to add variety to the "depot".
This project aims to go beyond simply matching a stations style to a depot, and allow more complex constructions while still appearing to be one large maintanance shop. I will give more indepth examples of this in my following post. This project allows this complexity by introducing station tiles which can occlude other tiles by using their "height" to simulate distant roof surfaces. This allows junction and signal tiles to apear enclosed, meaning that small yards can be built to look like monolitioc buildings. With shunting or tight corners, trains can access one depot from various tracks, all of which appear to be part of the depot themselves.
Please read the following post(s) for a demonstration of how this will work.
Last edited by supermop on 07 Oct 2011 14:33, edited 11 times in total.
Re: Modular Locomotive sheds
looks interesting
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
AIAI - AI for OpenTTD
Re: Modular Locomotive sheds
What follows is a step by step explanation of how modular Locomotive sheds will be used in game.
Lets say you have chosen this area on a line to add a depot for servicing, and that you want trains to be able to wait while entering and leaving the depot without blocking the line. To that end you build the depot, and some sidings and signals. The purpose of the lower siding will be shown later.
Now let's say you would rather have a larger, more realistically sized shop. You start by placing normal shed station tiles on the sidings. This has the added benefit of allowing you to timetable a train to wait on the siding if you want.
Now we cannot place stations on tiles containing junctions or signals, so you leave those, and the tiles immediately infront of them clear for now.
Lets say you have chosen this area on a line to add a depot for servicing, and that you want trains to be able to wait while entering and leaving the depot without blocking the line. To that end you build the depot, and some sidings and signals. The purpose of the lower siding will be shown later.
Now let's say you would rather have a larger, more realistically sized shop. You start by placing normal shed station tiles on the sidings. This has the added benefit of allowing you to timetable a train to wait on the siding if you want.
Now we cannot place stations on tiles containing junctions or signals, so you leave those, and the tiles immediately infront of them clear for now.
Re: Modular Locomotive sheds
Now the exciting conclusion of the Modular Locomotive Shed demonstration!
Here is where things get interesting. To cover the switch and signal from the middle siding into the depot, you select and place a special station shed tile with the matching flat roof style. This shed has the shape of a taller building, but the upper area is painted to match shed roofs in the background, creating the illusion that the signal also has a roof over it.
You place another special station shed tile to cover the tile containg the switch. Note that because shed can only cover tiles directly behind (above in the iso grid) them, the lower most track of any locomotive shed you build will not be able to contain any switchs or signals without spoiling the effect, and therefore cannot share the same depot as the upper tracks. You may, of course, use it as a through track, give it its own depot, or use it as eyecandy if you want.
Add a few more standard shed tiles to suit your taste, and you have yourself a fine piece of infrastructure!
Looking forward to feedback!
Best,
Here is where things get interesting. To cover the switch and signal from the middle siding into the depot, you select and place a special station shed tile with the matching flat roof style. This shed has the shape of a taller building, but the upper area is painted to match shed roofs in the background, creating the illusion that the signal also has a roof over it.
You place another special station shed tile to cover the tile containg the switch. Note that because shed can only cover tiles directly behind (above in the iso grid) them, the lower most track of any locomotive shed you build will not be able to contain any switchs or signals without spoiling the effect, and therefore cannot share the same depot as the upper tracks. You may, of course, use it as a through track, give it its own depot, or use it as eyecandy if you want.
Add a few more standard shed tiles to suit your taste, and you have yourself a fine piece of infrastructure!
Looking forward to feedback!
Best,
Re: Modular Locomotive sheds
A very nice idea. One I am sure that many will put to good use.
Humor is the second most subjective thing on the planet
------------------------------------------------------------
Brevity is the soul of wit and obscenity is its downfall
--------------------------------------------------------
Good Night And Good Luck - Read You Soon
------------------------------------------------------------
Brevity is the soul of wit and obscenity is its downfall
--------------------------------------------------------
Good Night And Good Luck - Read You Soon
Re: Modular Locomotive sheds
That's pretty cool. What else you got in your bag of tricks?
|||| My OTTD/TTDP pics ||||Currently slighty obsessed with getting Platinum Trophies||||Retired moderator||||
- stevenh
- TTDPatch Developer
- Posts: 759
- Joined: 24 Jul 2005 05:07
- Location: Canberra, Australia
- Contact:
Re: Modular Locomotive sheds
These totally need to be station tiles... and they need to have a (new, someone code it ) property set that means they work as a depot/maintenance as well.
They really would work as factories as well!
They really would work as factories as well!
Re: Modular Locomotive sheds
These special tiles are indeed station tiles, only the building with the saw-tooth skylight in that mock up picture is meant to be a depot. As for giving station tiles depot properties.. well that's a problem that has been without a solution for a couple years now. This is meant to work around that problem by letting users create complex yards that appear to be one depot. While it is imperfect, it does address the requests of many people wanting advanced depots/servicing stations: bi-directional access, multiple entrances, realistic size, and graphic vareity. Of course I would love to see my workaround rendered redundant by an improvement in the depot code, but this is meant to be pragmatic and expedient. Altering depot behavior is beyond my capabilities, but drawing is not.
That said, there is A LOT of work that needs to be done here still:
Coding! As it stands there is nothing coded for these sprites yet. Nothing about the grf coding process makes sense to me, so it will be awhile before I can code these for a release. Any help from interested parties is greatly appreciated, but not expected. I am trying to not be totally helpless here.
More sprites. So far I have three roof styles. I would like to add more, and create a depot that is subtly, yet readily distinguished from the station sheds, so you don't open the station window 20 times while trying to build trains. I feel the plain corugated walls lets the pieces blend easily, but I would like to add some pieces with more detail. A CC stripe along the side, lights next to the doors etc. Doors that open on the station pieces, like on the ISR train sheds, would also be nice. I also want to eventually add other shed styles for different railtypes with corresponding depots, potentially one for every slot in NuTracks.
Create a 32bpp version. This part is actually relatively easy for me.
Determine how to distribute. I am not yet sure if this thing will generate the interest, or reach a high enough quality to go up on bananas.
As for things down the line, most of my ttd time goes into modelling stuff for the larger umbrella project I mentioned earlier. For future proofing and broader appeal, my workflow is to model and render assuming for 32bpp EZ, then paint over the sprites to create good looking images for 8bpp, and perhaps later adapt models to Locomotion ( I am already planning for different proportioned versions of each object). This project was just drawn by hand in paint to get the concept out quickly and see if there was any interest.
Thanks for the comments so far!
Best,
That said, there is A LOT of work that needs to be done here still:
Coding! As it stands there is nothing coded for these sprites yet. Nothing about the grf coding process makes sense to me, so it will be awhile before I can code these for a release. Any help from interested parties is greatly appreciated, but not expected. I am trying to not be totally helpless here.
More sprites. So far I have three roof styles. I would like to add more, and create a depot that is subtly, yet readily distinguished from the station sheds, so you don't open the station window 20 times while trying to build trains. I feel the plain corugated walls lets the pieces blend easily, but I would like to add some pieces with more detail. A CC stripe along the side, lights next to the doors etc. Doors that open on the station pieces, like on the ISR train sheds, would also be nice. I also want to eventually add other shed styles for different railtypes with corresponding depots, potentially one for every slot in NuTracks.
Create a 32bpp version. This part is actually relatively easy for me.
Determine how to distribute. I am not yet sure if this thing will generate the interest, or reach a high enough quality to go up on bananas.
As for things down the line, most of my ttd time goes into modelling stuff for the larger umbrella project I mentioned earlier. For future proofing and broader appeal, my workflow is to model and render assuming for 32bpp EZ, then paint over the sprites to create good looking images for 8bpp, and perhaps later adapt models to Locomotion ( I am already planning for different proportioned versions of each object). This project was just drawn by hand in paint to get the concept out quickly and see if there was any interest.
Thanks for the comments so far!
Best,
Last edited by supermop on 27 May 2010 23:43, edited 1 time in total.
Re: Modular Locomotive sheds
Great idea + usable graphics (maybe great graphics) =supermop wrote: Determine how to distribute. I am not yet sure if this thing will generate the interest, or reach a high enough quality to go up on bananas.
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
AIAI - AI for OpenTTD
Re: Modular Locomotive sheds
Ok,
So I am going to try to code what I have now as a pre-alpha release (I have no idea what revisions terms like alpha and x.y.z are suppose to refer to, so this could be 1.0, 0.1, 0.0.1, alpha, or beta as far as I know. Suffice to say that it will be the first version that is more than a .png file). I want to hold off on the graphical improvements until after I know that I will be able to code something. It seems that coding a depot should be simpler than, say, a train, but I am still in over my head. I have downloaded Grfcode and Grfwizard, but cannot seem to get them to work (grfcodec pops up and closes in about half a second). Is this perhaps due to my using OTTD instead of TTDP? I was linked to the grfcodec download through ottdcoop dz. Anyway, would really appreciate any tips, in the meantime I will be slogging through the forum topics for each of those tools looking for answers.
Is it currently possible to create a grf without grfcodec?
Generic workflow advice appreciated as well.
Anyway, hopefully I can get something for people to try out soon! I would love to see people making creative use of this idea!
Best,
So I am going to try to code what I have now as a pre-alpha release (I have no idea what revisions terms like alpha and x.y.z are suppose to refer to, so this could be 1.0, 0.1, 0.0.1, alpha, or beta as far as I know. Suffice to say that it will be the first version that is more than a .png file). I want to hold off on the graphical improvements until after I know that I will be able to code something. It seems that coding a depot should be simpler than, say, a train, but I am still in over my head. I have downloaded Grfcode and Grfwizard, but cannot seem to get them to work (grfcodec pops up and closes in about half a second). Is this perhaps due to my using OTTD instead of TTDP? I was linked to the grfcodec download through ottdcoop dz. Anyway, would really appreciate any tips, in the meantime I will be slogging through the forum topics for each of those tools looking for answers.
Is it currently possible to create a grf without grfcodec?
Generic workflow advice appreciated as well.
Anyway, hopefully I can get something for people to try out soon! I would love to see people making creative use of this idea!
Best,
Last edited by supermop on 27 May 2010 23:38, edited 1 time in total.
- Doorslammer
- Tycoon
- Posts: 1037
- Joined: 16 Oct 2007 11:08
- Location: Perth, Western Australia
- Contact:
Re: Modular Locomotive sheds
Forum seems to be buzzing with some excellent creativity these days. Keep it up.
-
- Tycoon
- Posts: 1283
- Joined: 23 Oct 2009 19:35
- Location: Here and there, sometime or another
Re: Modular Locomotive sheds
This is due to stupid Windows, which will only allow you to run command-line programs when actually in a command-line window.I have downloaded Grfcode and Grfwizard, but cant seem to get them to work (grfcodec pops up and closesin about half a second)
Do this: In the Start menu, go to "Run...", type "cmd", then, in this window, type "cd", then a space and drag the folder with GRFCodec in it onto the window you are in, THEN type "grfcodec -e <your_nfo_file>". That will encode your GRF.
--- Licenses: GNU LGPL, version 2 or newer, code and graphics. CC-By-SA, graphics, alternatively. If you're using any, I'd like to hear about it --- Call them "track types" ---
--- Mostly inactive developer for: NuTracks - Central European Train Set --- Running/compiling for: Linux (x86) - Android - Windows (32/64 bit) ---
--- Need a file packer? 7-Zip --- BOINC - use your computing power to benefit science --- Block trackers, not ads --- Unix in dispersible pellets, the formula for the future. ---
--- Mostly inactive developer for: NuTracks - Central European Train Set --- Running/compiling for: Linux (x86) - Android - Windows (32/64 bit) ---
--- Need a file packer? 7-Zip --- BOINC - use your computing power to benefit science --- Block trackers, not ads --- Unix in dispersible pellets, the formula for the future. ---
Re: Modular Locomotive sheds
Thanks! Now I just need an nfo file to encode. I take it I can use a similar action to decode a file first, then start altering that in notepad? I installed Grfmaker as well a couple minutes ago, so I will try reading up on that to see if it helps me out.
EDIT: Ok, I think I was able to write some nfo for a depot, not sure if it will work yet. I ran into a problem which has preventd me moving forward; I drew these sprites in paint, but then laid them out and saved as a .pcx in photoshop. When trying to encode, I noticed the message "Cannot read truecolour PCX files!" All of the colors in my sprites were eyedroppered from the windows TTD pallette in paint, so I assume there is some sort color setting that I neglected to do within Photoshop. I also noticed that when opening sprites decoded from other GRFs, the colors did not appear correct in photoshop. Can anyone give me some help with getting the colors assigned correctly in photoshop? If I can get over this hurdle, I should be able to put out a test release of the depot tonight to those who want to start playing around with it
Best,
EDIT: Ok, I think I was able to write some nfo for a depot, not sure if it will work yet. I ran into a problem which has preventd me moving forward; I drew these sprites in paint, but then laid them out and saved as a .pcx in photoshop. When trying to encode, I noticed the message "Cannot read truecolour PCX files!" All of the colors in my sprites were eyedroppered from the windows TTD pallette in paint, so I assume there is some sort color setting that I neglected to do within Photoshop. I also noticed that when opening sprites decoded from other GRFs, the colors did not appear correct in photoshop. Can anyone give me some help with getting the colors assigned correctly in photoshop? If I can get over this hurdle, I should be able to put out a test release of the depot tonight to those who want to start playing around with it
Best,
Re: Modular Locomotive sheds
use "grfcodec -d -p2 existingw.grf" to decode a windows grf into a valid .nfo and .pcx, then in photoshop, open the palette from the .pcx and use it to convert your file to a paletted pcx
Re: Modular Locomotive sheds
Thanks Eddi!
So I got my pcx convesion down, and everything seems to align properly in game. As promised, I am attaching the fruits of my labour so far. The included GRF is just the depot with skylight. EDIT: I have removed the outdated depot grf from this post. Please see the release thread for the current version.The special station tiles will follow once I learn how to code a station set with various tiles to choose from. I will start reading up on this tonight, but I apologize in advance, as I will probably run into A LOT of stumbling blocks with that, and will be asking for help.
So this grf is pretty barebones, I'm not even sure the grf id was done right, so let me know if it conflicts with anything.
Best,
So I got my pcx convesion down, and everything seems to align properly in game. As promised, I am attaching the fruits of my labour so far. The included GRF is just the depot with skylight. EDIT: I have removed the outdated depot grf from this post. Please see the release thread for the current version.The special station tiles will follow once I learn how to code a station set with various tiles to choose from. I will start reading up on this tonight, but I apologize in advance, as I will probably run into A LOT of stumbling blocks with that, and will be asking for help.
So this grf is pretty barebones, I'm not even sure the grf id was done right, so let me know if it conflicts with anything.
Best,
Last edited by supermop on 03 Jun 2010 20:14, edited 1 time in total.
Re: Modular Locomotive sheds (Small taster download added)
Maybe try to make the name something related to the unusual-ness (real word, honest) of the GRF.
I've had far too much alcohol to suggest anything useful - something along the lines of "MagicDepot" (but not as s***)
I've had far too much alcohol to suggest anything useful - something along the lines of "MagicDepot" (but not as s***)
Jon
Re: Modular Locomotive sheds (Small taster download added)
Yeah, I would like to have a more appropriate name, but I'm not yet sure what that will be. As this version will not be going up on bananas, I just kept the name I used for the .txt file i started out with.Maybe try to make the name something related to the unusual-ness (real word, honest) of the GRF.
Thanks for commenting though!
Best,
Re: Modular Locomotive sheds
Now im not sure how much you know beforehand, but we all gotta start somewhere, and we are prone to step on some problems.supermop wrote:Thanks Eddi!
I will start reading up on this tonight, but I apologize in advance, as I will probably run into A LOT of stumbling blocks with that, and will be asking for help.
So this grf is pretty barebones, I'm not even sure the grf id was done right, so let me know if it conflicts with anything.
Best,
this is the Action8 for the NuTracks, hope it helps:
Code: Select all
-1 * 0 08 07 //Action8, nfo version 7
"DJT" 01 //GRF-ID
"NuTracks" 00 //Name in the newgrf-window
"Coded by DJ Nekkid" 00 //Comment
If you plan to code multiple things, id suggest you do something similar on the ID. Two letters that describe you, then one for what it is, plus a number for the version of the grf. In this case: DJ ... thats me, T = tracks, version 01.
Who is online
Users browsing this forum: No registered users and 24 guests