pandaro / xpframework Goto Github PK
View Code? Open in Web Editor NEWA framework to manage easy experience point inside Minetest games
License: GNU General Public License v3.0
A framework to manage easy experience point inside Minetest games
License: GNU General Public License v3.0
Whenever I have two clients connected to a server running this mod, I get:
2018-06-27 07:56:02: ERROR[Main]: ServerError: AsyncErr: Lua: finishGenRuntime error from mod 'xpframework' in callback environment_OnGenerated(): ...minetest/games/test/mods/COMMON/LIBS/hudbars/init.lua:282: attempt to index a nil value
2018-06-27 07:56:02: ERROR[Main]: stack traceback:
2018-06-27 07:56:02: ERROR[Main]: ...minetest/games/test/mods/COMMON/LIBS/hudbars/init.lua:282: in function 'change_hudbar'
2018-06-27 07:56:02: ERROR[Main]: ...t/games/test/mods/COMMON/TESTING/xpframework/init.lua:29: in function 'updHudbars'
2018-06-27 07:56:02: ERROR[Main]: ...t/games/test/mods/COMMON/TESTING/xpframework/init.lua:138: in function <...t/games/Diggers/mods/COMMON/TESTING/xpframework/init.lua:121>
2018-06-27 07:56:02: ERROR[Main]: ...inetest.app/Contents/Resources/builtin/game/register.lua:419: in function <...inetest.app/Contents/Resources/builtin/game/register.lua:399>
Would it be possible to have configuration options for setting explorer/miner/crafter/builder values instead of having to set each one per node/recipe definition? It should be easy to implement this with:
explorerxp=minetest.setting_get('xp_global_explorer')
if explorerxp then
explorerxp=tonumber(explorerxp)
end
minerxp=minetest.setting_get('xp_global_miner')
if minerxp then
minerxp=tonumber(minerxp)
end
crafterxp=minetest.setting_get('xp_global_crafter')
if crafterxp then
crafterxp=tonumber(crafterxp)
end
builderxp=minetest.setting_get('xp_global_builder')
if builderxp then
builderxp=tonumber(builderxp)
end
Then in minetest.conf
we could do something like:
xp_global_explorer=10
xp_global_miner=1
xp_global_crafter=1
xp_global_builder=1
2018-01-26 20:34:36: ACTION[Server]: singleplayer joins game. List of players: singleplayer
2018-01-26 20:34:36: ACTION[Server]: hb.register_hudbar: xp
2018-01-26 20:34:37: ERROR[Main]: ServerError: AsyncErr: ServerThread::run Lua: Runtime error from mod 'default' in callback luaentity_Step(): ...ogrammi/Giochi/minetest/bin/../mods/xpframework/init.lua:142: attempt to index local 'digger' (a nil value)
2018-01-26 20:34:37: ERROR[Main]: stack traceback:
2018-01-26 20:34:37: ERROR[Main]: ...ogrammi/Giochi/minetest/bin/../mods/xpframework/init.lua:142: in function 'callback'
2018-01-26 20:34:37: ERROR[Main]: ...rogrammi/Giochi/minetest/bin/../builtin/game/falling.lua:103: in function <...rogrammi/Giochi/minetest/bin/../builtin/game/falling.lua:53>
Hello, could you add experience points for exploring the world? It should be fairly easy by leveraging minetest.register_on_generated
since new world chunks are naturally generated while you're exploring the world map - so if you generate experience whenever register_on_generated
is called, it'll naturally happen during world exploration. Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.