Data Structure: Data Trees
Displaying 1-8 of 8 total.
1
Please enter a numerical value for the importance of this sticky.
Enter 0 to unsticky.
Kildorf

Hey all.

I've written up a VergeC library that implements a tree structure. It should be easy to drop into your game if you want to use it. You can check it out here:

Click here for a sample of the tree library in action (run it and then look at v3.log)
Click here to take a look at data_trees.vc

The file has a passable explanation of how to use the library. If anyone really wants to use this and is confused by how it works, just let me know. Similarly, if you have no idea what a tree structure is, and there is enough of you who care to know, I can write up a simple explanation. I figure that I won't bother unless there's interest though.

Posted on 2007-03-11 11:57:54

Syn

Nice, the code is so well explained a non-coder could use it. You know what, we should really make a compilation file with many premade verge codes by the community. It will make things faster for newcomers to use V3.

Posted on 2007-03-12 21:48:12

Kildorf

Thanks. I try to make my code as pleasant to work with as possible whenever I release a "library" type thing like this.

And yes, I agree that it would be good to have some good code all in one place for beginners to use. That's the intention, as far as I know, behind the Sully code, but I'm not sure what's going on with Sully right now. All I know is that Grue is super-busy (his job works him like a madman).

Posted on 2007-03-13 18:55:11

zonker6666

Kildorf - very nice - i downloaded it last night and played around with it .... ill be adding the functionality for expanding and collapsing the branches and I've an idea for rewriting it as dma so that theres no 200 node limit.

Posted on 2007-03-14 00:10:59

Kildorf

Quote:Originally posted by zonker6666

Kildorf - very nice - i downloaded it last night and played around with it .... ill be adding the functionality for expanding and collapsing the branches and I've an idea for rewriting it as dma so that theres no 200 node limit.

Good stuff, Zonker. I thought about doing that myself, but I didn't really want to bother at this point. The library was built in three days - one evening for a design on paper, one evening for code, and another for documentation. I admit that the DMA stuff in Verge terrifies me, a little bit.

I'd love to see what you can make it do, though!

Posted on 2007-03-14 14:55:50

zonker6666

Well I think I'm gonna post my DMA generator -- its still got a few bugs but it will write up the code for the sets and gets destroy and constructor for a dma struct -- that is generated from a sorta-struct .....
hmmm ill upload that now --- if the site lets me lol

Posted on 2007-03-16 10:50:16

zonker6666

Kildorf u dont look like a guy that scares easily .... still i hope the generator proves useful. ;)

Posted on 2007-03-16 10:51:53

zonker6666

Here it is ... i was too lazy to do anything more than raring the project - so please dont attack me .... 9_9

http://www.verge-rpg.com/files/detail.php?id=712

Quick instructions ....

the menubar has like 6 or 7 menus in it -- all of em are named 'testbind' -- on the 4th or 5th (or 6th) menu theres an option named 'Export project' ----- use that to generate the code

all the stuff that gets loaded in at runtime (and converted)
is coming from the dmainclude folder ....

when u export project it will spit it all out to a file named output.dmavc

.... let me know what u think ;)

Posted on 2007-03-16 11:05:08


Displaying 1-8 of 8 total.
1
 
Newest messages

Ben McGraw's lovingly crafted this website from scratch for years.
It's a lot prettier this go around because of Jon Wofford.
Verge-rpg.com is a member of the lunarnet irc network, and would like to take this opportunity to remind you that regardless how babies taste, it is wrong to eat them.