-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
model and textures for connected chest open #6
base: master
Are you sure you want to change the base?
Conversation
Add new folder "models" Add model for "connected_chest_open"
only the "inside" texture will probably be needed others are "just in case"
add credit and license for modified textures
Add brief explanation of texture modifications
media license, with brief explanation of modifications
thy |
not sure if you're waiting on me to code these in? I literally suck at coding and not sure if I would know how to begin to integrate these. just thought I would mention that, haha |
I'm waiting for minetest/minetest_game#2045 because l don't like waiting for the animation. |
I have to say, I have never noticed a time lag from rightclick to formspec. It is like a fraction of a second for me. But that is in creative. I also have to say, that I agree with you regarding rightclick open, then rightclick to get formspec. That is how I planned to do it when I added an animated chest to one of my mods (since removed) but, I knew mentioning such steps would not go anywhere as far as getting into game. Then again, my model of the open chest opens all the way, and I wanted to bump it out into the next node enough to avoid z-fighting when opened. But that also means adding a mesh for the closed chest, and no one will go for that. The biggest reason is, it takes even longer to rightclick to open and then rightclick for formspec. |
There's a function for registering connected chests: https://github.com/HybridDog/connected_chests/blob/master/init.lua#L133
I think the open chests can be implemented more easily using two nodes, too. So it also doesn't need an own model, i.e. l guess your model is for the cat. |
? not sure I know what that means. |
https://en.wiktionary.org/wiki/f%C3%BCr_die_Katz_sein |
I've implemented open connected chests now. The code indeed looks more messy (imo), but it works. |
nice. |
When I attempt to right-click the connected chest MTG crashes. I did not look into it atm as I will be in and out all day today.
|
https://github.com/HybridDog/connected_chests/blob/master/init.lua#L494 Which minetest_game version do you use? There's no item_place function in that line: https://github.com/minetest/minetest_game/blob/master/mods/default/nodes.lua#L1266 |
it's that damn grass, I knew it haha. I am on 0.4.16 stable (ahhh, I failed to notice you are on 0.5.0 dev) I will have some time tomorrow to look at what's going on |
I guess that's the relevant change: minetest/minetest_game@b75a179#diff-4c0fc0806e6a443774cea3aea5f3febe It should be fixed in the newest connected_chests version, could you test it? |
2018-02-26 12:44:48: ERROR[Main]: ModError: Failed to load and run script from /home/xxxx/.minetest/mods/connected_chests/init.lua: if I were any good at coding, I would probably know how to fix this. sorry. |
Sorry, I accidentally didn't test if default.chest exists. |
well that makes sense hehe |
I tried several (give or take 100) methods, got a few pretty interesting results but, I cannot figure this back texture out. Looking at all the code, (and not being a good coder/programmer) it seems to me that possibly, the back texture will need to be specified? I did find that line 378 can be commented out with no changes implemented. I really wish I had coding skills. |
I assume the textures are configured in the model, using the same texture for some faces, which makes it impossible to change the back face without breaking another one. I don't have experience with models.
I think this makes only a slight, but required, difference, some texture is mirrored. |
yes, that is why I made the extended model and textures. |
The default opened chest changes when using a different TP. I assume the opened chest model in default likely doesn't become edited, so copying it and adding a back texture could fix the problem. |
Yes, I know it does. I was referring to if a new back texture needs to be added. But, what I simply cannot understand is, Why is the same method not working the same? |
top and bottom textures both connect to the neighbour chest, whereas the texture on the back connects to the neighbour chest and the texture on the right side doesn't |
I'm wondering if something in here might help? If not, then perhaps adjusting to use the second "open chest" model is worth a try? |
l don't think they have an open chest. https://github.com/minetest/minetest_game/blob/master/mods/default/models/chest_open.obj |
I'm using this regardless, cuz I love it. If I had the time and skill, I would just use the 2d model and be done with it but, as is works for me. I'm bummed the thought of adding connected chests got closed in issues but, it's still a great mod, and you know others will be glad to have it as well anyway |
That looks like someone else also needs a connected chest model now: https://forum.minetest.net/viewtopic.php?p=366708#p366708 |
This simply adds a new "models" folder: which has the .obj and .blend files.
the second set [UVMapped] are just copies, but the ones I used to ensure the normals are prepared.
I also added a media license.txt for the model
The second addition, is a temp folder inside the "textures" folder, where I added any modified textures which may be needed, as well as a media license.txt for the textures.
now all just need to be coded in