Note: This forum is merely an archive. It is no longer possible to register or post. - StackOverflow
New Ace of Spades Forums: http://buildandshoot.com/

Please Help - VXL ( MAP ) File Format Changes

All things voxel.

Please Help - VXL ( MAP ) File Format Changes

Postby FaultCheck » Sat Jun 23, 2012 5:15 pm

So working on reading in a VXL Map, and I have been successfull with the map pinpoint, perfect!... but... it seems every other map seems to not read properly... so I'm thinking... the later maps have been written differently then the specs I have which are based off the vxlform.txt and http://silverspaceship.com/aosmap/aos_file_format.html and the original vxl format by Ken http://advsys.net/ken.. so I think some new bytes have been added, just curious if anyone may know these changes, and what kind of detection can I use to figure out the differences in the format?

I appreciate it! I was super excited when I finally got pinpoint to read properly.. so close... Any examples would be appreciated, does not have to be any particular code type, psuedo code works, just really need know the differences in map file format at the binary level between the base format that reads based on my resources, and newer maps like pinpoint2 or island.
Last edited by FaultCheck on Sun Jun 24, 2012 2:04 am, edited 1 time in total.
-----------------------------------------
FaultCheck - I'm a programor, I'm a proogramer, I write code...
Blockman2D Ace of Spades Map Generator Tools
v0.2.1.0 Released August 9th, 2012
http://blockman2d.herokuapp.com/
http://www.facebook.com/Blockman2d
User avatar
FaultCheck
Member
 
Posts: 91
Joined: Wed Jun 20, 2012 6:47 am
Location: Springfield, MO

Re: Please Help - VXL ( MAP ) File Format Changes

Postby BuffetOfLies » Sat Jun 23, 2012 7:21 pm

This sounds like a question for ben/bcoolface or mat^2 to answer.
User avatar
BuffetOfLies
Moderator
 
Posts: 213
Joined: Tue Jan 17, 2012 3:40 pm

Re: Please Help - VXL ( MAP ) File Format Changes

Postby FaultCheck » Sun Jun 24, 2012 1:18 am

BuffetOfLies wrote:This sounds like a question for ben/bcoolface or mat^2 to answer.


Maybe it's my issue, I'll keep playing with it, it's just odd how one works perfectly... and the others die dramatically while being read... hmmmm... the code is tricky....
-----------------------------------------
FaultCheck - I'm a programor, I'm a proogramer, I write code...
Blockman2D Ace of Spades Map Generator Tools
v0.2.1.0 Released August 9th, 2012
http://blockman2d.herokuapp.com/
http://www.facebook.com/Blockman2d
User avatar
FaultCheck
Member
 
Posts: 91
Joined: Wed Jun 20, 2012 6:47 am
Location: Springfield, MO

Re: Please Help - VXL ( MAP ) File Format Changes

Postby Influx » Sun Jun 24, 2012 10:07 am

Try doing the old Bridge Wars map (not the newer one with the bushes and stuff) if you can find it - it was one of the very first maps so if the format has indeed changed, that should work.

Failing that, the fact that Pinpoint works and others don't may mean trouble loading in maps with data in more than 1 z level? Try making a flat map and seeing if you can load that in as well.
User avatar
Influx
Member
 
Posts: 115
Joined: Thu Jan 12, 2012 11:05 pm
Location: Not France.

Re: Please Help - VXL ( MAP ) File Format Changes

Postby Dany0 » Sun Jun 24, 2012 11:33 am

Nice job! Can you post the source please?
Image
User avatar
Dany0
Member
 
Posts: 358
Joined: Mon Dec 26, 2011 7:29 pm

Re: Please Help - VXL ( MAP ) File Format Changes

Postby bcoolface » Sun Jun 24, 2012 12:05 pm

Hi FaultCheck, nope the format hasn't changed - same as Kens original vxl format without the extra header/filetype bytes up front. Your reader probably works only with pinpoint because there's no overhangs/layers along the Z.

