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/

Blockman2D - Map Generator Toolkit v0.2.1.0b

All third party apps for AoS.

Re: Blockman2D - Map Generator Toolkit v0.2.0.5b

Postby matpow2 » Tue Aug 07, 2012 2:50 pm

If you want pointers for dealing with VXL save/load, have a look at this: https://code.google.com/p/pyspades/sour ... /vxl_c.cpp

The most important thing to note is that only colors for surface blocks should be saved.

Just remember that the code is under the GPL. You can use it as inspiration if you don't want to use the GPL license yourself though.
User avatar
matpow2
Site Admin
 
Posts: 47
Joined: Thu Dec 29, 2011 12:35 pm
Location: Denmark, Odense

Re: Blockman2D - Map Generator Toolkit v0.2.0.5b

Postby FaultCheck » Tue Aug 07, 2012 3:29 pm

matpow2 wrote:If you want pointers for dealing with VXL save/load, have a look at this: https://code.google.com/p/pyspades/sour ... /vxl_c.cpp

The most important thing to note is that only colors for surface blocks should be saved.

Just remember that the code is under the GPL. You can use it as inspiration if you don't want to use the GPL license yourself though.


Thanks mat^2, I've rewritten the vxl load/save like too many times to count at this point, the concept is easy enough, the difficulty seems to be making it all perfect, so it can recursivly loop through to create the positional data, So far the cpp code I find works perfectly, the issue has been converting over to vb... I keep running into issues, where it seems like the vxl files are breaking the rules... but I know i just don't have the rules quite right, like in one of the VXL I have from the pyspades package, I have a 00 60 59 60 ( 00 3D 3C 3D ) for an end span, the top color start span index ( byte 2 ) is higher then the top color end span index (byte 3).. everything I have read up on says that's not how it's supposed to be... Now I have seen several times that the vxl's from ace of spades are an "adaptation" of the vxl format from Ken, is that just refering to the size difference, or is there different logic? I may be just confusing myself by reading materials from two possibily different but similar formats... probally just grasping straws... lol

I'll tell you what, for such a simple concept of turning column data into spans, this format has proven itself a challenge lol

EDIT Your cpp code makes it look so easy, lol, what maybe twenty lines...

Code: Select all
for(z=top_color_start; z <= top_color_end; z++)                map->colors[get_pos(x, y, z)] = *color++;


in cpp, I'm assuming the * moves the pointer, the size of the variable, and your incrementing? I'm not use to the byte pointer system in cpp, it seems to be a pointer, and the data...
-----------------------------------------
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: Blockman2D - Map Generator Toolkit v0.2.0.5b

Postby Dany0 » Tue Aug 07, 2012 7:36 pm

Can you support infogulch's awesome avx format too please?

https://github.com/infogulch/pyspades-u ... ild/avx.py

btw AoS's vxl drops the objects support (you could spawn ammo/items/sprites in voxlap) and some more stuff in the header, can't recall, but it might have been some comment or something like that, just follow pyspades's importer and it should be alright.
Image
User avatar
Dany0
Member
 
Posts: 358
Joined: Mon Dec 26, 2011 7:29 pm

Re: Blockman2D - Map Generator Toolkit v0.2.0.5b

Postby FaultCheck » Tue Aug 07, 2012 7:55 pm

Dany0 wrote:Can you support infogulch's awesome avx format too please?

https://github.com/infogulch/pyspades-u ... ild/avx.py

btw AoS's vxl drops the objects support (you could spawn ammo/items/sprites in voxlap) and some more stuff in the header, can't recall, but it might have been some comment or something like that, just follow pyspades's importer and it should be alright.


Probally can, but it's in python, another language I can read, but don't really use. You don't happen to know of any other source for axl reading maybe in cpp? If not that's fine, I'm sure I can convert it by hand, it just takes time.

Sounds good, and you're right, with it being in use with the game directly, it's going to be the best bet to model the function after.
-----------------------------------------
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: Blockman2D - Map Generator Toolkit v0.2.0.5b

Postby jojoestinky » Tue Aug 07, 2012 11:36 pm

Probably can, but it's in python, another language I can read, but don't really use.


I am the same way. I can hack away at python, and python script, but as far as learning it 100%... I see it as a complete waste of time. Every script kiddie out there can do python or java, it takes some real talent to do C or assembler though.

So, the next language I am going to learn is probably C. I have already some experience in Assembler (Commodore 64), but I would much rather learn something that it a bit more human readable.

in the past I have wasted time mastering:
C-64 Basic-assembler
GWBASIC
Quick basic
Erlang
Fortran
COBOL

