Sharkly Posted June 12, 2010 Share Posted June 12, 2010 Hey Guys, I'm working on a Map Loader for the iPhone, and Mac (Don't ask questions). I don't understand the dimensions of a .map file. I understand that I can remove the two hex bytes at the end of each number (00 00), but even after removed when I convert the number to decimal (with this http://www.easycalculation.com/hex-converter.php for speed) it is a very large number, or is not divisible by 40 (units per block). I am also a little confused about the format of the beginning of the file, I assume is is as so: MAP AREA HEIGHT WIDTH 4D 41 50 20 28 1C 00 00 3C 00 00 00 3C 00 00 00 For testing I am using Level25 so please use Level25 for examples. Any Help would be greatly appreciated. Link to comment Share on other sites More sharing options...
Lair Posted June 12, 2010 Share Posted June 12, 2010 Should be under modding tools. Please refer to Cyrem for Map Hex. Link to comment Share on other sites More sharing options...
Anonymouse Posted June 12, 2010 Share Posted June 12, 2010 Should be under modding tools. Please refer to Cyrem for Map Hex. That's what he did before. Also, try checking the wiki. Not sure if it has anything useful, I'll have a look myself too. Link to comment Share on other sites More sharing options...
Sharkly Posted June 12, 2010 Author Share Posted June 12, 2010 I found this http://www.rockraidersunited.org/wiki/index.php?title=Numbers_in_Hexadecimal_Code I assume that this applies with .map files also? I am not sure you guys quite get what I am trying to do, I am trying to get the area/height/width of the map, I understand the block types and their hex. If only the Map Tool, and/or the Map Creator were open source... Link to comment Share on other sites More sharing options...
aLPHA Posted June 12, 2010 Share Posted June 12, 2010 Something you should also do is make a server/website thing so that when you sign into your account, you can view/edit your maps that you can upload via you computer. On the app, you can then sign in and it auto uploads the files. Link to comment Share on other sites More sharing options...
Sharkly Posted June 13, 2010 Author Share Posted June 13, 2010 Yeah, I have some cool stuff planed, once I get the map loader working. Link to comment Share on other sites More sharing options...
Sharkly Posted June 13, 2010 Author Share Posted June 13, 2010 Bump. Sorry, but I really need help with this. Link to comment Share on other sites More sharing options...
bartvbl Posted June 13, 2010 Share Posted June 13, 2010 what is it for? There might be better solutions than the rock raider .map files, depending on what you want to use it for. Link to comment Share on other sites More sharing options...
Anonymouse Posted June 13, 2010 Share Posted June 13, 2010 What I would do in your position: Take Level25 file. Make sure you know the offset of the position. Get the hex string. Get the level size (Map Creator). Compare. Repeat for another level, see if you see a pattern. Now I would've done this myself but I don't have access to the files right now. Link to comment Share on other sites More sharing options...
Sharkly Posted June 13, 2010 Author Share Posted June 13, 2010 Thanks to Anonymouse, and Ogun I have resolved my issue, and can continue with my work. *claps* Link to comment Share on other sites More sharing options...
Sharkly Posted June 15, 2010 Author Share Posted June 15, 2010 I have run into a new problem, I you have any ideas contact me. Link to comment Share on other sites More sharing options...
Anonymouse Posted June 15, 2010 Share Posted June 15, 2010 I you have any ideas contact me. Uuhhh, no, post here. Also, that yellow signature is helluv annoying... Link to comment Share on other sites More sharing options...
Sharkly Posted June 15, 2010 Author Share Posted June 15, 2010 Also, that yellow signature is helluv annoying... Too bad. Also, I resolved this problem, my map loader is working perfectly. Link to comment Share on other sites More sharing options...
Recommended Posts