[Mod] Item frames and pedestal [github] [itemframes]

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

by jojoa1997 » Post

A bug I found making this http://forum.minetest.net/viewtopic.php ... 616#p84616 was when I exited the items were not saved. Maybe you should have it ,make an entity form each item.
Coding;
1X coding
3X debugging
12X tweaking to be just right

User avatar
Zeg9
Member
Posts: 608
Joined: Fri Sep 21, 2012 11:02
Location: France

by Zeg9 » Post

The items are saved inside the node itself, it should reappear after 5 seconds IIRC.
EDIT: fixed the abm, now it should reappear after 2 seconds. The problem was that it had 1/2 chance of happening.
Last edited by Zeg9 on Wed Apr 17, 2013 06:28, edited 1 time in total.
I made a few (a lot of?) mods for minetest: here is a list.
See also the MT-Faithful texture pack (work in progress).

User avatar
Inocudom
Member
Posts: 3121
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Post

Is this mod still being worked on? If so, would it be possible to make locked frames and frames capable of having more than one item in them?

User avatar
Zeg9
Member
Posts: 608
Joined: Fri Sep 21, 2012 11:02
Location: France

by Zeg9 » Post

Inocudom wrote:Is this mod still being worked on? If so, would it be possible to make locked frames and frames capable of having more than one item in them?
Frames are locked by default, but I may work on having more items (if I get enough motivation :/).
I made a few (a lot of?) mods for minetest: here is a list.
See also the MT-Faithful texture pack (work in progress).

User avatar
Inocudom
Member
Posts: 3121
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Post

You could make display pedestals to go along with the frames.

With some items (like the doors of the homedecor mod) the game crashes and the stack-traceback-nil-value error comes up when you try to display them in frames.

User avatar
Zeg9
Member
Posts: 608
Joined: Fri Sep 21, 2012 11:02
Location: France

by Zeg9 » Post

Inocudom wrote:You could make display pedestals to go along with the frames.

With some items (like the doors of the homedecor mod) the game crashes and the stack-traceback-nil-value error comes up when you try to display them in frames.
I like the idea of pedestals. Should items auto-rotate when placed above ?
Thanks for bug reporting. I'll try to fix it this afternoon.
Last edited by Zeg9 on Fri May 31, 2013 11:06, edited 1 time in total.
I made a few (a lot of?) mods for minetest: here is a list.
See also the MT-Faithful texture pack (work in progress).

User avatar
Inocudom
Member
Posts: 3121
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Post

They could auto-rotate on one type of pedestal and be still on another type.

User avatar
Zeg9
Member
Posts: 608
Joined: Fri Sep 21, 2012 11:02
Location: France

by Zeg9 » Post

UPDATE:
Add pedestals and use staticdata for entity
This breaks existing item frames, just take the item out and put it back.
Items are NOT lost, only the visual will show "unknown node" or similar.

Image
Last edited by Zeg9 on Fri May 31, 2013 16:53, edited 1 time in total.
I made a few (a lot of?) mods for minetest: here is a list.
See also the MT-Faithful texture pack (work in progress).

User avatar
Zeg9
Member
Posts: 608
Joined: Fri Sep 21, 2012 11:02
Location: France

by Zeg9 » Post

Hybrid Dog wrote:Are the items rotating?
Yes, they are. if you want it might be changed.
Last edited by Zeg9 on Mon Jun 03, 2013 16:33, edited 1 time in total.
I made a few (a lot of?) mods for minetest: here is a list.
See also the MT-Faithful texture pack (work in progress).

User avatar
webdesigner97
Member
Posts: 1328
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97
Location: Cologne, Germany
Contact:

by webdesigner97 » Post

When I try to put a "mahagony Closet door (homedecor) into an itemframe or pedestal, the game crashes saying:
itemframes/init.lua:125 attempt to index local 'itemstack' (a nil value)
But I like the idea of the mod! It's great!

User avatar
Zeg9
Member
Posts: 608
Joined: Fri Sep 21, 2012 11:02
Location: France

by Zeg9 » Post

webdesigner97 wrote:When I try to put a "mahagony Closet door (homedecor) into an itemframe or pedestal, the game crashes saying:
itemframes/init.lua:125 attempt to index local 'itemstack' (a nil value)
But I like the idea of the mod! It's great!
I'll try to fix this. But maybe the only way to do is to forbid placing these items (still better than crashing).
Will edit this post when done...
EDIT: done, it won't crash server anymore, but you still won't be able to place them.
EDIT2: actually the bug is in homedecor.
It should work if you add ", itemstack" after "placer" at the end of line 297 of doors_and_gates.lua:
https://github.com/VanessaE/homedecor/b ... s.lua#L297
Last edited by Zeg9 on Fri Jun 07, 2013 11:02, edited 1 time in total.
I made a few (a lot of?) mods for minetest: here is a list.
See also the MT-Faithful texture pack (work in progress).

User avatar
Inocudom
Member
Posts: 3121
Joined: Sat Sep 29, 2012 01:14
IRC: Inocudom
In-game: Inocudom

by Inocudom » Post

Zeg9 wrote:
webdesigner97 wrote:When I try to put a "mahagony Closet door (homedecor) into an itemframe or pedestal, the game crashes saying:
itemframes/init.lua:125 attempt to index local 'itemstack' (a nil value)
But I like the idea of the mod! It's great!
I'll try to fix this. But maybe the only way to do is to forbid placing these items (still better than crashing).
Will edit this post when done...
EDIT: done, it won't crash server anymore, but you still won't be able to place them.
EDIT2: actually the bug is in homedecor.
It should work if you add ", itemstack" after "placer" at the end of line 297 of doors_and_gates.lua:
https://github.com/VanessaE/homedecor/b ... s.lua#L297
The signs of the homedecor mod also cause the itemstack error. It looks like you and VanessaE will have to go through the homedecor mod and see what can be done.

