Sign in to follow this  
  • entries
    570
  • comments
    2427
  • views
    216034

Untitled

Sign in to follow this  
Mushu

61 views

Whee! Finally finished the component set export code. Which is only like 20 lines. It helped that Gamedev is essentially down. hur hur hur.

Sample output - this



Produces -


#ComponentSet
$name=_set1.txt
#Textures
%texture=Tank1.bmp
#Components
%name=Light Chasis
%class=Chasis
%tex=42,31,40,64
%cen=62,62
%dir=62,62
%rotspeed=12
%movspeed=36
%armor=30
%weight=22
$hardpoints
%hpname=Main Turret
%hpclass=22mm
%pos=0,0
%defori=0
%minori=-120
%maxori=120




Yeah, I know its not "efficient" by any means (as compared to just serializing the classes into fixed-length binary strings or something), but its hand-edittable. And I like it like that.

Booyeah.

As a sidenote, I'm going to the land-without-internet over the weekend. Which sucks, because I'm going to lose 2-3 days in 4E5. And we all know, those first few days are crucial.

Then again, I plan on using all of this code, so perhaps I won't be that far behind. Lets just hope the elements themselves aren't too cruel to me. Superpig, if you're reading this, your cheque should be arriving any day, I swear!! Don't back out because the post is slow [sad]
Sign in to follow this  


3 Comments


Recommended Comments

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 account

Sign in

Already have an account? Sign in here.

Sign In Now