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.

DarkBASIC Discussion / .map files?????

Author
Message
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 26th Nov 2008 17:54
ok so is there any way to use map files?????? or can dbc only use like .x maps and matrices
Dark Dragon
17
Years of Service
User Offline
Joined: 22nd Jun 2007
Location: In the ring, Kickin\' *donkeybutt*.
Posted: 26th Nov 2008 19:19
you mean to use .maps as objects?

Your signature has been erased by a mod - Please reduce it to 600x120 maximum size
steve paul thomas
16
Years of Service
User Offline
Joined: 4th Nov 2008
Location: United Kingdom
Posted: 26th Nov 2008 22:13 Edited at: 26th Nov 2008 22:16
If you mean "What files can it read?" Then see this...

http://darkbasic.thegamecreators.com/?f=features


Quote: "
DarkBASIC natively supports the following Media File Formats...
Loaders / Savers for additional formats are available from 3rd
party developers or can be written yourself"


So whilst you can use the DBC command load bitmap,"xyz.bmp",1 to load bitmaps (which DBC "knows" how to use deal with, you could actually write code in your DBC program that moves through a file of a particular type and reads it in.

If you want to learn how a particular format works then
Google is your friend.

Sorry I can't post any code, but I am still learning about file input / output myself, at the moment, but thought I would share this nugget of knowledge

I'm sure Latch, Obese87 or the other experienced coders here may be able to shed some more light on this for you
zenassem
22
Years of Service
User Offline
Joined: 10th Mar 2003
Location: Long Island, NY
Posted: 27th Nov 2008 01:17
I think the .map files he is referring to are Halo maps.

"When I look at that square... I wish FPSC noobs would stay on their side of the forums and stop polluting these boards." - Benjamin
Quirkyjim
16
Years of Service
User Offline
Joined: 18th Oct 2008
Location: At my computer
Posted: 27th Nov 2008 22:03
A great thing to look at would be Furious Pickaxe by the DarkNOOBS. t uses a textfile renamed .map that has various letters correspond to dfferent map parts.

~QJ
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 27th Nov 2008 23:31
Ok but how would i read the map file and yes i saw map files on halo but i don't think thats the only place that they r used
steve paul thomas
16
Years of Service
User Offline
Joined: 4th Nov 2008
Location: United Kingdom
Posted: 28th Nov 2008 01:24
Well ".map" is just a file extension. It simply exists to help you quickly identify what files do what.

For instance ".doc" is generally recognised as being the file extension used by Microsoft Word. However there is no reason why you could not create a program in DarkBASIC that created ".doc" files that weren't Word documents, but something entirely different. You could write it all out as strings or as something more complicated such as bytes

Back to ".map" files, well I remember that the 3D Realms Duke Nukem 3D used the file extension ".map" for files saved in the level editor (BUILD) - no doubt these files use a different format to Halo ".map" files.

Depending on how the Halo files are formatted, you may be able to read them using read string (if all the data is plain text) or something like read byte (if the file is more complex).

Since I've not personally encountered a Halo ".map" file, I couldn't tell you what their internal layout is. Hopefully through some Googling you might be able to find some documents which show the basic layout of a Halo ".map" file.
Caleb1994
16
Years of Service
User Offline
Joined: 10th Oct 2008
Location: The Internet you idiot!
Posted: 28th Nov 2008 17:57
oh ok i see thanx

Login to post a reply

Server time is: 2025-06-07 17:18:37
Your offset time is: 2025-06-07 17:18:37