Author Message

9kRPM

ar
Posts: 50

Location: Argentina
Occupation:
Age:
V$:
#1   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
--------------------------------------------------------

Holy Shit Man

pl
Posts: 2554

Location: Poland
Occupation: Faking skills like a pro
Age:
V$: No
#2   2016-04-29 05:34          
Try changing these values:
		bore = 108.1;
		cylinder_length_from_top = 133.43;
		crank_center_to_cylinder_top = 280.60;

9kRPM

ar
Posts: 50

Location: Argentina
Occupation:
Age:
V$:
#3   2016-04-29 14:06          
# KeeJay : Try changing these values:
		bore = 108.1;
		cylinder_length_from_top = 133.43;
		crank_center_to_cylinder_top = 280.60;

I think bore isnt the problem because is the same as the original, but anyways i try changing all the values (increasing them and decreasing) and nothing happens, the static compression allowed still is more than 0.0:1.
--------------------------------------------------------
youtube.com/9kRPM
Discord: 9kRPM#6366
--------------------------------------------------------

RedCarDriver

us
Posts: 1211

Location: United States Arizona
Occupation: it's complicated... more complicated than my relationships
Age: 30
V$: 86310
#4   2016-04-29 18:25          
Have you made sure that your fuel system is working correctly?

In particular, check to make sure that the slot numbers in the CFGs and in the Java files match. That's a major problem that people rescripting engines run into.

9kRPM

ar
Posts: 50

Location: Argentina
Occupation:
Age:
V$:
#5   2016-04-29 19:36          
# Harrison15 : Have you made sure that your fuel system is working correctly?

In particular, check to make sure that the slot numbers in the CFGs and in the Java files match. That's a major problem that people rescripting engines run into.

I dont know. Without the java file works fine. But in the java there is no lines related with the fuel system i think. The slots numbers in cfg are right. i have put these numbers slots in the java file like this?(MC_block.java example):

		crankshaft_slot_ID = 8;
		transmission_slot_ID = 5;
		crankshaft_bearing_slot_ID = 99;
		oil_pan_slot_ID = 9;

		L_cylinder_head_slot_ID = 45;
		R_cylinder_head_slot_ID = 46;
		intake_manifold_slot_ID = 14;
--------------------------------------------------------
youtube.com/9kRPM
Discord: 9kRPM#6366
--------------------------------------------------------

RedCarDriver

us
Posts: 1211

Location: United States Arizona
Occupation: it's complicated... more complicated than my relationships
Age: 30
V$: 86310
#6   2016-04-29 20:17          
Okay, first, make sure the intake manifold slot ID is the same between the java and the cfg.

Then go into the intake manifold java, and make sure the slot ID for the fuel system is the same between that java and that cfg.

9kRPM

ar
Posts: 50

Location: Argentina
Occupation:
Age:
V$:
#7   2016-04-30 01:01          
# Harrison15 : Okay, first, make sure the intake manifold slot ID is the same between the java and the cfg.

Then go into the intake manifold java, and make sure the slot ID for the fuel system is the same between that java and that cfg.

Im sure the cfg files are right, but i dont have any java files, for this reason i wanna create the block java file, and change the sounds. Into block java i put the lines of slots with their respective numbers and the static compression problem still the same. Block java works alone? i means without the others javas of parts....?
--------------------------------------------------------
youtube.com/9kRPM
Discord: 9kRPM#6366
--------------------------------------------------------