VStanced/mods
Submit a mod
Mods Guides Forum Submit a mod Log in Register

Forum

Questions, builds, help and the odd argument. The mods and guides are out front.

block java script p...
 
Notifications
Clear all

block java script problem: compression is too high

7 Posts
3 Users
0 Reactions
5,319 Views
9kRPM
(@9krpm_17510)
Trusted Member
Joined: 11 years ago
Posts: 48
Topic starter   [#557]

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.



   
Quote
Holy_Shit_Man
(@holy_shit_man_3240)
Member Moderator
Joined: 14 years ago
Posts: 2251
 

Try changing these values:

		bore = 108.1;

	cylinder_length_from_top = 133.43;
	crank_center_to_cylinder_top = 280.60;


   
ReplyQuote
9kRPM
(@9krpm_17510)
Trusted Member
Joined: 11 years ago
Posts: 48
Topic starter  

# 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.



   
ReplyQuote
RedCarDriver
(@redcardriver_1155)
Member Moderator
Joined: 15 years ago
Posts: 1125
 

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.



   
ReplyQuote
9kRPM
(@9krpm_17510)
Trusted Member
Joined: 11 years ago
Posts: 48
Topic starter  

# 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;


   
ReplyQuote
RedCarDriver
(@redcardriver_1155)
Member Moderator
Joined: 15 years ago
Posts: 1125
 

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.



   
ReplyQuote
9kRPM
(@9krpm_17510)
Trusted Member
Joined: 11 years ago
Posts: 48
Topic starter  

# 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....?



   
ReplyQuote
Share: