[Mod] Simple Money [economy]

User avatar
jp
Member
 
Posts: 705
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith

[Mod] Simple Money [economy]

by jp » Mon Feb 09, 2015 21:21

This is a revised fork based on the old kotolegokot one. This mod adds commerce in Minetest.

What's different ?
  • No unnecessary functions and code cleaning.
  • Better textures / formspecs.
  • Show the money account on the right-down corner.
  • Only the two essential shops : player's shop and admin shop (unlimited stock).
How to use ?
Commands for players (requires "money" privilege) :
  • /money — gets the balance of your account
  • /money pay <account> <amount> — transfers <amount> money to <account>
Commands for administrators (requires "money_admin" privilege) :
  • /money <account> — gets balance of <account>;
  • /money set <account> <amount> — sets balance of <account> in <amount> money
  • /money inc <account> <amount> — increases <amount> money to balance of <account>
  • /money dec <account> <amount> — decreases <amount> money from balance of <account>
  • /money take <account> <amount> — takes off <amount> money from balance of <account>
Licenses : GPLv2/later for the code, WTFPL for the textures.
Depends : default
Recommends : itemframes (VanessaE's fork)

Image Image
Image

Thanks to nerzhul (nrz) for his participation...
Last edited by jp on Mon May 25, 2015 09:43, edited 4 times in total.
 

User avatar
lightonflux
Member
 
Posts: 384
Joined: Mon Nov 11, 2013 07:22
In-game: lof

Re: [Mod] Simple Money [economy]

by lightonflux » Mon Feb 09, 2015 22:19

The mod is great. Much better than some other shop systems.

It would be nice if there was an option to search for a node when you setup the shop. Just like in worldedit GUI.

Image
 

nrz
Member
 
Posts: 51
Joined: Sat Feb 07, 2015 17:16
GitHub: nerzhul
IRC: nrzkt
In-game: nrz

Re: [Mod] Simple Money [economy]

by nrz » Tue Feb 10, 2015 08:33

It works very well but we need to improve performance a little to reduce CPU usage on server. actually HUD is updated in world loop process, but we need to change it per event.

If i get time i'll look at this today
 

User avatar
Krock
Member
 
Posts: 3598
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker

Re: [Mod] Simple Money [economy]

by Krock » Tue Feb 10, 2015 19:03

Is this mod compatible with the old money mod?
Newest Win32 builds - Find a mod - All my mods
ALL YOUR DONATION ARE BELONG TO PARAMAT (Please support him and Minetest)
New DuckDuckGo !bang: !mtmod <keyword here>
 

User avatar
jp
Member
 
Posts: 705
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith

Re: [Mod] Simple Money [economy]

by jp » Tue Feb 10, 2015 19:19

Krock wrote:Is this mod compatible with the old money mod?

Yes, but be aware that the Barter shops are removed.

Also, update : performances improvement by nerzhul (nrz) and re-working of the shop interface (WIP).

Image
 

User avatar
lightonflux
Member
 
Posts: 384
Joined: Mon Nov 11, 2013 07:22
In-game: lof

Re: [Mod] Simple Money [economy]

by lightonflux » Thu Feb 19, 2015 12:32

Is it possible to change the texture when the shop is empty?

it is really annoying to open 10 shops just to see that the owner did not restock them.
 

User avatar
Vazon
Member
 
Posts: 191
Joined: Sat Aug 17, 2013 17:20
IRC: Vazon
In-game: Vazon

Re: [Mod] Simple Money [economy]

by Vazon » Tue Mar 03, 2015 20:15

There seems to be a issue, no matter what i can't get the shops to tune. I know I am doing it right because i have been using kotolegokot and Xiong's version for well over a year.
 

User avatar
jp
Member
 
Posts: 705
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith

Re: [Mod] Simple Money [economy]

by jp » Sat Mar 07, 2015 09:29

Fixed, sorry.
 

User avatar
Vazon
Member
 
Posts: 191
Joined: Sat Aug 17, 2013 17:20
IRC: Vazon
In-game: Vazon

Re: [Mod] Simple Money [economy]

by Vazon » Sat Mar 07, 2015 19:38

Thank you :)
 

Sokomine
Member
 
Posts: 2980
Joined: Sun Sep 09, 2012 17:31

