custom file types...

Blitz3D Forums/Blitz3D Programming/custom file types...

Erroneouss(Posted 2004) [#1]
just wondering... HOW DO YOU MAKE A CUSTOM FILE TYPE!?!?!?!?!?!??!?!?!?!?!??!?! like rif-raf's FLE has the FLE saving thing... i wanna save a single mesh (some meshes loaded in and dropped) to a "*.whatevernameicomeupwith" file... if u no what i mean... like slim shady's *.SSL (i think its that...??)...yeah....


Bot Builder(Posted 2004) [#2]
Why would you want to? You would use a custom filetype if you had an application that saves information that isn't available with other formats, or if you want to save information in a way that is easy to load into your app.

Examples of exprters for some different formats:

http://www.blitzbasic.com/codearcs/codearcs.php?code=1033
http://www.blitzbasic.com/codearcs/codearcs.php?code=866
http://www.blitzbasic.com/codearcs/codearcs.php?code=819
http://www.blitzbasic.com/codearcs/codearcs.php?code=580


wizzlefish(Posted 2004) [#3]
I've asked for this once.....still don't understand the reply I got....:)


John Pickford(Posted 2004) [#4]
You can create files with any name (and extension) you like and write anything you like into them.


N(Posted 2004) [#5]
You just write the info into the file you want.. don't know why the thought of that would confuse anyone.


Erroneouss(Posted 2004) [#6]
oh... lol that easy??? ;D
thnx!
yeah... just wanted a filetype thats interchangable in my apps... :D
...im just gunna make a function that loads it into blitz


DrakeX(Posted 2004) [#7]
yeah. as long as you read it in the same way you wrote it out, it's not that difficult.


Paul "Taiphoz"(Posted 2004) [#8]
I think what he might mean is the reading back in part.

Lets say he writes out, 2 bmps(textures) and the model they are used for. to say a file called "ship.mpk" then how does he read these back into a game.

I think.