timetable separation in 0.7?

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

Moderator: OpenTTD Developers

Post Reply
speedy64
Engineer
Engineer
Posts: 26
Joined: 01 Jun 2009 11:30

timetable separation in 0.7?

Post by speedy64 »

Hy all

i am new here ;) playing openttd since 0.6 - and the original ttd at a time it could be called new ;)

We are playing V0.7 (windows-32/64) since release without any problems with 2-4 players in lan. Using different grf's (dbset,...) but game itself is like downloaded.

i like this version very much - and slowly i am trying to use the timetables - but the biggest missing think is the separation of a group of trains - called timetable separation in most found patches...

i have searched a lot in this forum and also found a few threads like
http://www.tt-forums.net/viewtopic.php?f=29&t=37166
http://www.tt-forums.net/viewtopic.php?f=33&t=37938
http://www.tt-forums.net/viewtopic.php?f=33&t=33524
http://www.tt-forums.net/viewtopic.php?f=33&t=39276
but they seems to be slightly old most time and i dont know if they would run with v0.7...

can anybody tell me which patch or something like that i could use for timetable separation in v0.7?

i dont really know how to patch the game but i saw the big thread so i think it would be madeable ;)

u are doing a great job by the way ;)

sometimes have >30 trains at one group - it would be help a lot... we are playing with a single big company most time where at end mostly are 8(2x4)-way-tracks over the hole maps with >500 trains on it... towns >100000 peoples - income enougt to build anything again in one year :P running very fine - not a single crash or something with v0.7 till now.

bytheway - is there a possibility to let the game run slower in lategame? with db-set-grf for example u just updated to ice1, are happy that they drive well - and have to update again... there is so much work when xhundred trains are on the same rails - we want it slower there ;)

PS to ForumAdmin
While New Registration i can select German - but then there comes following error:
Language file ./language/de_x_sie/mods/recaptcha.php couldn't be opened.
have selected english now and all is fine...
speedy64
Engineer
Engineer
Posts: 26
Joined: 01 Jun 2009 11:30

Re: timetable separation in 0.7?

Post by speedy64 »

no one? :cry:
Hirundo
Transport Coordinator
Transport Coordinator
Posts: 298
Joined: 27 Jan 2008 13:02

Re: timetable separation in 0.7?

Post by Hirundo »

Good to see you actually used the search function :D
The last link you posted (ITM by PhilSophus) will probably be your best bet. I don't know how good your C++ skills are, but you could try updating it to 0.7.0.
Create your own NewGRF? Check out this tutorial!
speedy64
Engineer
Engineer
Posts: 26
Joined: 01 Jun 2009 11:30

Re: timetable separation in 0.7?

Post by speedy64 »

thx for the answer :)

i wouldnt say i cant do c++, but its hard for me - havent done much in it till now...
i'm creating mostly in php (/mysql/javascript) - maybe somebody knows the game trackmania - have build an ingameservercontroller for it, also as some webpages and so on - 15years ago started with basic, turbo pascal in school, past that some short trys in C++/Ansi-C but not much...

but for the moment - i think the biggest problem isnt the scripting itself as more that i never made something for a project like this ;) havent made a single look in the sources or what i should change... if i got time i will show if i understand it later (atm @work ;)) but starting at 0 while not knowing which are the (internal) differences between 0.6/0.7 didnt make it easy... i didnt compile ottd or any extensions for it till now also...

hopefully there is a kind of readme or help "writing in openttd-source" :P will look for it later/@weekend...

thx for your answer - maybe its a good example to learn more in c/c++ now :P or maybe its to hard and i will search for a running one again :(

greets speedy

ps: sorry for my bad english - im german ;)
speedy64
Engineer
Engineer
Posts: 26
Joined: 01 Jun 2009 11:30

Re: timetable separation in 0.7?

Post by speedy64 »

ok now i'm trying to get the
Improved Timetable Management 2.31 (http://www.tt-forums.net/viewtopic.php?f=33&t=39276)
running in current trunk-versions.

i have successfully compiled it for its origin version for testing, and also i have fixed it as far as i know for the new text drawing api included in r15779 and following and some other things (including test-compiles).

can somebody say me something like r1xxxx is OTTD-V0.7 as i could try to make a patch for this version bytheway?
maybe also 2-3 points in svn where big changes happen to it which could make problems? i know hard to say but i think people writing patches know "this change has made a lot of work for me" :P
only want to know if i have a real chance to do it or if there comes something like "u have to rebuild it completely because of *timetableshavefullchangedorsomething*"
i'm not so good in C/C++ to build it new - but till now "only fixing for versions" was quiet easy ;) think if there isnt anything big again i could make it :D

also have some other patches i like and use atm, like areabuy (verrrry nice), tunnelswithsignals, copypaste,...
cargodist looks also nice - have tested it but have problems to understand what it does right now :P but thats no code-problem as more a problem of not knowing what it does with the cargo ingame (no german languagesupport for it till now? would make it if anybody wants and says me how) ;)
but this are all uptodate - thanks for there authors :)
Hirundo
Transport Coordinator
Transport Coordinator
Posts: 298
Joined: 27 Jan 2008 13:02

Re: timetable separation in 0.7?

Post by Hirundo »

0.7 branched at r15734. After that revision, you will need to synch with the 0.7 branch instead of the trunk, if you want to update to 0.7.0.

As far as I know, most of the patch-breaking changes were done after after the branching and they were not merged, so the task should be relatively easy compared to updating to trunk.
Create your own NewGRF? Check out this tutorial!
speedy64
Engineer
Engineer
Posts: 26
Joined: 01 Jun 2009 11:30

Re: timetable separation in 0.7?

Post by speedy64 »

me again ;)

(maybe this thread should be moved to development?)

