optimizing

OpenTTD is a fully open-sourced reimplementation of TTD, written in C++, boasting improved gameplay and many new features.

Moderator: OpenTTD Developers

User avatar
ANIKHTOS
Engineer
Engineer
Posts: 119
Joined: 17 Jan 2013 05:13

Re: optimizing

Post by ANIKHTOS »

Pyoro wrote:
_dp_ wrote:What a hideous station. Any proper terminus is more compact and performs better than your roro.
Obviously, this was just tagged onto the savegame with minimal effort to illustrate the basic idea ^^

The various fancy designs are on here anyway:
https://wiki.openttd.org/Railway_station
Or on various OpenTTD coop screenshots.
No reason to repeat them ;)

here the game has gone in monorail era
and the station now have 12 lines

can handle 2 train in and out of station at same time
Last edited by ANIKHTOS on 24 May 2018 03:39, edited 2 times in total.
User avatar
ANIKHTOS
Engineer
Engineer
Posts: 119
Joined: 17 Jan 2013 05:13

Re: optimizing

Post by ANIKHTOS »

watching the double symmetrical station

we see that the traffic is split into the 2 parts equally

which is fantastic to do since the incoming line is a double line but the outgoing line is 2 lines separated

so splitting the traffic equal is fantastic since both outgoing lines will have the same traffic to handle



now this design can handle 2 outgoing train and 1 to 2 income train at the same time

even if it had 6 lines it would handle the same input output.

with a bit more tweaking i can ensure 2 income train also at all time

i think the double symmetrical looks a bit better
Attachments
station4.gif
station4.gif (243.4 KiB) Viewed 506 times
Eddi
Tycoon
Tycoon
Posts: 8267
Joined: 17 Jan 2007 00:14

Re: optimizing

Post by Eddi »

sightly off topic, but what crazy editing screenshots process makes you spit out .gif images with totally garbled colours?
User avatar
ANIKHTOS
Engineer
Engineer
Posts: 119
Joined: 17 Jan 2013 05:13

Re: optimizing

Post by ANIKHTOS »

Eddi wrote:sightly off topic, but what crazy editing screenshots process makes you spit out .gif images with totally garbled colours?
thats the graphic of the game
i do not play it on 32bit i play it on 8 bit

as for the program if you hate the outcome it has to be a Microsoft programm
i just used the paint on windows 7, and save it to gif,

but lets go back on topic do you have any though for the crazy station??
User avatar
ANIKHTOS
Engineer
Engineer
Posts: 119
Joined: 17 Jan 2013 05:13

Re: optimizing

Post by ANIKHTOS »

With this station layout i experiment in a station that the trains enter and leave from the same side. eliminating the need to make this huge turns that take so much space.

Also i manage to find a solution to something i wanted to do from long time to make the platforms lines of a station with a priority order i choose so the train go to s specific platform and with a specific order.

Which is very important in the station that it let trains enter and leave from same side. But the last line if you permit to leave from same side it will mean that no train can enter at the same time. SO this is the only line that returns from the opposite side. You can choose to return it also from the front but then if this is occupied when leaving you will not be able to allow entering of another train.

The design permits of train to enter and leave at the same time. With the symmetrical station having 2 lines for enter and 2 lines to exit you can have 4 trains operating the station, 2 entering and 2 leaving at the same time.

So guys what you think of my little monster??

i include some save games with the layout and upgrading it to the newer technology. IF you want to see what it is going on.
Any though??
Attachments
Henfingley Transport, 13th Mar 2001.sav
monorail upgrade
(381.5 KiB) Downloaded 81 times
Henfingley Transport, 10th Jun 2022.sav
maglev upgrade
(403.86 KiB) Downloaded 77 times
Henfingley Transport, 26th Apr 2034.sav
vacuum upgrade
(417.32 KiB) Downloaded 73 times
Eddi
Tycoon
Tycoon
Posts: 8267
Joined: 17 Jan 2007 00:14

Re: optimizing

Post by Eddi »

ANIKHTOS wrote:
Eddi wrote:sightly off topic, but what crazy editing screenshots process makes you spit out .gif images with totally garbled colours?
as for the program if you hate the outcome it has to be a Microsoft programm
i just used the paint on windows 7, and save it to gif
just don't save it as gif, save it as png.
User avatar
ANIKHTOS
Engineer
Engineer
Posts: 119
Joined: 17 Jan 2013 05:13

Re: optimizing

Post by ANIKHTOS »

Eddi wrote:
ANIKHTOS wrote:
Eddi wrote:sightly off topic, but what crazy editing screenshots process makes you spit out .gif images with totally garbled colours?
as for the program if you hate the outcome it has to be a Microsoft programm
i just used the paint on windows 7, and save it to gif
just don't save it as gif, save it as png.

nope thats my display graphics
here the same file
paint.gif is the file made gif from ms paint
better.gif is the file made gif from an editing photo programm
better.png is the same file as png.

all files were transform from the original bmp file which has no loss of info.

