Forum
Questions, builds, help and the odd argument. The mods and guides are out front.
Been working on updating the Rev Physics mod into the steam release of SLRR. So far I have most of it converted over, ready to start on chassis.java but I wanted to go ahead and get the parts into the game. The swaybars were a nice simple drag-drop (thank god). I am trying to get the spring and strut from the mod to build into the game. I have tried editing parts.rpk and even making my own rpk file. This is what I have:
<FILE external_links >
system\
cars\
cars\racers\
parts\
particles\
parts\engines\Einvagen_Duhen_Ishima_Focer\
</FILE>
<FILE 00000001.res >
typeof 8
superid 0x0004F229
typeid 0x00000001
alias MrSir_Suspension_1
isparentcompatible 1.00
</FILE>
<FILE 00000001.rsd >
</FILE>
<FILE 00000002.res >
typeof 8
superid 0x00000099
typeid 0x00000E01
alias MrSir_Spring
isparentcompatible 1.00
</FILE>
<FILE 00000002.rsd >
script parts\MrSir_RG\scripts\spring\MrSir_Spring.class
native part parts\running_gear\scripts\spring.cfg
</FILE>
The game is still not building a class file for the newly added spring.
May sound stupid, but, did you put the source in its own folder?
Otherwise the game is not going to build something it doesnt have. 😛
Yes, The directory I have linked to is the same directory that the source is in, plus the SRC directory for the java file. Currently don't have a class file for this as since the game wont build it.
You're defo missing something, that's too few infos to tell what tho ._.
What would be needed? I'm new to modding SLRR code and adding new scripts to the game. I am decent in the Java language though so that's the only reason i've gotten this far.
Check the error.log file, it's in your game's root, there should be some error.
In case, when you move something from an rpk to another you have to make sure to copy all the 4 main sections of anything(aka part, object or whatever you're copy-pasting), they are:
Scripts(the one you posted above)
Render
Mesh
Click
And with them you have to copy-paste the relative files, .scx, .cfg and .java/class.
If you miss any of these, they game will most probably crash or just not do what you're expecting it to do, so just make sure you copied all these.
You gotta also check that the cfg you copy-pasted have unique IDs, otherwise it'll conflict with the other rpk object that uses the same IDs(but this seems quite obvious).
Problem is with the mod that I chose it contained no RPK with reference to these 2 files, so its given me a challenge that I am 100% unfamiliar with.
/d/3914-rev-physics-alpha
No, simply because there is no source so I can't do the needed changes to update the code to be compatible 100%
Source like this /d/4031-mistersir-s-running-gear-beta-v0-1-w-source ?