Page 1 of 3

Routing Restriction (Programmable waypoint) / Virtual group

Posted: 15 Mar 2008 22:32
by nycom
Hi,

I implement a rule system for the group and the waypoint.
To assign a rule to a waypoint, build a waypoint, click on it and select a rule
To assign a rule to a group, click on a group, and select a rule

This patch is only available for trains.

v0.3 (May 29th):
  • - patch against r13331
    - fixed several bugs.
    - removed some debug code
    - SAVEGAME_VERSION upgraded to 98
v0.2 (May 14th):
  • - patch against r13072
    - make a class of the Rule window
    - make a class of the Waypoint window
    - fixed several bugs.
v0.1 (May 4th):
  • - The patch is against revision 12941
    - I upgrade SAVEGAME_VERSION to 96, so don't overwrite your savegame

Re: Routing Restriction (Programmable waypoint) / Virtual group

Posted: 15 Mar 2008 22:33
by nycom
...

Re: Routing Restriction (Programmable waypoint) / Virtual group

Posted: 16 Mar 2008 02:04
by athanasios
Surprised! I thought no one was interested on this. Thanks.

Re: Routing Restriction (Programmable waypoint) / Virtual group

Posted: 16 Mar 2008 09:12
by Lordmwa
WOW :bow: :bow: :bow:
That is going to be soooo useful

Lets hope its not too buggy so it can be trunked at some point

Re: Routing Restriction (Programmable waypoint) / Virtual group

Posted: 16 Mar 2008 22:53
by el koeno
Looks good, I'm going to give this a try.

Hmmm... Build OTTD simply says: compile failed. Perhaps I'll try again later.

Re: Routing Restriction (Programmable waypoint) / Virtual group

Posted: 16 Mar 2008 23:32
by nycom
I didn't try to compile with BuildOTTD...

Did you use the first or the second patch ?

Re: Routing Restriction (Programmable waypoint) / Virtual group

Posted: 17 Mar 2008 12:08
by Ammler
One big advantage of signals to waypoints is possibility to build on vertical and horizontal tracks.

Re: Routing Restriction (Programmable waypoint) / Virtual group

Posted: 20 Mar 2008 12:03
by el koeno
nycom wrote:I didn't try to compile with BuildOTTD...

Did you use the first or the second patch ?
I tried both. But I must add that compiling my own builds never really seems to work for me, even using a fail-proof method such as BuildOTTD. :?

Re: Routing Restriction (Programmable waypoint) / Virtual group

Posted: 24 Apr 2008 00:25
by vwspeedracer
Oooo! This is going to make it so much simpler to get my trains to behave property with the Station Renewals! Right now I have to manually add waypoints to keep trains flowing to their appropriately themed stations, and sometimes they mess up (i.e. if I send them to the depot while they're loading, they've already past the waypoint order and make their way to whatever platform they wish)

Nycom strikes gold again!

Edit: Ack @ flex/bison requirement! I suspect that'd have to be worked around before it can be trunk eligible. I subscribe to thread with great anticipation...

Re: Routing Restriction (Programmable waypoint) / Virtual group

Posted: 24 Apr 2008 08:07
by MJS
el koeno wrote:
nycom wrote:I didn't try to compile with BuildOTTD...

Did you use the first or the second patch ?
I tried both. But I must add that compiling my own builds never really seems to work for me, even using a fail-proof method such as BuildOTTD. :?
Do you get error messages? Do you set BuildOTTD to match the revision of the patch, not the latest?

Re: Routing Restriction (Programmable waypoint) / Virtual group

Posted: 24 Apr 2008 09:23
by el koeno
MJS wrote:
el koeno wrote:
nycom wrote:I didn't try to compile with BuildOTTD...

Did you use the first or the second patch ?
I tried both. But I must add that compiling my own builds never really seems to work for me, even using a fail-proof method such as BuildOTTD. :?
Do you get error messages? Do you set BuildOTTD to match the revision of the patch, not the latest?
It's been a while, so I can't really remember, but BuildOTTD is usually quite content with just saying the compile failed, feeling no need to specify what went wrong exactly. I did tell it to have the revision match the patch.

Re: Routing Restriction (Programmable waypoint) / Virtual group

Posted: 24 Apr 2008 11:52
by nycom
vwspeedracer wrote:Edit: Ack @ flex/bison requirement! I suspect that'd have to be worked around before it can be trunk eligible. I subscribe to thread with great anticipation...
I rewrote the patch and removed the use of flex/bison.

I will post the diff next week.

Re: Routing Restriction (Programmable waypoint) / Virtual group

Posted: 25 Apr 2008 19:47
by watcher99
nycom,

Can you diff your patch against svn when you have the time? Looking forward to trying it out against svn.

thanks

Re: Routing Restriction (Programmable waypoint) / Virtual group

Posted: 30 Apr 2008 14:41
by Gollum
I'm not starting my next game without this one :)

Re: Routing Restriction (Programmable waypoint) / Virtual group

Posted: 01 May 2008 07:28
by Roest
nycom wrote:I will post the diff next week.
"Next week" is getting old. The masses are waiting. This patch will bring us one step closer to world domination or a programming language for trains :) Must have it, can't wait.

Re: Routing Restriction (Programmable waypoint) / Virtual group

Posted: 02 May 2008 14:05
by nycom
Roest wrote:
nycom wrote:I will post the diff next week.
"Next week" is getting old. The masses are waiting. This patch will bring us one step closer to world domination or a programming language for trains :) Must have it, can't wait.
I have a life...

Anyway, I update the patch and remove the needed of flex/bison...

cf first post.

Re: Routing Restriction (Programmable waypoint) / Virtual group

Posted: 02 May 2008 14:23
by Roest
nycom wrote:
I have a life...

Anyway, I update the patch and remove the needed of flex/bison...
Life is overrated. Thanks :)

Re: Routing Restriction (Programmable waypoint) / Virtual group

Posted: 02 May 2008 14:52
by vwspeedracer
Roest wrote:Life is overrated. Thanks :)
I was thinking "Who needs a life when we have OTTD?!?" :)

(And of course, I'll point out the smilies denoting humor over this whole topic, just in case.)

Re: Routing Restriction (Programmable waypoint) / Virtual group

Posted: 02 May 2008 15:39
by Roest
patch doesn't work, guess you missed to include some changes

Re: Routing Restriction (Programmable waypoint) / Virtual group

Posted: 02 May 2008 17:57
by Draakon
Roest wrote:patch doesn't work, guess you missed to include some changes
How doesn't it work? More info needed.