Page 1 of 3

[Mod]closed_by_key-first GIT[closed_by_key][0.6]

Posted: Thu Jan 24, 2013 23:04
by pandaro
Closed by key v0.6 first GIT version
the most advanced system of chest and doors, but perhaps also the worst.

sourcecode:https://github.com/pandaro/closed_by_key
Code license: GPLv3;
Texture license: WTFPL;
Depends: default;
More info:readme.txt in mod;
Contributor:0gb.us,PilzAdam.

This mod add:
CHEST and DOOR closed by KEY, an EMPTY KEYRING for store keys in a FULL KEYRING.And a KEY-MANAGER to handle them

MAJOR CHANGE OF LATEST VERSION:(see full changelog in readme.txt)
closed_by_key_v0.6 -rename my mod, now called: "closed by key";
-open door and chest with rightclick;
-add disguised chest and door: very mimetic, but destructable;
-add mese chest and door: you can not destroy them;
-add on explode drop item if the chest is destructable;
-texture update a little bit;
-push code on GITHUB;
-minor change.

Image

CRAFTING: full crafting guide in readme!!!!

O=empty slot
S=steel ingot
C=chest
D=dry shrub
M=Mese

-Steel chest: -Empty keyring: -Key-manager: -Steel door
SSS DOD M -SS
SOS ODO C -SS
SSS DOD -SS


How to:
CHEST:
-place the chest, you find the key in your inventory;
-If you remove the chest:Now is the same chest, maintains key
-if you lose the key: forget your chest!

DOOR:
-place the door, you find the key in your inventory;
-If you remove the door:Now is the same door, maintains key
-if you lose the key: forget your door!

KEY:
If the correct key is in your inventory or in the chest: you can open the chest.

KEYRING:
Merge multiple keys on a keyring.

