Feature #96

Engine brake

Added by memory over 2 years ago. Updated 16 days ago.

Status:Assigned Start date:01/13/2010
Priority:Normal Due date:
Assignee:ulteq % Done:

90%

Category:RoR - Physics
Target version:0.39 Estimated time:2.00 hours

Description

I've tested & adapted to latest svn the patch to add the engine brake to the game. (http://forum.rigsofrods.com/index.php?topic=19300.0)
I've adapted the input to the new input engine and the patch works well.
I think the sound and images are not the best, so if anyone has got better sound & graphics I think it'll be good!
Here is a zip with the whole necessary files and modified files, as well as the patch ;)
Don't forget to add to input map the 'B' key to activate it (see forum link)!!

Author: nitro
Me: some modification to adapt to the new code...

Enjoy ;)

EngineBrakePatch.zip (62.3 kB) memory, 01/13/2010 06:38 pm

EngineBrakingv2.patch - Engine Braking v2 Patch [new features] (8.9 kB) Magnifier memory, 01/31/2010 02:05 pm

engineBrake.wav - new sound (56.9 kB) memory, 03/07/2010 12:50 pm

EngineBrakingv3.patch - The new patch... (9.8 kB) Magnifier memory, 02/27/2011 11:38 am

EngineBrakev4final.zip (64.3 kB) memory, 03/05/2011 11:11 am

History

#1 Updated by tdev over 2 years ago

  • Target version changed from 0.36.3 to 0.37

#2 Updated by memory over 2 years ago

memory wrote:

I've tested & adapted to latest svn the patch to add the engine brake to the game. (http://forum.rigsofrods.com/index.php?topic=19300.0)
I've adapted the input to the new input engine and the patch works well.
I think the sound and images are not the best, so if anyone has got better sound & graphics I think it'll be good!
Here is a zip with the whole necessary files and modified files, as well as the patch ;)
Don't forget to add to input map the 'B' key to activate it (see forum link)!!

Author: nitro
Me: some modification to adapt to the new code...

Enjoy ;)

I'm working on that to enhance features...

#3 Updated by memory over 2 years ago

memory wrote:

I'm working on that to enhance features...

Here they are!
Engine Braking Patch v2 (by me), including:

-if the truck is shifting, engine brake will not start anyway
-you can enable/disable and set its force in the truck file (see below)
-it is disabled by default for cars, default force is 3
-if it is disabled then the "EB" icon on dashboard is hidden
-some little optimizations

I've tried to write a clean code with comments...

Truck file setting syntax:

!!!!AFTER ENGINE & ENGOPTION sections!!!!
;engine_braking_system <float force>
engine_braking_system 3 (or 3.2 ...)

force-> 0: engine braking disabled; >0: sets the value as eng brake force; -1: default value (3)
In this way you can activate eng brake also for a car or disable it for a truck.

