Author | Message |
9kRPM
Posts: 50
Location: Argentina Occupation: Age: V$: |
#98582 2016-04-28 19:45 |
I need the block java's files of the Chrysler v8 pack 3.0 for script new sounds, so i renamed the MC_block and changed some lines, and deleted others what no matter. This is the problem:
And this is the script: package java.game.parts.engines.Chrysler_V8_pak; import java.util.*; import java.util.resource.*; import java.game.*; import java.game.parts.*; import java.game.parts.enginepart.*; import java.game.parts.enginepart.block.block_vee.*; import java.game.parts.enginepart.slidingenginepart.reciprocatingenginepart.*; import java.game.cars.*; public class Engine_block_426_XEMI extends Block_Vee_OHC { public Engine_block_426_XEMI( int id ) { super( id ); name = "Chrysler 426 HEMI block"; description = "Hemi block."; brand_new_prestige_value = 85.15; bore = 108.1; cylinder_length_from_top = 133.43; crank_center_to_cylinder_top = 280.60; rpm_idle = 800.0; RPM_limit = 5900; cylinders = 8; check4warnings(); } public void updatevariables() { super.updatevariables(); if (the_car) { SfxTable tab; if (tab = the_car.getSfxTable(0))//on { tab.clear(); tab.addItem(new ResourceRef(EngineSoundPack:0x000002FEr), 2000, 500.0, 2500.0, 0.5, 0.6);//onidle tab.addItem(new ResourceRef(EngineSoundPack:0x00000300r), 3500, 1000.0, 4000.0, 0.6, 0.7);//onlow tab.addItem(new ResourceRef(EngineSoundPack:0x00000301r), 5000, 2500.0, 5500.0, 0.7, 0.8);//onmid tab.addItem(new ResourceRef(EngineSoundPack:0x000002FDr), 7000, 4000.0, RPM_limit+600, 0.8, 0.9);//onhigh tab.addItem(new ResourceRef(EngineSoundPack:0x000002FFr), 8000, RPM_limit-600, 18000.0, 0.9, 0.9);//limiter } if (tab = the_car.getSfxTable(1))//off { tab.clear(); tab.addItem(new ResourceRef(EngineSoundPack:0x000002F7r), 1000, 500.0, 1200.0, 0.3, 0.4);//idle tab.addItem(new ResourceRef(EngineSoundPack:0x000002FCr), 3500, 700.0, 3000.0, 0.4, 0.5);//offverylow tab.addItem(new ResourceRef(EngineSoundPack:0x000002FAr), 4500, 1500.0, 4500.0, 0.5, 0.6);//offlow tab.addItem(new ResourceRef(EngineSoundPack:0x000002FBr), 5000, 3000.0, 6000.0, 0.6, 0.7);//offmid tab.addItem(new ResourceRef(EngineSoundPack:0x000002F8r), 7000, 4500.0, 18000.0, 0.7, 0.8);//offhigh } if (tab = the_car.getSfxTable(2)) { tab.clear(); the_car.setSfxExhaustMinVol(0.1); } } } } With the original block class file and without the block java file works fine(obviously), and these are the characteristics: So, if anybody can give me the originals block javas (426 hemi,440, 318, 360, etc)it would be great, but if you dont have it, maybe you can help me to create the script. I think the problem is ito "public Engine_block_426_XEMI( int id )". I dont have any java file from the mod, not even piston or conection rods. Sorry if my english is too bad, im from Argentina. |
|
-------------------------------------------------------- youtube.com/9kRPM Discord: 9kRPM#6366 -------------------------------------------------------- |