Make a map with an overhang at(0,0), grab a pen and paper, and make sure the logic/math checks out as you debug/step through your reader.
hey im just trying to live my life
Image
User avatar
bcoolface
Member
 
Posts: 26
Joined: Mon Dec 12, 2011 7:48 pm
Location: under yer intel

Re: Please Help - VXL ( MAP ) File Format Changes

Postby Dany0 » Sun Jun 24, 2012 12:07 pm

You can also compare your code to pyspades:
https://code.google.com/p/pyspades/sour ... /vxl_c.cpp
Image
User avatar
Dany0
Member
 
Posts: 358
Joined: Mon Dec 26, 2011 7:29 pm

Re: Please Help - VXL ( MAP ) File Format Changes

Postby FaultCheck » Sun Jun 24, 2012 2:18 pm

EDIT: oh yeeeesss! I got it! Thanks everybody for your help, when I have time in the next day or two I will get a nice little vb example written up and post for any vb'ers in the community.

bcoolface wrote:Hi FaultCheck, nope the format hasn't changed - same as Kens original vxl format without the extra header/filetype bytes up front. Your reader probably works only with pinpoint because there's no overhangs/layers along the Z.

Make a map with an overhang at(0,0), grab a pen and paper, and make sure the logic/math checks out as you debug/step through your reader.


Thanks for taking the time to reply! Yeah I had a feeling that could be it, I just wanted to make sure that was the case the psuedo code I have reads for 5/11/2011, which seems right near game launch, so I thought maybe... something had changed... well back to the drawing board lol!

Influx wrote:Try doing the old Bridge Wars map (not the newer one with the bushes and stuff) if you can find it - it was one of the very first maps so if the format has indeed changed, that should work.

Failing that, the fact that Pinpoint works and others don't may mean trouble loading in maps with data in more than 1 z level? Try making a flat map and seeing if you can load that in as well.


Will do! Thank You good tip!

Dany0 wrote:Nice job! Can you post the source please?


Once I complete the map reading function and have it implemented, I don't see any reason why I couldn't throw it up as an extra example of the function, all the code I have found is c++, c, or psudeo script, so this would be the only vb.net example I think, cause I couldn't find one directly...

Porting it over has been a tad tricky, C has a much more intuitive byte stream / pointer system... but I almost have it, I probally have one byte messing it up...
-----------------------------------------
FaultCheck - I'm a programor, I'm a proogramer, I write code...
Blockman2D Ace of Spades Map Generator Tools
v0.2.1.0 Released August 9th, 2012
http://blockman2d.herokuapp.com/
http://www.facebook.com/Blockman2d
User avatar
FaultCheck
Member
 
Posts: 91
Joined: Wed Jun 20, 2012 6:47 am
Location: Springfield, MO

Re: Please Help - VXL ( MAP ) File Format Changes

Postby Dany0 » Sun Jun 24, 2012 7:57 pm

No I thought you'd share the whole source, but fine :/
Image
User avatar
Dany0
Member
 
Posts: 358
Joined: Mon Dec 26, 2011 7:29 pm

Re: Please Help - VXL ( MAP ) File Format Changes

Postby FaultCheck » Sun Jun 24, 2012 10:40 pm

Dany0 wrote:No I thought you'd share the whole source, but fine :/


oh, no it's closed source software at this time.
-----------------------------------------
FaultCheck - I'm a programor, I'm a proogramer, I write code...
Blockman2D Ace of Spades Map Generator Tools
v0.2.1.0 Released August 9th, 2012
http://blockman2d.herokuapp.com/
http://www.facebook.com/Blockman2d
User avatar
FaultCheck
Member
 
Posts: 91
Joined: Wed Jun 20, 2012 6:47 am
Location: Springfield, MO

Re: Please Help - VXL ( MAP ) File Format Changes

Postby Dany0 » Mon Jun 25, 2012 8:51 pm

Well, shoot :|
Image
User avatar
Dany0
Member
 
Posts: 358
Joined: Mon Dec 26, 2011 7:29 pm


Return to Mapping



Who is online

Users browsing this forum: No registered users and 3 guests

cron