More diesel_smoke patch
Moderator: OpenTTD Developers
-
- Tycoon
- Posts: 1966
- Joined: 21 May 2004 07:39
- Location: Singapore
Interesting posts the last 4.
Well - for now there will only be more brown (current) smoke and more steam baloons. I think it's better to add the other neat effects, if and when the grf's and graphics engine have been improved...
Oh BTW - Singaporekid - diesel_smoke can be brown because of "diluted" carbon particles and of course the nitrous dioxide (NO2), that forms after exaust touches air (gets more oxigen), but then becomes the colourless N2O4 under 125°C.
NO + 1/2 O2-> NO2 -> 1/2 N2O4
Well - for now there will only be more brown (current) smoke and more steam baloons. I think it's better to add the other neat effects, if and when the grf's and graphics engine have been improved...
Oh BTW - Singaporekid - diesel_smoke can be brown because of "diluted" carbon particles and of course the nitrous dioxide (NO2), that forms after exaust touches air (gets more oxigen), but then becomes the colourless N2O4 under 125°C.
NO + 1/2 O2-> NO2 -> 1/2 N2O4
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names, Use-able default aircraft, Oil Rig for Snowland and Desert, Speed for Suspension bridges.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
Well - here are screenies of Ginzu and Wills steam locomotive with 2x and 4x more frequent steam_pufs.
The locomotives are at top speed (128km/h and 88km/h respectively).
Which do you prefer?
The locomotives are at top speed (128km/h and 88km/h respectively).
Which do you prefer?
- Attachments
-
- 4x_more_steam.jpg (38.35 KiB) Viewed 10738 times
-
- 2x_more_steam.jpg (25.68 KiB) Viewed 10735 times
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names, Use-able default aircraft, Oil Rig for Snowland and Desert, Speed for Suspension bridges.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
Two times is better. This will also look much better with new graphics...
About sparks, I think these should appear on:
slope changes (flat to uphill, downhill to flat etc), curves, tunnel and bridge enterances, junctions.
Also these should appear randomly on straight pieces of track, and just like Peter wrote, more frequent on winter
About sparks, I think these should appear on:
slope changes (flat to uphill, downhill to flat etc), curves, tunnel and bridge enterances, junctions.
Also these should appear randomly on straight pieces of track, and just like Peter wrote, more frequent on winter
Slow down there Tex - there are no electric locos for snowland.
I can put a future switch for snowland though...
I can put a future switch for snowland though...
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names, Use-able default aircraft, Oil Rig for Snowland and Desert, Speed for Suspension bridges.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
I know I know - new grf's.
Well - here's the updated patch with more sparks, smoke and steam_puf.
Well - here's the updated patch with more sparks, smoke and steam_puf.
- Attachments
-
- diesel_smoke_sz_1-2_r2653.patch
- (1.51 KiB) Downloaded 392 times
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names, Use-able default aircraft, Oil Rig for Snowland and Desert, Speed for Suspension bridges.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
Well - I made it - now it behaves as it should - it was a simple matter of u and v - guess how long it took me.
Last edited by SirkoZ on 14 Aug 2005 22:23, edited 1 time in total.
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names, Use-able default aircraft, Oil Rig for Snowland and Desert, Speed for Suspension bridges.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
Here it is the 1.3 version of my more_DIESEL/Other_SMOKE patch and compatible with source r2866 and up.
- Attachments
-
- diesel_smoke_sz_1-3_r2866.patch
- Test it, you'll love it. :)
- (1.97 KiB) Downloaded 415 times
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names, Use-able default aircraft, Oil Rig for Snowland and Desert, Speed for Suspension bridges.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
Again, some tweaking & testing has been done.
- Attachments
-
- diesel_smoke_sz_1-4_r2866.patch
- (1.98 KiB) Downloaded 413 times
-
- diesel_smoke_sz_1-4_r2354-0401.patch
- Diff for OpenTTD 0.4.0.1 (r2354)
- (1.83 KiB) Downloaded 408 times
Last edited by SirkoZ on 31 Aug 2005 09:26, edited 1 time in total.
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names, Use-able default aircraft, Oil Rig for Snowland and Desert, Speed for Suspension bridges.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
- Hadez
- Traffic Manager
- Posts: 217
- Joined: 22 Jul 2004 21:25
- Location: Jablonec nad Nisou, Czech republic
- Contact:
As Cygwin reported to me, on line 1766 is always true, due to fact that cur_speed is unsigned. Has this expression any other effect? I think I can remove it safely.
Code: Select all
u->cur_speed >= 0
Well - the speed is taken into account in the
equation, but for some strange reason, it still has to be there on the beginning - OTTD crashes, if it's not. (original is <= 40, so with this I just set it at >= 0, as it's always used.
EDIT/UPDATE: You can safely remove that line ( u->cur_speed >= 0 ), it's no longer necessary with v1.4 - infact - I have changed the patch ----> v1.4c (without that unnecessary line).
Code: Select all
(uint16)Random() = ....
equation, but for some strange reason, it still has to be there on the beginning - OTTD crashes, if it's not. (original is <= 40, so with this I just set it at >= 0, as it's always used.
EDIT/UPDATE: You can safely remove that line ( u->cur_speed >= 0 ), it's no longer necessary with v1.4 - infact - I have changed the patch ----> v1.4c (without that unnecessary line).
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names, Use-able default aircraft, Oil Rig for Snowland and Desert, Speed for Suspension bridges.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
Here it is (without the unnecessary u->cur_speed >= 0):
- Attachments
-
- diesel_smoke_sz_1-4c_r3091.patch
- diff for the latest nightly (r3091 and up)
- (1.82 KiB) Downloaded 413 times
-
- diesel_smoke_sz_1-4c_r2354-0401.patch
- diff for OTTD 0.4.0.1 release
- (1.81 KiB) Downloaded 366 times
Last edited by SirkoZ on 27 Oct 2005 21:31, edited 1 time in total.
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names, Use-able default aircraft, Oil Rig for Snowland and Desert, Speed for Suspension bridges.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
- Jim Starluck
- Traffic Manager
- Posts: 135
- Joined: 26 Jun 2005 20:12
- Location: Cincinnati, OH
- Contact:
Minor question: Is this compatible with trainset patches? Does it affect the locomotives themselves at all, or is it changing global values?
Edit: Also, I feel stupid for asking this...but how do I get a .patch file to work? I know how to do .grf, but not .patch...
Edit: Also, I feel stupid for asking this...but how do I get a .patch file to work? I know how to do .grf, but not .patch...
If at first you don't succeed, get a bigger locomotive and try again.
This patch affects general steam/diesel/electric emissions and is therefore compatible with all possible train-sets. I wouldn't want in any other way.Jim Starluck wrote:Minor question: Is this compatible with trainset patches? Does it affect the locomotives themselves at all, or is it changing global values?
Oh please - feel free to ask anything. OpenTTD unfortunately doesn't yet have a patch-system implemented, that would allow inclusion of user "mods" the way Quake or UnrealTournament game do. Presently these .patch-es or rather .diff-s mean only the changes to the source code, which can be applied to the original source with a program like TortoiseSVN.Edit: Also, I feel stupid for asking this...but how do I get a .patch file to work? I know how to do .grf, but not .patch...
After applying the patch you have to compile the source into executable file for your OS (.exe in Windows).
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names, Use-able default aircraft, Oil Rig for Snowland and Desert, Speed for Suspension bridges.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
New version - apart from some adjustments for the new source and better behaviour, there is a new switch in the "Vehicles" "Patches" control panel where you can choose the amount of smoke the locomotives emit (0= v1.4c equal amount, 1 and 2 = less/much less).
Again - the text beside the switch is english for all languages, for better compatibility with Integrated nightly build, you can translate it at any time.
The 0.4.0.1 equvalent of the patch can be found some posts up (v1.4c) - behaviour is like with the switch set to "0" - smoke galore.
Again - the text beside the switch is english for all languages, for better compatibility with Integrated nightly build, you can translate it at any time.
The 0.4.0.1 equvalent of the patch can be found some posts up (v1.4c) - behaviour is like with the switch set to "0" - smoke galore.
- Attachments
-
- diesel_smoke_sz_2-0_r3328.patch
- diff
- (24.76 KiB) Downloaded 460 times
-
- pic
- diesel_smoke_sz_2-0_r3256.gif (4.07 KiB) Viewed 9827 times
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names, Use-able default aircraft, Oil Rig for Snowland and Desert, Speed for Suspension bridges.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
----> r5478
New update......to source r5478.
P.S.: Translation-correctness update: I have removed all the english from non-english language files as per peter1138's request. No behaviour and none visible changes in-game though.
P.S.: Translation-correctness update: I have removed all the english from non-english language files as per peter1138's request. No behaviour and none visible changes in-game though.
- Attachments
-
- diesel_smoke_sz_2-0b_r5478_NS.patch
- diff for nightly source
- (4.49 KiB) Downloaded 385 times
-
- diesel_smoke_sz_2-0b_r5147_mini-IN.patch
- diff for mini-IN source
- (4.49 KiB) Downloaded 345 times
Last edited by SirkoZ on 09 Jul 2006 22:38, edited 10 times in total.
NewGRF: Oil Wells in Temperate terrain now can Increase production, Better vehicle names, Use-able default aircraft, Oil Rig for Snowland and Desert, Speed for Suspension bridges.
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
Patches (OpenTTD): Improved smooth_economy [in trunk], More (diesel) smoke [in trunk], Realistic_acceleration finetune.
Keep 'em rollin'!
Who is online
Users browsing this forum: ZaphodB and 45 guests