Teardown

Teardown

View Stats:
Phonebooth Jan 13, 2023 @ 10:14pm
Making a custom vehicle spawnable?
Hey, I've been working on a few custom vehicles. I'm able to post them on the workshop, but I can't spawn them with the built-in vehicle spawner.

In the mod manager, there isn't an "Enable" option, only a "Play" option which opens the car on a small, empty map. My vehicle is tagged "Content" which I don't know how to change.

I have an instance saved as an .xml, here's what's inside:

<prefab version="1.3.0">
<group name="Hoon" pos="0.2 0.0 0.0">
<vehicle name="Hoonicorn" tags="musclecar vehicle global spawn" pos="-0.2 0.65 0.0" sound="musclecar" spring="10.0" damping="5.0" topspeed="300" acceleration="50.0" strength="100.0" difflock="1" friction="1.0">
<body name="hoonicorn" tags="musclecar" pos="0.1 0.4 0.0" rot="0 0 0" dynamic="true">
<vox pos="0.1 -0.9 0.0" rot="0 180 0" density="1.0" strength="10.0" collide="true" file="MOD/hoonicornbest.vox" object="body" pbr="0 1 1 0">
<wheel name="BR" pos="-1.0 0.25 -1.45" rot="180 0 180" drive="1">
<vox pos="-0.0 -0.35 -0.05" rot="180 0 180" file="MOD/teardownhoonicorn/hoonicorn.vox" object="wheel_br"/>
</wheel>
<wheel name="BL" pos="0.9 0.25 -1.45" rot="180 0 180" drive="1">
<vox pos="-0.1 -0.35 -0.05" rot="180 0 180" file="MOD/teardownhoonicorn/hoonicorn.vox" object="wheel_bl"/>
</wheel>
<wheel name="FR" pos="-1.0 0.25 1.45" rot="180 0 180" drive="1" steer="1">
<vox pos="-0.0 -0.35 -0.05" rot="180 0 180" file="MOD/teardownhoonicorn/hoonicorn.vox" object="wheel_fr"/>
</wheel>
<wheel name="FL" pos="1.0 0.25 1.45" rot="180 0 180" drive="1" steer="1">
<vox pos="-0.0 -0.35 -0.05" rot="180 0 180" file="MOD/teardownhoonicorn/hoonicorn.vox" object="wheel_fl"/>
</wheel>
<group name="lights,engine,etc" pos="0.1 0.0 0.0">
<location name="camera" tags="player" pos="0.3 0.9 0.0" rot="180"/>
<location name="engine" tags="vital" pos="-0.1 0.5 1.3" rot="0 180 0"/>
<light pos="0.7 0.5 2.1" type="cone" color="0.97 0.93 0.64" scale="0.1"/>
<light pos="-0.8 0.5 2.1" type="cone" color="0.97 0.93 0.64" scale="0.1"/>
</group>
</vox>
</body>
</vehicle>
</group>
</prefab>


spawn.txt says this:
Ken Block's Hoonicorn/hooninstance.xml : Hoonicorn/Ken Block's Hoonicorn

File path is correct, my vehicle is located at Documents/Teardown/mods/Ken Block's Hoonicorn/hooninstance.xml

Thanks in advance!
Last edited by Phonebooth; Jan 13, 2023 @ 10:37pm
Originally posted by Femboy Sarah:
don't include the name of your mod's root directory in spawn.txt. the path to the instance is relative to the mod directory, so it should just be "hooninstance.xml"
< >
Showing 1-2 of 2 comments
The author of this thread has indicated that this post answers the original topic.
Femboy Sarah Jan 13, 2023 @ 11:46pm 
don't include the name of your mod's root directory in spawn.txt. the path to the instance is relative to the mod directory, so it should just be "hooninstance.xml"
Phonebooth Jan 14, 2023 @ 12:13am 
Originally posted by Sarah:
don't include the name of your mod's root directory in spawn.txt. the path to the instance is relative to the mod directory, so it should just be "hooninstance.xml"

That solved it. Thank you!
< >
Showing 1-2 of 2 comments
Per page: 1530 50

Date Posted: Jan 13, 2023 @ 10:14pm
Posts: 2