Luascript config.ini Questions

  • #1, by NoComWednesday, 14. May 2014, 11:02 10 years ago
    Deutsch:

    Hallo Leute,
    ich habe mal wieder eine meiner Fragen. ^^

    Ich habe hier ein script das eine config.ini schreibt, aber ich will ja die Werte nicht nur auslesen, sondern auch auf das Spiel anwenden.
    Beim sound habe ich das mit dieser Zeile gelöst:
    setVolume(eSoundVolume, r_loudness)

    Wie mache ich das bei dem Boolean Fullscreen?

    Und kann ich diese set funktionen für solche Einstellungen irgendwo im wiki finden? (ich habe es nicht gefunden)
    MfG,
    NoCom


    PS:
    Mir ist gerade aufgefallen, dass in der konfig.ini am ende automatisch folgende wehrte gespeichert werden:
    MusicVolume = 100
    SoundVolume = 100
    SpeechVolume = 100
    ist das so gewollt oder habe ich da irgendetwas falsch gemacht?

    English:

    Hello Guys,
    i have a question. grin

    i've written a config.ini script, but it's just reading and saving the values. i want to set the gameoptions with the content of my config.ini.
    Here's a little example:
    I change the loudness by using this line:
    setVolume(eSoundVolume, r_loudness)

    How can i set the fullscreen boolean of the game?
    can i find these set options anywhere in the wiki? (i didn't find it)
    Regards,
    NoCom

    PS:
    I've noticed, that the script allways adds the following values:
    MusicVolume = 100
    SoundVolume = 100
    SpeechVolume = 100
    does this Visionair by itself or is this a mistake, caused by me?

    Newbie

    24 Posts


  • #2, by afrlmeWednesday, 14. May 2014, 13:20 10 years ago
    Check out the read/write config.ini script example I have written for the new wiki here. It covers both reading from & writing to the config.ini & how to store settings into conditions, values, variables & tables etc.

    Resolution will only be affected once the player restarts the game - pain in the arse, I know.

    Yes. The volume settings are automatically written to & read from the config.ini script (if config.ini exists) which can be easily observed if you are running a script to display volume sliders.

    If you are using Visionaire Studio 4.0 then you will have the following volume types listed in the config.ini: MusicVolume, SoundVolume, SpeechVolume, MovieVolume & GlobalVolume.

    The link I provided above should help you, but if you need any help then just let me know.

    Imperator

    7278 Posts

  • #3, by BigStansWednesday, 14. May 2014, 14:31 10 years ago
    Das die config.ini die Lautstärke speichert ist gewollt smile
    Du musst diese eigentlich nur "manipulieren".

    lg, David

    Great Poster

    361 Posts