Memblocks in AGK

Started by Pfaber11, July 21, 2021, 19:48:22

Previous topic - Next topic

Pfaber11

At the moment I know nothing about memblocks but am going to find out over the next week or two what they are and what you can do with them. I do not own any books on how to use AGK and am going to acquire my knowledge from the internet and the documentation in Studio. I have seen the term bounced around in talks but never Knew what they were on about so I'm gonna make it my business to find out . If anybody has any knowledge to share then that would be great . Bonjour , over and out. 
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen. Windows 11 home edition .  2Tb external hard drive dedicated to Linux Mint .
  PureBasic 6 and AppGameKit studio
ASUS Vivo book 15 16gb ram 256gb storage  cpu upto 4.1 ghz

blinkok

I think what you are after is fairly straight forward;
1) To encode files follow the tutorial i posted before (Use a .PNG file)
2) To decode and use files;
    2.1) Use the decode method described in the tutorial
    2.2) Replace CreateFileFromMemBlock() with CreateImageFromPNGMemblock()
For sound use CreateSoundFromOGGMemblock

3D models may be a bit more tricky but first i think you should have a go a .PNG's and .OGG's

Pfaber11

Yes indeed thankyou for your time . I'm onto it .
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen. Windows 11 home edition .  2Tb external hard drive dedicated to Linux Mint .
  PureBasic 6 and AppGameKit studio
ASUS Vivo book 15 16gb ram 256gb storage  cpu upto 4.1 ghz

Pfaber11

Been too busy so haven't put much time into it but kind of understand how they work . A bit like an array if I'm correct . Another thing I know little about . Never used either but that's about to change I hope . Been working hard on my latest game the last few days and in the last few hours it has all come together . Whenever I think I'm on top of it all it all goes to shit but I have reached a save point and all is good . And yes Adam I am brilliant just like my games . Bonjour .
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen. Windows 11 home edition .  2Tb external hard drive dedicated to Linux Mint .
  PureBasic 6 and AppGameKit studio
ASUS Vivo book 15 16gb ram 256gb storage  cpu upto 4.1 ghz

Pfaber11

Was taking a look through the Studio user manual and stumbled across code folding . Seems very useful and have dramatically tidied up my program. Not sure if this is available on classic and can't be bothered to install it and find out. I was looking for memblock stuff and although didn't find exactly what I was looking for I did learn something new .
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen. Windows 11 home edition .  2Tb external hard drive dedicated to Linux Mint .
  PureBasic 6 and AppGameKit studio
ASUS Vivo book 15 16gb ram 256gb storage  cpu upto 4.1 ghz

minhashamayim

Good old blink, always there to help people. Could someone share the link for the tutorial blink mentioned on memblocks? Thanks in advance.

Pfaber11

Thanks Blinkok I now know how to make and use a memblock . For a sound anyway .
What I would like to know is why I would want to do this .
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen. Windows 11 home edition .  2Tb external hard drive dedicated to Linux Mint .
  PureBasic 6 and AppGameKit studio
ASUS Vivo book 15 16gb ram 256gb storage  cpu upto 4.1 ghz

Pfaber11

Got my memblocks down now and not too difficult .  My only thing is I can't think of a situation in that I may use them but I should imagine the knowledge will come in handy at some point in the future.
HP 15s i3 1.2 upto 3.4 ghz 128 gb ssd 16 gb ram 15.6 inch screen. Windows 11 home edition .  2Tb external hard drive dedicated to Linux Mint .
  PureBasic 6 and AppGameKit studio
ASUS Vivo book 15 16gb ram 256gb storage  cpu upto 4.1 ghz