๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.games.microprose.transport-tyc
6 messages
6 total messages Started by Marcin Grzegorczyk Tue, 11 May 2004 10:30
IDB update, routing in TTD, aiboost
#27655
Author: Marcin Grzegorczyk
Date: Tue, 11 May 2004 10:30
28 lines
2268 bytes
Hello all,

Last weekend I took it upon myself to finish annotating TTD's route 
tracing code (which TTD uses to route vehicles, to search for the 
nearest railway or road depot, and to update the state of signals) and, 
after a long break, release an updated IDA database, available at 
<http://kufel.immt.pwr.wroc.pl/~mgrzegor/ttdpatch/ida/> as usual, for 
those who aren't daunted by 80386 assembly.

Thus, we now have the definite answer to the old question: how far TTD 
'looks ahead' when trying to find a route to the destination?  The 
answer is: for trains and road vehicles, the limit is 64 tiles or 7 
junctions (whichever is reached first); for ships, the limit is 50 tiles 
or 4 turns.  (This does not answer the question of how TTD selects the 
'best' route; that'll need more investigation, which I hope I'll have 
time to do in a couple of next weeks.)

Now I also know for 100% sure what I've long suspected: the 'aiboost' 
switch never worked as expected because it patched the wrong code (the 
code that traces existing routes, not the AI route planning code). 
That's also why it was a major CPU hog even if no AI company was 
present...  The 'aiboost' switch in its old form could result in a minor 
routing improvement, though, so it was not entirely useless.  (In the 
few latest alphas the switch does nothing.)

That's it for now, have to get back to my PhD thesis... :-)
-- 
Marcin Grzegorczyk
Re: IDB update, routing in TTD, aiboost
#27666
Author: Michael Blunck
Date: Tue, 11 May 2004 11:21
11 lines
1084 bytes
Marcin Grzegorczyk wrote:

[important work on IDB]

> That's it for now, have to get back to my PhD thesis...

Well, I hope youยดll finish this soon to have again more time for other
things. :o)

regard
Michael
TTD internals corrected as well
#27667
Author: Marcin Grzegorczyk
Date: Tue, 11 May 2004 14:36
8 lines
1299 bytes
I almost forgot.  My TTD savegame internals file, 
<http://kufel.immt.pwr.wroc.pl/~mgrzegor/sv1tool/TTD-locations.html>, 
has been updated too.  The description of vehicle structure field 0x62 
for railway vehicles used to replicate an error found in a comment in 
TTDPatch sources (ttdprot.ah).  I'm not sure how I managed to overlook 
this error, but it's OK now, at least in my internals file.
-- 
Marcin Grzegorczyk
Re: IDB update, routing in TTD, aiboost
#27668
Author: Afoklala
Date: Thu, 13 May 2004 10:56
19 lines
1602 bytes
Op Tue, 11 May 2004 12:30:57 +0200 schreef Marcin Grzegorczyk:

> Now I also know for 100% sure what I've long suspected: the 'aiboost' 
> switch never worked as expected because it patched the wrong code (the 
> code that traces existing routes, not the AI route planning code). 

So, would that mean that it is now possible to change things so that the
RIGHT code will be patched?
 
> That's it for now, have to get back to my PhD thesis... :-)

You do that, first things first! Good luck!
-- 
Jan Willem from Odijk, Netherlands
jw dot van dot dormolen at hccnet dot nl

New to this newsgroup? Please read the Frequently Asked 
Questions (FAQ) at <http://www.tt-forums.net/faq/>. Thanks.
I hate it when people tell me I cannot take criticism.
Re: IDB update, routing in TTD, aiboost
#27669
Author: Marcin Grzegorczyk
Date: Fri, 14 May 2004 09:36
16 lines
1633 bytes
Afoklala wrote:
> Op Tue, 11 May 2004 12:30:57 +0200 schreef Marcin Grzegorczyk:
>>Now I also know for 100% sure what I've long suspected: the 'aiboost' 
>>switch never worked as expected because it patched the wrong code (the 
>>code that traces existing routes, not the AI route planning code). 
> 
> So, would that mean that it is now possible to change things so that the
> RIGHT code will be patched?

Maybe; at least we know now which procedures are responsible for the 
AI's construction planning.

The question still open is, *how* to patch the code to get good results.

-- 
Marcin Grzegorczyk
Re: IDB update, routing in TTD, aiboost
#27665
Author: Afoklala
Date: Sat, 15 May 2004 08:35
25 lines
1934 bytes
Op Fri, 14 May 2004 11:36:07 +0200 schreef Marcin Grzegorczyk:

> Afoklala wrote:
>> Op Tue, 11 May 2004 12:30:57 +0200 schreef Marcin Grzegorczyk:
>>>Now I also know for 100% sure what I've long suspected: the 'aiboost' 
>>>switch never worked as expected because it patched the wrong code (the 
>>>code that traces existing routes, not the AI route planning code). 
>> 
>> So, would that mean that it is now possible to change things so that the
>> RIGHT code will be patched?
> 
> Maybe; at least we know now which procedures are responsible for the 
> AI's construction planning.
> 
> The question still open is, *how* to patch the code to get good results.

OK, I won't hold my breath then.
It would be really great though... proper AI.
-- 
Jan Willem from Odijk, Netherlands
jw dot van dot dormolen at hccnet dot nl

New to this newsgroup? Please read the Frequently Asked 
Questions (FAQ) at <http://www.tt-forums.net/faq/>. Thanks.
If you try to fail, and succeed, which have you done?
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads