Beiträge von yamasemi

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


    In order to play the approaching train sound in the station addition module, I was able to detect the approach of a train using handleEvent in game_script. All that's left now is to play the sound, but does anyone know how to play a sound effect when an event is triggered with handleEvent?

    I don't know how to link it with sound_set.

    Or is there a different way to do this?

    I tried using comp.GameUI:playSoundEffect(name) in guiHandleEvent, but I got an error and it didn't work.

    Thank you in advance.

    I would like to create a station mod that, when you select a station, select 🔧Settings, and select a station module from the module list, will retrieve the name of the line that connects to the terminal on the station sign and display it in the labelText.


    So first, when the station setting screen was closed with guiHandleEvent() in game_script, I obtained the station group ID and sent it to handleEvent() using sendScriptEvent(), which then used api.engine to obtain the line name and terminal.

    First, I tried to send the obtained line name to updateFn in ****.module, but I'm stuck here.


    I've read the official wiki over and over again, and have tried using global variables while asking chatGpt, and sending it with sendScriptEvent(), but it's not received by updateFn.

    If anyone knows how to do this, please let me know.

    Or is it just not possible to do that? Thank you in advance.