[Mod/Library] Progress Trees [progress_tree]

Post Reply
Byakuren
Member
Posts: 818
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri
In-game: Raymoo + Clownpiece

[Mod/Library] Progress Trees [progress_tree]

by Byakuren » Post

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
The Demo:
Image
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?
Last edited by Byakuren on Sun Feb 14, 2016 01:46, edited 2 times in total.
Every time a mod API is left undocumented, a koala dies.

User avatar
Desour
Member
Posts: 1473
Joined: Thu Jun 19, 2014 19:49
GitHub: Desour
IRC: Desour
In-game: DS
Location: I'm scared that if this is too exact, I will be unable to use my keyboard.

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

by Desour » Post

looks interesting
he/him; Codeberg; GitHub; ContentDB; public personal TODO list; "DS" is preferred (but often too short)

User avatar
rubenwardy
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

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

by rubenwardy » Post

What's the license?
Looks good.
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

Byakuren
Member
Posts: 818
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri
In-game: Raymoo + Clownpiece

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

by Byakuren » Post

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
Every time a mod API is left undocumented, a koala dies.

User avatar
rubenwardy
Moderator
Posts: 6978
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
Location: Bristol, United Kingdom
Contact:

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

by rubenwardy » Post

Please may you use LGPL 2.1 or later, so it's compatible with minetest_game/capturetheflag?
Renewed Tab (my browser add-on) | Donate | Mods | Minetest Modding Book

Hello profile reader

Byakuren
Member
Posts: 818
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri
In-game: Raymoo + Clownpiece

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

by Byakuren » Post

rubenwardy wrote:Please may you use LGPL 2.1 or later, so it's compatible with minetest_game/capturetheflag?
Ok, done.
Every time a mod API is left undocumented, a koala dies.

User avatar
prof-turbo
Member
Posts: 516
Joined: Mon May 07, 2012 17:02
Location: MinetestForFun or Teeworlds master server list

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

by prof-turbo » Post

Can't wait to see that in capture the flag server, if it sees light one day :)

Byakuren
Member
Posts: 818
Joined: Tue Apr 14, 2015 01:59
GitHub: raymoo
IRC: Hijiri
In-game: Raymoo + Clownpiece

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

by Byakuren » Post

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.
Every time a mod API is left undocumented, a koala dies.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 30 guests