so as you can see pretty much is the graphic i have for the game
Attachments
better.png
(1.2 MiB) Not downloaded yet
better.gif
(489.12 KiB) Not downloaded yet
paint.gif
(547.14 KiB) Not downloaded yet
vrn
Engineer
Engineer
Posts: 67
Joined: 07 Mar 2018 17:00

Re: optimizing

Post by vrn »

Just fyi, you can take screenshots from ingame using ctrl+S or the dropdown menu of the "?"-button. That way you won't have to fiddle around with MS Paint and the like. As Eddi said, save images to .png and you won't have any trouble with warped colours.
User avatar
ANIKHTOS
Engineer
Engineer
Posts: 119
Joined: 17 Jan 2013 05:13

Re: optimizing

Post by ANIKHTOS »

experiment more with the station
it seems that id does not need a double signal or a piece of track to convince the train to enter with right order!!!!

i start a new game just to test the station
and the station did not have the same problem!!!! then i said it might be because this station was left right while in game was top bottom oriented, so i make a new game to make a station like that and there ALL platforms worked as supposed to work!!!!

i went back to the other game and delete some track ad rebuild it and then the station worked!?!?!!?

i do not know why game exhibit this behaviour

include a pix of the station layout and also the test game to play around also
to simulate tracks already occupied by another train i just remove the track from that platform making it out of use.
i used also trains to occupy the platforms and the game had the same behaviour so i kept wit the more economical cut the track solution to test

now the station fills from the out platforms to the interior platforms.
also the train prefer to go to the side of the station of the line it is going
but the overall rule of station fill from outside to inside stay SUPREME
add a tunnel so train that will go pass this station will not have to worry about what is going on the station

the station will always fill in symmetrical
regardless where the first train goes the other will go the other side
which is very useful since the return tracks are not together but separated but they will be ensured to get half of the traffic


when it is the last platform to be filled train goes the opposite from the line it is coming from
Attachments
finish.png
(490.04 KiB) Not downloaded yet
test4.sav
(157.43 KiB) Downloaded 75 times
User avatar
ANIKHTOS
Engineer
Engineer
Posts: 119
Joined: 17 Jan 2013 05:13

Re: optimizing

Post by ANIKHTOS »

and i made it even more compact !!!!!
same functionality but with less space needed

if you want 4 track lines you build the symmetrical variation
if you want 2 track lines you buidl the side that is best for you situation

apart from the tracks laid out
the area of the station
one tile for signal for the station
there is no other tiled needed to make it fully functional as the others

the compact become the most compact possilbe

what is your thoughts??
Attachments
compact.png
(209.28 KiB) Not downloaded yet
test5.sav
(146.86 KiB) Downloaded 76 times
User avatar
ANIKHTOS
Engineer
Engineer
Posts: 119
Joined: 17 Jan 2013 05:13

Re: optimizing

Post by ANIKHTOS »

and the madness continues
now 2 axis symmetrical station

it can handle 8 trains at same time
4 from each direction

the station is 4 parts and every part can handle 2 trains at same time 1 coming 1 going
2 parts are combined to support one heading of the map for an operation of 2 incoming 2 outcome trains
and the other 2 are combines for the saem outcome but with the opposite heading



if you make intermediate stations then this is a design you need to look upon

signals are still in the experimental phase of distance and placing and it will be many changes as time goes


this design to work you need the incoming train to be in the middle tracks and the outgoing traisn to the outside tracks
there is a small reverse that take minimal more space than laying tracks to reverse the lines to be the correct ones

i include the game i am playing with this crazy layouts
as the game will go on the layout will improve a bit
Attachments
2axis symmetric.png
2axis symmetric.png (539.75 KiB) Viewed 506 times
compact2.sav
(408.64 KiB) Downloaded 77 times
User avatar
ANIKHTOS
Engineer
Engineer
Posts: 119
Joined: 17 Jan 2013 05:13

Re: optimizing

Post by ANIKHTOS »

density of rails
building your network with diagonal tracks will end up in saving up space

if you make a network of 4 lines for example with normal building you need a 4 tile width to place the lines
with the diagonal you need 2 and 3 tiles width to place the same 4 lines

which if you try to pass inside a city or places with little space will make the difference of fitting all your lines and not some of them
User avatar
acs121
Tycoon
Tycoon
Posts: 1957
Joined: 03 Nov 2017 18:57
Location: Courbevoie, near Paris, France

Re: optimizing

Post by acs121 »

ANIKHTOS wrote:and the madness continues
now 2 axis symmetrical station

it can handle 8 trains at same time
4 from each direction

the station is 4 parts and every part can handle 2 trains at same time 1 coming 1 going
2 parts are combined to support one heading of the map for an operation of 2 incoming 2 outcome trains
and the other 2 are combines for the saem outcome but with the opposite heading



if you make intermediate stations then this is a design you need to look upon

signals are still in the experimental phase of distance and placing and it will be many changes as time goes


this design to work you need the incoming train to be in the middle tracks and the outgoing traisn to the outside tracks
there is a small reverse that take minimal more space than laying tracks to reverse the lines to be the correct ones

