Euro Truck Simulator 2

Euro Truck Simulator 2

データを表示:
Wrote a custom engine and it makes no sound
Hi all,

I am tinkering around with making my own engine in ETS2. I have extracted the Base & Def SCS files and created a copy of an engine to use. I am driving a Mercedes Actros 2014, so I took the "engine_1863.sii" file and cloned it to "engine_1895.sii" to create a 950HP engine.

This is the code from the original engine:
SiiNunit { accessory_engine_data : engine63.mercedes.actros2014.engine { name: "OM 473 Euro VI 460" price: 23160 unlock: 20 info[]: "950 @@hp@@ (700@@kw@@)" info[]: "3@@dg@@000 @@nm@@" info[]: "1@@dg@@100 @@rpm@@" icon: "engine/mercedes_om473" torque: 4750 torque_curve[]: (300, 0) torque_curve[]: (440, 0.5) torque_curve[]: (800, 0.85) torque_curve[]: (1000, 1) torque_curve[]: (1300, 1) torque_curve[]: (1500, 0.95) torque_curve[]: (1700, 0.86) torque_curve[]: (1900, 0.72) torque_curve[]: (2000, 0.5) torque_curve[]: (2200, 0) rpm_limit: 2300 rpm_range_power: (1400, 1800) volume: 15.6 no_adblue_power_limit: 0.5 sound: "/sound/truck/mercedes_4148.bank" overrides[]: "/def/vehicle/truck/mercedes.actros2014/badge_b/badge_xx63.sii" } }

And this is the code for the new engine I made:
SiiNunit { accessory_engine_data : engine95.mercedes.actros2014.engine { name: "OM 473 Euro VI 950" price: 38160 unlock: 25 info[]: "950 @@hp@@ (700@@kw@@)" info[]: "4@@dg@@560 @@nm@@" info[]: "1@@dg@@100 @@rpm@@" icon: "engine/mercedes_om473" torque: 4560 torque_curve[]: (300, 0) torque_curve[]: (440, 0.5) torque_curve[]: (800, 0.85) torque_curve[]: (1000, 1) torque_curve[]: (1300, 1) torque_curve[]: (1500, 0.95) torque_curve[]: (1700, 0.86) torque_curve[]: (1900, 0.72) torque_curve[]: (2000, 0.5) torque_curve[]: (2200, 0) rpm_limit: 2500 rpm_range_power: (1400, 2000) volume: 15.6 no_adblue_power_limit: 0.5 sound: "/sound/truck/mercedes_4148.bank" overrides[]: "/def/vehicle/truck/mercedes.actros2014/badge_b/badge_xx63.sii" } }

The two files are changed where I believe is necessary. I can run ETS2 and activate the mod, and I can find the engine in the parts shop and purchase it for my truck. The issue that I am having is that there is no engine sound.

I have checked the logs and there is no indication of any problems. I just don't hear the engine.

Does anyone out there have experience with making engine mods and can let me know where I have made the mistake? I figured cloning and engine would be the simple solution.

The engine behaves as expected and has more power, but it's just the sound that is missing.

Thanks,

Drop Bear.
投稿主: Karlia:
Hi Drop Bear hahaha love the Name. Poor Koalas getting a bad rap lol..

ok the reason you got that initial error of "@include was not expected but a }" was all because of a space before the @include it must be hard up in the first column with no tab or space, I will paste the code below it works in game, you can copy past or repair the line on you own mod.
{ accessory_engine_data : engine95.mercedes.actros2014.engine { name: "OM 473 Euro VI 950" price: 38160 unlock: 25 info[]: "950 @@hp@@ (700@@kw@@)" info[]: "4@@dg@@560 @@nm@@" info[]: "1@@dg@@100 @@rpm@@" icon: "engine/mercedes_om473" torque: 4560 torque_curve[]: (300, 0) torque_curve[]: (440, 0.5) torque_curve[]: (800, 0.85) torque_curve[]: (1000, 1) torque_curve[]: (1300, 1) torque_curve[]: (1500, 0.95) torque_curve[]: (1700, 0.86) torque_curve[]: (1900, 0.72) torque_curve[]: (2000, 0.5) torque_curve[]: (2200, 0) rpm_limit: 2500 rpm_range_power: (1400, 2000) volume: 15.6 no_adblue_power_limit: 0.5 @include "sound_hi.sui" overrides[]: "/def/vehicle/truck/mercedes.actros2014/badge_b/badge_xx63.sii" } }
You will notice the @include hard against the margin, it is very finicky where it sits in the great scheme of things.
Good luck :)
K

