gfxgfxFreeBASIC Games Directory Forumgfxgfx
gfx gfx
gfx
Welcome, Guest. Please login or register. May 25, 2013, 02:17:33 PM

Login with username, password and session length
11.5.2013 - Added a webpage for the latest FBGD competition.

13.3.2013 - Members registrations temporary disabled. For all membership requests, please email me: lachie13@yahoo.com

30.11.2012 - The ninth issue of BASIC Gaming is out! Read it here: http://games.freebasic.net/forum/index.php?topic=560.0

22.11.2012 - Be sure to check our currently running annual FBGD game making competition. This year's theme is SEASONS OF THE YEAR, 300 $ first place prize, and the competition runs till 18th of February. Link: http://games.freebasic.net/forum/index.php?topic=559.0
gfx
gfx
*
gfxgfx
gfxgfx gfxgfx
gfxgfx Home Help Search Login Register   gfxgfx
gfx gfx
gfx
Pages: [1]
Print
Author Topic: It's finally ready!  (Read 1306 times)
notthecheatr
Global Moderator
Forum Sage
*****
Gender: Male
Posts: 351


Who's the guy from 21 Jump Street?

notthecheatr TheMysteriousStrangerFromMars
View Profile WWW Email
« on: April 22, 2008, 01:38:34 PM »

The long-promised, and in some cases long-awaited, Game Resource Archive (GRA) system!  After much debugging, fixing, writing documentation and example programs, and general mayhem, I've finally decided I'm ready to release.  I may add some more things later, but I can't keep adding things forever - eventually I've got to release.  Lachie particularly wants me to release it so he can use it for his game.

So here it is at long last.  Full HTML documentation is included, as well as plenty of examples.  There is also something called selectable file system which should be especially helpful to game writers;  it allows you to switch between loading from a GRA and loading from the file system, so while testing you can load from the disk (making it easier to make modifications to important files on the fly) and when you're ready to release you can put everything in a GRA.  Note that you can also copy files from GRA to disk, which is helpful if you have text files in the GRA and you want to be able to use FreeBASIC's text file routines (Input #, Line Input #, etc.)  There are tons of features and the best way to find out about them is to download the whole thing.

Enjoy!  Any bug reports/suggestions/requests/comments/etc. should be posted here.

http://notthecheatr.phatcode.net/downloads/gra.zip
« Last Edit: April 22, 2008, 01:39:49 PM by notthecheatr » Logged

The funniest thing happened yesterday.
Lachie Dazdarian
Double dipper
Administrator
Forum Sage
*****
Gender: Male
Posts: 1195


lachie13
View Profile WWW Email
« Reply #1 on: April 22, 2008, 03:13:29 PM »

That's very nice, only, can I access BMP files from my GRA files without having to extract them on the disk, and how?

Then again, I can delete them right after I load them, right?

Anyway, I tested the compression and it really didn't compress the only BMP file I placed in my GRA file.
Logged

"Things like Basic and Free Basic provide much-needed therapy and a return to sanity and a correct appreciation of people. The arrogant folk really hate a word like 'Basic' - fine, and good riddance." ~ pragmatist
notthecheatr
Global Moderator
Forum Sage
*****
Gender: Male
Posts: 351


Who's the guy from 21 Jump Street?

notthecheatr TheMysteriousStrangerFromMars
View Profile WWW Email
« Reply #2 on: April 22, 2008, 04:34:17 PM »

Only if you have a BMP-loading routine.  fbpng lets you do it from memory, but if you're doing BMPs you'll have to extract to disk, load, then delete.

Yes, that's how I'd do it.

I believe that's been fixed.  Stupid bug Tongue
Logged

The funniest thing happened yesterday.
Leonheart
Guest
« Reply #3 on: April 23, 2008, 08:44:34 PM »

Nice  Wink Finally that deflate64 can be useful. Just because I'm retire from game-dev-tools for some month (d*rn crazy non-fb project with over than 10000 code lines  Tongue), I still don't forget about plan to load bmp directly from memory (and other format too like tga and gif)  Cool.
Maybe we can colaborate after it finished?  Grin

You with your "GRA" format and me with "mc˛" format with the same component?  Tongue
Logged
notthecheatr
Global Moderator
Forum Sage
*****
Gender: Male
Posts: 351


Who's the guy from 21 Jump Street?

notthecheatr TheMysteriousStrangerFromMars
View Profile WWW Email
« Reply #4 on: April 24, 2008, 09:29:44 AM »

It's certainly a possibility.  Your mc2 format was part of what inspired me to make GRA.  And of course I used your code for compression Smiley
Logged

The funniest thing happened yesterday.
Pages: [1]
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Cerberus design by Bloc
Valid XHTML 1.0! Valid CSS!
gfx
gfxgfx gfxgfx