So now we have to find a better icon and sound (for sound, maybe I've got something) and it's ready to merge, I think.
Please test for bugs etc...!!

#4 Updated by memory about 2 years ago

memory wrote:

So now we have to find a better icon and sound (for sound, maybe I've got something) and it's ready to merge, I think.
Please test for bugs etc...!!

Here it's the sound (not tested by me for now)

#5 Updated by Aperion about 2 years ago

  • Assignee changed from tdev to Aperion

#6 Updated by tdev almost 2 years ago

  • Status changed from New to Assigned

updates?

#7 Updated by Aperion almost 2 years ago

tdev wrote:

updates?

have not had a chance to look at this yet.

#8 Updated by tdev almost 2 years ago

  • Target version deleted (0.37)

#9 Updated by tdev about 1 year ago

  • Assignee changed from Aperion to memory
  • Target version set to 0.38

memory, could you please update this one?

#10 Updated by memory about 1 year ago

tdev wrote:

memory, could you please update this one?

It doesn't work anymore? No problem! When I've got a minute I download the latest sources and I'll release the patches ;)

#11 Updated by memory about 1 year ago

memory wrote:

tdev wrote:

memory, could you please update this one?

It doesn't work anymore? No problem! When I've got a minute I download the latest sources and I'll release the patches ;)

Here the new patch! But I'm not able to try it...I receive a strange error when I try to load a map:
12:32:21: OGRE EXCEPTION: Cannot locate a resource group called '' for resource '' in ResourceGroupManager::openResource at ..\..\OgreMain\src\OgreResourceGroupManager.cpp (line 685)

I think you should give an eye...maybe I'm missing something...
to test it, simply apply pacth and copy the old necessary files! Don't forget to load a truck (on by default), or a car with the proper modified truck file! Don't forget to add the button to input.map

#12 Updated by tdev about 1 year ago

memory wrote:

memory wrote:

tdev wrote:

memory, could you please update this one?

It doesn't work anymore? No problem! When I've got a minute I download the latest sources and I'll release the patches ;)

Here the new patch! But I'm not able to try it...I receive a strange error when I try to load a map:
12:32:21: OGRE EXCEPTION: Cannot locate a resource group called '' for resource '' in ResourceGroupManager::openResource at ..\..\OgreMain\src\OgreResourceGroupManager.cpp (line 685)

I think you should give an eye...maybe I'm missing something...
to test it, simply apply pacth and copy the old necessary files! Don't forget to load a truck (on by default), or a car with the proper modified truck file! Don't forget to add the button to input.map

fixed the strange resource errors, please update and test :)

#13 Updated by memory about 1 year ago

tdev wrote:

memory wrote:

memory wrote:

tdev wrote:

memory, could you please update this one?

It doesn't work anymore? No problem! When I've got a minute I download the latest sources and I'll release the patches ;)

Here the new patch! But I'm not able to try it...I receive a strange error when I try to load a map:
12:32:21: OGRE EXCEPTION: Cannot locate a resource group called '' for resource '' in ResourceGroupManager::openResource at ..\..\OgreMain\src\OgreResourceGroupManager.cpp (line 685)

I think you should give an eye...maybe I'm missing something...
to test it, simply apply pacth and copy the old necessary files! Don't forget to load a truck (on by default), or a car with the proper modified truck file! Don't forget to add the button to input.map

fixed the strange resource errors, please update and test :)

Sorry! Should I update the sources and then apply the patch again? I didn't understand :)

#14 Updated by memory about 1 year ago

memory wrote:

tdev wrote:

memory wrote:

memory wrote:

tdev wrote:

memory, could you please update this one?

It doesn't work anymore? No problem! When I've got a minute I download the latest sources and I'll release the patches ;)

Here the new patch! But I'm not able to try it...I receive a strange error when I try to load a map:
12:32:21: OGRE EXCEPTION: Cannot locate a resource group called '' for resource '' in ResourceGroupManager::openResource at ..\..\OgreMain\src\OgreResourceGroupManager.cpp (line 685)

I think you should give an eye...maybe I'm missing something...
to test it, simply apply pacth and copy the old necessary files! Don't forget to load a truck (on by default), or a car with the proper modified truck file! Don't forget to add the button to input.map

fixed the strange resource errors, please update and test :)

Sorry! Should I update the sources and then apply the patch again? I didn't understand :)

Ok no problems! It worked fine...I just don't know why RoR doesn't start from the bin directory (dev)?! It comes out like a resource missing (tracks\arrow something) but if I put the exe in the main directory works well

For the patch:

it seems to work well like in the older revisions. For me it's just ok, but let me test some more. After that I'll release an updated pack with all resources and patch itself. Then its ready to merge and to ask people to test it ;)

EDIT: by the way! I saw that something is changed in the truck loader. Later I'll check the new parsing method to adapt the patch

#15 Updated by memory about 1 year ago

Now the patch is fully tested. It works like it should!
Before posting it, should I adapt the truck file (engine_braking_system) read with the "new" code? In other words should I create a new section name like BTS_ENGBRAKE?
Is it acceptable engine_braking_system for a section name? Maybe simply engine_brake could be better?

#16 Updated by memory about 1 year ago

Here the latest (hope final) revision!!

Major change is the truck file parsing: it uses "new" code to parse the right line (using BTS_ENGBRAKE definition) and changed from engine_braking_system < float > to enginebrake <float> (more readability)

As I previous said, the patch works bug free, tested on some vehicles and maps.
The sound are good but the graphics could be better.
Read readme.txt for more infos.

#17 Updated by CProgrammer3088 about 1 year ago

sounds good
(has it been merged ?)

#18 Updated by tdev 12 months ago

  • Target version changed from 0.38 to 0.39

#19 Updated by ulteq 16 days ago

  • Due date deleted (01/31/2010)
  • Assignee changed from memory to ulteq
  • Estimated time set to 2.00

Also available in: Atom PDF