KEY-MANAGER:
If a KEY is in the slot in the middle and at least one steel ingot in the KEY-MANAGER main menu:
press "copy" to copy the key(
If a EMPTY KEYRING is in the slot in the middle:
press "make" to merge all the keys of the key inventory-manager on a keychain;
If a FULL KEYRING is in the slot in the middle:
-press "unmake" to undo.
-press "copy" to copy all the keyring(you need 1 steel ingot for each key)


So: download and try it.
.zip

TO DO:
-maybe:key colour(maybe not);
-better crafting;
-much more.

Posted: Thu Jan 24, 2013 23:07
by Likwid H-Craft
I love this idea it, goes great of locked chest.

Posted: Thu Jan 24, 2013 23:08
by pandaro
try it and tell me if it works, I'm not sure...

Posted: Thu Jan 24, 2013 23:19
by Likwid H-Craft
I can't the file not a zip I only open zips since others, don't open, for me, that much.

Posted: Thu Jan 24, 2013 23:25
by pandaro
Likwid H-Craft wrote:I can't the file not a zip I only open zips since others, don't open, for me, that much.
try now!

Posted: Thu Jan 24, 2013 23:29
by Likwid H-Craft
Testing.
Note this will be edit when done.

:( I am sorry to say, it can be open with out the need of keys.

Posted: Thu Jan 24, 2013 23:42
by pandaro
Likwid H-Craft wrote:Testing.

:( I am sorry to say, it can be open with out the need of keys.
how? my problem was a crash!!
are you sure you can insert, move and remove items from the basket without the key?

Posted: Fri Jan 25, 2013 10:48
by Topywo
Seems to work just fine. Without the right keys in your inventory, you can't move stuff in and out the chest.

- The chest's back appears in front of the player (maybe a rearranging of the 'tiles'-line will solve this easily)

Warning: You can put the keys of the chest in the chest, but you can't get them out again.

2 things to think about (but maybe to hard to implement):
- It would be nice to see a difference between the keys
- Digging an empty chest and placing it back gives an extra key.

Posted: Fri Jan 25, 2013 11:09
by pandaro
thancks topywo for the feedback!
Topywo wrote:Seems to work just fine. Without the right keys in your inventory, you can't move stuff in and out the chest.
sometimes there is a crash if you place the key block as a block in the world;
- The chest's back appears in front of the player (maybe a rearranging of the 'tiles'-line will solve this easily)
I have to study better the definition of the blocks;
- It would be nice to see a difference between the keys
I think I can not do
Digging an empty chest and placing it back gives an extra key.
yes and the old key is useless

Posted: Fri Jan 25, 2013 11:18
by 4aiman
WOOT!
Maybe if someone has placed his key in a chest and do not have another one for this chest, the chest should be available to everyone? I mean, how is it possible to lock a chest with a key if that key is in the chest you're trying to lock?
Maybe this chest should drop 3-5 keys? And if you do not want many of them, then you should be able to melt them in a furnace? Let's say to a ball of metal.
Then some NPC, the "KeyMaker", can be added to make keys from the metal balls if you give him the original key and some mese. (Just my thoughts)

Posted: Fri Jan 25, 2013 11:37
by rarkenin
Likwid H-Craft wrote:I can't the file not a zip I only open zips since others, don't open, for me, that much.
Just install 7zip or something. It handles tarballs.

Posted: Fri Jan 25, 2013 12:05
by pandaro
4aiman wrote:WOOT!
Maybe if someone has placed his key in a chest and do not have another one for this chest, the chest should be available to everyone? I mean, how is it possible to lock a chest with a key if that key is in the chest you're trying to lock?
Maybe this chest should drop 3-5 keys? And if you do not want many of them, then you should be able to melt them in a furnace? Let's say to a ball of metal.
Then some NPC, the "KeyMaker", can be added to make keys from the metal balls if you give him the original key and some mese. (Just my thoughts)
I also think that if the key is in the chest should be open to all, I will try to implement it soon.

I do not think that the chest must provide two or more keys at once, however I think it should be possible to copy the key, so that more people can have the key to a chest and you can be sure that if you lose a key you have always another .

I like your idea of being able to have an NPC that can copy the key! +1 I had already done:
go here!

try it! now is not able to create or copy keys, but it would be simple change!

some have tried to place the key as a block??

thanks to you for the feedback

Posted: Fri Jan 25, 2013 12:08
by jojoa1997
if you put the key in the chest then it should become open to everyone. also you shpould be able to put stuff in the chests if you dont have a key. like the dropbox from morechests but you wont be able to see what is in there

Posted: Fri Jan 25, 2013 12:10
by 4aiman
There are mail boxes to "be able to put but not be able to get".
Chests aren't supposed to give access to a person without a key.

Posted: Fri Jan 25, 2013 13:11
by Likwid H-Craft
rarkenin wrote:
Likwid H-Craft wrote:I can't the file not a zip I only open zips since others, don't open, for me, that much.
Just install 7zip or something. It handles tarballs.
I don't like Zzip or others it crash my pc alot. that why I love zips it a free ware and, only maybe why I can open a rar or something other then a zip will, be online.

Posted: Fri Jan 25, 2013 13:26
by rarkenin
Likwid H-Craft wrote:
rarkenin wrote:
Likwid H-Craft wrote:I can't the file not a zip I only open zips since others, don't open, for me, that much.
Just install 7zip or something. It handles tarballs.
I don't like Zzip or others it crash my pc alot. that why I love zips it a free ware and, only maybe why I can open a rar or something other then a zip will, be online.
7zip shouldn't be crashy... Are you sure you don't have some proprietary imitation?

Posted: Fri Jan 25, 2013 13:47
by 4aiman
There is a thread with a "war" allready...
There are a lot of people who just affraid to install anything, not only 7zip. But they definetely NEED that experience of problems with some software.
Windows users never complained about installing VC++ redistributable on their OS. But there are many of them, who keep saying "I do not want to install needless otherwise software!" or "That thing which is not working for me is BAD. I wouldn't use that." instead of "Wow, and what this software can do else?" and "What am I doing wrong, that anyone else can run this software and I don't?".
Get real. You NEED 7zip. Consider that a requirement like VC++redist for almost ANY game. In fact, VC++redist is on almost EVERY disc with ANY game. And VC++ is installed in the "backgroung" mode, sometimes without even notifying user. Or if VC++ is a "bad" example, then think of different toolbars for IE, that comes with different soft.
If anyone have problems with 7zip then ASK FOR HELP instead of implying that some good stable software make your system crash. Post logs, error messages - anything. But DO NOT be so stubborn about "useless" or "crashy" software.

Minetest is way more unstable then 7zip. Yet we play it. Please, describe your problem with 7zip and I personally will help to overcome it. Anti-advertisment isn't a good thing to do in this case.

Posted: Fri Jan 25, 2013 14:15
by Topywo
pandaro wrote: some have tried to place the key as a block??
Just tried, both in creative and not in creative (as singleplayer). No crashes so far.

Posted: Fri Jan 25, 2013 14:48
by Mito551
+1
cool idea :)

Posted: Fri Jan 25, 2013 15:00
by jojoa1997
4aiman wrote:There is a thread with a "war" allready...
There are a lot of people who just affraid to install anything, not only 7zip. But they definetely NEED that experience of problems with some software.
Windows users never complained about installing VC++ redistributable on their OS. But there are many of them, who keep saying "I do not want to install needless otherwise software!" or "That thing which is not working for me is BAD. I wouldn't use that." instead of "Wow, and what this software can do else?" and "What am I doing wrong, that anyone else can run this software and I don't?".
Get real. You NEED 7zip. Consider that a requirement like VC++redist for almost ANY game. In fact, VC++redist is on almost EVERY disc with ANY game. And VC++ is installed in the "backgroung" mode, sometimes without even notifying user. Or if VC++ is a "bad" example, then think of different toolbars for IE, that comes with different soft.
If anyone have problems with 7zip then ASK FOR HELP instead of implying that some good stable software make your system crash. Post logs, error messages - anything. But DO NOT be so stubborn about "useless" or "crashy" software.

Minetest is way more unstable then 7zip. Yet we play it. Please, describe your problem with 7zip and I personally will help to overcome it. Anti-advertisment isn't a good thing to do in this case.
some of use can't install it. I barely got my unzipped paste my mom

Posted: Fri Jan 25, 2013 15:39
by Sokomine
Do the keys stack? Can something which carries individual data stack? Else your inventory might get filled soon. 1000 diffrent possible codes may seem much, but Minetest players are sometimes crazy :-) It is only a matter of time until there are collusions. Especially on a multiplayer server. Maybe it's more intresting for quests/adventure maps?

Posted: Fri Jan 25, 2013 18:26
by 4aiman

Code: Select all

some of use can't install it. I barely got my unzipped paste my mom
That's not an excuse. People should learn a lot of things while using such thing as PC or smartphone. I don't want to be offensive or rude. I'm terribly sorry if I offended you, but really... if anyone want to use a PC then they should learn some new "tricks". I taught my aunt (57 y.o.) how to install & use software under ubuntu (libre office, firefox, thunderbird, audacious, gnomebaker and many more). And that's provided she NEVER had used any kind of PC before.
After a month of "free flight" she asked me what the heck the "Windows" is. )))
So nothing is impossible. You need to put some time into "education", though.

