Trolleybuses in Transport Fever 2 (discontinued)

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 I got it working.

    A couple of things:

    From the documentation:

    Zitat

    To improve performance, for simple constructions that do not contain ground faces, terrain alignments, edges or depot/station/industry/town building definitions, there is no construction placed in the game but just the seperate mdls. These can not be configured afterwards or be deleted all at once. Furthermore these types of assets do not support the labelText custom texts from constructions.

    Note the last sentence.


    Also, the array is zero-based, not one-based, so we need:

    Code
    result.labelText[0] = {labelOptions[params.Line+1]}


    Further, we need to add one of the data types mentioned in the quote above, so that we get an actual construction on the map, rather than a bare model.

  • Hello Doug,


    Thanks for your work.

    So if I understand it correctly it won't work for busses, trams and trains.

    Only thing I could try is to change the bus into a building?


    Think its better to add 6 texture files and add the option into result models.


    Again thanks for trying to explane it.

  • Also many thanks to Dadang Ngegame for using his bike-rack!

    There is no need for another Bikerack, the typical Rack for this series is already included in the files of the New flyer Exselsior and on the texture.

    You can get it in the files of the TPF mod its: mc_nwexde40_1_lod_0_details_1 it looks like i forgot that in the TPF2 mod.

  • Hello,


    Quick question.

    How do you make a contruction file for the menu where you buy the vehicles.

    To be clear I don't mean the construction file for the asset menu.


    The reason I'm asking this is that I want the give the player a choice if he or she wants a trolleybus with or without an advertisment.

    I don't want too add 336 mdl files:-)

  • Model files are static once they are loaded, so if you want the choice at the time you buy the vehicle, then you do need 336 model files. :cursing:

    If you want the choice at game load, then you only need 8 model files with 42 different material files, one for each advertisement choice.

    You use an addModifer function to change the material file in the model file, based on the user's advertisement choice.

    Einmal editiert, zuletzt von doug ()

  • Thanks for your quick reply:-)

    But are you kidding me, that's not what I wanted to hear...


    Why isn't as simple as with an asset?
    I made a dropdown list for each advertisement in there, each advertisement has it's own .mdl
    It should be made possible to do the same in the buy menu right?

    So I basically need to decide if I want 8 x 21 = 168 .mdl in a group or not.

    (I have two groups of 8 models each).


    Maybe gonna make two version than:thumbdown:

    One without those mdl, for players who don't care.

    And one for players that have the time to scroll 168 choices...


    But thanks for your help as always!

  • Could this work?

    https://www.transportfever2.co…modding:constructiontypes


    Construction in the depot menus use:

    • “STREET_DEPOT” for street depots (bus, truck and tram).
    • “RAIL_DEPOT” for train depots.
    • “WATER_DEPOT” for shipyards.

    I will try this tonight in a new con file, maybe it's just as easy to switch this ?

    to

  • We are talking about transport vehicles.
    I already have the menu for the assets up and running.

    Like I said hopefully there is something I can change in the buy menu when you click on the depot with this code.

    Don't understand much of it, but should be possible, why is it else possible for an asset but not for a transport vehicle?
    Should be possible via more or less the same way right?

  • The assets use a construction file, which allows you to combine two or more model files into a finished result.

    Transport vehicles are defined by a single model file.


    But, yah, two or three billboard choices for each vehicle would probably suffice...

  • At load time, you could select the options that would dictate which vehicles would be available for purchase.

    You could this way limit the number of vehicles that would appear in the purchase menu to only those you might actually want to use.

  • Thanks for your help, don't know about how the code would work, but I will look into that in the weekend when I have more time.

    Due to the limitations of the game and your advise I want to make one mod.

    I'm gonna make those options in the load menu where the player can choose what they want.

    I guesss I have to make 336 mdl's for that the work..


    I want to have the following:

    Standard (always On)

    Livery A selection (On, Off)

    Livery B selection (On, Off)

    Livery C selection (On, Off)

    Livery D selection (On, Off)


    And so on.

BlueBrixx