If i would have just started with C+ i would have been a coding god by now.
But then again, i probably would not have become an animator if i stuck to strictly coding, so maybe it is not too much of a tragedy.
User avatar
jojoestinky
[C.H] Member
 
Posts: 171
Joined: Sat Jul 21, 2012 9:26 am

Re: Blockman2D - Map Generator Toolkit v0.2.0.5b

Postby FaultCheck » Wed Aug 08, 2012 4:43 pm

jojoestinky wrote:
Probably can, but it's in python, another language I can read, but don't really use.


I am the same way. I can hack away at python, and python script, but as far as learning it 100%... I see it as a complete waste of time. Every script kiddie out there can do python or java, it takes some real talent to do C or assembler though.

So, the next language I am going to learn is probably C. I have already some experience in Assembler (Commodore 64), but I would much rather learn something that it a bit more human readable.

in the past I have wasted time mastering:
C-64 Basic-assembler
GWBASIC
Quick basic
Erlang
Fortran
COBOL


Damn, old skoool! :D I love it!

lol, that's awesome! I started on the commodore 64 back in the 80s but not assembly, basic. Learned binary and hex from hacking Game Genie Codes for the Sega Genesis, played with qBasic a bit, but then moved into vb, focused on design and graphics also, then as the internet boomed in the 90s, I really got into web protocols, html, xml, then moved into php, javascript, ajax, jquery, sql databasing, but with web standards and vb, you can do some pretty cool stuff... it's of course higher level design and programming, which I never seem to get much slack for, but people can say what they want, I can obviously dance the dance if I can work with CPP even though I never have before, but I'm starting to fully understand the full potential of the different codes, so I can see why C and CPP are very popular languages, but I'm still 4 basic, I won't be writing any top 100 games in it, but square me of in app design against any language, I can rock it :D

yeah Assembly is a beast, agreed. My opinion is this, the language is only as good as what the user can dream within it... and Assembly lacked that, It's so robotic, it leaves little to the imagination, obviously it's used everywhere, but most of the time now compilers produce the assembly, ie the higher languages. I think every level has it's place, the reason the higher languages were developed were to increase the overall reach, to incorporate more capabilities... I'm going to get slack for this I'm sure, I grew up with cpp programmer, we use to battle it out vb vs cpp all the time... but, a programmer is a programmer in my opinion. It's not what language you know, it's all about how you think.. breaking down everything into parts and pieces, like gears of a clock... the language comes second... but that's my opinion.. lol :D

My friend growing up was the only other programmer I've really known, lol, since before high school I've just been the solo computer nerd, learning and absorbing everything like an amoeba...

If i would have just started with C+ i would have been a coding god by now.
But then again, i probably would not have become an animator if i stuck to strictly coding, so maybe it is not too much of a tragedy.


I see what you mean, for a long time I've hit glass ceilings in vb... and then I ponder how is it possible to write games in this language, refresh rate sucks, no way I could get a playable fps.. lol... cpp is where it's at for streamlining the full process, taking control of every component and include... cut the fat... I'm using this experience as a whole to help me in that direction also, it's time to pick up cpp, actually through php, cpp is very familiar already to me... php uses almost the exact same syntax for 90% of everything, with a few extra cpp operators to learn, it probally won't be too difficult to pick up. The hard part is the binary level operations, which are very popular in c, they are just not hardly used for anything else these days, except for stream line client->server cpp or proprietary formats... which are still where it's at so it seems lol, at least if you want to learn gaming as opposed to just apps.
-----------------------------------------
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: Blockman2D - Map Generator Toolkit v0.1.4.5b

Postby IvanC » Thu Aug 09, 2012 7:46 am

FaultCheck wrote:So it's just freezing up on you? Are you getting an error dialog? I apologize for the issues, it's developed on Windows 7, so two major versions off from xp, but please paste any error details on this post, and I will get issues taken care of as soon as possible, a lot of the issues belong to 3rd party framework problems, which I don't expeirence, and never see coming, so your error information will actually allow me to see the errors I can't produce, so reporting issues really helps me with visibility of the issues across the different systems.


Without any error dialog, just not open. Moreover, the process in Task Manager is visible. And consumes 30 MB of RAM.
IvanC
Member
 
Posts: 9
Joined: Mon Apr 23, 2012 1:57 pm

Re: Blockman2D - Map Generator Toolkit v0.1.4.5b

Postby FaultCheck » Thu Aug 09, 2012 4:13 pm

IvanC wrote:
FaultCheck wrote:So it's just freezing up on you? Are you getting an error dialog? I apologize for the issues, it's developed on Windows 7, so two major versions off from xp, but please paste any error details on this post, and I will get issues taken care of as soon as possible, a lot of the issues belong to 3rd party framework problems, which I don't expeirence, and never see coming, so your error information will actually allow me to see the errors I can't produce, so reporting issues really helps me with visibility of the issues across the different systems.


