[Mod] Awards / Achievements [3.2.0] [awards]
-
- New member
- Posts: 8
- Joined: Mon May 26, 2014 11:12
- In-game: subham
Re: [Mod] Achievements [0.4] [awards] - awards menu
pls fix this
- Evergreen
- Member
- Posts: 2135
- Joined: Sun Jan 06, 2013 01:22
- GitHub: EvergreenTheTree
- IRC: Evergreen
- In-game: Evergreen
- Location: Unlikely to come back to minetest or update my mods, see my contact info if you need anything.
- Contact:
Re: [Mod] Achievements [0.4] [awards] - awards menu
Listen, how do you expect someone to fix something if you give no information as to what is wrong. Give us some info as to what is not working.Thedarksoldier wrote:fix this its not working
- rubenwardy
- Moderator
- Posts: 7026
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: London, United Kingdom
- Contact:
Re: [Mod] Achievements [0.4] [awards] - awards menu
I can't fix anything if I do not know what is wrongThedarksoldier wrote:fix this its not working
- Does it crash?
- Copy the last 20 lines of debug.txt into this topic
- Explain what you were doing at the time
- Does it just not work, no crashes?
- Type /mods in to the chat, and look for "awards". If it is not there, then you have not installed it correctly.
- If it is there, explain what it is not doing properly.
Re: [Mod] Achievements [0.4] [awards] - awards menu
You're probably new here.Thedarksoldier wrote:fix this its not working
Please, post the console output after "Error from lua".
Also describe what isn't working in particular.
Regards!
Edit: How can I delete my message? Firefox's cache fooled me into thinking there were no answers...
- rubenwardy
- Moderator
- Posts: 7026
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: London, United Kingdom
- Contact:
0.5 Released!
0.5 Released!
License has changed to GPL 3.0 or later.- Use HUD instead of formspec
- Back port awards from Calinou's Carbone/Awards
- Remove pointlessly easy awards or make them harder
- Add API support for players receiving prizes, such as blocks and items, when unlocking awards (not currently used by any awards)

