Reading ini Files from binary resources

New releases and general discussions.

Post » Mon Dec 22, 2008 7:03 pm

could we add a way to load ini files from the binary resources?
B
5
S
2
G
4
Posts: 632
Reputation: 2,829

Post » Mon Dec 22, 2008 7:46 pm

Why do you need to?
B
2
S
2
G
4
Posts: 136
Reputation: 1,722

Post » Mon Dec 22, 2008 8:05 pm

To store levels made with his level editor so nobody messes with them.

(I had to ask too :P.) Anyway, Rich says it's doable so...
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Mon Dec 22, 2008 8:15 pm

Oh gotcha. Good idea. Would make my life easier too.
B
2
S
2
G
4
Posts: 136
Reputation: 1,722

Post » Thu Dec 25, 2008 12:12 am

I think if you were to store the contents of the INI file in an object (like the string object), you can load it into the Text edit box and save it out at runtime. than load it in and delete the file.

Simple :D

It should work, but I have not tried it for long strings...
B
2
S
1
G
4
Posts: 156
Reputation: 1,612

Post » Fri Dec 26, 2008 2:37 am

None of your crazy talk about text boxes and what not....

Your Ideas are scary....

Next thing I know youll be tellin me to store them as Private varibles in a Level Object and whatnots its Crazy talk....

lol :P
B
5
S
2
G
4
Posts: 632
Reputation: 2,829


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 4 guests