Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
866
First Language
German
Primarily Uses
Purpose

Be a simple utility module that can be used to read from and write to the Game.ini file.

Prerequisites

None

Terms of Use

Free to use for both commercial and non-commercial games. Please give credit.

How to Use

Place above all scripts that should take use of it.

Check the presence of the script like this:

if(($imported ||= {})[:iavra_ini_access]) # use the scriptelse # do something elseendLoad/write a key in the ini file.
Code:
IAVRA::INI.load("section name", "key name", "default value")
Code:
IAVRA::INI.save("section name", "key name", "value to be saved")
FAQNone so far

Changelog

- Removed pointless Procs.

Credits

Iavra

Script

http://pastebin.com/SNdYQu2r
 
Last edited by a moderator:

Galenmereth

Retired
Veteran
Joined
May 15, 2013
Messages
2,248
Reaction score
2,161
First Language
English
Primarily Uses
N/A
May I ask why get_option and set_option are procs and not just module functions?
 

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
866
First Language
German
Primarily Uses
Because i got everything i know about the Win API from reading Fullscreen++ ^^


But yes, since the procs are never executed outside the module, there isn't really a point to them.
 

Necrofenser

Veteran
Veteran
Joined
May 2, 2013
Messages
43
Reaction score
4
First Language
Serbian
Primarily Uses
I can't download this attachment, can you please reupload it?
 

Iavra

Veteran
Veteran
Joined
Apr 9, 2015
Messages
1,797
Reaction score
866
First Language
German
Primarily Uses
Ah sorry, i don't check my threads very often and the notifications are sent to an adress i never check, either, so yeah...


I'll look into it when i come home. The script is currently not on Pastebin, but i should still have it.


/edit: I added the script to pastebin and edited the OP accordingly.
 
Last edited by a moderator:

Latest Threads

Latest Posts

Latest Profile Posts

Nearing completion of the first major city of Albert, a vacation getaway city built a long time ago by a king who really didn't want to be invaded.
It’s definitely a great day to fit in some time for me to play no mans sky on PS4
Julyon.png

First concept art of one of our main characters love interest who might turn evil depending on her decisions. Or become king of the world. Or marry her. Maybe even everything at once.
Me: *saved the game*
Also me: *exit the game afterward*
The game: "Any unsaved progress will be lost"
Me: "uh,.. alright?"
[I feel a bit sad I did this]
"WhY?...WhY dId YoU KiLl ThEm AlL?...yOu BlOoDy HeLl MoNsTeR...I'LL MAKE YOU PAY!!! FOR THE BLOOD OF THE LOST!!!" ~Scars final words before his final battle [not final boss]

Battle Theme: Blood of the Lost
Face Sprite
Forgotten Eclipse_Scar Dead+Final Battle with him.png

Forum statistics

Threads
110,269
Messages
1,051,838
Members
143,291
Latest member
FoGGick855
Top