• If you have a mod, tool or prefab, please use the Resources section. Click Mods at the top of the forums.

Need Help for Cloning Bicycle

Roin

New member
Hello all

thinking alot about to Post here but after so much Hours i give up.

I try to Clone the original Bicycle so i have a seperate Bicycle where i can change the backpack size from it.

I need the normal bicycle like normal and a bicycle with more space.

so i tried to clone the original bicycle, but it ends everytime in object reference errors.

is here someone who can help me? guide me or can do that for me? best would be guiding i think so i can learn

it just need to be a clone from the original bicycle with diffrent name. more not

i cant find wheres the problem sits

i have that files: entitiyclasses, items, loot, nav objects, sounds and vehicles. i dont now if something missing or to much. im completly new
 

 
Last edited by a moderator:
i reworked all.

now i have no errors. mod loads fine.

but.. i have nothing ingame, no new vehicle just nothing. 

it loads but where? :D

i have no clue how to fix that.. that takes so long for that "tiny" problem

 
EDIT:// ok it works.. somehow

one fail was the file "Configs" instead of "Config"

and the nav object class changed now to "nomad"

hope it works now..

to bad that i dont have know how in unity. i would add a backpack on the bicycle

maybe someone can have a look if i miss something.

entityclasses.xml

<configs>
    <append xpath="/entity_classes">
        <entity_class name="vehicleBagcycle">
            <property name="Class" value="EntityBicycle"/>
            <property name="Tags" value="vehicle"/>
            <property name="Parent" value="Cars"/>
            <property name="Prefab" value="@:Entities/Vehicles/bicycle_Prefab.prefab"/>    
            <property name="ModelType" value="Standard"/>    
            <property name="SurfaceCategory" value="metal"/>
            <property name="IgnoreTrigger" value="true"/>
            <property name="LootListAlive" value="vehicleBagcycle"/>
            <property name="IsEnemyEntity" value="false"/>
            <property name="Explosion.ParticleIndex" value="6"/>
            <property name="Explosion.RadiusBlocks" value="1"/>
            <property name="Explosion.RadiusEntities" value="1"/>
            <property name="RotateToGround" value="true"/>
            <property name="Faction" value="none"/>        
            <property name="MapIcon" value="nomadicon"/>
            <property name="NavObject" value="nomad" />
        </entity_class>    
    </append>
</configs>


items.xml

<configs>
    <append xpath="/items">    
        <item name="vehicleBagcycleplaceable">
            <property name="Extends" value="vehicleMinibikePlaceable"/>
            <property name="CustomIcon" value="nomad"/>
            <property name="Tags" value="vehicle,canHaveCosmetic,ADG"/>
            <property name="DescriptionKey" value="vehicleBagcyclePlaceableDesc"/>    
            <property name="Meshfile" value="@:Entities/Vehicles/bicycle_Prefab.prefab"/>
            <property name="EconomicValue" value="2500"/>
            <property name="TraderStageTemplate" value="vehicleTier1"/>
            <property class="Action1">
                <property name="Vehicle" value="vehicleBagcycle"/>
            </property>
            <effect_group name="Base Effects" tiered="false">
                <passive_effect name="ModSlots" operation="base_set" value="2"/>
                <passive_effect name="ModPowerBonus" operation="base_add" value="300" tags="EconomicValue"/>
                <passive_effect name="DegradationMax" operation="base_set" value="1500"/>
            </effect_group>
        </item>
    </append>
</configs>


loot.xml

<configs>
    <append xpath="/lootcontainers">
        <lootcontainer name="vehicleBagcycle" count="0" size="10,9" sound_open="UseActions/vehicle_storage_open" open_time="0" sound_close="UseActions/vehicle_storage_close" loot_quality_template="qualBaseTemplate"/>
    </append>

</configs>


nav_objects.xml

<configs>
    <append xpath="/nav_object_classes">
        <nav_object_class name="bagcycle" extends="bicycle">
            <property name="requirement_type" value="IsVehicleOwner" />

            <compass_settings>
                <property name="sprite_name" value="nomadicon"/>
                <property name="min_distance" value="0"/>
                <property name="max_distance" value="-1"/>
                <property name="max_scale_distance" value="1024"/>
                <property name="color" value="255,255,0,255"/>
                <property name="has_pulse" value="true"/>
                <property name="icon_clamped" value="false" />
            </compass_settings>

            <onscreen_settings>
                <property name="sprite_name" value="nomadicon"/>
                <property name="min_distance" value="0"/>
                <property name="max_distance" value="20"/>
                <property name="max_scale_distance" value="64"/>
                <property name="color" value="255,255,0,255"/>
                <property name="has_pulse" value="false"/>
            </onscreen_settings>
        </nav_object_class>
    </append>