Last edited by rubenwardy on Fri Sep 26, 2014 19:57, edited 7 times in total.
- rubenwardy
- Moderator
- Posts: 7026
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: London, United Kingdom
- Contact:
Re: [Mod] Achievements [0.5] [awards] – HUD
Calinou brought it to my attention, which is why I updated it.
Re: [Mod] Achievements [0.5] [awards] – HUD
Work perfectly, thank you
Re: [Mod] Achievements [0.5] [awards] – HUD
Just an idea : a gift added in the invo on each achievement reached.
Examples :
- Dug 1.000 stones ("Miner Beginner") -> Mese Pickaxe.
- Dug 10.000 stones ("Pro Miner") -> Diamond Pickaxe.
- Dug 50.000 stones ("Legendary Miner") -> Diamond Block.
etc.
EDIT : already in the TODO, sorry.
Examples :
- Dug 1.000 stones ("Miner Beginner") -> Mese Pickaxe.
- Dug 10.000 stones ("Pro Miner") -> Diamond Pickaxe.
- Dug 50.000 stones ("Legendary Miner") -> Diamond Block.
etc.
EDIT : already in the TODO, sorry.
- rubenwardy
- Moderator
- Posts: 7026
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: London, United Kingdom
- Contact:
Re: [Mod] Achievements [0.5] [awards] – HUD
Gift support has been added in 0.5. It is called prizes. No awards give prizes ATM, but it as simple as adding this to an award definition:
prizes = {"default:stone 99"}
Giving tools is quite a good idea.
prizes = {"default:stone 99"}
Giving tools is quite a good idea.
Re: [Mod] Achievements [0.5] [awards] – HUD
Thank you for this!
I think my kids are going to love this one. I'm already plugging in prizes for them to win.
I think my kids are going to love this one. I'm already plugging in prizes for them to win.
-
- Member
- Posts: 940
- Joined: Tue Aug 05, 2014 14:09
- GitHub: MinetestForFun
- IRC: MinetestForFun
- In-game: MinetestForFun
- Location: On earth
- Contact:
Re: [Mod] Achievements [0.5] [awards] – HUD
Hi rubenwardy,
Thank you for your mod and for your work with HUD,
i meet a syntax problem with the "prizes = {"default:stone 99"}" line,
Can you give me an example for a full award ?
Can i give other prizes like :
- "prizes = {"moreblocks:super_glow_glass"}
- "prizes = {"maptools:superapple"}
- etc...
?
Thank you for your mod and for your work with HUD,
i meet a syntax problem with the "prizes = {"default:stone 99"}" line,
Can you give me an example for a full award ?
Can i give other prizes like :
- "prizes = {"moreblocks:super_glow_glass"}
- "prizes = {"maptools:superapple"}
- etc...
?
MinetestForFun Team mods : [spidermob] [fishing]
---
Our Minetest servers :
MinetestForFun (Survival - PvP - Hardcore)[FR/EN]
MinetestForFun HUNGER GAMES
MinetestForFun SKYBLOCK
MinetestForFun CREATIVE
---
Our Minetest servers :
MinetestForFun (Survival - PvP - Hardcore)[FR/EN]
MinetestForFun HUNGER GAMES
MinetestForFun SKYBLOCK
MinetestForFun CREATIVE
Re: [Mod] Achievements [0.5] [awards] – HUD
minetestforfun, don't forget the comma. I always forget the comma and have to go back after it fails to load.
For example I plugged " prizes = {"homedecor:trophy 1"}, " into the "dying spree" award. I think you can use anything you want from any mod you run, only trouble would come if you later disable a mod that had an item as a prize.
For example I plugged " prizes = {"homedecor:trophy 1"}, " into the "dying spree" award. I think you can use anything you want from any mod you run, only trouble would come if you later disable a mod that had an item as a prize.
- rubenwardy
- Moderator
- Posts: 7026
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: London, United Kingdom
- Contact:
Re: [Mod] Achievements [0.5] [awards] – HUD
You can also give multiple items
prizes = {"default:stone 99", "default:mese", "default:nyancat"},
prizes = {"default:stone 99", "default:mese", "default:nyancat"},
-
- Member
- Posts: 940
- Joined: Tue Aug 05, 2014 14:09
- GitHub: MinetestForFun
- IRC: MinetestForFun
- In-game: MinetestForFun
- Location: On earth
- Contact:
Re: [Mod] Achievements [0.5] [awards] – HUD
Thank you for your answers, i had forget one comma, my bad :/...
for prizes, Items from other mods are possible ? (maptools / moreblocks / etc ?)
for prizes, Items from other mods are possible ? (maptools / moreblocks / etc ?)
MinetestForFun Team mods : [spidermob] [fishing]
---
Our Minetest servers :
MinetestForFun (Survival - PvP - Hardcore)[FR/EN]
MinetestForFun HUNGER GAMES
MinetestForFun SKYBLOCK
MinetestForFun CREATIVE
---
Our Minetest servers :
MinetestForFun (Survival - PvP - Hardcore)[FR/EN]
MinetestForFun HUNGER GAMES
MinetestForFun SKYBLOCK
MinetestForFun CREATIVE
- rubenwardy
- Moderator
- Posts: 7026
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: London, United Kingdom
- Contact:
Re: [Mod] Achievements [0.5] [awards] – HUD
Any items can be used. It is just an item string/code.
-
- Member
- Posts: 940
- Joined: Tue Aug 05, 2014 14:09
- GitHub: MinetestForFun
- IRC: MinetestForFun
- In-game: MinetestForFun
- Location: On earth
- Contact:
Re: [Mod] Achievements [0.5] [awards] – HUD
After many try, everything work for "default" prizes, but with prizes from this mods :
- prizes = {"moreblocks:super_glow_glass 5"},
- prizes = {"maptools:superapple"}
- prizes = {"maptools:superapple 2"}
- prizes = {"maptools:superapple 10"}
- prizes = {"bucket:bucket_water"}
It doesn't work, maybe my code isn't good ? Please, can you check ?
- prizes = {"moreblocks:super_glow_glass 5"},
- prizes = {"maptools:superapple"}
- prizes = {"maptools:superapple 2"}
- prizes = {"maptools:superapple 10"}
- prizes = {"bucket:bucket_water"}
It doesn't work, maybe my code isn't good ? Please, can you check ?
MinetestForFun Team mods : [spidermob] [fishing]
---
Our Minetest servers :
MinetestForFun (Survival - PvP - Hardcore)[FR/EN]
MinetestForFun HUNGER GAMES
MinetestForFun SKYBLOCK
MinetestForFun CREATIVE
---
Our Minetest servers :
MinetestForFun (Survival - PvP - Hardcore)[FR/EN]
MinetestForFun HUNGER GAMES
MinetestForFun SKYBLOCK
MinetestForFun CREATIVE
- rubenwardy
- Moderator
- Posts: 7026
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: London, United Kingdom
- Contact:
Re: [Mod] Achievements [0.5] [awards] – HUD
It uses the code copied from /giveme to do the prices. if you can do /giveme to those items, it should work.
-
- Member
- Posts: 940
- Joined: Tue Aug 05, 2014 14:09
- GitHub: MinetestForFun
- IRC: MinetestForFun
- In-game: MinetestForFun
- Location: On earth
- Contact:
Re: [Mod] Achievements [0.5] [awards] – HUD
i can giveme this items but, it doesn't work with the mod awards...
"/giveme maptools:superapple 10" work fine...
"/giveme maptools:superapple 10" work fine...
MinetestForFun Team mods : [spidermob] [fishing]
---
Our Minetest servers :
MinetestForFun (Survival - PvP - Hardcore)[FR/EN]
MinetestForFun HUNGER GAMES
MinetestForFun SKYBLOCK
MinetestForFun CREATIVE
---
Our Minetest servers :
MinetestForFun (Survival - PvP - Hardcore)[FR/EN]
MinetestForFun HUNGER GAMES
MinetestForFun SKYBLOCK
MinetestForFun CREATIVE
-
- Member
- Posts: 1084
- Joined: Sat Apr 18, 2015 15:50
- IRC: poke
- In-game: poke
- Location: Somewhere in the Universe, on a weird planet called Earth/
Re: [Mod] Achievements [0.5] [awards] – HUD
noob
place 100000 blocks of leaf
place 100000 blocks of leaf
ARE YOU A NYAN CAT?????
--ABJ
--ABJ
-
- Member
- Posts: 252
- Joined: Tue Sep 23, 2014 16:02
- GitHub: lnjX
- IRC: LNJ
- In-game: LNJ
- Location: Europe/Berlin
Re: [Mod] Achievements [0.5] [awards] – HUD
Which license have got the textures?
Storage Drawers - The simplest item storage in Minetest
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: [Mod] Achievements [0.5] [awards] – HUD
adding it to my subgame!
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
- rubenwardy
- Moderator
- Posts: 7026
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: London, United Kingdom
- Contact:
Re: [Mod] Achievements [2.0] [awards] – nicer API
Awards 2.0 Released!
New Features- Craft trigger
- 2 new secret awards
- Add intlib support (no languages yet)
- awards.register_api
- Refactor awards.give_achievement, and rename to awards.unlock
- register_on_unlock and on_unlock
- rubenwardy
- Moderator
- Posts: 7026
- Joined: Tue Jun 12, 2012 18:11
- GitHub: rubenwardy
- IRC: rubenwardy
- In-game: rubenwardy
- Location: London, United Kingdom
- Contact:
Re: [Mod] Achievements [2.1] [awards] – nicer API
Awards 2.1.1 Released!
Bug fixes- Fix exiting of awards.unlock if a prize is unknown
- awards.run_trigger_callbacks
- awards.increment_item_counter
Example Trigger
Here is a trigger you could define in another mod:Code: Select all
awards.register_trigger("punch", function(def)
local tmp = {
award = def.name,
node = def.trigger.node,
target = def.trigger.target
}
table.insert(awards.on.punch, tmp)
end)
minetest.register_on_punchnode(function(pos, node, puncher)
if not puncher or not pos or not node or not puncher:get_player_name() or puncher:get_player_name()=="" then
return
end
local data = awards.players[puncher:get_player_name()]
-- Increment the punch counter for this node
if not awards.increment_item_counter(data, "punch", node.name) then
return
end
-- Check to see if any awards have been unlocked
awards.run_trigger_callbacks(puncher, data, "punch", function(entry)
if entry.node and entry.target then
local tnodedug = string.split(entry.node, ":")
local tmod = tnodedug[1]
local titem = tnodedug[2]
if not tmod or not titem or not data.punch[tmod] or not data.punch[tmod][titem] then
-- table running failed!
elseif data.punch[tmod][titem] > entry.target-1 then
return entry.award
end
end
end)
end)
Re: [Mod] Achievements [2.1.1] [awards] – nicer API
what about player data?
how can I see the information on the screen?
how can I see the information on the screen?