How to load and read .ini files?

45 views
Skip to first unread message

Justin C.

unread,
Nov 4, 2015, 8:28:19 PM11/4/15
to HaxeFlixel

     So I want to make a simple config system, without using FlxSave. (Even though FlxSave is still an option) I know many other languages and engines allow you to read and write .ini files, and I was wondering how I could do this in HaxeFlixel. Thanks in advanced.

Jeru Sanders

unread,
Nov 4, 2015, 9:34:01 PM11/4/15
to HaxeFlixel
This is a problem because Flash and JS targets don't have access to the file system, if you plan on only developing on desktop/mobile targets then you can though using sys.FileSystem.

Justin C.

unread,
Nov 4, 2015, 9:35:21 PM11/4/15
to HaxeFlixel
I'm not using Flash as a target platform anymore, just Neko. Thanks for the advice ^)^

Jeru Sanders

unread,
Nov 5, 2015, 6:11:29 PM11/5/15
to HaxeFlixel
When I say "target platforms" I mean all targets you expect the game to be playable on. Neko isn't a platform that normal users can access so it's not really a target platform.
Neko is meant to be a weird testing server platform, it is inconsistent with other platforms and you need Neko installed to use it. (Neko is packaged with Haxe.)

Justin C.

unread,
Nov 5, 2015, 6:15:49 PM11/5/15
to HaxeFlixel
Ah I see. I didn't know that, thanks for the heads-up ^)^
Reply all
Reply to author
Forward
0 new messages