[Abandoned] [Mod] Hidden Doors [1.12.1] [hidden_doors]

User avatar
Hamlet
Member
Posts: 766
Joined: Sat Jul 29, 2017 21:09
IRC: H4mlet
In-game: Hamlet
Location: Lombardy, Italy

[Abandoned] [Mod] Hidden Doors [1.12.1] [hidden_doors]

by Hamlet » Post

Image

Image

PAINTED DOORS
Image
Adds various wood, stone, etc. doors.

Source code's license: EUPL v1.2 or later.
Textures and sounds' license: CC BY-SA v4.0 Unported or later.

Dependencies: default, doors, stairs, vessels (found in Minetest Game)
Supports: Darkage (Addi's fork), Moreblocks

Advanced options:
Settings -> All settings -> Mods -> hidden_doors

Allows to use painted doors.
Allows self-removal to prevent unknown nodes after the mod's deinstallation.

Crafting Recipes
Spoiler
If the chosen material can be split into slabs - e.g.: stone, wood, etc. - then:

X = empty
D = door
S = slab

DSS
XXX
XXX

If the chosen material can not be split into slabs - e.g.: dirt, sand, etc. - then:

X = empty
D = door
N = node

DNX
XXX
XXX
Examples by DrFrankenstone:

Image

Downloads:
Archives: .zip .tar.gz
Source code: Codeberg

Installation
Unzip the archive, rename the folder to hidden_doors and place it in
../minetest/mods/

GNU+Linux: If you use a system-wide installation place it in
~/.minetest/mods/

If you only want this to be used in a single world, place the folder in
../minetest/worlds/world_name/worldmods/

For further information or help see:
http://wiki.minetest.net/wiki/Installing_Mods
Attachments
painted_doors.png
painted_doors.png (471.65 KiB) Viewed 2700 times
screenshot2.png
screenshot2.png (111.83 KiB) Viewed 2700 times
screenshot1.png
screenshot1.png (105.61 KiB) Viewed 2700 times
Last edited by Hamlet on Fri Oct 02, 2020 17:07, edited 36 times in total.
My repositories: Codeberg.org | My ContentDB's page

User avatar
kingoscargames
Member
Posts: 216
Joined: Fri Jul 28, 2017 12:06
GitHub: kingoscargames
In-game: kingoscargames
Location: Netherlands

Re: [Mod] Hidden Doors [1.0] [hidden_doors]

by kingoscargames » Post

There were no textures
Image
so i made these: Image
Attachments
hidden_doors textures.zip
(4.33 KiB) Downloaded 177 times
screenshot_20170813_144202.png
screenshot_20170813_144202.png (566.86 KiB) Viewed 2700 times
screenshot_20170813_142058.png
screenshot_20170813_142058.png (516.39 KiB) Viewed 2700 times

User avatar
Napiophelios
Member
Posts: 1035
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: [Mod] Hidden Doors [1.0] [hidden_doors]

by Napiophelios » Post

instead of making textures you should use default textures,
so that no matter what texture pack player is using the doors remain hidden:
"default_stone.png", "default_cobble.png", "default_stone_brick.png".

User avatar
Andrey01
Member
Posts: 2574
Joined: Wed Oct 19, 2016 15:18
GitHub: Andrey2470T
In-game: Andrey01
Location: Russia, Moscow

Re: [Mod] Hidden Doors [1.0] [hidden_doors]

by Andrey01 » Post

The idea is nice but finding these doors is very easy way actually.

User avatar
Hamlet
Member
Posts: 766
Joined: Sat Jul 29, 2017 21:09
IRC: H4mlet
In-game: Hamlet
Location: Lombardy, Italy

Re: [Mod] Hidden Doors [1.0] [hidden_doors]

by Hamlet » Post

Napiophelios wrote:instead of making textures you should use default textures,
so that no matter what texture pack player is using the doors remain hidden:
"default_stone.png", "default_cobble.png", "default_stone_brick.png".
I did that, but since those textures are made for a single node they looked bad when applied to the doors which are two nodes tall - furthermore, one could spot the "hidden" door immediately 'cause of the stretched texture.

Try it yourself, and if you know a way to apply the default textures and make them repeated instead of stretched I'll happily switch to that method. That would be good for texture packs compatibility - and reduce the mods' size.
My repositories: Codeberg.org | My ContentDB's page

User avatar
Hamlet
Member
Posts: 766
Joined: Sat Jul 29, 2017 21:09
IRC: H4mlet
In-game: Hamlet
Location: Lombardy, Italy

Re: [Mod] Hidden Doors [1.0] [hidden_doors]

by Hamlet » Post

Andrey01 wrote:The idea is nice but finding these doors is very easy way actually.
Heh yeah, one could just go around right clicking on walls and they would open - I am actually thinking about allowing to lock them, using different keys (e.g. stone key for the stone door). This would prevent people from finding them that easily.

But after all, if you are creating a dungeon or a maze on a server, I guess that you want people to find the door - maybe for a secret chamber with gold - while making their search a little harder.

--- EDIT

I didn't noticed that textures were missing, now it should be ok.
Last edited by Hamlet on Sun Aug 13, 2017 18:16, edited 1 time in total.
My repositories: Codeberg.org | My ContentDB's page

User avatar
Hamlet
Member
Posts: 766
Joined: Sat Jul 29, 2017 21:09
IRC: H4mlet
In-game: Hamlet
Location: Lombardy, Italy

Re: [Mod] Hidden Doors [1.0] [hidden_doors]

by Hamlet » Post

kingoscargames wrote:There were no textures [...]
so i made these: [..]
Ooops! I didn't noticed that my commit was missing the textures, now I've uploaded them.
Sorry for the broken mod, fixed it now.
My repositories: Codeberg.org | My ContentDB's page

User avatar
Andrey01
Member
Posts: 2574
Joined: Wed Oct 19, 2016 15:18
GitHub: Andrey2470T
In-game: Andrey01
Location: Russia, Moscow

Re: [Mod] Hidden Doors [1.0] [hidden_doors]

by Andrey01 » Post

Ideas: mese door, diamond door, bronze door, golden door, tree door, iron door, obsidian door, copper door, dirt door and other doors.

User avatar
BirgitLachner
Member
Posts: 393
Joined: Thu May 05, 2016 10:18
In-game: Bibs

Re: [Mod] Hidden Doors [1.0] [hidden_doors]

by BirgitLachner » Post

nice ... really hidden ;-)