as i said i have worked a lot on the Improved Timetable Management [V2.31tr SVN15778] Patch.
The good news: I now have a diff-file which seems to run nice with r16565 (trunk yesterday) :D
The bad one: i have 2 problems with a few changes in trunk:

r16213, r16216 and r15820 - these three have added some nested widgets to vehicle_gui and timetable_gui... atm i dont know what are nested widgets? it seems i have to fix them for the patch as it crashs when i add them in the patched version so i commented them out for now.
exactly i have problems with timetable_gui.cpp (static const NWidgetPart _nested_timetable_widgets[]) as well as vehicle_gui.cpp (static const NWidgetPart _nested_vehicle_list[] and static const NWidgetPart _nested_vehicle_view_widgets[])
i know you cant say me what i have to fix ;) i only want to know - what is a nested widget - what does it do? i dont know how to fix as i dont know what it does in any kind ;) sry

second point - there is a part in an new file from the patch like:

Code: Select all

assert(this->order_list->IsValid()); //this one makes problem
assert(this->order_list->IsShared()); //all fine with this
which is somethink like an OrderList->IsValid(), but IsValid was removed with r16352 i think and i cant find any alternative? i just removed the first of that two lines atm as its running - but dont know if it is nice? also tried IsType(OT_NOTHING), but again not available :(

havent tested it much but it looks like it is running fine ;) a little singleplayerround doesnt made any problems till now - only a little bit gui-sorting i want to do...
Alberth
OpenTTD Developer
OpenTTD Developer
Posts: 4765
Joined: 09 Sep 2007 05:03
Location: home

Re: timetable separation in 0.7?

Post by Alberth »

This topic introduces nested widgets as they exist now: http://www.tt-forums.net/viewtopic.php? ... ted+widget

those revisions add a nested widget parts array that should exactly reproduce the existing widget array. Any change in the latter should also get mirrored in the former.
bokkie
Transport Coordinator
Transport Coordinator
Posts: 327
Joined: 19 Jan 2007 19:26

Re: timetable separation in 0.7?

Post by bokkie »

Speedy64: Do you happen to have a working diff against cargodist? (Or preferably, windows build). I really like to play with passengers, busses and timetables (seperation) but the latest build with cargod(i/e)st and timetable seperation is pretty 'old'.
speedy64
Engineer
Engineer
Posts: 26
Joined: 01 Jun 2009 11:30

Re: timetable separation in 0.7?

Post by speedy64 »

Hy bokkie

i'm still working on the patch, atm i'm trying to find the differences between the cargodest and the "normal" version to create it for cargodest also. hopefully it is not to much i could paste a (TortouiseSVN)-diff for it soon. i also could paste one for the version without cargodest updated for r16565 or newest trunk atm (still with the widget-problem above - hadnt time for it till now but its running).

also tested the timetablepatch together with: copypaste, areabuy, signals in tunnels/bridges, chunnels
cargodest-version hopefully soon ;)
if wanted i can paste windows builds (inkl lang-folder), 32+64bit as wanted. maybe someone likes it or can find bugs ;)


EDIT

hm seems to be much more with cargodist than i thought :( sry
the last "original" timetable-patch-version was for r157xx or something, and also cargodist has changed a lot in this time, and i couldnt get an old cargodist-version for testing till now to see what have to be fixed. nearly any patched file changed - needs more time sry...

so i only can give u a diff for the "clean" openttd-trunk atm... only the widget-problem isnt fixed as i didnt find time for it but its running i think:

ps - i dont know why he says "norev000" in the build atm - have installed vista befor a few days and think have anythink like on xp now but he doesnt get the right rev, but its r16620 for all

ps - is it possible to move this to dev-area?
Attachments
TimeTable_r16620_diff.zip
TimeTable-Patch diff-file created with TortoiseSVN on OpenTTD-trunk r16620
(63.42 KiB) Downloaded 178 times
OpenTTD_TimeTable_r16620_win32exec.zip
Win32-build (exe+lang-folder), OpenTTD-trunk r16620 with TimeTable-Patch
(2.75 MiB) Downloaded 209 times
2007Alain2007
Chief Executive
Chief Executive
Posts: 658
Joined: 11 Nov 2007 12:06
Contact:

Re: timetable separation in 0.7?

Post by 2007Alain2007 »

hi i hit a bug with your patch fort i tell you

I runing it on R16642

headway_cmd.cpp line 325
For Community Integrated Version http://code.google.com/p/civopenttd/
speedy64
Engineer
Engineer
Posts: 26
Joined: 01 Jun 2009 11:30

Re: timetable separation in 0.7?

Post by speedy64 »

@Alain
just tested it with r16642 and the patchfile - in MS VC++ 2008 Express there is no error or warning or something? could u say whats the problem exactly?
2007Alain2007
Chief Executive
Chief Executive
Posts: 658
Joined: 11 Nov 2007 12:06
Contact:

Re: timetable separation in 0.7?

Post by 2007Alain2007 »

sorry it took me ages i fort it might have been some thing i done so i cheacked it on R16620 still had the proble

Also found out the patch file has a bug in it src/lang/piglatin.txt is not there any more or has it been moved

Here is a picture of my bug i will try again with out any new GRF if you want a save file befor
error.png
For Community Integrated Version http://code.google.com/p/civopenttd/
ashb
Engineer
Engineer
Posts: 8
Joined: 30 Jun 2009 13:28

Re: timetable separation in 0.7?

Post by ashb »

I've just updated one of the simpler timetable separation patches to r16734: http://www.tt-forums.net/viewtopic.php?p=800661#p800661

I might go and update some of the other ones too, to see how they behave. We shall see.
Post Reply

Return to “General OpenTTD”

Who is online

Users browsing this forum: Ahrefs [Bot] and 10 guests