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

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

Dante123
Chief Executive
Chief Executive
Posts: 672
Joined: 11 Aug 2009 16:10
Location: The Nederlands
Contact:

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

Post 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!
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

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

Post 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.
Roujin
Tycoon
Tycoon
Posts: 1884
Joined: 08 Apr 2007 04:07

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

Post 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.
* @Belugas wonders what is worst... a mom or a wife...
<Lakie> Well, they do the same thing but the code is different.

______________
My patches
check my wiki page (sticky button) for a complete list

ImageImage
ImageImageImageImageImageImageImage
User avatar
pavel1269
Route Supervisor
Route Supervisor
Posts: 473
Joined: 03 Dec 2006 13:22
Location: Czech Republic
Contact:

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

Post 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 ).
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

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

Post by petert »

Seems to be in your signature.
Dante123
Chief Executive
Chief Executive
Posts: 672
Joined: 11 Aug 2009 16:10
Location: The Nederlands
Contact:

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

Post 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:
wozzar
Transport Coordinator
Transport Coordinator
Posts: 331
Joined: 27 Dec 2002 09:25

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

Post 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.
sc79
Director
Director
Posts: 586
Joined: 22 Feb 2005 09:51

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

Post 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.
wozzar
Transport Coordinator
Transport Coordinator
Posts: 331
Joined: 27 Dec 2002 09:25

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

Post 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
User avatar
SirkoZ
Tycoon
Tycoon
Posts: 1518
Joined: 06 Mar 2004 23:51
Location: The sunny side of Alps

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

Post 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. ;-)
Attachments
no_normal_aircraft_crashes_0-7-2.patch
0.7.2 diff
(596 Bytes) Downloaded 112 times
wozzar
Transport Coordinator
Transport Coordinator
Posts: 331
Joined: 27 Dec 2002 09:25

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

Post by wozzar »

Can you make it into a Binary Win32 please.
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

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

Post 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
User avatar
Zuu
OpenTTD Developer
OpenTTD Developer
Posts: 4553
Joined: 09 Jun 2003 18:21
Location: /home/sweden

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

Post 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.
My OpenTTD contributions (AIs, Game Scripts, patches, OpenTTD Auto Updater, and some sprites)
Junctioneer (a traffic intersection simulator)
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

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

Post 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.
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
SirkoZ
Tycoon
Tycoon
Posts: 1518
Joined: 06 Mar 2004 23:51
Location: The sunny side of Alps

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

Post 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.
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

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

Post 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.
Attachments
no_normal_aircraft_crashes_0-7-2.rar
(3.61 MiB) Downloaded 103 times
wozzar
Transport Coordinator
Transport Coordinator
Posts: 331
Joined: 27 Dec 2002 09:25

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

Post by wozzar »

Thanks for the patch petert.
User avatar
pavel1269
Route Supervisor
Route Supervisor
Posts: 473
Joined: 03 Dec 2006 13:22
Location: Czech Republic
Contact:

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

Post 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?!
petert
Tycoon
Tycoon
Posts: 3008
Joined: 02 Apr 2009 22:43
Location: Massachusetts, USA

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

Post 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....
Rubidium
OpenTTD Developer
OpenTTD Developer
Posts: 3815
Joined: 09 Feb 2006 19:15

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

Post 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.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 2 guests