For rein: the TT2 engine discussion thread.

Archived discussions related to Transport Empire. Read-only access only.

Moderator: Transport Empire Moderators

User avatar
Lilman424
Tycoon
Tycoon
Posts: 2743
Joined: 20 Oct 2002 14:55
Location: Georgia
Contact:

Post by Lilman424 »

I think It should be TRANSPORT EMPIRE. That would include all the industries and such, too. :))
Last edited by Lilman424 on 05 Feb 2003 23:41, edited 3 times in total.
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction. - Albert Einstein
User avatar
Raichase
Moderizzle
Moderizzle
Posts: 11509
Joined: 15 Dec 2002 00:58
Location: Sydney, Australia. Usually at work in the underground railway station...
Contact:

Post by Raichase »

Perhaps, but then we are detracting from the original aim - TRANSPORT TYCOON. If we expand out like that, it could end up as an industry playing game with the transport just another key in the works.
Posted by Raichase. Visit my Flickr! Gallery, Blog (get a feed of everyone at once at Planet TT-Forums).
Raichase - Perfect timing, all the time: [13:37] * Now talking in #tycoon
ImageImage
Official TT-Dave Worley Fan Club
Official TT-Andel-in-a-pink-hat Fan Club
User avatar
Lilman424
Tycoon
Tycoon
Posts: 2743
Joined: 20 Oct 2002 14:55
Location: Georgia
Contact:

Post by Lilman424 »

Well, we'd have to make sure it was focused on Transport.
Like in the early 1900s, Standard Oil didn't only own the refineries. They also owned the oilfields, the gas stations, the shipping companies, everything they used, they owned. Or as Oliciv would say:
everything they used, they [I am an idiot]. But you can't say they weren't an oil company. :|
Last edited by Lilman424 on 05 Feb 2003 23:42, edited 1 time in total.
Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction. - Albert Einstein
User avatar
Raichase
Moderizzle
Moderizzle
Posts: 11509
Joined: 15 Dec 2002 00:58
Location: Sydney, Australia. Usually at work in the underground railway station...
Contact:

Post by Raichase »

You make a valid point. I agree with you. So we could "be" a Transport Company that also owns a factory or two, that it bought out as an aside.
Posted by Raichase. Visit my Flickr! Gallery, Blog (get a feed of everyone at once at Planet TT-Forums).
Raichase - Perfect timing, all the time: [13:37] * Now talking in #tycoon
ImageImage
Official TT-Dave Worley Fan Club
Official TT-Andel-in-a-pink-hat Fan Club
User avatar
Arathorn
Tycoon
Tycoon
Posts: 6937
Joined: 30 Nov 2002 17:10

Post by Arathorn »

I think we should start with transport only and leave the option for owning and managing industries open. I think doing everything at the same time is more complicated then necesarry.
User avatar
Hajo
Route Supervisor
Route Supervisor
Posts: 420
Joined: 17 Jan 2003 09:52

Post by Hajo »

Hellfire wrote:No limitations? That's almost impossible. Imagine adding too much stuff to the game, and it grows beyond your memory size... Bye bye performance...
I think the key is to use expandable datastructures, not fixed ones. CPU power and memory will put limits, but every user should be able to get the max out of his PC, not any data structures telling him that they cannot store more than X elements.

c.u.
Hajo
User avatar
Arathorn
Tycoon
Tycoon
Posts: 6937
Joined: 30 Nov 2002 17:10

Post by Arathorn »

You're right, those fixed nubers are the biggest problem of the current TTD.
User avatar
Raichase
Moderizzle
Moderizzle
Posts: 11509
Joined: 15 Dec 2002 00:58
Location: Sydney, Australia. Usually at work in the underground railway station...
Contact:

Post by Raichase »

Hajo wrote:I think the key is to use expandable datastructures, not fixed ones. CPU power and memory will put limits, but every user should be able to get the max out of his PC, not any data structures telling him that they cannot store more than X elements.
Good idea
Posted by Raichase. Visit my Flickr! Gallery, Blog (get a feed of everyone at once at Planet TT-Forums).
Raichase - Perfect timing, all the time: [13:37] * Now talking in #tycoon
ImageImage
Official TT-Dave Worley Fan Club
Official TT-Andel-in-a-pink-hat Fan Club
User avatar
Hajo
Route Supervisor
Route Supervisor
Posts: 420
Joined: 17 Jan 2003 09:52

Post by Hajo »

