Page 1 of 1

[Mod/Library] Progress Trees [progress_tree]

PostPosted: Sat Feb 13, 2016 00:56
by Byakuren
Progress Trees

Github: https://github.com/raymoo/progress_tree
Dependencies: None (You need default to use the demo)
License: LGPL3

This is a library to help with the creation of advancement trees, like tech or talent trees. It provides functions and methods for keeping track of player progress in a particular tree. Currently all it provides is some data structures and ways to manipulate them (Check the Github page for the API). You can see a demo of the example use by giving your self a progress_tree:test_book.

Screenshots:
+ Spoiler


I'm not yet sure if I want to include any formspec-generating things in the library, since it seems like every use would want to do it a bit differently. Is there any interest in formspec-generation, and how would you want it to work?

Re: [Mod/Library] Progress Trees [progress_trees]

PostPosted: Sat Feb 13, 2016 16:47
by DS-minetest
looks interesting

Re: [Mod/Library] Progress Trees [progress_trees]

PostPosted: Sat Feb 13, 2016 22:34
by rubenwardy
What's the license?
Looks good.

Re: [Mod/Library] Progress Trees [progress_trees]

PostPosted: Sat Feb 13, 2016 23:35
by Byakuren
rubenwardy wrote:What's the license?
Looks good.


I haven't added a license yet, but it will probably be Apache.

EDIT: Just kidding, I decided to do it under LGPL3

Re: [Mod/Library] Progress Trees [progress_trees]

PostPosted: Sun Feb 14, 2016 00:34
by rubenwardy
Please may you use LGPL 2.1 or later, so it's compatible with minetest_game/capturetheflag?

Re: [Mod/Library] Progress Trees [progress_trees]

PostPosted: Sun Feb 14, 2016 01:38
by Byakuren
rubenwardy wrote:Please may you use LGPL 2.1 or later, so it's compatible with minetest_game/capturetheflag?


Ok, done.

Re: [Mod/Library] Progress Trees [progress_tree]

PostPosted: Sun Feb 14, 2016 18:28
by prof-turbo
Can't wait to see that in capture the flag server, if it sees light one day :)

Re: [Mod/Library] Progress Trees [progress_tree]

PostPosted: Wed Feb 24, 2016 22:22
by Byakuren
I have some extensions to progress tres in artifice that include things like on_learn, can_learn callbacks, and automated formspec rendering. What do people think of it being ported back to progress_tree? It would be a separate structure, though it would contain an internal progress tree. The most difficult implementation decision at this point would probably be what to name the functions, so it doesn't cause confusion with normal progress trees.