Author Message

adnan54

br
Posts: 289

Location: Brazil
Occupation: student
Age: 24
V$:
#1   2013-04-03 00:24          
Hi guys! I have a small problem with an engine. I was making new sounds for him, changed the java block based on GM L44 engine (Harrison15's Pontiac Fiero).
But when I test it, says that the alternator is missing, but he's not missing. I've tried many things, but none of right .. can someone help me?
(sorry my bad english xD)
Something wrong is not right.

RedCarDriver

us
Posts: 1211

Location: United States Arizona
Occupation: it's complicated... more complicated than my relationships
Age: 30
V$: 86310
#2   2013-04-03 01:26          
Chances are that you forgot to change the alternator slot ID within the new Java code. Go into the .cfg for the block and look for the correct alternator slot ID #, and then change the ID within the .java file accordingly (something like "if partOnSlot( ### )").

adnan54

br
Posts: 289

Location: Brazil
Occupation: student
Age: 24
V$:
#3   2013-04-03 16:29          
Thank Harrison15, but see if I understand right:

cfg of the block:

slot 0.000 0.000 0.000 0.000 0.000 0.000 14 ; engine_block_alternator_IN
slotdmgmode 0x00000002

The number of slot is the 14?

Then I have to put 14 in the java of block?

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

return super.isDynoable();

This right?

Added 6 hours 53 minutes later:

I made all the settings, but when I go to load game the game crashes and this error:

JVM::compileSource: Syntax error in "parts\engines\MAZDANA8C\scripts\src\Ishima_IshiBox_block.java" at line 161

I went to the line 161, but there's nothing wrong there.. what can it be?

This post was edited by adnan54 (2013-04-03 23:25, ago)
Something wrong is not right.

RedCarDriver

us
Posts: 1211

Location: United States Arizona
Occupation: it's complicated... more complicated than my relationships
Age: 30
V$: 86310
#4   2013-04-03 23:45          
Please post the complete CFG file and the Java source for your engine block. That will give me a better idea what the problem is.

adnan54

br
Posts: 289

Location: Brazil
Occupation: student
Age: 24
V$:
#5   2013-04-03 23:49          

Something wrong is not right.

RedCarDriver

us
Posts: 1211

Location: United States Arizona
Occupation: it's complicated... more complicated than my relationships
Age: 30
V$: 86310
#6   2013-04-04 01:51          
It looks like you copied the entire source code from the Fiero engine block and overwrote the NA8C engine block's code with it. This won't work, because the Fiero V6 is a vee-type engine and the NA8C is an inline-type engine, so the slots are going to be different. Furthermore, the "turbotype" code won't work either because it uses tricks specific to the Fiero engine.

adnan54

br
Posts: 289

Location: Brazil
Occupation: student
Age: 24
V$:
#7   2013-04-04 09:51          
I realized this, I made some changes .. looks the new code:

Something wrong is not right.