Arathorn wrote:You're right, those fixed nubers are the biggest problem of the current TTD.
There is a slight problem in here: flexible datastructure always come with an management overhead. I think Chris Sawyer chose fixed structures because they are faster and smaller. When TTD was new, the average computer was much slower than nowadays, so he had no other choice.

Also there are other kinds of limits - i.e. how far should a vehicle look ahead when searching it's path? Farther lookahead gives more clever vehicles but needs more CPU power. Should the quality of pathfinding depend on your CPU speed? Complex crossings then might depend on CPU speed - if your computer is too slow, the train might become too stupid (too little lookahead) to find a good path through the crossing.

The developers will have to make decisions here, and there will always be a group of users that is not pleased with that decision.

I.e. Simutrans uses a search depth of 8000 sqaures, but this is so slow that vehicles can't check the path often while driving, only before they start - so the cannot react on changing signals and search althernatives paths while driving (->choose a free platform). Although that deep search ensures that vehicles never get stuck in dead ends or endless loops like they sometimes do in TTD, most player complain about the missing flexibility - flexible routing systems might make wrong decisions sometimes. In TTD the players think this is a challenge for them to build good routes and crossings to overcome the stupid train routing. So even less sophisticated programs can be more fun to play sometimes ...

c.u.
Hajo
User avatar
rein
Traffic Manager
Traffic Manager
Posts: 132
Joined: 12 Jan 2003 17:16
Location: Poland - Czestochowa

Post by rein »

yeah, I think that only the most basic stuff needs to be fixed, examplary
tile size, cos otherwise lots of related things with it will have to be calculated during the play just wasting cpu power - there is solution: declaring and precalculating tons of variables, which would be used across the game
Transport Empire general programmer
ICQ: 288845484

visit #TEmpire
User avatar
Raichase
Moderizzle
Moderizzle
Posts: 11509
Joined: 15 Dec 2002 00:58
Location: Sydney, Australia. Usually at work in the underground railway station...
Contact:

Post by Raichase »

I think the faster one would be better, because we can build checkpoint stations to get around this, much like we have now :)
Posted by Raichase. Visit my Flickr! Gallery, Blog (get a feed of everyone at once at Planet TT-Forums).
Raichase - Perfect timing, all the time: [13:37] * Now talking in #tycoon
ImageImage
Official TT-Dave Worley Fan Club
Official TT-Andel-in-a-pink-hat Fan Club
User avatar
Arathorn
Tycoon
Tycoon
Posts: 6937
Joined: 30 Nov 2002 17:10

Post by Arathorn »

If we would have fixed numbers like in TTD, then it will be difficult to change things when PC's get better and faster. We can limit the options from now, but I think the data structure should be as open and changeable as possible.
User avatar
uzurpator
Transport Empire Moderator
Transport Empire Moderator
Posts: 2178
Joined: 10 Jan 2003 12:21
Location: Katowice, Poland

Post by uzurpator »

Well, as for the map structure. True - expandable data structures throw in a performace drop. This however could be minimised by using of semi-fixed structure. I mean you could use a list of tables. Each table consisting a fixed amount of rows. For example for terrain you could use basic 32x32 leaf for terrain and compose the whole map of them. Within the super-tile (the 32x32 one) all manipulatiosn are super fast and between the super-tiles the performace overhead drops in. Ofc - in the the map sizes would be fixed in 32 micro-tiles increments.

As for the pathfinding. A few soputions could be used here:
- using current system expanded on possibility to assign bare track as a waypoint.
- using the current system on the super-tile level, and then on the micro tile level. maybe with possibility to memorize one found route.
- using the graph theory. Divide the track into: Nodes, lines and stations and allow route decisions to be taken only at nodes. This would reduce the overall "lookahead" since there would be multiple less nodes between the source and destination then tiles. This would need to heavily modify the track builing though.

As for the name:
THE Tycoon is the only one and proper ^^.
All art and vehicle stats I authored for TT and derivatives are as of now PUBLIC DOMAIN! Use as you see fit
Just say NO to the TT fan-art sprite licensing madness. Public domain your art as well.
User avatar
Hajo
Route Supervisor
Route Supervisor
Posts: 420
Joined: 17 Jan 2003 09:52

Post by Hajo »

Adam K. wrote: - using the graph theory. Divide the track into: Nodes, lines and stations and allow route decisions to be taken only at nodes. This would reduce the overall "lookahead" since there would be multiple less nodes between the source and destination then tiles. This would need to heavily modify the track builing though.
Goods and passengers in Simutrans do pathfinding this way. It works pretty well. This approach is very fast.

