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 Profile Posts

Making test maps is really illuminating when it comes to figuring out how the real maps should be. It's like the outline that one writes for the story before writing the actual story.
I am adamant about not having missable quests, which means having to write entirely new scenes at each plot progression that takes into account that time and events have passed since the quest could first be accepted while still having there be a quest to solve in the first place. It's worth every second.
Surprisingly useful and thought provoking

Forum statistics

Threads
110,381
Messages
1,052,834
Members
143,426
Latest member
RickdiculousG
Top