Modding metadata question

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


  • Is the cost command broken?
    Trying to convert my TF1 mod to TF2 and this part seems to be ignored


    This worked in TF1, but has no effect in TF2


    metadata = {
    cost = {
    price = 50,
    },


    Did the syntax change? Or perhaps the location? In TF1 its located in the model assets .mdl file

  • You are able to add cost in your CON file.


    Example:

    Code
    result.cost = 50

    I do not know if there is currently a way to define this in an MDL file for assets.

    Gefällt mir 1
  • Thank you Relozu, that worked, I think I was so focused on how I did it in TF1 I never really looked at any other way of doing it, but now it works again


    Thanks again

    Gefällt mir 1