Page 1 of 2

[Mod] Armor [armor] Craft and attach armor to your inventory.

PostPosted: Mon Sep 17, 2012 09:40
by cornernote
Armor for Minetest

Craft and attach armor to your inventory.

Documentation | GitHub Project

Requirements

Image

About

This module is open source, so it's distributed freely. If you find it useful then I ask not for your wealth, but simply to spare your time to consider the world we share by watching Earthlings, a multi-award winning film available to watch online for free. A must-see for anyone who wishes to make the world a better place.

License

BSD-3-Clause, Copyright © 2014 Brett O'Donnell

- Textures: Copyright (c) 2014 tonyka
- Alt Textures: Copyright (c) 2014 Jordach, Jordan Snelling

PostPosted: Mon Sep 17, 2012 13:29
by irksomeduck
Epic! I thought this was impossible in minetest :D

PostPosted: Mon Sep 17, 2012 13:43
by irksomeduck
Error on startup :(
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
Could not load and run C://Users\irksomeduck\desktop\minetest\...\cornernote_minetest_armour\init.lua

PostPosted: Mon Sep 17, 2012 14:50
by Sartan
change the recipe Shield
(conflict with a chest (Default))

PostPosted: Mon Sep 17, 2012 15:17
by Feorth
irksomeduck wrote:Error on startup :(
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
Could not load and run C://Users\irksomeduck\desktop\minetest\...\cornernote_minetest_armour\init.lua


Try changing the folder name to 'armour'
So the patch would be C://Users\irksomeduck\desktop\minetest\...\armour\init.lua

PostPosted: Mon Sep 17, 2012 15:22
by irksomeduck
Feorth wrote:
irksomeduck wrote:Error on startup :(
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
Could not load and run C://Users\irksomeduck\desktop\minetest\...\cornernote_minetest_armour\init.lua


Try changing the folder name to 'armour'
So the patch would be C://Users\irksomeduck\desktop\minetest\...\armour\init.lua


Nope. It's having none of it...

PostPosted: Mon Sep 17, 2012 16:13
by Topywo
irksomeduck wrote:
Feorth wrote:
irksomeduck wrote:Error on startup :(
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
Could not load and run C://Users\irksomeduck\desktop\minetest\...\cornernote_minetest_armour\init.lua


Try changing the folder name to 'armour'
So the patch would be C://Users\irksomeduck\desktop\minetest\...\armour\init.lua


Nope. It's having none of it...


Did you also extract inventory_plus (as stated in the 1st post)?

PostPosted: Mon Sep 17, 2012 16:59
by ruca
Hi! got a problem:
The itens appears as unknown. Also twisted defaults itens, like chest (also unknown).
After trying to craft a helmet and throwing away the unknown iten, got this message:
ERROR[ServerTrhead]: Item "armor:wood_helmet_" not defined

PostPosted: Mon Sep 17, 2012 19:39
by tinoesroho
Hmmm.... could it be modified to require one of darkrose's workbenches for the armor to be crafted? Well, yes! You could either modify the recipe to be so large as to require a 4x4 bench or change it so that it, and not chests/furnaces could be crafted on a 3x3.

PostPosted: Mon Sep 17, 2012 22:39
by cornernote
Feorth wrote:
irksomeduck wrote:Error on startup :(
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
Could not load and run C://Users\irksomeduck\desktop\minetest\...\cornernote_minetest_armour\init.lua


Try changing the folder name to 'armour'
So the patch would be C://Users\irksomeduck\desktop\minetest\...\armour\init.lua


ARMOR not ARMOUR =)

PostPosted: Mon Sep 17, 2012 22:50
by cornernote
ruca wrote:Hi! got a problem:
The itens appears as unknown. Also twisted defaults itens, like chest (also unknown).
After trying to craft a helmet and throwing away the unknown iten, got this message:
ERROR[ServerTrhead]: Item "armor:wood_helmet_" not defined


this is fixed now

PostPosted: Mon Sep 17, 2012 22:52
by cornernote
Sartan wrote:change the recipe Shield
(conflict with a chest (Default))


changed, see 1st post

PostPosted: Tue Sep 18, 2012 00:57
by VanessaE
@cornernote: Maybe he wants to make a shield out of frozen hot dogs? ;-)

PostPosted: Tue Sep 18, 2012 03:54
by Josh
Thank's for this awesome mod Cornernote! I installed it and it works. It should be added in by default!

PostPosted: Tue Sep 18, 2012 08:37
by wieszak
Nice idea, however i would suggest change in recipies:

MMM
M-M
M-M

as chestplate, and
-M-
M-M
---

as helmet. Reason: usually people have much bigger chest then head, so much more material for helmet then chestplate is kinda strange...

PostPosted: Tue Sep 18, 2012 09:18
by Topywo
I get the following error:

11:11:13: ERROR[main]: ========== ERROR FROM LUA ===========
11:11:13: ERROR[main]: Failed to load and run script from
11:11:13: ERROR[main]: /home/TOPYWO/celeron55-minetest-9696ed3_test 1/bin/../mods/minetest/armor/init.lua:
11:11:13: ERROR[main]: ...t-9696ed3_test 1/bin/../mods/minetest/armor/init.lua:15: attempt to index field 'pages' (a nil value)
11:11:13: ERROR[main]: stack traceback:
11:11:13: ERROR[main]: ...t-9696ed3_test 1/bin/../mods/minetest/armor/init.lua:15: in main chunk
11:11:13: ERROR[main]: =======END OF ERROR FROM LUA ========

Both with bags and homegui, as without. Inventory_plus is included.

I downloaded all 4 mods less than an hour ago.

I hope this information helps you, so you can help us with 4 great mods.

PostPosted: Tue Sep 18, 2012 09:28
by cornernote
forgot to push changes to git, please try again now

PostPosted: Tue Sep 18, 2012 10:27
by Topywo
It works with bags and home_gui!

I can switch easily from one menu to another.

- Is it intentional that the bags don't stack?
- I tried out the home_gui too, works exactly as it is supposed to do :-)
- nice bag textures!

Thanks for these mods!

PostPosted: Tue Sep 18, 2012 10:36
by cornernote
Yep, bags shouldn't stack. I think that makes sense, what do you think?

PostPosted: Tue Sep 18, 2012 11:55
by Topywo
You made me think hard :-)

I seems there's a distinction between tools and other stuff.

Most comparable with bags are chests, which are stackable.

If you want to make a distinction between supporting stuff like tools, chests, armor and bags that should not be stackable on one side and crafting/building materials that are stackable on the other side I agree that that makes sense. But that would also mean that chests, ladders, ropes/vines, (doors?) shouldn't be stackable.

Stacking bags would be more in line with the present gameplay. It makes it also easier/faster to craft. If not, it just takes more time, but they will still be crafted. So I would prefer stackable.

But none of the choices is a must for me because I enjoy the game anyway, whether it's unrealistic or realistic.

PostPosted: Tue Sep 18, 2012 12:14
by creeper96
Cornernote please make camo also sorry if i am bothering you i think im posting to much lol my posts:4

PostPosted: Tue Sep 18, 2012 12:15
by creeper96
if im bothering you tell me and i will stop

PostPosted: Tue Sep 18, 2012 12:23
by cornernote
creeper96 wrote:Cornernote please make camo also sorry if i am bothering you i think im posting to much lol my posts:4


Cool idea. I don't do graphics tho. Perhaps a texture modder will see this and make something.

PostPosted: Fri Oct 19, 2012 02:51
by clarksallador
Epic :D i had it working

PostPosted: Mon Nov 05, 2012 21:41
by Temperest
Does anyone have a copy of this? If so, could they re-upload it somewhere?

PostPosted: Tue Nov 06, 2012 00:59
by tinoesroho
I have a copy. I'm not quite sure why cornernote's up and taken his contributions, and I do sympathize with his vegan views, but I cannot agree with taking down one's own work because of some idiot thing said.

Download here, but spare a thought for the victims of Sandy, the local homeless, and those in need. Also, please THINK about the consequences of what you choose to eat.

Cornernote, if you read this, I want you to know that I'm with you, but I'm not going to pull my own hard work down because of something stupid that was said or done. I don't believe that meat is ethical - not when it has been shown that cattle require more resources and feed less than potatoes - but pulling down the links is not going to attract the right kind of attention. It's like throwing a paywall on WikiLeaks; it annoys the user base and doesn't gain any followers. The least you could do would be to use the image as a link to the actual download - people would be forced to think about their eating AND they'd be able to access the files (win/win for all).

PostPosted: Tue Nov 06, 2012 01:18
by cornernote
@tinoesroho, please remove this particular image, it doesnt belong in this thread, i shouldnt have posted this particular image in this thread out of context.

i dont expect anyone else to remove their work, and i don't want to stop people who have my code from continuing to enjoy and share it with others. i just dont want to personally share any more.

thanks for your support and advice, you make good points. i will consider them more.

PostPosted: Tue Nov 06, 2012 01:41
by tinoesroho
@cornernote:
I will remove the image, as per your request.

PostPosted: Wed Feb 20, 2013 05:34
by Linxx
hmm now that i see the shield slot can this be also used for dual wielding swords?

PostPosted: Wed Jul 03, 2013 01:29
by smash
Simple mobs monsters do no damage with the armor mod installed (even though I haven't crafted any armor yet). To be sure, I've also installed inventory plus and have damage enabled.

Is the bug reproducable?
Yes.
How can you reproduce the bug?
Install the armor mod. Go into the woods at night or the desert. Observe the monsters pursue and attack but notice they do no damage. Go into the mines and find some monsters. Observe how they don't even try to attack, but just ignore the player.
What is your operating system?
Linux Mint 13
What is your version of Minetest?
0.4.7
What game do you use? (e.g. minetest_game, survival, build)
minetest_game
debug.txt:
No debug.txt is generated, even though debug_log_level = 4 is in minetest.conf. However, while the sand monsters are attacking, numerous lines appear in the terminal like this:
20:07:56: ACTION[ServerThread]: Player singleplayer punched by LuaEntitySAO at (211.889,1.51,148.914), damage 0 HP