But I see problems with this approach if you add signals and want trains to choose alternative paths dynamically. Changing signals means your graph is changing while the train is on the way ...

c.u.
Hajo
User avatar
GoneWacko
Tycoon
Tycoon
Posts: 8680
Joined: 10 Jul 2002 15:08
Location: Enschede, The Netherlands
Contact:

Post by GoneWacko »

Hellfire wrote:No limitations? That's almost impossible. Imagine adding too much stuff to the game, and it grows beyond your memory size... Bye bye performance...
hmm... limit on trees: Sure go ahead
limit on vehicles: NOOOOOOO!!
Make sure you store the info on your vehicles in a strategic way and you could have a NEAR-NO-LIMITATIONS engine :P

Here's a wish I wished some time ago :P
GoneWacko wrote: maybe to make the game durance longer: inter-planetary transport... like a warp speed plane to go to another planet where you see other tilesets (like transfering from temperate to snow) and a new clean map where you can develop trains and stuff... Darn I always get lots of ideas when a new game is planned (even though this one is not planned officially yet)... lemme post my better ideas tomorrow... hehehe
GoneWacko. Making [url=irc://irc.oftc.net/tycoon]#tycoon[/url] sexy and exciting since 1784.
User avatar
orudge
Administrator
Administrator
Posts: 25138
Joined: 26 Jan 2001 20:18
Skype: orudge
Location: Banchory, UK
Contact:

Post by orudge »

Hmmm, maybe for the expansion pack. ;) "Transport Master: Inter-Galactic Transport".

Heh...
User avatar
uzurpator
Transport Empire Moderator
Transport Empire Moderator
Posts: 2178
Joined: 10 Jan 2003 12:21
Location: Katowice, Poland

Post by uzurpator »

Hajo wrote: But I see problems with this approach if you add signals and want trains to choose alternative paths dynamically. Changing signals means your graph is changing while the train is on the way ...
Not necesserily.
signals are local event and would only alter train's path locally (within a few squares). Also the graph can be directed (not sure if it is a proper english term) like this:

Code: Select all

node -> line -> node
one direction line

Code: Select all

node -> line -> node
     <-      <-
two direction. Basicly a choice between single and double direction list.

I am not accustomised with the algorithms that internet uses, but they are similar and they do not seem to slow it down at all...
All art and vehicle stats I authored for TT and derivatives are as of now PUBLIC DOMAIN! Use as you see fit
Just say NO to the TT fan-art sprite licensing madness. Public domain your art as well.
User avatar
GoneWacko
Tycoon
Tycoon
Posts: 8680
Joined: 10 Jul 2002 15:08
Location: Enschede, The Netherlands
Contact:

Post by GoneWacko »

But think of this:

what if

Code: Select all


------------
     \ ->
      \
       -------
becomes

Code: Select all

------------
     \ <-
      \
       -------
A train would want to take the signal that points the wrong way...
GoneWacko. Making [url=irc://irc.oftc.net/tycoon]#tycoon[/url] sexy and exciting since 1784.
User avatar
Arathorn
Tycoon
Tycoon
Posts: 6937
Joined: 30 Nov 2002 17:10

Post by Arathorn »

How can that change?
User avatar
uzurpator
Transport Empire Moderator
Transport Empire Moderator
Posts: 2178
Joined: 10 Jan 2003 12:21
Location: Katowice, Poland

Post by uzurpator »

GoneWacko - you mix local and global events. Locally you can have any structure as long as it allows train flow. Globally it is a different case.

simple

Code: Select all

start station -> node -> line -> node -> line -> node -> station -> node -> line -> node -> end station
At first train checks for a possible link, then checks if signalling at all nodes. if it allows a pass from the current line to a chosen line then a train will use this path. Otherwise it will not use it. At each passing node train will recheck if the path chosen before is accesible through the next node. If not than it will try to find a new way, otherwise it will stop and "Train Cannot FInd A Route. You can modify this model as long as you wish - so train will choose the shortest path, the fastest path, the flattest path etc.
The only drawback will be the fact, that it is a tad constricting on a way how railroads can be built.
Also you think like TTD. On real railroads directions are not given by signalling, but by track layout and prior agreement. Signals jut reflect that and in a perfect game should be build automaticly...
All art and vehicle stats I authored for TT and derivatives are as of now PUBLIC DOMAIN! Use as you see fit
Just say NO to the TT fan-art sprite licensing madness. Public domain your art as well.
Locked

Return to “Transport Empire Development Archive”

Who is online

Users browsing this forum: No registered users and 27 guests