Routing Restriction (Programmable waypoint) / Virtual group

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

nycom
Engineer
Engineer
Posts: 62
Joined: 14 Nov 2005 13:14
Location: Paris, France

Routing Restriction (Programmable waypoint) / Virtual group

Post 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
Attachments
DEAD INC., 6th Oct 2076#2.png
DEAD INC., 6th Oct 2076#2.png (64.67 KiB) Viewed 16636 times
DEAD INC., 19th Oct 2076.png
DEAD INC., 19th Oct 2076.png (75.54 KiB) Viewed 16643 times
Last edited by nycom on 29 Jun 2008 12:16, edited 15 times in total.
nycom
Engineer
Engineer
Posts: 62
Joined: 14 Nov 2005 13:14
Location: Paris, France

Re: Routing Restriction (Programmable waypoint) / Virtual group

Post by nycom »

...
Last edited by nycom on 03 May 2008 12:44, edited 2 times in total.
User avatar
athanasios
Tycoon
Tycoon
Posts: 3138
Joined: 23 Jun 2005 00:09
Contact:

Re: Routing Restriction (Programmable waypoint) / Virtual group

Post by athanasios »

Surprised! I thought no one was interested on this. Thanks.
http://members.fortunecity.com/gamesart
"If no one is a fool I am also a fool." -The TTD maniac.


I prefer to be contacted through PMs. Thanks.
User avatar
Lordmwa
President
President
Posts: 899
Joined: 20 May 2006 19:30
Location: West Sussex, England

Re: Routing Restriction (Programmable waypoint) / Virtual group

Post 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
The TT forums trivia tournament! Come along and join in the fun
http://www.funtrivia.com/private/main.cfm?tid=90722
el koeno
Route Supervisor
Route Supervisor
Posts: 454
Joined: 24 Sep 2004 15:47

Re: Routing Restriction (Programmable waypoint) / Virtual group

Post 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.
nycom
Engineer
Engineer
Posts: 62
Joined: 14 Nov 2005 13:14
Location: Paris, France

Re: Routing Restriction (Programmable waypoint) / Virtual group

Post by nycom »

I didn't try to compile with BuildOTTD...

Did you use the first or the second patch ?
User avatar
Ammler
President
President
Posts: 953
Joined: 18 Jun 2006 18:18
Location: Switzerland
Contact:

Re: Routing Restriction (Programmable waypoint) / Virtual group

Post by Ammler »

One big advantage of signals to waypoints is possibility to build on vertical and horizontal tracks.
el koeno
Route Supervisor
Route Supervisor
Posts: 454
Joined: 24 Sep 2004 15:47

Re: Routing Restriction (Programmable waypoint) / Virtual group

Post 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. :?
User avatar
vwspeedracer
Engineer
Engineer
Posts: 28
Joined: 31 Mar 2008 01:37
Location: Colchester, VT, USA
Contact:

Re: Routing Restriction (Programmable waypoint) / Virtual group

Post 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...
Fan of: Image
MJS
Director
Director
Posts: 540
Joined: 28 Jul 2005 09:31

Re: Routing Restriction (Programmable waypoint) / Virtual group

Post 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?
el koeno
Route Supervisor
Route Supervisor
Posts: 454
Joined: 24 Sep 2004 15:47

Re: Routing Restriction (Programmable waypoint) / Virtual group

Post 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.
nycom
Engineer
Engineer
Posts: 62
Joined: 14 Nov 2005 13:14
Location: Paris, France

Re: Routing Restriction (Programmable waypoint) / Virtual group

Post 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.
watcher99
Engineer
Engineer
Posts: 38
Joined: 08 Apr 2004 21:49

Re: Routing Restriction (Programmable waypoint) / Virtual group

Post by watcher99 »

nycom,

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

thanks
Gollum
Engineer
Engineer
Posts: 16
Joined: 24 Apr 2008 13:26

Re: Routing Restriction (Programmable waypoint) / Virtual group

Post by Gollum »

I'm not starting my next game without this one :)
User avatar
Roest
Traffic Manager
Traffic Manager
Posts: 215
Joined: 03 Apr 2008 08:18

Re: Routing Restriction (Programmable waypoint) / Virtual group

Post 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.
nycom
Engineer
Engineer
Posts: 62
Joined: 14 Nov 2005 13:14
Location: Paris, France

Re: Routing Restriction (Programmable waypoint) / Virtual group

Post 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.
Last edited by nycom on 03 May 2008 12:45, edited 1 time in total.
User avatar
Roest
Traffic Manager
Traffic Manager
Posts: 215
Joined: 03 Apr 2008 08:18

Re: Routing Restriction (Programmable waypoint) / Virtual group

Post by Roest »

nycom wrote:
I have a life...

Anyway, I update the patch and remove the needed of flex/bison...
Life is overrated. Thanks :)
User avatar
vwspeedracer
Engineer
Engineer
Posts: 28
Joined: 31 Mar 2008 01:37
Location: Colchester, VT, USA
Contact:

Re: Routing Restriction (Programmable waypoint) / Virtual group

Post 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.)
Fan of: Image
User avatar
Roest
Traffic Manager
Traffic Manager
Posts: 215
Joined: 03 Apr 2008 08:18

Re: Routing Restriction (Programmable waypoint) / Virtual group

Post by Roest »

patch doesn't work, guess you missed to include some changes
Draakon
Director
Director
Posts: 542
Joined: 11 Mar 2007 16:50

Re: Routing Restriction (Programmable waypoint) / Virtual group

Post by Draakon »

Roest wrote:patch doesn't work, guess you missed to include some changes
How doesn't it work? More info needed.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 29 guests