Page 1 of 2

[REQUEST] plane crash off//on (or reduction)

Posted: 23 Aug 2009 10:36
by Dante123
hi there!

i play on a huge map, and once you get a lot of planes => lots of crashed and no way to turn it off.

i have seen patches for previous openTTD versions to reduce crash rate or turn it off/on. but none for this latest version (0.7.2 if i'm correct)

is there somone who is able to create some for me, and the community ? ( i think more than just me want to have it)

if possible also create it into a zip/rar/ace already build ?

thanx!

Re: [REQUEST] plane crash off//on (or reduction)

Posted: 23 Aug 2009 17:41
by petert
Use Alt + Shift + C (C stands for cheat!) to get the cheat menu up, then turn off plane crashes. Or some setting similar to that.

Re: [REQUEST] plane crash off//on (or reduction)

Posted: 23 Aug 2009 18:23
by Roujin
No, you are wrong, petert. That's only for big (jet) planes on small airports, which would otherwise have a really high crash rate.
The normal crash rate is 0.x something percent IIRC and, as Dante123 remarked correctly, not changable in trunk.

Re: [REQUEST] plane crash off//on (or reduction)

Posted: 23 Aug 2009 19:33
by pavel1269
I have patch to completely turn off, also in that thread there is a link to reduction or even off ( but id did not work, the off one :P ).

Re: [REQUEST] plane crash off//on (or reduction)

Posted: 23 Aug 2009 20:59
by petert
Seems to be in your signature.

Re: [REQUEST] plane crash off//on (or reduction)

Posted: 24 Aug 2009 15:12
by Dante123
pavel1269 wrote:I have patch to completely turn off, also in that thread there is a link to reduction or even off ( but id did not work, the off one :P ).
but this is not for 0.7.2 right ?

and wellk, me = newbie
and i incapeble of re-building ottd i have learned (i tryed the Msys thing and BuildTTD, none worked)

so if it for 0.7.2, could you maybe build for me and post ? :oops:

Re: [REQUEST] plane crash off//on (or reduction)

Posted: 31 Aug 2009 08:18
by wozzar
I really wished they put this in the trunk.

How about it rubidium do you think you can put this in the trunk or offer a patch for it.

Re: [REQUEST] plane crash off//on (or reduction)

Posted: 31 Aug 2009 10:02
by sc79
There is a patch for it, but I'm doubtful you'll see it in trunk any time soon. Currently, crashes are the only negative aspect of aircraft in comaprison to the other transport methods, so I expect crashes will remain until such time as planes get balanced better.

Re: [REQUEST] plane crash off//on (or reduction)

Posted: 31 Aug 2009 10:33
by wozzar
sc79 wrote:There is a patch for it, but I'm doubtful you'll see it in trunk any time soon. Currently, crashes are the only negative aspect of aircraft in comaprison to the other transport methods, so I expect crashes will remain until such time as planes get balanced better.
There isn't a patch for 0.72

Re: [REQUEST] plane crash off//on (or reduction)

Posted: 01 Sep 2009 19:54
by SirkoZ
Here's a really quick patch for disabling normal air_crashes - for 0.7.2 - (that is for planes on suitable airports - there's still a cheat necessary for big planes on small airports).
Compile and use this .exe for no crashes games and normal one for crashes. ;-)

Re: [REQUEST] plane crash off//on (or reduction)

Posted: 02 Sep 2009 03:16
by wozzar
Can you make it into a Binary Win32 please.

Re: [REQUEST] plane crash off//on (or reduction)

Posted: 04 Sep 2009 01:39
by petert
Sorry, I couldn't do it since theres a slight problem with the patch at line 5.

(Yes, I tried with -p1 and -p0 before replying.

Code: Select all

$ patch -p1 -i  no_normal_aircraft_crashes_0-7-2.patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: aircraft_cmd.cpp
|===================================================================
|--- aircraft_cmd.cpp   (revision 17016)
|+++ aircraft_cmd.cpp   (working copy)
--------------------------
File to patch: 
Skip this patch? [y] 
Skipping patch.
1 out of 1 hunk ignored

Re: [REQUEST] plane crash off//on (or reduction)

Posted: 04 Sep 2009 06:57
by Zuu
Are you standing inside the src directory while executing the patch command? Reading from the output the patch seams to be made for that directory and not the base directory. If I remember -p1 correctly it is for using patches created from the base dir when you are standing in the src directory and not the other way around.

Re: [REQUEST] plane crash off//on (or reduction)

Posted: 04 Sep 2009 22:53
by DaleStan
I'm not sure why it took me so long to figure this out, but there's a 100% reliable way of disabling airplane crashes that has worked -- most likely -- since TTO:

Stop using airplanes.

Re: [REQUEST] plane crash off//on (or reduction)

Posted: 05 Sep 2009 17:52
by SirkoZ
petert wrote:Sorry, I couldn't do it since theres a slight problem with the patch at line 5.

(Yes, I tried with -p1 and -p0 before replying.

Code: Select all

$ patch -p1 -i  no_normal_aircraft_crashes_0-7-2.patch
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: aircraft_cmd.cpp
|===================================================================
|--- aircraft_cmd.cpp   (revision 17016)
|+++ aircraft_cmd.cpp   (working copy)
--------------------------
File to patch: 
Skip this patch? [y]
Skipping patch.
1 out of 1 hunk ignored
Indeed - I usually make my patches from the directory where the actual changed file is (in this case /src).
no_normal_aircraft_crashes_0-7-2_main-dir.patch
diff from main source dir
(608 Bytes) Downloaded 101 times
____________

In order not to derail this topic I won't reply to DaleStan's post.

Re: [REQUEST] plane crash off//on (or reduction)

Posted: 05 Sep 2009 19:28
by petert
Ok, thanks for the updated patch.

Could you make a seperate topic for your patch in-case someone else needs it?

Binaries will be posted in a sec when "make" finishes.

Edit:
Here are the binaries, can be played on servers *Note* I didn't actually play a game to test if any of my planes crash.

Re: [REQUEST] plane crash off//on (or reduction)

Posted: 06 Sep 2009 10:39
by wozzar
Thanks for the patch petert.

Re: [REQUEST] plane crash off//on (or reduction)

Posted: 06 Sep 2009 13:00
by pavel1269
petert wrote: Edit:
Here are the binaries, can be played on servers *Note* I didn't actually play a game to test if any of my planes crash.
Excuse me, "Can be played on servers" ?! You mean on un-patched ones?!

Re: [REQUEST] plane crash off//on (or reduction)

Posted: 06 Sep 2009 14:26
by petert
pavel1269 wrote: Excuse me, "Can be played on servers" ?! You mean on un-patched ones?!
Yes, pavel1269, un-patched servers. What a dirty little hack it is....

Re: [REQUEST] plane crash off//on (or reduction)

Posted: 06 Sep 2009 14:46
by Rubidium
petert wrote:
pavel1269 wrote:Excuse me, "Can be played on servers" ?! You mean on un-patched ones?!
Yes, pavel1269, un-patched servers. What a dirty little hack it is....
In that case it isn't SirkoZ's patch and I hereby request the source code of your patched build.

I'd also like to note that I'm extremely interested in the way you did this without causing desyncs.