[patch] Programmable waypoints

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

Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: [patch] Programmable waypoints

Post by Yexo »

It's probably pretty easy to port to chrisin, as most of this patch goes into two new files. Feel free to do so yourself, but I won't do it as it is not yet completed and there are some issues to fix (in theory it can cause desyncs now).
User avatar
SquireJames
Tycoon
Tycoon
Posts: 1863
Joined: 07 Aug 2004 11:56
Skype: squirejames5
Location: Stoke-on-Trent
Contact:

Re: [patch] Programmable waypoints

Post by SquireJames »

Ah I see, wasn't aware of that. Well, I don't use routemarkers too much (and the programmable waypoints should replace them for what i use them for anyway)

EDIT: Okay, with the aid of some very helpful fellows on the irc, I've tried over and over to get this to compile on r11834. It won't.
Image
User avatar
SquireJames
Tycoon
Tycoon
Posts: 1863
Joined: 07 Aug 2004 11:56
Skype: squirejames5
Location: Stoke-on-Trent
Contact:

Re: [patch] Programmable waypoints

Post by SquireJames »

Appologies for the double but, I finally got her to compile but I hit intermittent crashes with her.

For example, I add a freight platform to Irlham Railway Station, and I place another waypoint on the entry to it like I have for the mainline platforms. I set the mainline platform waypoints to "must not be Bulk Freight" (the name of one of my groups) and the program crashes. I load a saved game (the game strangely autosaves even thought I have set it to off) and set it again and it just fails to do anything (it reverts to "must not be Express Passenger" as if me selecting Bulk Freight is invalid.)

I can't seem to trace the bug. just randomly crops up
Image
Yexo
Tycoon
Tycoon
Posts: 3663
Joined: 20 Dec 2007 12:49

Re: [patch] Programmable waypoints

Post by Yexo »

SquireJames wrote:Appologies for the double but, I finally got her to compile but I hit intermittent crashes with her.

For example, I add a freight platform to Irlham Railway Station, and I place another waypoint on the entry to it like I have for the mainline platforms. I set the mainline platform waypoints to "must not be Bulk Freight" (the name of one of my groups) and the program crashes. I load a saved game (the game strangely autosaves even thought I have set it to off) and set it again and it just fails to do anything (it reverts to "must not be Express Passenger" as if me selecting Bulk Freight is invalid.)

I can't seem to trace the bug. just randomly crops up
Can you post a savegame so I can see the problem myself?
User avatar
SquireJames
Tycoon
Tycoon
Posts: 1863
Joined: 07 Aug 2004 11:56
Skype: squirejames5
Location: Stoke-on-Trent
Contact:

Re: [patch] Programmable waypoints

Post by SquireJames »

Here you go.

Oh btw is the weird autosave function (i.e it keeps autosaving even though autosave is set to off) a result of a bug in the patch, a bug in the build or some kind of 'feature' (it isn't a true autosave, it seems to be some sort of command dump)

EDIT: Later date (1936) but, same error.

Image
Attachments
London North Eastern.zip
Also included my config file so you can activate the correct grfs.
(1.47 MiB) Downloaded 173 times
Image
User avatar
Bilbo
Tycoon
Tycoon
Posts: 1710
Joined: 06 Jun 2007 21:07
Location: Czech Republic

Re: [patch] Programmable waypoints

Post by Bilbo »

SquireJames wrote: Oh btw is the weird autosave function (i.e it keeps autosaving even though autosave is set to off) a result of a bug in the patch, a bug in the build or some kind of 'feature' (it isn't a true autosave, it seems to be some sort of command dump)
This autosave is there as attempt from devs to catch bug http://bugs.openttd.org/task/1335.
It can't be turned off in any way (except modifying the source)

But good things is devs already found out the cause for that bug, so they have fixed it and also removed this kind of autosave. Get 11857 or newer revision to get rid of that "autosave".
If you need something, do it yourself or it will be never done.

My patches: Extra large maps (1048576 high, 1048576 wide) (FS#1059), Vehicle + Town + Industry console commands (FS#1060), few minor patches (FS#2820, FS#1521, FS#2837, FS#2843), AI debugging facility

Other: Very large ships NewGRF, Bilbo's multiplayer patch pack v5 (for OpenTTD 0.7.3)
User avatar
SquireJames
Tycoon
Tycoon
Posts: 1863
Joined: 07 Aug 2004 11:56
Skype: squirejames5
Location: Stoke-on-Trent
Contact:

Re: [patch] Programmable waypoints

Post by SquireJames »

If I get 11857 then I can't apply the programmable signals patch, hence the point is mute :)
Image
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Re: [patch] Programmable waypoints

Post by DaleStan »

MOOT! Points are MOOT, not MUTE!
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
User avatar
SquireJames
Tycoon
Tycoon
Posts: 1863
Joined: 07 Aug 2004 11:56
Skype: squirejames5
Location: Stoke-on-Trent
Contact:

Re: [patch] Programmable waypoints

Post by SquireJames »

Technically both, since a point is also "mute" since it cannot speak ;)

Anyways, grammar aside, any clues as to how to solve the error? The crash says something about strings, which would imply that for some reason at random points in the program it cannot find the correct string for the programmable waypoints.
Image
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 13 guests