Page 1 of 1

AutoRenew Problem

Posted: 10 Aug 2004 16:45
by pmht
Can't find if it's already been added as a bug (have stuck this on Sourceforge too) but the autorenew option closed my company!

Was happily building a new line when suddenly I ran out of cash. Why? Because the high speed trains I had built were going into the depots at the same time and getting renewed, at nearly 4 times the price I'd paid originally. (Due to inflation)

As a result, the company nearly folded, and collapsed within 3 years!

(Saved game beforehand resulted in me being able to go back, turn off the switch, and enjoy old trains instead!)

The trains were being renewed, despite the company not being able to afford the trains. Result? Debt! They just kept getting upgraded and turning a profit into red debt!

Steve :)

Posted: 10 Aug 2004 17:33
by follow
In short words: autorenew feature renews your vehicles even if players money < 0

Bug report: [ 1006715 ] AutoRenew Issue - puts your company in the red!
http://sourceforge.net/tracker/index.ph ... tid=636365

Posted: 10 Aug 2004 17:40
by pmht
follow wrote:In short words: autorenew feature renews your vehicles even if players money < 0
Ok, yep! lol

Posted: 10 Aug 2004 17:49
by follow
Or to be more precise: autorenew feature renew player's vehicle even if player's money < cost(renew)

Posted: 11 Aug 2004 13:19
by TrueBrain
Fix for this is in progress, will most likely be in SVN today. More info will follow ;)

Posted: 11 Aug 2004 14:46
by TrueBrain
As promised (was some more work then I thought), a fix for this is ready at:

https://sourceforge.net/tracker/index.p ... tid=636367


Fixes:
- Autorenew_month is added

Added:
- You can enter the amount of money needed before
autorenew is done
- When you don't have the money, you will get an error
- The 'vehicle getting old' messages are not shown
when autorenew is enabled

Posted: 17 Aug 2004 10:16
by denzil
OK, I downloaded the fix from the supplied link but all I got was a .htm file..when opened looks like a code..so I gues I have to rename it?? Or maybe even compile it?? Anyway, WHAT DO I DO WITH IT?? :oops:

Posted: 17 Aug 2004 10:26
by Dribbel
1) Just click the link
2) in the new opened page download the path at the bottom (it's top one of the three files shown, the other two are old.
3) Apply the patch to your source code (using SVNTorToise on windows or patch in unix)
4) recompile the game, using your favorite compiler MSVC or gcc will do
5) Play!

Posted: 17 Aug 2004 10:30
by TrueBrain
denzil wrote:OK, I downloaded the fix from the supplied link but all I got was a .htm file..when opened looks like a code..so I gues I have to rename it?? Or maybe even compile it?? Anyway, WHAT DO I DO WITH IT?? :oops:
Download the latest nightly build, it is included in there.

Posted: 17 Aug 2004 10:39
by denzil
I got the Tortoise but where can I find MSVC?? been looking on Google a bit...no luck.. and, what's this Nightly Build?? And where can I download that:)???
:oops:

P.S. I'm very new at this...

PPS... found the nighly:)...

Posted: 17 Aug 2004 11:30
by Dribbel
denzil wrote:I got the Tortoise but where can I find MSVC??
Microsoft Visual C you will have to buy :)

The Nithly builds are also ok (are they avail. again?)

Posted: 17 Aug 2004 13:56
by lucaspiller
Get Cygwin, its free. I wrote half an article of what you need to get Cygwin running to compile OpenTTD, but not everything is there.

Also don't complain because its in rtf format, its only half an article, its not finished.

Posted: 17 Aug 2004 14:15
by mdhowe
lucaspiller wrote:Get Cygwin, its free. I wrote half an article of what you need to get Cygwin running to compile OpenTTD, but not everything is there.
This would be a handy thing to put on the wiki :)

Posted: 17 Aug 2004 14:40
by Darkvater
cygwin compilation tips put on wiki, thank you lucaspiller:
http://openttd.rulez.org/wiki2/index.php/cygwin

Posted: 17 Aug 2004 17:27
by lucaspiller
Good job Darkvater, I updated it so now the instructions actually work. :D