non appearing objects using .con

Willkommen in der Transport Fever Community

Wir begrüßen euch in der Fan-Community zu den Spielen Transport Fever und Train Fever, den Wirtschaftssimulatoren von Urban Games. Die Community steht euch kostenlos zur Verfügung damit ihr euch über das Spiel austauschen und informieren könnt. Wir pflegen hier einen freundlichen und sachlichen Umgang untereinander und unser Team steht euch in allen Fragen gerne beiseite.

 

Die Registrierung und Nutzung ist selbstverständlich kostenlos.

 

Wir wünschen euch viel Spaß und hoffen auf rege Beteiligung.

Das Team der Transport-Fever Community


  • So as the title says. I'm having trouble adding components using the .con file. I've had a little conversation with nightfury34 and he is also baffled on why nothing is showing.

    Firstly, this is the code that works fine. Defines the masts thickness and adds a ladder with corresponding mountingpoints and the chosen ladder type (painted or bare metal).


    Then I'm adding the part that baffles us. After the last elseif the option for IDsign schould be added to the model. How it's set up now it looks like this

    if (params.NS55_mast and params.NS55_mast == 0) and (params.NS55_IDbord and params.NS55_IDbord == 0) then

    result.models[#result.models+1] = {id="asset/NS55/Borden/NS55_IDbord_3.mdl", transf = {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, x_offset, y_offset, z_offset, 1}}

    elseif (params.NS55_mast and params.NS55_mast == 0) and (params.NS55_IDbord and params.NS55_IDbord == 1) then

    result.models[#result.models+1] = {id="asset/NS55/Borden/NS55_IDbord_4.mdl", transf = {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, x_offset, y_offset, z_offset, 1}}

    elseif (params.NS55_mast and params.NS55_mast == 1) and (params.NS55_IDbord and params.NS55_IDbord == 0) then

    result.models[#result.models+1] = {id="asset/NS55/Borden/NS55_IDbord_3_breed.mdl", transf = {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, x_offset, y_offset, z_offset, 1}}

    elseif (params.NS55_mast and params.NS55_mast == 1) and (params.NS55_IDbord and params.NS55_IDbord == 1) then

    result.models[#result.models+1] = {id="asset/NS55/Borden/NS55_IDbord_4_breed.mdl", transf = {1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, x_offset, y_offset, z_offset, 1}}

    end

    end


    The ID signs don't appear ingame, yet the game doesn't crash, doesn't show the empty file box and on top of that all, the console is totally empty.


    What are we missing here that it reacts like this? I've already sized the sign up by 1000 with a visibleTo of 10000 to see if the sign is placed somewhere totally different, but that isn't the case either.

    Vragen? Stel ze gerust in het Nederlands, Engels of Duits^^

    Fragen? Schreibt mich dan einfach auf Niederländisch, Englisch oder Deutsch^^

    Questions? just ask them in Dutch, English or German^^

  • well, after some extra attempts it was the opposite. The part with the signal ID had one end too much! Tried multiple things, yet the most easy to fix didn't cross my mind...

    Vragen? Stel ze gerust in het Nederlands, Engels of Duits^^

    Fragen? Schreibt mich dan einfach auf Niederländisch, Englisch oder Deutsch^^

    Questions? just ask them in Dutch, English or German^^