[Mod] Bags [bags] Attach bags to your inventory to increase

fgr
Member
Posts: 87
Joined: Mon Sep 17, 2012 08:22

by fgr » Post

and a new bug???

Code: Select all

22:35:47: ERROR[main]: ========== ERROR FROM LUA ===========
22:35:47: ERROR[main]: Failed to load and run script from
22:35:47: ERROR[main]: /usr/share/minetest/games/minetest_game/mods/cornernote_bags/init.lua:
22:35:47: ERROR[main]: /usr/share/minetest/builtin/misc_register.lua:62: Name bags:small does not follow naming conventions: "modname:" or ":" prefix required
22:35:47: ERROR[main]: stack traceback:
22:35:47: ERROR[main]:  [C]: in function 'error'
22:35:47: ERROR[main]:  /usr/share/minetest/builtin/misc_register.lua:62: in function 'check_modname_prefix'
22:35:47: ERROR[main]:  /usr/share/minetest/builtin/misc_register.lua:98: in function 'register_item'
22:35:47: ERROR[main]:  /usr/share/minetest/builtin/misc_register.lua:205: in function 'register_tool'
22:35:47: ERROR[main]:  ...st/games/minetest_game/mods/cornernote_bags/init.lua:97: in main chunk
22:35:47: ERROR[main]: =======END OF ERROR FROM LUA ========
22:35:47: ERROR[main]: Server: Failed to load and run /usr/share/minetest/games/minetest_game/mods/cornernote_bags/init.lua
22:35:47: ERROR[main]: ERROR: An unhandled exception occurred: ModError: Failed to load and run /usr/share/minetest/games/minetest_game/mods/cornernote_bags/init.lua

