Coder Social home page Coder Social logo

xpframework's People

Contributors

pandaro avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

xpframework's Issues

Multiplayer crash

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>

Global explorer/miner/crafter/builder values

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

Attempt to index local 'digger' (a nil value)

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>

Improve Readme.md

  • When rendered on Github, the file is being shown in only one line (you either have to use Markdown syntax or rename the file to Readme.txt for it to be rendered like text)
  • How can modders access the XP values the player has? How can a mod subtract "spent" XP?
  • Have a full example of a configuration file (either in the Readme with markdown syntax or in a separate file as an example). The current Readme alone isn't clear how the configuration file must be handled (what does "foreach node" means, for example)?

Exploration XP

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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.