</configs>
 


vehicles.xml

<configs>
    <append xpath="/vehicles">
        <vehicle name="vehicleBagcycle">

        <property name="cameraDistance" value="3, 4.5"/>
        <property name="cameraTurnRate" value=".2, .35"/>
        <property name="upAngleMax" value="70"/>
        <property name="upForce" value="1"/>
        <property name="steerAngleMax" value="28"/>
        <property name="steerRate" value="130"/>
        <property name="steerCenteringRate" value="90"/>
        <property name="tiltAngleMax" value="20"/>
        <property name="tiltThreshold" value="3"/>
        <property name="tiltDampening" value=".22"/>
        <property name="tiltDampenThreshold" value="8"/>
        <property name="tiltUpForce" value="5"/>

        <property name="motorTorque" value="500, 180"/>
        <property name="turboScale" value="1.5, 1"/>
        <property name="velocityMax" value="6, 4"/>
        <property name="brakeTorque" value="3000"/>
        <property name="hopForce" value="4, .05"/>
        <property name="unstickForce" value=".2"/>
        <property name="waterDrag_y_velScale_velMaxScale" value="1.7, .9, .2"/>

        <property name="wheelPtlScale" value=".6"/>

        <property name="hornSound" value="bicycle_horn"/>

        <property class="chassis">
            <property name="class" value="Chassis"/>
            <property name="slot_type" value="chassis"/>
            <property name="mesh" value="chassis"/>
            <property name="transform" value="Origin"/>
            <property name="paint" value="chassis"/>
        </property>

        <property class="handlebars">
            <property name="class" value="Steering"/>
            <property name="slot_type" value="handlebars"/>
            <property name="mesh" value="handlebar"/>
            <property name="transform" value="Origin/handlebar_joint"/>
            <property name="IKHandLPosition" value="-.24, .284, -.129"/>
            <property name="IKHandLRotation" value="-.8781128, -25.45557, -10.52621"/>
            <property name="IKHandRPosition" value=".24, .284, -.129"/>
            <property name="IKHandRRotation" value=".8781128, 25.45557, 10.52621"/>
            <property name="paint" value="handlebar"/>
        </property>

        <property class="pedals">
            <property name="class" value="Pedals"/>
            <property name="slot_type" value="pedals"/>
            <property name="transform" value="Origin/pedalJoint"/>
            <property name="pedalLPosition" value="-.182, 0, -.217"/>
            <property name="pedalRPosition" value=".182, 0, .217"/>
            <property name="IKFootLPosition" value="0, .1, -.05"/>
            <property name="IKFootLRotation" value="0, 0, 0"/>
            <property name="IKFootRPosition" value="0, .1, -.05"/>
            <property name="IKFootRRotation" value="0, 0, 0"/>
            <property name="pedalSound" value="bicycle_pedal"/>
            <property name="staminaDrain" value="0,0"/><!-- stamina drain walking/running. It now uses movement tags so regular passives apply -->
            <property name="chain" value="chain"/>
            <property name="particleDamaged" value="p_damaged"/>
            <property name="particleBroken" value="p_broken"/>
        </property>

        <property class="seat0">
            <property name="position" value="0, .292, -.13"/>
            <property name="rotation" value="0, 0, 0"/>
            <property name="exit" value="-.8,0,0 ~ .8,0,0 ~ 0,0,-1.4 ~ 0,0,1.4 ~ 0,1.5,0"/>
        </property>

        <property class="wheel0">
            <property name="steerTransform" value="Origin/handlebar_joint"/>
            <property name="tireTransform" value="Origin/handlebar_joint/frontWheel_joint"/>
            <property name="torqueScale_motor_brake" value=".15, .5"/>
        </property>

        <property class="wheel1">
            <property name="tireTransform" value="Origin/backWheelJoint"/>
            <property name="torqueScale_motor_brake" value="1, 1"/>
        </property>

        <property class="storage">
            <property name="class" value="Storage"/>
            <property name="display_name" value="basket"/>
            <property name="slot_type" value="basket"/>
            <property name="mesh" value="basket"/>
            <property name="transform" value="basket"/>
        </property>

    </vehicle>
    </append>
</configs>

 
Last edited by a moderator:
Back
Top