Autorenew and variable F2

Got a problem with OpenTTD? Find some help here.

Moderator: OpenTTD Developers

Post Reply
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Autorenew and variable F2

Post by PikkaBird »

It appears the contents of vehicle variable F2 (B Refit cycle, how many times refitted to the same cargo type) are not copied over when a vehicle is autorenewed. Can this be changed so it is copied to the new vehicle(s)?
Bjarni
Tycoon
Tycoon
Posts: 2088
Joined: 08 Mar 2004 13:10

Re: Autorenew and variable F2

Post by Bjarni »

I will look into this when I'm done with what I'm currently working on (which happens to be something else in autoreplace). Can you provide a savegame where it's quick to test this?
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: Autorenew and variable F2

Post by PikkaBird »

I'll have to make a test grf to make it really obvious, I'll try to get to it in the next couple of days.
User avatar
PikkaBird
Graphics Moderator
Graphics Moderator
Posts: 5631
Joined: 13 Sep 2004 13:21
Location: The Moon

Re: Autorenew and variable F2

Post by PikkaBird »

Here is a test grf. The demonstration loco has 4 clearly identifiable liveries (different coloured and numbered rectangles :) ) an intro date of 1921 and a vehicle lifespan of 2 years. The title of the grf is "Cargo Refit Test".

To see the problem: build a loco, refit it to a different livery, set it going and fastforward to the autorenew. The autorenew will reset it to livery 0.
Attachments
refit_test.grf
(639 Bytes) Downloaded 96 times
peter1138
OpenTTD Developer
OpenTTD Developer
Posts: 1791
Joined: 30 Mar 2005 09:43

Re: Autorenew and variable F2

Post by peter1138 »

He's like, some kind of OpenTTD developer.
User avatar
Beardie
Tycoon
Tycoon
Posts: 2029
Joined: 12 Apr 2008 19:38
Skype: rbeardwell91
Location: Buckshaw Village, Lancashire, UK

Re: Autorenew and variable F2

Post by Beardie »

Sorry to bring this old topic up, but i have just en counted this problem, is there going to be a fix for it in the future for OpenTTD?
Previously Known As Beardie27
Check out my UPDATED! Screenshot Thread
Check out my Railway Photography and Deviant Account


Image
frosch
OpenTTD Developer
OpenTTD Developer
Posts: 991
Joined: 20 Dec 2006 13:31
Location: Aschaffenburg

Re: Autorenew and variable F2

Post by frosch »

On my TODO list for long time :)

(Do you now know more than before? :p )

Edit: Oh, forgot to mention: There is a FS task for this. http://bugs.openttd.org/task/2616
⢇⡸⢸⠢⡇⡇⢎⡁⢎⡱⢸⡱⢸⣭⠀⢸⢜⢸⢸⣀⢸⣀⢸⣭⢸⡱⠀⢰⠭⡆⣫⠰⣉⢸⢸⠀⢰⠭⡆⡯⡆⢹⠁⠀⢐⠰⡁
User avatar
Beardie
Tycoon
Tycoon
Posts: 2029
Joined: 12 Apr 2008 19:38
Skype: rbeardwell91
Location: Buckshaw Village, Lancashire, UK

Re: Autorenew and variable F2

Post by Beardie »

Sorry to bring this old thread up, but i would to add that this error has been fixed as of OpenTTD V1.0 RC1, in case anyone wanted to know :)
Previously Known As Beardie27
Check out my UPDATED! Screenshot Thread
Check out my Railway Photography and Deviant Account


Image
Post Reply

Return to “OpenTTD Problems”

Who is online

Users browsing this forum: No registered users and 11 guests