Beiträge von SpaceCossaX

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


    Hello, comrades.

    There is a same questions.

    I watch "GameScript" Lexicon thread, but still don't get, where i need to call game.interface callbacks? I mean is it needed to be created in game_script/some-name.lua file? I need to make separate functions or insert it into update function? How I can call that function from my scripts?

    I already try to call game.interface from my script, there is nil value returned

    I try from update function of game_script/some-name.lua - and there is nothing happens, even answer for game.interface nil check.

    I try from separate function of game_script/some-name.lua still nothing.

    I try to call separate function of game_script/some-name.lua from my external script - and i cant register my gamescript as util script holder.

    P.S. I know nothing about coding, start luring few days ago, make "industry workers" mod, but it was simple. Now i wanna expand it, make usable UI for it with complied data about available and filled workplaces to make passenger logistic clearly. Now, coas of there is no autobalancing we have to much amount of workplaces (coas towns have their own workplaces for all the population and new workplaces in industries is additional, so we have not enough population for all the workplaces) and asset-placed residential buildings also have no visible UI to watch how many living places are you added.

    So, for the beginning i need to use, but cant reach no of this functions:

    Code
    -- getIndustryProductionLimit 
    -- getTowns
    -- getTownCapacities
    -- getTownReachability
    -- getBuildingType
    -- getBuildingTypes
    -- getEntities
    -- getEntity
    -- getLines
    -- etc.

    My test function: