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.

How come engine par...
 
Notifications
Clear all

How come engine parts crash at tyres?

7 Posts
3 Users
0 Reactions
4,363 Views
PXRZ
 PXRZ
(@pxrz_833)
Honorable Member
Joined: 16 years ago
Posts: 490
Topic starter   [#205]

I got an error that might happen to know what mod (an own made sohc head for original engines) that causes the game to crash at the tyres section (?) and I would like to know why it does so. Should I maybe change the ID´s for the mod´s parts?



   
Quote
stonedmonster
(@stonedmonster_2362)
Reputable Member
Joined: 14 years ago
Posts: 452
 

have you got a error report?



   
ReplyQuote
PXRZ
 PXRZ
(@pxrz_833)
Honorable Member
Joined: 16 years ago
Posts: 490
Topic starter  

!Package conflict: multiple packages placed at the same location ( at parts\Cyl_head\scripts)
!Package conflict: multiple packages placed at the same location (java.game.cars.camshaft_drive_belt at parts\Cyl_head\scripts)



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

check its header package which must be like "package java.game.parts.FOLDER_NAME_WITHOUT_SPACES;" also public class and public which must use the same name as the file



   
ReplyQuote
PXRZ
 PXRZ
(@pxrz_833)
Honorable Member
Joined: 16 years ago
Posts: 490
Topic starter  

Strange thing is that it´s neither of what you described as I can find in the .javas

Added 22 hours 45 minutes later:

How it looks like in the file that the error.log has a complaint at:

package java.game.parts.Cyl_head;

import java.util.*;
import java.util.resource.*;
import java.game.*;
import java.game.parts.*;
import java.game.cars.*;


public class camshaft_drive_belt extends EnginePart
{
	public camshaft_drive_belt( int id )
	{
		super( id );
	

Added 2 minutes later:

As far as I can see, there is nothing that I can see at this that would have been indicating on the lines being wrong and still it acts weird....



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

you are missing some import

Added 1 minute later:

no ok i checked it is fine, try leaving a space between package and import



   
ReplyQuote
PXRZ
 PXRZ
(@pxrz_833)
Honorable Member
Joined: 16 years ago
Posts: 490
Topic starter  

Oh heheheh The .java doesn´t have as seen at the post that the space between the "package" and the "import" is missing. That´s weird it disappeared when I tried to post the text here as seen in the file. I reinstalled the game to see if it works fine (the mod itself) and it doesn´t seem to be faulty scripted. It must have been something up with the game.... :/



   
ReplyQuote
Share: