[Mod] Money (or Economy) [201207] [money]

User avatar
kotolegokot
Member
 
Posts: 131
Joined: Mon Jul 02, 2012 17:03

by kotolegokot » Sat Jul 21, 2012 11:21

This is very interesting idea, but how do it?
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.
 

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

by mauvebic » Sat Jul 21, 2012 11:42

single node stores wouldn't have inventories like chests. They'd be like zip-nodes: a single node containing within 100,200, etc. of the nodetype. We could have one meta (signlike) to set the prices, and a seperate meta (not mutable) to save the remaining QTY. the QTY would be displayed in the infotext, while the prices you edit like signs.
"Fuck the hat." - Paulie Gualtieri
 

User avatar
kotolegokot
Member
 
Posts: 131
Joined: Mon Jul 02, 2012 17:03

by kotolegokot » Sat Jul 21, 2012 12:24

What will store owner do, when he want take/give the nodes from/to store?
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.
 

User avatar
Menche
Member
 
Posts: 994
Joined: Sat Jul 02, 2011 00:43

by Menche » Sat Jul 21, 2012 16:26

It crashed again, with this message:
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
23:26:25: ERROR[main]: ERROR: An unhandled exception occurred: ServerError: LuaError: error: /home/daniel/.minetest/mods/minetest/money/init.lua:64: attempt to compare string with number

It seems to crash whenever the /money command is used with a negative number.
This is the offending line:
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
elseif amount < 0 then

Is "amount" a string? I really don't understand that command definition, sorry.
Last edited by Menche on Sat Jul 21, 2012 16:31, edited 1 time in total.
An innocent kitten dies every time you top-post.
I am on the Voxelands Forums more often than here.
Try Voxelands (forked from Minetest 0.3) by darkrose
 

User avatar
kotolegokot
Member
 
Posts: 131
Joined: Mon Jul 02, 2012 17:03

by kotolegokot » Sat Jul 21, 2012 16:31

Replace
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
amount < 0

to
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
tonumber(amount) < 0

and add
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
amount = tonumber(amount)

or
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
amount = amount + 0

after
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
elseif tonumber(amount) < 0 then
    minetest.chat_send_player(name, "The amount must be greater than 0.")
    return true
end

and replace
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
(param1 and "add")

to
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
(param1 ~= "add")

I hope there are no bugs in my mod.
Last edited by kotolegokot on Sat Jul 21, 2012 16:45, edited 1 time in total.
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.
 

User avatar
Menche
Member
 
Posts: 994
Joined: Sat Jul 02, 2011 00:43

by Menche » Sat Jul 21, 2012 16:32

kotolegokot wrote:"amount" is a number. Which command do you use?

It said "attempt to compare string with number" when it crashed. It crashed when /money pay player was used with a negative number.
An innocent kitten dies every time you top-post.
I am on the Voxelands Forums more often than here.
Try Voxelands (forked from Minetest 0.3) by darkrose
 

User avatar
kotolegokot
Member
 
Posts: 131
Joined: Mon Jul 02, 2012 17:03

by kotolegokot » Sat Jul 21, 2012 16:46

See previous post or just download and setup mod again.
And thank you very much for your great help in fixing errors.
Last edited by kotolegokot on Sat Jul 21, 2012 16:54, edited 1 time in total.
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.
 

User avatar
kotolegokot
Member
 
Posts: 131
Joined: Mon Jul 02, 2012 17:03

by kotolegokot » Sun Jul 22, 2012 16:31

mauvebic, I read lua_api.txt and I know, how realize your idea!
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.
 

User avatar
kotolegokot
Member
 
Posts: 131
Joined: Mon Jul 02, 2012 17:03

by kotolegokot » Tue Jul 24, 2012 13:36

NEW BIG UPDATE! (See first post)
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.
 

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

by mauvebic » Tue Jul 24, 2012 14:42

Nice :-) glad you figured out the singlenode shops :-) Could you do the same thing but in barter? exchange nodes for nodes, instead of for money?
"Fuck the hat." - Paulie Gualtieri
 

User avatar
kotolegokot
Member
 
Posts: 131
Joined: Mon Jul 02, 2012 17:03

by kotolegokot » Tue Jul 24, 2012 15:51

Thank you! Yes, I want do it in next update.
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.
 

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

by mauvebic » Tue Jul 24, 2012 16:10

Dont thank me, your formspec gave me an idea for my linking books, ive been looking for a way to name the books and show who they belong to :-)

If you get the barter working ill include in nullspace (with your permission) :-)
Last edited by mauvebic on Tue Jul 24, 2012 16:10, edited 1 time in total.
"Fuck the hat." - Paulie Gualtieri
 

User avatar
kotolegokot
Member
 
Posts: 131
Joined: Mon Jul 02, 2012 17:03

by kotolegokot » Tue Jul 24, 2012 16:17

What is nullspace?
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.
 

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

by mauvebic » Tue Jul 24, 2012 16:20

customized game mode, with a disabled mapgen, modified and additional default mods (link here). I figure barter would come in handy on maps with extremely limited resources :-)
"Fuck the hat." - Paulie Gualtieri
 

Nubelite
Member
 
Posts: 161
Joined: Mon Jul 16, 2012 23:10

by Nubelite » Wed Jul 25, 2012 05:32