In thread 7facb57a0740:
/build/buildd/minetestc55-0.4.3/src/main.cpp:1741: int main(int, char**): Assertion '0' failed.
Debug stacks:
DEBUG STACK FOR THREAD 7facb57a0740:
#0  int main(int, char**)
(Leftover data: #1  Dedicated server branch)
(Leftover data: #2  void ItemStack::deSerialize(std::istream&, IItemDefManager*))
Aborted (core dumped)

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

/usr/share/minetest/games/minetest_game/mods/cornernote_bags/init.lua

Firstly, don't put mods in this directory unless you absolutely have to. Secondly, change the folder name from cornernote_bags to just bags.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

cornernote
Member
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Post

VanessaE wrote:Firstly, don't put mods in this directory unless you absolutely have to.
where should they be installed to? am i missing something?

User avatar
PilzAdam
Member
Posts: 4026
Joined: Fri Jul 20, 2012 16:19
GitHub: PilzAdam
IRC: PilzAdam
Location: Germany

by PilzAdam » Post

cornernote wrote:
VanessaE wrote:Firstly, don't put mods in this directory unless you absolutely have to.
where should they be installed to? am i missing something?

Code: Select all

~/.minstest/mods/minetest/
(~ is your home directory and .minetest is a hidden folder)

fgr
Member
Posts: 87
Joined: Mon Sep 17, 2012 08:22

by fgr » Post

its about the server ... why should i install the mods in the user context dir if this should be available to all of the users?

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

Two reasons:

1. Anything, including a game server or its mods, that is being run with more than normal user-level privileges is a potential attack vector. If you run something that faces the public Internet, even if the service is considered "private", all data associated with the service, including plug-ins/add-ons should be owned by a normal user who doesn't have the ability to become the administrator, and it should run as that user if possible (with Minetest and Linux, this is of course quite trivial).

2. There are a few mods out there that need to write to or create files in their respective directories on occasion, and that can't happen if they're stored in a directory that's owned by the administrator.
You might like some of my stuff: Plantlife ~ More Trees ~ Home Decor ~ Pipeworks ~ HDX Textures (64-512px)

Dragonop
Member
Posts: 1233
Joined: Tue Oct 23, 2012 12:59
GitHub: Dragonop
IRC: Dragonop
In-game: Dragonop
Location: Argentina

by Dragonop » Post

I think the crafting whill be beter like this

Crafts


8-slot bag:
-S- <- bag:small
WWW S = default:stick
WWW W = default:wood


16-slot bag:
-S- <- bag:medium
-B- S = default:stick
-B- B = bags:small


24-slot bag:
-S- <- bag:large
-B- S = default:stick
- - - B = bags:medium

User avatar
GloopMaster
Member
Posts: 213
Joined: Wed Aug 01, 2012 18:03
Location: http://minetest.net/forum/

by GloopMaster » Post

I think it's better like this:

Small:

S
W

Medium:

S
I
W

Large:
- S -
WIW
WWW

S = Stick
I = Steel Ingot
W = White Wool
Meow.

That is all.

cornernote
Member
Posts: 844
Joined: Wed Jul 11, 2012 15:02

by cornernote » Post

I want bigger bags to cost a LOT more. Having to craft 1 big bag takes time and resources. Then you can feel good that you have a big bag while people who play less don't make one.

User avatar
RealBadAngel
Member
Posts: 557
Joined: Wed Jul 18, 2012 16:30

by RealBadAngel » Post

cornernote wrote:I want bigger bags to cost a LOT more. Having to craft 1 big bag takes time and resources. Then you can feel good that you have a big bag while people who play less don't make one.
I agree it shall cost more. But not in manner creatin all the time same items. Its annoyin just.
Use somethin more valuable and rarer than just wood.

bluerocket01
Member
Posts: 19
Joined: Tue Sep 04, 2012 21:55

by bluerocket01 » Post

how do u get the defluat texture pack?

User avatar
YoYoBuddy
Member
Posts: 247
Joined: Sun Jan 27, 2013 00:49
Location: New York City

by YoYoBuddy » Post

um i cant craft a damned bag
“People are more difficult to work with than machines. And when you break a
person, he can't be fixed."

-Rick Riordan

User avatar
Topywo
Member
Posts: 1721
Joined: Fri May 18, 2012 20:27

by Topywo » Post

YoYoBuddy wrote:um i cant craft a damned bag
Maybe this is still valid (post 3):

Edit: http://forum.minetest.net/viewtopic.php ... 912#p42912
Last edited by Topywo on Sun Feb 03, 2013 22:50, edited 1 time in total.

uday6341
New member
Posts: 3
Joined: Thu Mar 14, 2013 08:55

by uday6341 » Post

Hey dude, the mod seems to have an unsatisfied dependency which is "inventory_plus" is missing. wut i do i want this mod real bad.

User avatar
Mito551
Member
Posts: 1271
Joined: Sat Jun 16, 2012 15:03

by Mito551 » Post

uday6341 wrote:Hey dude, the mod seems to have an unsatisfied dependency which is "inventory_plus" is missing. wut i do i want this mod real bad.
http://forum.minetest.net/viewtopic.php?id=3100

User avatar
Dopium
Member
Posts: 233
Joined: Sat Jun 09, 2012 15:43
Location: Australia

by Dopium » Post

uday6341 wrote:Hey dude, the mod seems to have an unsatisfied dependency which is "inventory_plus" is missing. wut i do i want this mod real bad.
Simple, what thats saying is you dont have inventory_plus mod installed, its telling you this mod has a dependency of another mod in this case inventory_plus. All you need to do is install the inventory_plus mod and then this mod will work, if you know a bit about coding you can change the dependency but easy way is to use the inventory_plus with this mod.
Running @1.19 MHz, 128 bytes of RAM and interchangeable 4kb ROM carts!

prestidigitator
Member
Posts: 647
Joined: Thu Feb 21, 2013 23:54

by prestidigitator » Post

uday6341 wrote:Hey dude, the mod seems to have an unsatisfied dependency which is "inventory_plus" is missing. wut i do i want this mod real bad.
You can try the prestibags mod I just created too. It doesn't have any dependencies but is very simple at the moment.

User avatar
andersje
Member
Posts: 18
Joined: Wed May 01, 2013 02:16

by andersje » Post

since this is a simple mod that I've been using on my worlds, I figured I'd pick this one up.
I've forked it at https://github.com/andersje/minetest-bags -- and preliminarily replaced the wood which is necessary for small bags with wool.

=) Suggestions welcome. Prestibags does look hella cool, tho.
I don't always test my code, but when I do, I test it in production.

User avatar
Topywo
Member
Posts: 1721
Joined: Fri May 18, 2012 20:27

Re: [Mod] Bags [bags] Attach bags to your inventory to incre

by Topywo » Post

I made minimal changes in the code for making trolleys. They have 32 slots. The trolleys are crafted with a stick middle/top row and 6 large bags under it (hoarders must pay a price).

I also tried to make the trolley texture in line with Tonyka's textures of the small, medium and large bag.

The changes and additions gain the same License as this mod. All credits for Cornernote and Tonyka.

Screenshot:

Image


Download link:
https://dl.dropboxusercontent.com/u/654 ... olley).zip


Edit: New Downloadlink:
https://www.dropbox.com/s/32gx5tbnxsway ... 9.zip?dl=0

+
andersje wrote:I've accepted your pull request, and altered line 35 to read:

.."list[current_player;bag"..i.."contents;0,1;8,4;]

so that it shows 4 rows properly.
Last edited by Topywo on Sat Jul 28, 2018 23:02, edited 3 times in total.

Sokomine
Member
Posts: 4290
Joined: Sun Sep 09, 2012 17:31
GitHub: Sokomine
IRC: Sokomine
In-game: Sokomine

Re: [Mod] Bags [bags] Attach bags to your inventory to incre

by Sokomine » Post

Topywo wrote: I also tried to make the trolley texture in line with Tonyka's textures of the small, medium and large bag.
Looks nice! That way, we won't have to wonder how players manage to carry four backpacks with only one back available.
A list of my mods can be found here.

User avatar
TenPlus1
Member
Posts: 3728
Joined: Mon Jul 29, 2013 13:38
In-game: TenPlus1
Contact:

Re: [Mod] Bags [bags] Attach bags to your inventory to incre

by TenPlus1 » Post

Thanks Topywo, this'll come in handy...

User avatar
LionsDen
Member
Posts: 530
Joined: Thu Jun 06, 2013 03:19

Re: [Mod] Bags [bags] Attach bags to your inventory to incre

by LionsDen » Post

Topywo, I am getting file not found with your link.

User avatar
Krock
Developer
Posts: 4652
Joined: Thu Oct 03, 2013 07:48
GitHub: SmallJoker
Location: Switzerland
Contact:

Re: [Mod] Bags [bags] Attach bags to your inventory to incre

by Krock » Post

LionsDen wrote:Topywo, I am getting file not found with your link.
Quote it:
Topywo wrote:

Code: Select all

https://dl.dropboxusercontent.com/u/65428713/bags%20(%2B%2032%20slots%20trolley).zip
Look, I programmed a bug for you. >> Mod Search Engine << - Mods by Krock - DuckDuckGo mod search bang: !mtmod <keyword here>

User avatar
Topywo
Member
Posts: 1721
Joined: Fri May 18, 2012 20:27

Re: [Mod] Bags [bags] Attach bags to your inventory to incre

by Topywo » Post

Krock wrote:
LionsDen wrote:Topywo, I am getting file not found with your link.
Quote it:
Topywo wrote:

Code: Select all

https://dl.dropboxusercontent.com/u/65428713/bags%20(%2B%2032%20slots%20trolley).zip
I don't know why that happened (looked like it got broken) I put 2 url's around it, now the download works. Thanks for telling it!

User avatar
andersje
Member
Posts: 18
Joined: Wed May 01, 2013 02:16

Re: [Mod] Bags [bags] Attach bags to your inventory to incre

by andersje » Post

would you like to commit this code to the git repo? I'd happily take a pull request, or if you just want to send me diffs, I can incorporate them. I like the idea of trolleys for complete hoarders ;)

Post Reply

Who is online

Users browsing this forum: No registered users and 39 guests