Re: [Mod] Simple Money [economy]

by Sokomine » Wed Mar 18, 2015 01:24

nrz wrote:It works very well but we need to improve performance a little to reduce CPU usage on server. actually HUD is updated in world loop process, but we need to change it per event.

What has a shop system got to do with the HUD? Or why does it cause CPU usage?

lightonflux wrote:Is it possible to change the texture when the shop is empty?

Empty shops are indeed a problem of many mods. Perhaps the infotext could be extended: "Get 3 mese crystals for 2 diamonds at Sokomines shop. Only 5 left!" or "SOLD OUT" if it's empty.
A list of my mods can be found here.
 

User avatar
lightonflux
Member
 
Posts: 384
Joined: Mon Nov 11, 2013 07:22
In-game: lof

Re: [Mod] Simple Money [economy]

by lightonflux » Wed Mar 18, 2015 07:37

Is it not possible to change a nodes texture under certain conditions?
 

User avatar
jp
Member
 
Posts: 705
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith

Re: [Mod] Simple Money [economy]

by jp » Wed Mar 18, 2015 08:08

lightonflux wrote:Is it not possible to change a nodes texture under certain conditions?

It'd require to change the node with an ABM, far to be an ideal solution...
 

User avatar
lightonflux
Member
 
Posts: 384
Joined: Mon Nov 11, 2013 07:22
In-game: lof

Re: [Mod] Simple Money [economy]

by lightonflux » Wed Mar 18, 2015 08:53

So it would make sense if the engine would provide a more efficient method?
 

User avatar
jp
Member
 
Posts: 705
Joined: Wed Dec 18, 2013 09:03
GitHub: kilbith

Re: [Mod] Simple Money [economy]

by jp » Wed Mar 18, 2015 09:05

As Sokomine said, better to use an infotext for that.
 

User avatar
lightonflux
Member
 
Posts: 384
Joined: Mon Nov 11, 2013 07:22
In-game: lof

Re: [Mod] Simple Money [economy]

by lightonflux » Wed Mar 18, 2015 09:53

The problem with info texts is that you have to face the node close by. On a server with over 200 shop nodes on one spot this is very annoying. Just visit "Liberty Lands" and go in "Messias Shop"[1] or any other bigger shop (as in building).

A simple text it is definitely better than opening the shop menu, but visual indication on the node would be so much more elegant.


[1]: http://i.imgur.com/pLk8kLG.png It has several floors and is not the only shop on the server. They also have ikea.
 

Sokomine
Member
 
Posts: 2980
Joined: Sun Sep 09, 2012 17:31

Re: [Mod] Simple Money [economy]

by Sokomine » Fri Mar 20, 2015 13:45

lightonflux wrote:A simple text it is definitely better than opening the shop menu, but visual indication on the node would be so much more elegant.

Who said they'd exclude each other? The infotext is for fast identification of shops that might be of intrest to the customer (or where the seller might have to refill). More details - like the exact pictures - can be shown in the formspec where the actual sale takes place.
A list of my mods can be found here.
 

User avatar
12Me21
Member
 
Posts: 826
Joined: Tue Mar 05, 2013 00:36

Re: [Mod] Simple Money [economy]

by 12Me21 » Fri Mar 20, 2015 13:56

It would be awesome if you could connect these to digilines/luacontrollers, and use them to adjust the prices.

This might cause some problems with people "hacking" other people's shops with luacontrollers, but this could probably be fixed by only letting the owner place digilines and luacontrollers near the shop.

A far better solution would be to:
-only allow the shop to connect in one spot (probably the back), and only directly to the luacontroller. no digiline wires.
-have locked luacontrollers.


OR, you could add another type of shop that can be programmed by itself, without the need for luacontrollers.
For example, you could make the shop rise the price by X dollars every time someone buys something, and drop the price Y dollars every Z minutes that someone doesn't buy something, or opens the shop, but doesn't buy anything (however that could be abused, by rapidly opening and closing the shop)
 

CWz
Member
 
Posts: 185
Joined: Tue Dec 24, 2013 17:01

Re: [Mod] Simple Money [economy]

by CWz » Mon May 25, 2015 09:25

It appears that the original repository was removed for this reason i mirrored here: https://github.com/ChaosWormz/minetest-money
 


Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 27 guests