Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Saving Arrays and Loading Arrays

Author
Message
Duffer
22
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 30th Jun 2017 20:32
Sure I read somewhere there were direct commands for this now (hopefully Arrays of UDTs?)? Can't seem to find this?
a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
GameDevGuy
9
Years of Service
User Offline
Joined: 18th Jul 2015
Location:
Posted: 30th Jun 2017 22:52
Saving and Loading arrays is on the Roadmap, but unless I blinked at the wrong time, I don't think they are arrived.

https://www.thegamecreators.com/post/appgamekit-development-road-map
fubarpk
Retired Moderator
20
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 1st Jul 2017 08:02 Edited at: 1st Jul 2017 08:19
Easy enough done here's an example of a one dimensional array saving and loading easy enuff to convert to multiple arrays strings numbers etc its untested I just thought you may or may not find it handy



The trick is just to save the dimensions of the array first these both could be turned into functions that deal with multidimensional arrays aswell easy enuff
fubar
hendron
9
Years of Service
User Offline
Joined: 20th Dec 2015
Location:
Posted: 1st Jul 2017 19:25 Edited at: 1st Jul 2017 19:41
Arrays of UDT's are a bit more long winded, but not bad. Maybe some people will find this snippet helpful with that. Of course, if there is a better/faster way to do it, I'd be happy to know!

Login to post a reply

Server time is: 2025-06-01 23:24:24
Your offset time is: 2025-06-01 23:24:24