[Mod] xp_redo [1.0] [xp_redo]

BuckarooBanzay
Member
 
Posts: 293
Joined: Tue Apr 24, 2018 05:58
Location: Switzerland
GitHub: thomasrudin-mt
In-game: BuckarooBanzai

[Mod] xp_redo [1.0] [xp_redo]

by BuckarooBanzay » Thu May 17, 2018 09:00

XP Redo

Minetest mod for player experience management (xp) It adds an xp counter per player and ranks according to your xp level. The xp level, your rank and a progress bar to the next rank will show up in your hud. On every rank level up you get a award-like notification. There is also a xpgate block which, when placed under a wooden door will only allow players with a certain xp level to go through.

Previous work

Based on the works, but completely rewritten, from https://forum.minetest.net/viewtopic.php?id=3291

Downloads:
Source: https://github.com/thomasrudin-mt/xp_redo
Version 1.0: https://github.com/thomasrudin-mt/xp_redo/archive/1.0.zip

Dependencies
default
protector?
doors?
mobs_redo?
mobs_animal?
mobs_monster?
ehlphabet?

Screenshots:

Player HUD:
Image
Note: Android screenshot, ignore wrong spacing

XP Gate (checks xp level)
Image

Colored player nametag
Image

License

Code: LGPL 2.1
Textures: CC0
Last edited by BuckarooBanzay on Thu Jul 19, 2018 08:18, edited 3 times in total.
 

User avatar
Phoenixflo44
Member
 
Posts: 636
Joined: Fri Jul 28, 2017 15:01
Location: Behind my PC, in Germany
In-game: Phoenixflo44

Re: [Mod] xp_redo [1.0] [xp_redo]

by Phoenixflo44 » Thu May 17, 2018 16:32

This mod is good for a server.
+ Spoiler
 

BuckarooBanzay
Member
 
Posts: 293
Joined: Tue Apr 24, 2018 05:58
Location: Switzerland
GitHub: thomasrudin-mt
In-game: BuckarooBanzai

Re: [Mod] xp_redo [1.0] [xp_redo]

by BuckarooBanzay » Fri May 18, 2018 05:24

Yes, its intended to go with a reward/penalty system:
https://forum.minetest.net/viewtopic.php?f=9&t=20125&p=318949

You can build areas only accessible for players of certain rank/xp or above
 

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

BuckarooBanzay
Member
 
Posts: 293
Joined: Tue Apr 24, 2018 05:58
Location: Switzerland
GitHub: thomasrudin-mt
In-game: BuckarooBanzai

Re: [Mod] xp_redo [1.0] [xp_redo]

by BuckarooBanzay » Mon May 28, 2018 15:28

Sure, i forgot to mention that.

I clarified the previous work from https://forum.minetest.net/viewtopic.php?id=3291
Is it still a redo if the api is completely different?
 

User avatar
Clyde
Member
 
Posts: 110
Joined: Sat Jul 30, 2016 14:23
GitHub: acmgit
In-game: clyde

Re: [Mod] xp_redo [1.0] [xp_redo]

by Clyde » Sat Aug 03, 2019 17:01

I tested this mod on my private Server:

Code: Select all
2019-08-03 18:54:05: ACTION[Server]: master digs xp_redo:xpgate at (17,17,404)
2019-08-03 18:54:05: ACTION[Main]: Server: Shutting down
2019-08-03 18:54:05: ACTION[Main]: [Hyperloop] Store data...
2019-08-03 18:54:05: ACTION[Main]: [Hyperloop] Data stored
2019-08-03 18:54:05: ACTION[Main]: [fishing] Server shuts down. saving trophies table
2019-08-03 18:54:06: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'xp_redo' in callback node_on_dig(): ...st/.minetest/games/Civ_reload/mods/xp_redo/functions.lua:112: attempt to index local 'currentRank' (a nil value)
2019-08-03 18:54:06: ERROR[Main]: stack traceback:
2019-08-03 18:54:06: ERROR[Main]:    ...st/.minetest/games/Civ_reload/mods/xp_redo/functions.lua:112: in function 'add_xp'
2019-08-03 18:54:06: ERROR[Main]:    ...test/.minetest/games/Civ_reload/mods/xp_redo/builtin.lua:93: in function 'callback'
2019-08-03 18:54:06: ERROR[Main]:    /usr/share/minetest/builtin/game/item.lua:636: in function </usr/share/minetest/builtin/game/item.lua:543>


and another

