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 / AGK2 - File Commands - feature request - Read/Write Memblock

Author
Message
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 8th Oct 2014 23:15
Was wondering if you could incorporate commands to write Memblocks to and read Memblocks from files (as you would strings, bytes, integers etc).?

If, as it looks, support for Sqlite3 is some way off (if at all) the above two commands would help, A LOT?

any chance?

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 12th Oct 2014 19:52
ping ?

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Naphier
14
Years of Service
User Offline
Joined: 2nd Oct 2010
Location: St Petersburg, Florida
Posted: 12th Oct 2014 19:59
We're trying to keep all of the feature requests here:
http://forum.thegamecreators.com/?m=forum_view&t=212232&b=41
That way Paul can see them all when he has time vs. scouring the forums where they'll get buried quickly.

Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 12th Oct 2014 20:20
thats in the offline docu from v2 7.1 alpha
but i don't know if they all finished.
CopyMemblock
CreateFileFromMemblock <<<
CreateImageFromMemblock
CreateMemblock
CreateMemblockFromFile <<<
CreateMemblockFromImage
CreateMemblockFromSound
CreateSoundFromMemblock
DeleteMemblock
GetMemblockByte
GetMemblockByteSigned
GetMemblockExists
GetMemblockFloat
GetMemblockInt
GetMemblockShort
GetMemblockSize
GetMemblockString
SetMemblockByte
SetMemblockByteSigned
SetMemblockFloat
SetMemblockInt
SetMemblockShort
SetMemblockString

AGK 108 (B)19 + AppGameKit V2 Alpha .. : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265 : Mac mini
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 12th Oct 2014 21:01
@ Markus - thanks - but I was envisaging being able to write and read memblocks from file i/o.

@ Naphier - apologies - I will post this, my request for Sqlite3 and for GUI at your link....

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 12th Oct 2014 21:55 Edited at: 12th Oct 2014 21:57
not this ?
CreateFileFromMemblock <<<
CreateMemblockFromFile <<<
what else you want, i not understand.
i believe u want open a file and then u want create a memblock for each chunk?
and also put chunks (blocks) in a file output?

AGK 108 (B)19 + AppGameKit V2 Alpha .. : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265 : Mac mini
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 12th Oct 2014 22:03 Edited at: 12th Oct 2014 22:07
@ Markus,

No, was envisaging multiple memblocks within a file.

So, you would be writing a number of memblocks in to a file i/o just like you would write a string with write string.

So, the commands would be Write Memblock and Read Memblock...

... hope that makes sense...

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
MikeHart
AGK Bronze Backer
21
Years of Service
User Offline
Joined: 9th Jun 2003
Location:
Posted: 12th Oct 2014 22:25
How about oyu copy your memblocks first into one that you will then export/write to a file?
Markus
Valued Member
20
Years of Service
User Offline
Joined: 10th Apr 2004
Location: Germany
Posted: 12th Oct 2014 22:26 Edited at: 12th Oct 2014 22:27
hmm,
make not sense at all, because if you write binary a memblock
the file should contain the type and length for each at read.
but something like id=ReadMemBlock(fileid,bytecount) WriteMemBlock(id,offset,bytecount,fileid) is ok.
with the current commands its possible but i understand also
if everybody get this funktions provided from agk is better.

AGK 108 (B)19 + AppGameKit V2 Alpha .. : Windows 8.1 Pro 64 Bit : AMD Radeon R7 265 : Mac mini

Login to post a reply

Server time is: 2024-11-25 09:17:38
Your offset time is: 2024-11-25 09:17:38