[Achievement] Achievement [Planing]

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Fri Feb 22, 2013 17:55

I have started it as well

https://github.com/rubenwardy/awards

mine is a lot more flexible (see readme), but it does not work yet.
Last edited by rubenwardy on Fri Feb 22, 2013 17:57, edited 1 time in total.
 

User avatar
Traxie21
Member
 
Posts: 753
Joined: Mon Dec 31, 2012 10:48

by Traxie21 » Fri Feb 22, 2013 18:00

Hmm, that does look more advanced, can't wait to see how it turns out. I'll keep working on mine, but I'm not near the coder you are.

Also, I'm not sure if mine works in multiplayer yet.

EDIT: Yes, it dosnt work per-player yet, but that will be easy to fix.
Last edited by Traxie21 on Fri Feb 22, 2013 18:02, edited 1 time in total.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Fri Feb 22, 2013 18:43

It now works. Here are its current features:

  • Works on multiplayer
  • Does amount of a node dug target
  • Flexible api, that allows a developer to give a function to the mod that is run to check if the award should be given

And the todo:

  • Add serialization of the list (ie: so the achievements are saved on server shut down)
  • Amount of a node placed target
  • Time target
 

User avatar
jojoa1997
Member
 
Posts: 2890
Joined: Thu Dec 13, 2012 05:11

by jojoa1997 » Fri Feb 22, 2013 19:06

rubenwardy wrote:It now works. Here are its current features:

  • Works on multiplayer
  • Does amount of a node dug target
  • Flexible api, that allows a developer to give a function to the mod that is run to check if the award should be given

And the todo:

  • Add serialization of the list (ie: so the achievements are saved on server shut down)
  • Amount of a node placed target
  • Time target
please put in modding general
Coding;
1X coding
3X debugging
12X tweaking to be just right
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Sat Feb 23, 2013 12:59

It has been released!

Achievements [Awards] [0.1]
 

User avatar
Traxie21
Member
 
Posts: 753
Joined: Mon Dec 31, 2012 10:48

by Traxie21 » Sat Feb 23, 2013 14:16

So now what? I got pretty far on mine, but it's essentially the same as yours in terms of features. I want to keep working on it, but I'd hate to have two of the same things released.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Sat Feb 23, 2013 14:36

Traxie21 wrote:So now what? I got pretty far on mine, but it's essentially the same as yours in terms of features. I want to keep working on it, but I'd hate to have two of the same things released.


You can do what ever you like, personally I would like to keep working on mine as well.

The choices are:

  • continue working on yours
  • continue working on yours but give it a different system to mine
  • merge ours together (if possible)
  • you help me on mine
  • I help you on yours
  • stop work on yours
  • stop work on mine
Last edited by rubenwardy on Sat Feb 23, 2013 14:47, edited 1 time in total.
 

User avatar
Traxie21
Member
 
Posts: 753
Joined: Mon Dec 31, 2012 10:48

by Traxie21 » Sat Feb 23, 2013 16:10

I'd like to help with yours, but it seems you've got it under control. You're doing a great job, keep it up :D.
My code is completely different from yours (based on the github you posted yesterday.)

I think I will keep working on mine unless you want help, but I'll try to make a formspec system instead of chat-commands.

Competition drives innovation and quality :3
I have little doubt that yours will be better though, In all honesty, I look up to you (and most everyone else who makes good mods) as examples, because my code sucks XD.
 

User avatar
Bas080
Member
 
Posts: 398
Joined: Mon May 21, 2012 15:54
GitHub: bas080
IRC: bas080
In-game: bas080

by Bas080 » Sat Feb 23, 2013 17:54

Competition drives innovation and quality :3

and (patent) wars

Traxie21, formspec is a really good idea! Will it be compatible with rubenwardy's code? (synergy is always better then competition)
 

User avatar
Traxie21
Member
 
Posts: 753
Joined: Mon Dec 31, 2012 10:48

by Traxie21 » Sat Feb 23, 2013 18:14

I don't know, havent messed much with formspec or rubens code yet.

EDIT:
Achievement unlocked: Formspec success!
https://github.com/Traxie21/achievements

Note, it still does not work for multiplayer and does not save achievements on quit.
I will add that later.

Unfortuantely, the only way to make the formspec work well was to have the achievement in the middle of the screen. To close it, just click.

The API allows custom achievements to set a custom background image/achievement icon/announcement.
Last edited by Traxie21 on Sun Feb 24, 2013 01:00, edited 1 time in total.
 

User avatar
rubenwardy
Member
 
Posts: 4500
Joined: Tue Jun 12, 2012 18:11
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy

by rubenwardy » Sun Feb 24, 2013 17:42

It would be possible.

The place to insert it would be here: https://github.com/rubenwardy/awards/blob/master/api.lua#L104

You would need to read the achievement details from

Your phone or window isn't wide enough to display the code box. If it's a phone, try rotating it to landscape mode.
Code: Select all
awards['def'][award]


and get the image variable (if defined)
 

Previous

Return to Minetest-Related

Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron