Beiträge von Pentasis

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


    Yeah, I figured out @doug's solution didn't work for me. I managed to get things working as I need, through the Console State of the game. I must say, the way communication between states is implemented seems a bit wonky and with the limited api-documentation a lot of trail-and-error.

    I have the "experimentalMapSizes" set to true and since the last update I also use the "experimentalTunnelAndBridgeMinHeight" set to true, which is a godsend. I also see the following: "experimentalMailboxPresent" and "experimentalOptimizeShaders". But enabling them does not visibly change anything in the game. What are they used for?

    Yeah, it seems you're right. It won't work while the game is running. It was worth a try and a good exercise for me (new to Lua & TF modding) So now I go see if I can make it an option you can set before loading a game.


    I got the button working in the end, it was a case issue (I'm used to case insensitive languages mostly)


    Thanks for the feedback!

    You can do a loadEnvironment change with addModifier. I don't know if that works during gameplay. I just wanted to try. Since you can change environmental settings in the debug window it should -in theory- be possible. Right now I am just interested in getting a button working :) I tried everything mentioned in the docs and looked at other people code, but for some reason I can't get a button to appear on the gameInfo bar. Any insight would be very much appreciated.

    Thank, I read that. It still baffles me as to how to define a button and display it into the statusbar. Currently I have in a game-script:

    But no button to be seen anywhere. What am I doing wrong?

    I'm working on a simple mod to switch between 4 environment "states" when clicked (morning, noon, dusk & night).

    I have the code that defines those 4 states (https://github.com/Pentasis/pe…pts/time_of_day_cycle.lua) and right now I switch between them by changing an argument in runFn call. But obviously I'd like to be able to click a button during gameplay to toggle between them.

    I am stumped as to how to create such a button and then how (or rather where) to update the gamethread.

    Can anyone help please?