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.

where is the engine...
 
Notifications
Clear all

where is the engine sounds in the scripts

10 Posts
6 Users
0 Reactions
6,892 Views
stonedmonster
(@stonedmonster_2362)
Reputable Member
Joined: 14 years ago
Posts: 452
Topic starter   [#807]

i wanna edit a engine so it whines less and has a louder bov on the vr38dett but i dont know which file i need to edit please help sorry for the noob question



   
Quote
Bigg_Boss93
(@bigg_boss93_1370)
Member Admin
Joined: 15 years ago
Posts: 3835
 

package java.game.parts.engines.Nissan_VR38DETT;

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 Japanese_V6_engine_block extends Block_Vee_OHC
{
public Japanese_V6_engine_block( int id )
{
Spoiler: super( id );
name = "Nissan VR38DETT Engine Block";
description = "";

	brand_new_prestige_value = 269.86;
	value = 12000.0;
	setMaxWear(kmToMaxWear(5420000.0));

	bore = 95.5;

	cylinder_length_from_top = 133.43;
	crank_center_to_cylinder_top = 280.60;

	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;

	rpm_idle = 1100.0;
	time_spark_min	= sparkAngleTo4cycleTime(325.0);
	time_spark_inc	= sparkAngleTo4cycleTime(340.0)-time_spark_min;
	time_spark_RPM0	= 4000;
	time_spark_RPM1	= 8550;
	RPM_limit	= 9000;

	cylinders	= 6;

	check4warnings();
}

public void updatevariables()
{
	super.updatevariables();

	if (the_car)
	{
		SfxTable tab;
		if (tab = the_car.getSfxTable(0))
		{
			tab.clear();
			tab.addItem(new ResourceRef(parts.engines.Nissan_VR38DETT:0x000000A0r), 2900.0,  500.0, 6700.0, 0.90, 1.00); //0900RPM
			tab.addItem(new ResourceRef(parts.engines.Nissan_VR38DETT:0x000000A2r), 8000.0, 3000.0, 12000.0, 1.30, 2.80); //2000RPM
			
			if (dynodata.P_turbo_waste > 0.01 )
			tab.addItem(new ResourceRef(parts.engines.Nissan_VR38DETT:0x00000A99r), 6000.0, 2000.0, 12000.0, 0.45, 0.45); //Turbo_Whine2
			if (dynodata.P_turbo_waste > 0.01 )
			tab.addItem(new ResourceRef(parts.engines.Nissan_VR38DETT:0x000000A4r), 9000.0, 9900.0, 12000.0, 3.00, 3.00); //revlimiter
			
			
		}
					
		if (tab = the_car.getSfxTable(1)) //test bov
		{
			tab.clear();
			if (dynodata.P_turbo_waste > 0.01 )
			[color=#8AE234][b]tab.addItem(new ResourceRef(parts.engines.Nissan_VR38DETT:0x000000B1r), 5500.0,[/color]  [color=#3465A4]6000.0, 18000.0,[/color] [color=#F57900]2.00, 2.90[/color][color=#8AE234]);[/b][/color] // BOV
			if (dynodata.P_turbo_waste > 0.01 )
			tab.addItem(new ResourceRef(parts.engines.Nissan_VR38DETT:0x000009B1r), 4900.0,  1000.0, 8900.0, 3.80, 3.80); // Backfire
							
		}


		if (tab = the_car.getSfxTable(2))
		{
			tab.clear();
			tab.addItem(new ResourceRef(parts.engines.Nissan_VR38DETT:0x000000A0r), 2900.0,  500.0, 6700.0, 0.90, 1.00); //0900RPM
			tab.addItem(new ResourceRef(parts.engines.Nissan_VR38DETT:0x000000A2r), 8000.0, 3000.0, 12000.0, 1.30, 2.80); //2000RPM
			
			
		}
		the_car.setSfxExhaustMinVol(0.8);
	}
}

public String isDynoable()
{
	**Spoiler:** Part p;

	p = partOnSlot( 20 );
	if (!p)
		return "the engine is missing the alternator.";

	return super.isDynoable();
}

}

On Japanese_V6_engine_block.java you have to edit the ORANGE part, they are rispectively minimum and maximum volume at BLUE rpm range. 🙂



   
ReplyQuote
jean_EK9
(@jean_ek9_9162)
Eminent Member
Joined: 13 years ago
Posts: 29
 

Sooooo .. What values to make it whine less?



   
ReplyQuote
Bigg_Boss93
(@bigg_boss93_1370)
Member Admin
Joined: 15 years ago
Posts: 3835
 

check again the post above, this time read it.



   
ReplyQuote
stonedmonster
(@stonedmonster_2362)
Reputable Member
Joined: 14 years ago
Posts: 452
Topic starter  

cheers for the help



   
ReplyQuote
adnan54
(@adnan54_2457)
Reputable Member
Joined: 14 years ago
Posts: 252
 

@BB93 - Hey man, I sent to you a PM a few days ago but you did not answer (I do not know if you ignored or if you not see it).. Can you send me your EJ20/25 Boxer javas? I like to make new sounds for it 😛



   
ReplyQuote
Bigg_Boss93
(@bigg_boss93_1370)
Member Admin
Joined: 15 years ago
Posts: 3835
 

just replace its wav files?



   
ReplyQuote
adnan54
(@adnan54_2457)
Reputable Member
Joined: 14 years ago
Posts: 252
 

Yeah, but I have a lot of cool scripts for sounds .. You can trust me bro xD



   
ReplyQuote
vulturinegraph3
(@vulturinegraph3_2702)
New Member
Joined: 14 years ago
Posts: 4
 

How do I add or change a sound? I want to add a blowoff flutter I found and chop and change the sound with 2 jz sound from shift 2.

Added 1 minute later:

Please PM me if you would like to help. Thank you



   
ReplyQuote
kassaiba
(@kassaiba_9859)
Active Member
Joined: 13 years ago
Posts: 3
 

someone help me with a 2JZ engine Years of Sound: http://streetlegalmods.com/downloads/street-legal-racing-redline/sound-mods/1JZ-GTE-new sounds put together for me as a beginner, it's a problem if someone send me already modified version (2.3.0 Live edition) appreciate e-mail: [email protected]



   
ReplyQuote
Share: