I've used this method in the past, but I never really like storing things externally because people can edit stuff. I know it's really nothing to worry about, and if people wanna edit stuff in ini files then go ahead, but I just don't like it for some reason
I've tried encrypting ini the files but then that became a pain because sometimes files were being double or even triple encrypted/decrypted and I had to replace most of them, it just seemed a bit impractical.
I do like the ini idea though, it's extremely easy to load and organise the dialogue.
i think the answer is in the binary object? or some other object of which i cant remember its name. where you can add binary information to the end of an executable. potentially couldnt you store all your save information, text, etc at the end of the app itself?
unless you want to be able to edit the dialoge externally, or be able to have user made mods, there isnt really a reason to store it externally.
also. having fun ricky? blank avatar, no name, no rating?
Thanks cecil, I'll look into the binary object. You know, I've never really noticed it there...
It lets you append binary info to any file, so I could use it to append to the executable. Not sure if I'll have user made mods, this project is still in the embryonic stage so I'll cross that bridge if I come to it
Originally Posted by "Is there a way to store inis internally"
That's something I'm wondering how to do myself.
Just been messing around with the binary object and I think I've found a way... sorta
I used the binary object to append some text (in ini form) to the end of the app. Then I just loaded it into the binary object, then used ini ++ to load the text from the binary object and the ini data was all there. It's just as easy to save as well.
I guess that's about as close to saving ini's internally as I'm gonna get atm
Lol, I'm tempted to give Ricky an "invisible man" custom rating
INI has a limit on storage capacity, I think. Not so sure about arrays.
Store them in a text file, that's what I did with my first external game storage.
Or Lua, duh. The no 1 reason I started experimenting with it was to allow people to mod dialogue
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.
the storage limit on inis is 64 kilobytes... I can store 10 groups with 100 items each for under 15 kilobytes, size has never really been an issue with inis for me.
As I said, I prefer internal storing, is there a way to store lua files internally?
Lol, INI, text, and arrays are all as external as Lua
Yeah, with Lua, if you look at the examples, all the stuff is internal. Like an edit box. I just make it external to be cool. You can write looooong code and text, but since it's a pain to read it in that tiny box (not as much as with the expression editor, though), I use Notepad++ for code then paste it into that box.
Fine, I'll write you guys a simple article on it, because nobody seems to know how to use it. Wait 20 minutes
Edited by Muz
Disclaimer: Any sarcasm in my posts will not be mentioned as that would ruin the purpose. It is assumed that the reader is intelligent enough to tell the difference between what is sarcasm and what is not.
Using the binary object to append info on the exe? Well... I guess that works too.
It strikes me as odd that noone here mentions that Clickteam already included the option in MMF2 to store external files internally!
Use the Data Elements button and go to the Binary Data tab. When you compile your game, your external files are included in the exe. How to use the files from the Binary Data is all explained in the help files.
Originally Posted by Ricky
Originally Posted by -Julian- the storage limit on inis is 64 kilobytes...
If that's a problem, you can always alternate between 2 inis