User avatar
Hamlet
Member
Posts: 766
Joined: Sat Jul 29, 2017 21:09
IRC: H4mlet
In-game: Hamlet
Location: Lombardy, Italy

Re: [Mod] Hidden Doors [1.0] [hidden_doors]

by Hamlet » Post

I've been RTFM (i.e. lua_api.txt), trying to apply default_stone.png on the door's surface.
#### `[combine:<w>x<h>:<x1>,<y1>=<file1>:<x2>,<y2>=<file2>:...`
* `<w>` = width
* `<h>` = height
* `<x>` = x position
* `<y>` = y position
* `<file>` = texture to combine

Creates a texture of size `<w>` times `<h>` and blits the listed files to their
specified coordinates.

Example:

[combine:16x32:0,0=default_cobble.png:0,16=default_wood.png
Thus I've tried this:

Code: Select all

tiles = {"default_cobble.png^[combine:16x32:0,0=default_cobble.png:0,16=default_cobble.png"},
The result is (two doors in the middle):
Spoiler
Image
I've tried to replace 16x32 with 4x8, 32x64, etc. No changes at all.

Thus I'm sticking to custom textures, until I don't find a way to tell it "take this texture, apply it to this item and repeat it".
Attachments
screenshot.png
screenshot.png (178.02 KiB) Viewed 2700 times
My repositories: Codeberg.org | My ContentDB's page

User avatar
Napiophelios
Member
Posts: 1035
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: [Mod] Hidden Doors [1.0] [hidden_doors]

by Napiophelios » Post

you are on the right track :)
Here's what I have so far doing the same thing:



Stonebricks still needs some help...(EDIT: there is a single door in the middle of each section)
Image
hidden_doors.png
hidden_doors.png (348.17 KiB) Viewed 2700 times
Last edited by Napiophelios on Fri Sep 08, 2017 00:50, edited 1 time in total.

User avatar
Hamlet
Member
Posts: 766
Joined: Sat Jul 29, 2017 21:09
IRC: H4mlet
In-game: Hamlet
Location: Lombardy, Italy

Re: [Mod] Hidden Doors [1.0] [hidden_doors]

by Hamlet » Post

Napiophelios wrote:you are on the right track :)
Here's what I have so far doing the same thing:[snip]
Wonderful! Thanks, I would have never understood that it needed that many args.

Open a PR on git so I'll merge it and you'll get the proper credit for your work.

About the stonebricks door: as weird as it may seem, I like that glitch, it gives a hint on where the door is.
My repositories: Codeberg.org | My ContentDB's page

User avatar
Napiophelios
Member
Posts: 1035
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: [Mod] Hidden Doors [1.0] [hidden_doors]

by Napiophelios » Post

Hamlet wrote:I would have never understood that it needed that many args
Its because of the weird dimensions of the texture needed 38x32

User avatar
TumeniNodes
Member
Posts: 2941
Joined: Fri Feb 26, 2016 19:49
GitHub: TumeniNodes
IRC: tumeninodes
In-game: TumeniNodes
Location: in the dark recesses of the mind
Contact:

Re: [Mod] Hidden Doors [1.0] [hidden_doors]

by TumeniNodes » Post

the textures are flipped <---> :P
A Wonderful World

User avatar
BirgitLachner
Member
Posts: 393
Joined: Thu May 05, 2016 10:18
In-game: Bibs

Re: [Mod] Hidden Doors [1.0] [hidden_doors]

by BirgitLachner » Post

TumeniNodes wrote:the textures are flipped <---> :P
Yes ... but without it you would never find the doors again ;-)

Chibi ghost
Member
Posts: 845
Joined: Fri Jan 08, 2016 21:17
In-game: Ghost

Re: [Mod] Hidden Doors [1.0] [hidden_doors]

by Chibi ghost » Post

Andrey01 wrote:The idea is nice but finding these doors is very easy way actually.
yes but they are a easy way of hiding aspects of your building that don't fit with the aesthetics
of your building for instance I hide travel nets behind such doors
I use a older door mod with similar themes but I would like to see this mod expanded with the more newer textures and newer nodes like sandstone desert, silver and standard, red brick and some of the more blocks textures

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Hidden Doors [1.0] [hidden_doors]

by azekill_DIABLO » Post

this looks useful. May be cool for a server
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

User avatar
ExeterDad
Member
Posts: 1717
Joined: Sun Jun 01, 2014 20:00
In-game: ExeterDad
Location: New Hampshire U.S.A

Re: [Mod] Hidden Doors [1.0] [hidden_doors]

by ExeterDad » Post

This mod is certainly worth watching. Nice idea :)

User avatar
Hamlet
Member
Posts: 766
Joined: Sat Jul 29, 2017 21:09
IRC: H4mlet
In-game: Hamlet
Location: Lombardy, Italy

Re: [Mod] Hidden Doors [1.0.0] [hidden_doors]

by Hamlet » Post

Thanks!
My repositories: Codeberg.org | My ContentDB's page

User avatar
Hamlet
Member
Posts: 766
Joined: Sat Jul 29, 2017 21:09
IRC: H4mlet
In-game: Hamlet
Location: Lombardy, Italy

Re: [Mod] Hidden Doors [1.0.0] [hidden_doors]

by Hamlet » Post

For those willing to try the development version (1.1.0):

Other doors added thanks to Napiophelio's work on the textures handling and nodes registration function; here's the list:
Spoiler
Stone
-----
(1. Material 2. Cobble variant 3. Brick variant 4. Modified forms)

default:stone
default:cobble
default:stonebrick
default:stone_block
default:mossycobble

default:desert_stone
default:desert_cobble
default:desert_stonebrick
default:desert_stone_block