[edit] Also this line that you added points to interior sounds.sui not the engine.
You should be good to go with that code or editing yours to match. :)
< >
1-5 / 5 のコメントを表示
Karlia (禁止済) 2021年7月25日 2時48分 
change
sound: "/sound/truck/mercedes_4148.bank"
To
@include "sound_hi.sui"
and you should be good to go.
Thanks Karlia,

I tried what you suggested and I was getting an error at first where the message said that @include was not expected but a } was. So I moved the line above the second set of {} and that solved that.
SiiNunit { @include "sound_hi.sui" accessory_engine_data : engine63.mercedes.actros2014.engine
But now I get another error. This is what I see in the logs:
00:00:58.899 : <ERROR> [unit] File '<../../def.scs | >/def/vehicle/truck/mercedes.actros2014/engine/sound_hi.sui', line 3: 00:00:58.900 : <ERROR> Included at '<C:/Users/DropBear/Documents/Euro Truck Simulator 2/mod/MercedesActros2014-950hp | >/def/vehicle/truck/mercedes.actros2014/engine/engine_1863.sii', line 2: 00:00:58.900 : <ERROR> [unit] The 'sounds' is not a unit type name. 00:00:58.900 : <ERROR> load_unit() - Failed to load units from file (/def/vehicle/truck/mercedes.actros2014/engine/engine_1863.sii)

I had a look at the Actros 2014 folder and found a file called sounds.sui, so I changed it to that. It still failed to work, but then the log said it failed to load the file, so I added a path to it and now I get this error. The path I gave matches what is stored in the Def.SCS file
00:00:49.042 : <ERROR> [fs] Failed to open file '/def/vehicle/truck/mercedes.actros2014/interior/sounds.sui' in the read_only mode.
I even added that folder to my mod and copied the sounds.sui to that (so it found the file in the mod instead of the def.scs) but that had the same result.

Do you have any other suggestions that I should try?

Thanks,

Drop Bear.
このスレッドの作成者がこの投稿を元のトピックへの回答と指定しました。
Karlia (禁止済) 2021年7月26日 2時27分 
Hi Drop Bear hahaha love the Name. Poor Koalas getting a bad rap lol..

ok the reason you got that initial error of "@include was not expected but a }" was all because of a space before the @include it must be hard up in the first column with no tab or space, I will paste the code below it works in game, you can copy past or repair the line on you own mod.
{ accessory_engine_data : engine95.mercedes.actros2014.engine { name: "OM 473 Euro VI 950" price: 38160 unlock: 25 info[]: "950 @@hp@@ (700@@kw@@)" info[]: "4@@dg@@560 @@nm@@" info[]: "1@@dg@@100 @@rpm@@" icon: "engine/mercedes_om473" torque: 4560 torque_curve[]: (300, 0) torque_curve[]: (440, 0.5) torque_curve[]: (800, 0.85) torque_curve[]: (1000, 1) torque_curve[]: (1300, 1) torque_curve[]: (1500, 0.95) torque_curve[]: (1700, 0.86) torque_curve[]: (1900, 0.72) torque_curve[]: (2000, 0.5) torque_curve[]: (2200, 0) rpm_limit: 2500 rpm_range_power: (1400, 2000) volume: 15.6 no_adblue_power_limit: 0.5 @include "sound_hi.sui" overrides[]: "/def/vehicle/truck/mercedes.actros2014/badge_b/badge_xx63.sii" } }
You will notice the @include hard against the margin, it is very finicky where it sits in the great scheme of things.
Good luck :)
K

[edit] Also this line that you added points to interior sounds.sui not the engine.
You should be good to go with that code or editing yours to match. :)
最近の変更はKarliaが行いました; 2021年7月26日 2時46分
Thanks again Karlia,

That did the trick. I now have a super powerful 950 HP Mercedes with sound!
I appreciate your help!

I threw an award your way.

I might make a few more engines for some other trucks now.

Cheers,

Drop Bear.
Karlia (禁止済) 2021年7月26日 4時37分 
You are very welcome Drop Bear, happy to help.
Thank you for the award :steamhappy:
Happy 🚛🚛🚛
K
< >
1-5 / 5 のコメントを表示
ページ毎: 1530 50

投稿日: 2021年7月25日 2時12分
投稿数: 5