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.

Author
Message
SpaceInvader
21
Years of Service
User Offline
Joined: 5th Oct 2002
Location: United States
Posted: 9th Nov 2002 19:36
I am trying to develop an editor for a game which I am developing, to create Wing Commander: Secret Ops style fiction files. However, this will be difficult to do with sequential access files. Does DB support random access files where you can load things out of order?
Dreamora
21
Years of Service
User Offline
Joined: 20th Sep 2002
Location: Switzerland
Posted: 10th Nov 2002 12:51
no

IanM
Retired Moderator
21
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 10th Nov 2002 15:47
Yes - several ways.

1) Use 'read byte from file' and 'write byte to file'.
2) Use 'make memblock from file' to load the whole file into memory.
Dreamora
21
Years of Service
User Offline
Joined: 20th Sep 2002
Location: Switzerland
Posted: 10th Nov 2002 17:18
that isn't what he mean't!!
random means that you have datablocks within a file (in a way like arrays) and each datablock (called type) may have that many subtypes as you want!
the way you propose by byte shit is a damned creepy workaround to a problem that even the dumbest basic dialects don't have ... and database isn't supportet too!


so if you want to make something "like" random file access you have to use arrays and save/load array and you will have to hope that DB works ... i often get arrays full of "0"s although i filled it with the coords of a whole matrix ... and no, it can't become too large! have 512megs RAM!

Login to post a reply

Server time is: 2024-04-24 15:47:24
Your offset time is: 2024-04-24 15:47:24