default:sandstone
default:sandstonebrick
default:sandstone_block
default:desert_sandstone
default:desert_sandstone_brick
default:desert_sandstone_block
default:silver_sandstone
default:silver_sandstone_brick
default:silver_sandstone_block

default:obsidian
default:obsidianbrick
default:obsidian_block


Trees
-----
(1. Trunk 2. Fabricated trunk)

default:tree
default:wood

default:jungletree
default:junglewood

default:pine_tree
default:pine_wood

default:acacia_tree
default:acacia_wood

default:aspen_tree
default:aspen_wood
Let me stress it again: this is the development branch, although stable, do not expect it to be flawless.

Dowload the zip archive
Browse the source code
My repositories: Codeberg.org | My ContentDB's page

User avatar
azekill_DIABLO
Member
Posts: 7507
Joined: Wed Oct 29, 2014 20:05
GitHub: azekillDIABLO
In-game: azekill_DIABLO
Location: OMICRON
Contact:

Re: [Mod] Hidden Doors [1.0.0] [hidden_doors]

by azekill_DIABLO » Post

+1 good job
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!

Chibi ghost
Member
Posts: 845
Joined: Fri Jan 08, 2016 21:17
In-game: Ghost

Re: [Mod] Hidden Doors [1.0.0] [hidden_doors]

by Chibi ghost » Post

same from here :D

User avatar
Hamlet
Member
Posts: 766
Joined: Sat Jul 29, 2017 21:09
IRC: H4mlet
In-game: Hamlet
Location: Lombardy, Italy

Re: [Mod] Hidden Doors [1.0.0] [hidden_doors]

by Hamlet » Post

Thanks for your support, I've updated the initial post with the links to the development release.

New in 1.2.0-dev:

- Added localization support: intllib by kaeza
- Added the Italian locale file
- Updated the function to handle sound's specification to allow
different sounds for different materials doors.

Wooden doors now do have sounds (default MTG's).
My repositories: Codeberg.org | My ContentDB's page

User avatar
Napiophelios
Member
Posts: 1035
Joined: Mon Jul 07, 2014 01:14
GitHub: Napiophelios
IRC: Nappi
In-game: Nappi

Re: [Mod] Hidden Doors [1.0.0] [hidden_doors]

by Napiophelios » Post

Have you tested the crafting for the wooden doors in the latest Dev branch?
Seems like it might make it impossible to get a normal MT game wooden door.
IDK, I could be wrong. I haven't had a chance to actually test it.

HaHa, Maybe you will have to use 6 different wood types to craft it :)

User avatar
Hamlet
Member
Posts: 766
Joined: Sat Jul 29, 2017 21:09
IRC: H4mlet
In-game: Hamlet
Location: Lombardy, Italy

Re: [Mod] Hidden Doors [1.0.0] [hidden_doors]

by Hamlet » Post

Napiophelios wrote:Have you tested the crafting for the wooden doors in the latest Dev branch?
Seems like it might make it impossible to get a normal MT game wooden door.
IDK, I could be wrong. I haven't had a chance to actually test it.

HaHa, Maybe you will have to use 6 different wood types to craft it :)
There's always something slipping from one's view, isn't it? :)
I've just checked the init.lua and at line 117 there's the recipe conflicting with the default door's recipe.

To anyone reading this: comment the line 117 in init.lua by adding -- as in this example:

Code: Select all

--hidden_doors.register_hidden_doors("default", "wood", "default:wood", S("Wood"), wood_default, wood_open, wood_close)
else you won't be able to craft regular wooden doors.

Furthermore, as Napiophelios told me, be warned that using textures bigger than 16 pixels will make things look weird.

I owe this guy a bottle of wine for his help! :D

Back to the doors' crafting issue, it will be fixed easily 'cause I was already thinking about changing the hidden doors' recipes to:

DSS
XXX
XXX

D = wooden door
S = camouflage slab (cobble, stone, etc.)
X = nothing

Bear with me, it takes some time for a noob to get a mod right.
My repositories: Codeberg.org | My ContentDB's page

Post Reply

Who is online

Users browsing this forum: No registered users and 26 guests