i include the game i am playing with this crazy layouts
as the game will go on the layout will improve a bit
Looks like we've reached max optimization on the screenshot...
User avatar
ANIKHTOS
Engineer
Engineer
Posts: 119
Joined: 17 Jan 2013 05:13

Re: optimizing

Post by ANIKHTOS »

acs121 wrote:
Looks like we've reached max optimization on the screenshot...

not yet we can still make things even worse lol

4 axis symmetry
Attachments
4axis.sav
(465.28 KiB) Downloaded 70 times
4axis.png
(270.01 KiB) Not downloaded yet
User avatar
ANIKHTOS
Engineer
Engineer
Posts: 119
Joined: 17 Jan 2013 05:13

Re: optimizing

Post by ANIKHTOS »

and thats not the most packed
what about 4 axis symmetry but also pass through all 4 directions??
yes we can have that


servicing a whooping 16 trains !!!!!!!!

8 entering that station or 8 leavign the station

also it can allow any number of the 16 train to pass though and continue their direction without enterign in the station
Attachments
4axi4wayzoom.png
(359.39 KiB) Not downloaded yet
4axis4way.png
(176.11 KiB) Not downloaded yet
4 axis 4 directions.sav
(465.21 KiB) Downloaded 74 times
User avatar
acs121
Tycoon
Tycoon
Posts: 1957
Joined: 03 Nov 2017 18:57
Location: Courbevoie, near Paris, France

Re: optimizing

Post by acs121 »

Maybe you can make that square in the middle bigger so that it fits for an industry ? It's better as an industrial station.
User avatar
ANIKHTOS
Engineer
Engineer
Posts: 119
Joined: 17 Jan 2013 05:13

Re: optimizing

Post by ANIKHTOS »

acs121 wrote:Maybe you can make that square in the middle bigger so that it fits for an industry ? It's better as an industrial station.
well you can make it 3x3 4x4 easily

how big you want the inside square???
to build this monster the station spread was put in 22 so go 3x3 empty you will go spread 24 , to go 4x4 it will go 26 and finaly to go 5x5 the spread will go 28 unless you wont to play with smaller length

give me a specific middle square and i can make it the design out for you

i also include sav games so you can load them and go and inspect the station up close
i find a save game better to get the detail out of things

well with this one you can put your company headquarters inside this monster

th good with this design is you can expand it asymmetrical
depending which of the 4 sides may have more cargo you can increase the platforms in that side
as for an example i see a station where you bring materials from 3 directions to be transport in the remain 4

also this design is so symmetrical you can cut it on half
meaning have 1 line coming and going to each direction so now you have 8 platforms set 2 in each direction you can remove the 1 and still have the station fully functional but with less output

with only handling 8 trains ata same time 4 coming and 4 going


geee if your machine have no problem you can make the square big enough to put an airport lol
User avatar
ANIKHTOS
Engineer
Engineer
Posts: 119
Joined: 17 Jan 2013 05:13

Re: optimizing

Post by ANIKHTOS »

acs121 wrote:Maybe you can make that square in the middle bigger so that it fits for an industry ? It's better as an industrial station.
i found another use for this kind of monsters

you use them as JUNCTIONS!!!!!


instead of a train to go all the way to the destination
it goes until this junction drops the cargo and another train takes the cargo from there for the rest of the journey

you can use the most compact 4 axis design since you do not need the train to pass through the station

benefit
trains will need only to travel in straight lines !!!!!!

a question if i split the cargo into many stops
will i end up earning the same money?? less?? or more from sending the cargo directly to the end station??
User avatar
ANIKHTOS
Engineer
Engineer
Posts: 119
Joined: 17 Jan 2013 05:13

Re: optimizing

Post by ANIKHTOS »

and here is your request with a space of 6x66 in the middle will be sufficient to handle any industry inside

it is so big you can even fit an aiport inside!!!!!

with a tiny modification you can make the space 8x8
the problem then is thay in some scenarios 1 outgoing train will block the incoming train so if you do not mind that you can take all the space inside


the station is not that symmetrical because i tried to optimize all the routes to be as fast going to every possible directions with out lock ups.

some crazy line layout is not that problematic because it is for the train inside the station that will xit the station from the right side and not blocking the incoming trains so anyway their speed was not that big to begin with

i just palced the most basic signals and some signals to get the idea from where the traffic comes and goes

apart that you can put more signals
Attachments
6x6space.sav
(463.93 KiB) Downloaded 69 times
6x6space.png
(172.27 KiB) Not downloaded yet
User avatar
ANIKHTOS
Engineer
Engineer
Posts: 119
Joined: 17 Jan 2013 05:13

Re: optimizing

Post by ANIKHTOS »

since few may nto like that the going and coming line was too far away from each other
here is the answer with those lines together and close

the station keeps all the characteristic fo the previous designs

which mean 1 train can enter and 1 train can exit at the same time

i include the game file so you can see the station in action
Attachments
2linecomsymmety.png
2linecomsymmety.png (271.02 KiB) Viewed 506 times
2line3.png
2line3.png (390.23 KiB) Viewed 3251 times
512Alpini.sav
(497.29 KiB) Downloaded 71 times
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: No registered users and 57 guests