when i try to access the one node shop i get this. It opens the black square in the top left corner and that's it. any ideas?

Image
 

User avatar
kotolegokot
Member
 
Posts: 131
Joined: Mon Jul 02, 2012 17:03

by kotolegokot » Wed Jul 25, 2012 06:19

Try use last version of Minetest. And you should download money mod again. In a recent version of Minetest, locked chest is working on another.
Last edited by kotolegokot on Wed Jul 25, 2012 06:37, edited 1 time in total.
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.
 

Nubelite
Member
 
Posts: 161
Joined: Mon Jul 16, 2012 23:10

by Nubelite » Wed Jul 25, 2012 07:46

installed the latest stable release 4.1 and same result. Also using the github version of the mod link.

running ubuntu 64 bit if it helps.
 

User avatar
kotolegokot
Member
 
Posts: 131
Joined: Mon Jul 02, 2012 17:03

by kotolegokot » Wed Jul 25, 2012 07:55

I think I fix the error.
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.
 

User avatar
kotolegokot
Member
 
Posts: 131
Joined: Mon Jul 02, 2012 17:03

by kotolegokot » Wed Jul 25, 2012 14:41

Added barter shop. See first post.
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.
 

User avatar
mauvebic
Member
 
Posts: 1550
Joined: Fri Jan 27, 2012 11:32

by mauvebic » Wed Jul 25, 2012 15:30

+1
"Fuck the hat." - Paulie Gualtieri
 

User avatar
Menche
Member
 
Posts: 994
Joined: Sat Jul 02, 2011 00:43

by Menche » Thu Jul 26, 2012 04:09

Please keep older versions posted, my server uses the stable branch.
An innocent kitten dies every time you top-post.
I am on the Voxelands Forums more often than here.
Try Voxelands (forked from Minetest 0.3) by darkrose
 

Nubelite
Member
 
Posts: 161
Joined: Mon Jul 16, 2012 23:10

by Nubelite » Thu Jul 26, 2012 04:10

the update didnt help me sorry. So i decided to go a different route. I modified your original locked sign method so i can buy and sell to the same chest, where the chest can be hidden.

Download - includes modifications to the locked sign and money mod

Pictures:
Sign and chest setup
Sign Text setup
Sign Output
Sample Setup

Read me setup:
The chest has to be the 5th box below the Buy sign, and 7th box below the sell sign.

Examples:
Buy Dirt setup "Buy Dirt| B default:dirt 1 4"
shows as "Buy Dirt"
Sell Dirt setup "Sell Dirt| S default:dirt 1 2"
shows as "Sell Dirt"

How it works:
"Message shown| B/S itemname quantity price"
Message Shown = The message that the player will see when looking at the sign.
| = the symbol that splits the string up.
B/S = Enter in either B or S, B=Buy, S=Sell
Quantity = the amount of the item in the exchange
Price = the price of the item for the exchange

-------------------

hope you don't mind XD
Last edited by Nubelite on Thu Jul 26, 2012 04:12, edited 1 time in total.
 

User avatar
Menche
Member
 
Posts: 994
Joined: Sat Jul 02, 2011 00:43

by Menche » Thu Jul 26, 2012 04:38

Can you please put the old version back up? I need it for my server.
An innocent kitten dies every time you top-post.
I am on the Voxelands Forums more often than here.
Try Voxelands (forked from Minetest 0.3) by darkrose
 

User avatar
kotolegokot
Member
 
Posts: 131
Joined: Mon Jul 02, 2012 17:03

by kotolegokot » Thu Jul 26, 2012 05:33

I thought that everyone uses master branch. Now in the stable-0.4 I cannot use "button" in "formspec". I will keep older version.
Last edited by kotolegokot on Thu Jul 26, 2012 05:45, edited 1 time in total.
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.
 

User avatar
kotolegokot
Member
 
Posts: 131
Joined: Mon Jul 02, 2012 17:03

by kotolegokot » Thu Jul 26, 2012 06:21

Nubelite, this take a lot of space. Wait for the release of new stable version.
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.
 

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

by rubenwardy » Thu Jul 26, 2012 13:17

You could use Steel ingots or Gold to convert to money, so you can get paid for mining
Last edited by rubenwardy on Thu Jul 26, 2012 15:46, edited 1 time in total.
 

User avatar
kotolegokot
Member
 
Posts: 131
Joined: Mon Jul 02, 2012 17:03

by kotolegokot » Thu Jul 26, 2012 13:40

Currency is not a item.
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.
 

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

by rubenwardy » Thu Jul 26, 2012 15:46

kotolegokot wrote:Currency is not a item.


I know. I edited the post to make more sense
 

User avatar
kotolegokot
Member
 
Posts: 131
Joined: Mon Jul 02, 2012 17:03

by kotolegokot » Thu Jul 26, 2012 16:11

This mod focuses on the interaction between players. You can sell your Steel ingots and Gold to another player, so you can get paid for mining.
I'm creator of these mods: Locked sign, Locked furnace, Money. And I'm a developer of The RealTest Game.
 

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

by rubenwardy » Thu Jul 26, 2012 16:28

How is money fed into the system?
If no money is entered, the total player money will stay the same so no one can get rich without every else getting poorer.

There needs to be a money input into the system.
 

PreviousNext

Return to Mod Releases

Who is online

Users browsing this forum: No registered users and 21 guests

cron