Sokomine,
I believe that here sha1 or md5 or whatever hash would be sufficient. Or a guid. And if by some weird coincidence 2 keys would have identical hashes, then one should remember that even 2 different keys may unlock the same door in real life.

Keys shouldn't stack... maybe it would be nice to have some kind of a key holder?

pandaro, I always want to ask about that crafter... If I have all necessary materials to craft smth then why do I need to go to that guy?

Posted: Fri Jan 25, 2013 19:09
by Mito551
4aiman wrote:I taught my aunt (57 y.o.) how to install & use software under ubuntu (libre office, firefox, thunderbird, audacious, gnomebaker and many more). And that's provided she NEVER had used any kind of PC before.
After a month of "free flight" she asked me what the heck the "Windows" is. )))
oh wow.

Posted: Fri Jan 25, 2013 19:24
by 4aiman
Mito551 wrote:
4aiman wrote:I taught my aunt (57 y.o.) how to install & use software under ubuntu (libre office, firefox, thunderbird, audacious, gnomebaker and many more). And that's provided she NEVER had used any kind of PC before.
After a month of "free flight" she asked me what the heck the "Windows" is. )))
oh wow.
After 2 months she asked me what the heck "linux" is ))
And only one more week later she asked about differences (hail to wikipedia, I guess?).

Posted: Sat Jan 26, 2013 17:03
by pandaro
4aiman wrote:
I believe that here sha1 or md5 or whatever hash would be sufficient. Or a guid. And if by some weird coincidence 2 keys would have identical hashes, then one should remember that even 2 different keys may unlock the same door in real life.
1 + for you!
Keys shouldn't stack... maybe it would be nice to have some kind of a key holder?
I never thought, I do not know if it's possible, I'll try.
pandaro, I always want to ask about that crafter... If I have all necessary materials to craft smth then why do I need to go to that guy?
It was an idea ... maybe you can not do chest closed without paying a crafter to do so, as you can not copy keys alone, but you must go to one of them.
Or you can do it all alone without crafter, the crafter at this point is just a quirk (whim).

sokomine wrote:
Do the keys stack? Can something which carries individual data stack? Else your inventory might get filled soon. 1000 diffrent possible codes may seem much, but Minetest players are sometimes crazy :-) It is only a matter of time until there are collusions. Especially on a multiplayer server. Maybe it's more intresting for quests/adventure maps?
I do not know how to save data from a stack and recovering the right keys at the right time.
I can try to make a key holder.

these are my answers at the moment.
I now have a question:

Can i show (in formspec or in other ways) a variable?
if yes: how?
this is necessary to know which key I'm watching (key 123, key 732, etc. ..)

I continue to thank you for the positive feedback.