User avatar
Zeg9
Member
Posts: 608
Joined: Fri Sep 21, 2012 11:02
Location: France

by Zeg9 » Post

Inocudom wrote:The signs of the homedecor mod also cause the itemstack error. It looks like you and VanessaE will have to go through the homedecor mod and see what can be done.
EDIT: It should work now (just update homedecor), thanks to VanessaE for fixing it !
Last edited by Zeg9 on Fri Jun 07, 2013 17:38, edited 1 time in total.
I made a few (a lot of?) mods for minetest: here is a list.
See also the MT-Faithful texture pack (work in progress).

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

For others in this thread, the itemstack issue in homedecor has been fixed.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
webdesigner97
Member
Posts: 1328
Joined: Mon Jul 30, 2012 19:16
GitHub: webD97
IRC: webdesigner97
In-game: webdesigner97
Location: Cologne, Germany
Contact:

by webdesigner97 » Post

VanessaE wrote:For others in this thread, the itemstack issue in homedecor has been fixed.
Great!

User avatar
lonely
Member
Posts: 58
Joined: Fri Feb 01, 2013 15:30
Location: Germany

by lonely » Post

jojoa1997 wrote:Forget creative mode. Mainly when you place an item in a frame the item is taken.
not to me
Aperture science:[url]http:forum.minetest.net/viewtopic.php?id=5917[/url]
I v'e got MineCraft now, so goodbye. You can look for me at the minecraft forum. my name there
is Portalfreaky.

User avatar
Froggy
Member
Posts: 24
Joined: Wed Jun 12, 2013 00:32

by Froggy » Post

I found a bug.

I crafted an itemframe, and put it on a wall. When I tried to put a diamond on it, it crashed the server I was on. I tested with other materials, and I had no problems. So, I crafted another itemframe and put it next to the original that caused the crash, and when I put a diamond in it, nothing out of the ordinary happened. I'm not sure if it's the itemframe, its placement, or the material placed in it that caused the crash, but all I know is that a diamond on that specific itemframe crashes the server I was on.

User avatar
Zeg9
Member
Posts: 608
Joined: Fri Sep 21, 2012 11:02
Location: France

by Zeg9 » Post

Froggy wrote:I found a bug.

I crafted an itemframe, and put it on a wall. When I tried to put a diamond on it, it crashed the server I was on. I tested with other materials, and I had no problems. So, I crafted another itemframe and put it next to the original that caused the crash, and when I put a diamond in it, nothing out of the ordinary happened. I'm not sure if it's the itemframe, its placement, or the material placed in it that caused the crash, but all I know is that a diamond on that specific itemframe crashes the server I was on.
Do you have any log (debug.txt) of what happened?
Does putting an itemframe at the exact same place cause the same crash?
I made a few (a lot of?) mods for minetest: here is a list.
See also the MT-Faithful texture pack (work in progress).

yohanes828
Member
Posts: 67
Joined: Sat Jun 01, 2013 01:05

by yohanes828 » Post

how to make a image
=_ = |p

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

You need to embed the image address in img tags
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
Chinchow
Member
Posts: 684
Joined: Tue Sep 18, 2012 21:37

by Chinchow » Post

Zeg9 is it possible to change how far the Item is from the pedestal and is it possible to stop the spinning?
Sometimes, it's harder to think up a mod than it is to create it.
Mods: Orichalcum Stonebricks Extra Chests

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

Can you make it so that just anyone (or say, someone with a given privilege) can punch these to update them, e.g. if the original owner isn't around after a /clearobjects ?
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

User avatar
CraigyDavi
Member
Posts: 582
Joined: Sat Aug 10, 2013 13:08
GitHub: davisonio
IRC: davisonio
In-game: CraigyDavi
Location: Hampshire, UK
Contact:

by CraigyDavi » Post

VanessaE wrote:Can you make it so that just anyone (or say, someone with a given privilege) can punch these to update them, e.g. if the original owner isn't around after a /clearobjects ?
That's a good idea. I'd like too see this too, on this mod, if it is still being worked on.
Last edited by CraigyDavi on Sat Nov 16, 2013 20:57, edited 1 time in total.

falsegrayburger
Member
Posts: 158
Joined: Sat Aug 03, 2013 15:16
In-game: naro

by falsegrayburger » Post

Great mod

User avatar
VanessaE
Moderator
Posts: 4655
Joined: Sun Apr 01, 2012 12:38
GitHub: VanessaE
IRC: VanessaE
In-game: VanessaE
Location: Western NC
Contact:

by VanessaE » Post

[02-15 12:41] <VE-Survival> <AspireMint> month ago i put bannana to frame, and today/yesterday i right-clicked on frame, and then put bannana to frame
[02-15 12:41] <VE-Survival> <AspireMint> so i updated this old frame

He told me of this error after the fact. The banana probably got removed due to /clearobjects at some point after the first add event. This was the resultant error in the log:

terminate called after throwing an instance of 'ServerError' what(): .../games/vanessae_game/mods/itemframes/itemframes/init.lua:69: attempt to index local 'posad' (a nil value)
stack traceback:
.../games/vanessae_game/mods/itemframes/itemframes/init.lua:69: in function 'update_item'
.../games/vanessae_game/mods/itemframes/itemframes/init.lua:124: in function 'on_rightclick'
/usr/local/share/minetest/builtin/item.lua:326: in function </usr/local/share/minetest/builtin/item.lua:319>
/home/minetest/Scripts/minetestserver-survival.sh: line 25: 10535 Aborted
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

Post Reply

Who is online

Users browsing this forum: No registered users and 69 guests