Code: Select all
2019-08-03 18:55:38: ACTION[Server]: master places node xp_redo:protector at (18,17,405)
2019-08-03 18:55:38: ACTION[Main]: Server: Shutting down
2019-08-03 18:55:38: ACTION[Main]: [Hyperloop] Store data...
2019-08-03 18:55:38: ACTION[Main]: [Hyperloop] Data stored
2019-08-03 18:55:38: ACTION[Main]: [fishing] Server shuts down. saving trophies table
2019-08-03 18:55:38: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod '' in callback item_OnPlace(): ...st/.minetest/games/Civ_reload/mods/xp_redo/functions.lua:112: attempt to index local 'currentRank' (a nil value)
2019-08-03 18:55:38: ERROR[Main]: stack traceback:
2019-08-03 18:55:38: ERROR[Main]:    ...st/.minetest/games/Civ_reload/mods/xp_redo/functions.lua:112: in function 'add_xp'
2019-08-03 18:55:38: ERROR[Main]:    ...test/.minetest/games/Civ_reload/mods/xp_redo/builtin.lua:32: in function 'callback'
2019-08-03 18:55:38: ERROR[Main]:    /usr/share/minetest/builtin/game/item.lua:396: in function </usr/share/minetest/builtin/game/item.lua:264>


Greetings, Clyde.
 

BuckarooBanzay
Member
 
Posts: 293
Joined: Tue Apr 24, 2018 05:58
Location: Switzerland
GitHub: thomasrudin-mt
In-game: BuckarooBanzai

Re: [Mod] xp_redo [1.0] [xp_redo]

by BuckarooBanzay » Sat Aug 03, 2019 22:11

Clyde wrote:I tested this mod on my private Server:

Code: Select all
2019-08-03 18:54:05: ACTION[Server]: master digs xp_redo:xpgate at (17,17,404)
2019-08-03 18:54:05: ACTION[Main]: Server: Shutting down
2019-08-03 18:54:05: ACTION[Main]: [Hyperloop] Store data...
2019-08-03 18:54:05: ACTION[Main]: [Hyperloop] Data stored
2019-08-03 18:54:05: ACTION[Main]: [fishing] Server shuts down. saving trophies table
2019-08-03 18:54:06: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'xp_redo' in callback node_on_dig(): ...st/.minetest/games/Civ_reload/mods/xp_redo/functions.lua:112: attempt to index local 'currentRank' (a nil value)
2019-08-03 18:54:06: ERROR[Main]: stack traceback:
2019-08-03 18:54:06: ERROR[Main]:    ...st/.minetest/games/Civ_reload/mods/xp_redo/functions.lua:112: in function 'add_xp'
2019-08-03 18:54:06: ERROR[Main]:    ...test/.minetest/games/Civ_reload/mods/xp_redo/builtin.lua:93: in function 'callback'
2019-08-03 18:54:06: ERROR[Main]:    /usr/share/minetest/builtin/game/item.lua:636: in function </usr/share/minetest/builtin/game/item.lua:543>


and another

Code: Select all
2019-08-03 18:55:38: ACTION[Server]: master places node xp_redo:protector at (18,17,405)
2019-08-03 18:55:38: ACTION[Main]: Server: Shutting down
2019-08-03 18:55:38: ACTION[Main]: [Hyperloop] Store data...
2019-08-03 18:55:38: ACTION[Main]: [Hyperloop] Data stored
2019-08-03 18:55:38: ACTION[Main]: [fishing] Server shuts down. saving trophies table
2019-08-03 18:55:38: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod '' in callback item_OnPlace(): ...st/.minetest/games/Civ_reload/mods/xp_redo/functions.lua:112: attempt to index local 'currentRank' (a nil value)
2019-08-03 18:55:38: ERROR[Main]: stack traceback:
2019-08-03 18:55:38: ERROR[Main]:    ...st/.minetest/games/Civ_reload/mods/xp_redo/functions.lua:112: in function 'add_xp'
2019-08-03 18:55:38: ERROR[Main]:    ...test/.minetest/games/Civ_reload/mods/xp_redo/builtin.lua:32: in function 'callback'
2019-08-03 18:55:38: ERROR[Main]:    /usr/share/minetest/builtin/game/item.lua:396: in function </usr/share/minetest/builtin/game/item.lua:264>


Greetings, Clyde.


Hmm, that may be because i split the mod in two parts:
  • Core part (xp registrations)
  • Ranks part (textures, levels)

I'm guessing the error comes from the missing ranks.
You can choose between two rank-systems right now:

Sorry for the lack of documentation, i added and fixed a lot of stuff but haven't taken the time to document that properly... :/
 

User avatar
Clyde
Member
 
Posts: 110
Joined: Sat Jul 30, 2016 14:23
GitHub: acmgit
In-game: clyde
 


Return to Mod Releases



Who is online

Users browsing this forum: Karl der ... and 20 guests