Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
Is it possible to read a text file into a hash table, and if so, what format is used? I tried saving a hash table but the format it came out in wasn't human readable in a text editor (although the key names were, the values were not).
IIRC the hash table saves out values after running them through a hashing algorithm so they are not human readable. What are you trying to accomplish so maybe we can give you some alternatives. Judging by what you asked for I would say the .ini object is a good start for you.
Develop games in your browser. Powerful, performant & highly capable.
Well, I'm trying to have a hash table that has set values by me on load. An array is not suitable for the task I'll be using it for. I can do that using the actions in the engine, but that's a bit annoying as the number of keys grow. However, it seems I'll have to do it that way
you could definitely use the ini object and then build the hash table from the data read from there.
You'll have to save and load "manually", that is, going one by one using events.