The Daily Click ::. Forums ::. Klik Coding Help ::. Dialogue store
 

Post Reply  Post Oekaki 
 

Posted By Message

-J-



Registered
  05/10/2008
Points
  228

VIP MemberThe Cake is a Lie
23rd May, 2009 at 08:28:45 -

Say my game had a fairly large dialogue. What would be the best way to store the text?

Externally/Internally?

And before you answer, Muz, I'm sorry but I've already ruled out Lua.

Thanks in advance!

 
n/a ...

Ricky

loves Left For Dead 2

Registered
  28/12/2006
Points
  4075

Has Donated, Thank You!Game of the Week WinnerVIP MemberWii OwnerHero of TimeGOTM Winner! - November 2009I am an April Fool
23rd May, 2009 at 08:32:06 -

external is always better imo, you could store them using ini ++

 
-

-J-



Registered
  05/10/2008
Points
  228

VIP MemberThe Cake is a Lie
23rd May, 2009 at 08:40:10 -

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.

Is there a way to store inis internally?

Edited by -J-

 
n/a ...

Ricky

loves Left For Dead 2

Registered
  28/12/2006
Points
  4075

Has Donated, Thank You!Game of the Week WinnerVIP MemberWii OwnerHero of TimeGOTM Winner! - November 2009I am an April Fool
23rd May, 2009 at 08:50:29 -

"Is there a way to store inis internally"

That's something I'm wondering how to do myself.

 
-

Cecilectomy

noPE

Registered
  19/03/2005
Points
  305

Has Donated, Thank You!VIP MemberWeekly Picture Me This Winner!Cardboard BoxGhostbuster!Pokemon Ball!ComputerBox RedSanta HatSnowman
I am an April Fool
23rd May, 2009 at 09:47:13 -

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?

 
n/a

-J-



Registered
  05/10/2008
Points
  228

VIP MemberThe Cake is a Lie
23rd May, 2009 at 10:12:57 -

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

 
n/a ...

-J-



Registered
  05/10/2008
Points
  228

VIP MemberThe Cake is a Lie
23rd May, 2009 at 13:03:53 -


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

Edited by -J-

 
n/a ...

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
23rd May, 2009 at 13:09:44 -

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.

Image

-J-



Registered
  05/10/2008
Points
  228

VIP MemberThe Cake is a Lie
23rd May, 2009 at 13:17:40 -

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?

Edited by -J-

 
n/a ...

Muz



Registered
  14/02/2002
Points
  6499

VIP MemberI'm on a BoatI am an April FoolHonored Admin Alumnus
23rd May, 2009 at 13:48:10 -

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.

Image

Ricky

loves Left For Dead 2

Registered
  28/12/2006
Points
  4075

Has Donated, Thank You!Game of the Week WinnerVIP MemberWii OwnerHero of TimeGOTM Winner! - November 2009I am an April Fool
23rd May, 2009 at 17:37:01 -


Originally Posted by -Julian-
the storage limit on inis is 64 kilobytes...



If that's a problem, you can always alternate between 2 inis

 
-

Hernan



Registered
  04/03/2003
Points
  707

VIP Member
24th May, 2009 at 14:55:15 -

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



Use Ini++. Unlimited size.

 
This space is for rent

-J-



Registered
  05/10/2008
Points
  228

VIP MemberThe Cake is a Lie
25th May, 2009 at 10:33:54 -

I can honestly say, I never new that existed.

It's been right there all along... O_o

 
n/a ...
   

Post Reply



 



Advertisement

Worth A Click