Without any error dialog, just not open. Moreover, the process in Task Manager is visible. And consumes 30 MB of RAM.


You may want to try using the .NET Framework Clean-Up tool, this will remove the framework completely, then reinstall the .NET 4 Client Framework.

You can find the .NET Framework Cleaner Here -
http://blogs.msdn.com/b/astebner/archive/2008/08/28/8904493.aspx

Then download and reinstall framework from here -
http://www.microsoft.com/en-us/download/details.aspx?id=17718

I'm sorry for the issues, unfortunatly the .NET Framework can be a bit of a pain on some PCs, and unfortunatly it's not usually something I can help. In some cases the issues are in the code, but for the majority of issues like this, it's the framework itself is failing, and not the actual application.

Try the above steps, and if that doesn't work let me know, I will continue to try to help get you up and running any way I can.
-----------------------------------------
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: Blockman2D - Map Generator Toolkit v0.2.1.0b

Postby jojoestinky » Fri Aug 10, 2012 6:27 am

Your CLI VXL cleaner is AWESOME! Very much appreciated! thank you very much for this!
User avatar
jojoestinky
[C.H] Member
 
Posts: 171
Joined: Sat Jul 21, 2012 9:26 am

Re: Blockman2D - Map Generator Toolkit v0.2.1.0b

Postby FaultCheck » Fri Aug 10, 2012 3:51 pm

jojoestinky wrote:Your CLI VXL cleaner is AWESOME! Very much appreciated! thank you very much for this!


So it did work for you jojoe? freaking awesome! :D
-----------------------------------------
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: Blockman2D - Map Generator Toolkit v0.1.4.5b

Postby IvanC » Fri Aug 10, 2012 8:36 pm

FaultCheck wrote:You may want to try using the .NET Framework Clean-Up tool, this will remove the framework completely, then reinstall the .NET 4 Client Framework.
Try the above steps, and if that doesn't work let me know, I will continue to try to help get you up and running any way I can.

It did not help.
IvanC
Member
 
Posts: 9
Joined: Mon Apr 23, 2012 1:57 pm

Re: Blockman2D - Map Generator Toolkit v0.1.4.5b

Postby FaultCheck » Fri Aug 10, 2012 9:11 pm

IvanC wrote:
FaultCheck wrote:You may want to try using the .NET Framework Clean-Up tool, this will remove the framework completely, then reinstall the .NET 4 Client Framework.
Try the above steps, and if that doesn't work let me know, I will continue to try to help get you up and running any way I can.

It did not help.


k, Next try this -

Reliability Update 1 for the .NET Framework 4
http://go.microsoft.com/fwlink/?LinkID=219467
-----------------------------------------
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: Blockman2D - Map Generator Toolkit v0.2.1.0b

Postby JoeCoolAce » Sat Aug 11, 2012 12:11 am

BlockMan is nice new program :-)

i just play a bit with it, and maybe i just didn't find out how to do this ...

how can i paint the map with the height color, for fast testing of the map i coud be really useful !

:o)
JoeCoolAce
Member
 
Posts: 4
Joined: Fri Jul 13, 2012 12:47 am

Re: Blockman2D - Map Generator Toolkit v0.2.1.0b

Postby FaultCheck » Sat Aug 11, 2012 4:45 pm

JoeCoolAce wrote:BlockMan is nice new program :-)

i just play a bit with it, and maybe i just didn't find out how to do this ...

how can i paint the map with the height color, for fast testing of the map i coud be really useful !

:o)


Thanks!

Use the Height Map Painter, You can select existing heights/colors from the spectrum, or use the brush max height slider to determine height of the brush. The tolerance will make your brush a plataeu, or a inclined hill. Adjust to however you like. Use the round or square brush to draw on the canvas.

You can check out the help video area, and watch the height map vid, it may give you an insight.

http://www.youtube.com/watch?v=ksks1drgI3Q

I'm working out a good way to allow direct testing, keep checking back for future updates :D
-----------------------------------------
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: Blockman2D - Map Generator Toolkit v0.1.4.5b

Postby IvanC » Sat Aug 11, 2012 6:45 pm

FaultCheck wrote:Reliability Update 1 for the .NET Framework 4
http://go.microsoft.com/fwlink/?LinkID=219467


And this is not helping. Obviously I do the same will have to upgrade to Windows 7.
IvanC
Member
 
Posts: 9
Joined: Mon Apr 23, 2012 1:57 pm

PreviousNext

Return to Tools/Utilities



Who is online

Users browsing this forum: No registered users and 9 guests

cron