Question about industry parameters

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


  • Hi,


    I'm messing around trying to create a custom version of mods that change the production chain of the game. I was trying to edit the Industry Expanded mod for personal use, but, I got lost in all code, and resolved to start from scratch learning as I progress.


    I have a question about his part of the code inside the industry.con files:


    Code
    order = 1002,
            placementParams = {
                buildOrder = 1,
                initWeight = 1,
                tags = { "INPUT_GRAIN" },
                distanceWeights = {
                    INPUT_FOOD = 1,
                    INPUT_GRAIN = -2,
                }


    Order seems to be the order that that industry is put in some list. But buildOrder and initWeight I have o idea. initWeight I had the impression that it was the number of that industry necessary to feed the next industry in the production chain, but I'm no sure, and buildOrder is a total mystery to me.


    Also the negative input variable. In some of the industries from the mod the value was -1, but in all default industries of the game this value is -2, what it affects exactly?:/

  • Another question. What to do to make the cargo appear in the industry stock?


    So far I added sand and marble to my game, but, none of them show in the stocks in the industry, only in stations and vehicles:


    [Blockierte Grafik: https://i.imgur.com/ciF6EUB.jpg]


    [Blockierte Grafik: https://i.imgur.com/kQuIzbv.jpg]


    In the documentation there's a section about stocks, and edges where cargo can be pilled, but I can't make sense of that. None of the vanilla game files have anything about edges or something like it.:/

  • The vanilla files use the wretched industryutil.lua to actually define that stuff, based on the "curves" definitions in the .con or .mdl files.

    You're probably better off writing a .mdl file that defines nothing more than a single cargo lane. You can use multiple instances of the same .mdl file to define all of the storage areas you want.

    Gefällt mir 1
  • Ok, I will look on how it works and try it. thanks.:)


    *Edit:


    doug


    Thanks for the tip. I figured it out.^^


    Einmal editiert, zuletzt von Blackdragonbird ()

  • Glad to see that you got it working!

  • One more question:


    There's any way to make industries have more than one output rule? Example, farms output 1 grain from nothing, but, if i wanted to create a second rule that would output more if the farm received some kind of "fertilizer", it is possible?


    Also is possible to mod the UI to make it show numbers in the icons in the rule segment, instead of 1 icon for every input/output needed?

  • Hi guys,


    I returned to play the game and the work in my mod to change the industry production chains. Looks like is impossible to mod the UI to show the "Rules" in a way that allow all the changes I made in industries chains to show correctly.


    There's any place where I can make a suggestion to the developer's? Seems like only them can make changes on it.


    Thanks.