October 04, 2022, 23:16:22

Author Topic: Memblocks in AGK  (Read 2058 times)

Offline Pfaber11

  • Hero Member
  • *****
  • Posts: 974
  • Bonjour
    • Awards
Memblocks in AGK
« on: July 21, 2021, 19:48:22 »
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

Offline blinkok

  • Sr. Member
  • ****
  • Posts: 406
    • Awards
Re: Memblocks in AGK
« Reply #1 on: July 22, 2021, 01:27:36 »
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

Offline Pfaber11

  • Hero Member
  • *****
  • Posts: 974
  • Bonjour
    • Awards
Re: Memblocks in AGK
« Reply #2 on: July 22, 2021, 08:54:53 »
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

Offline Pfaber11

  • Hero Member
  • *****
  • Posts: 974
  • Bonjour
    • Awards
Re: Memblocks in AGK
« Reply #3 on: July 25, 2021, 20:21:37 »
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

Offline Pfaber11

  • Hero Member
  • *****
  • Posts: 974
  • Bonjour
    • Awards
Re: Memblocks in AGK
« Reply #4 on: July 27, 2021, 22:06:35 »
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

Offline minhashamayim

  • Jr. Member
  • **
  • Posts: 2
    • Awards
Re: Memblocks in AGK
« Reply #5 on: December 29, 2021, 11:47:44 »
Good old blink, always there to help people. Could someone share the link for the tutorial blink mentioned on memblocks? Thanks in advance.

Offline Pfaber11

  • Hero Member
  • *****
  • Posts: 974
  • Bonjour
    • Awards
Re: Memblocks in AGK
« Reply #6 on: December 30, 2021, 19:04:17 »
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

Offline Pfaber11

  • Hero Member
  • *****
  • Posts: 974
  • Bonjour
    • Awards
Re: Memblocks in AGK
« Reply #7 on: January 02, 2022, 18:44:57 »
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

 

SimplePortal 2.3.6 © 2008-2014, SimplePortal