Daten aus einem Mod in ein Log schreiben

Willkommen in der Transport Fever Community

Welcome to the fan community of Transport Fever and Train Fever, the economic simulators of Urban Games. The community is free for you to share and inform yourself about the game. We cultivate a friendly and objective interaction with each other and our team will be happy to answer any questions you may have.

 

Registration and use is of course free for you.

 

We wish you a lot of fun and hope for active participation.

The Team of the Transport-Fever Community

  • Variablen in Datei schreiben

    Textschnippsel um Variablen innerhalb eines Mods in eine Datei zu schreiben (z.B. zu Debug zwecken).

    Code
    1. datei = io.open("log.txt","a")
    2. datei:write(VARNAME)
    3. datei:write("\n")
    4. datei:close()

Share