I'm trying to Dune 2000 maps, but unlike TD's .bin files, it's 2 doubles for every tile. Unfortunately, you can't store a double in a byte, so it's 4 bytes. I grew up modding CnC, so when I figured out how storing stuff worked, I went with .ini files over any sort of binary format. I think I have to use some sort of "bitwise operator". It's stored in Little Endian, BTW. Would I do something along the lines of "byte2 & byte1"? Thanks in advance.
P.S. On the top bar, "Hosted Sites" is listed twice.
EDIT: I got it working, but I still want to know how you're supposed to do this in a non-interpreted langauge.
Question
ShadowDog
I'm trying to Dune 2000 maps, but unlike TD's .bin files, it's 2 doubles for every tile. Unfortunately, you can't store a double in a byte, so it's 4 bytes. I grew up modding CnC, so when I figured out how storing stuff worked, I went with .ini files over any sort of binary format. I think I have to use some sort of "bitwise operator". It's stored in Little Endian, BTW. Would I do something along the lines of "byte2 & byte1"? Thanks in advance.
P.S. On the top bar, "Hosted Sites" is listed twice.
EDIT: I got it working, but I still want to know how you're supposed to do this in a non-interpreted langauge.
Based off of the specs here: http://code.google.com/p/dune2000plusone/wiki/mapFileSpec
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now