[Mod] 3D Armor Painted Banners [painted_3d_armor]
- Beerholder
- Member
- Posts: 199
- Joined: Wed Aug 03, 2016 20:23
- GitHub: evrooije
- In-game: Beerholder
[Mod] 3D Armor Painted Banners [painted_3d_armor]
YES YES YES!!! After hours and hours of trying to figure it out, I was successful!!! Wassup Beer you might ask! Well, it is a super hacky mod that glues together the old and super hacky painting mod and the banners mod with the 3d_armor modpack (3d_armor and shields). It basically puts the painting or banner you created with the painting mod/ banners mod on top of your armor and shield!!
Download: https://github.com/evrooije/painted_3d_ ... master.zip
Source: https://github.com/evrooije/painted_3d_armor
Depends: default, 3d_armor, shields?, painting?, banners?
To install, see the GitHub page for detailed instructions, but basically make sure you install both stu's 3d_armor (https://github.com/stujones11/minetest-3d_armor, viewtopic.php?f=11&t=4654) and then this copy of the painting mod that I have which offers a painting API (https://github.com/evrooije/painting, originally from viewtopic.php?f=11&t=2588 but do not use the download there), DoctorFool's banners mod (https://github.com/shamoanjac/banners-mod, viewtopic.php?f=9&t=15305) or both of them if you want to support both paintings and banners.
If you use Minetest 0.5 and want to use painting, then you can download my version of the painting mode from master: https://github.com/evrooije/painting. If however you are using Minetest 0.4.x, you have to use the 0.4 branch of this repository, i.e. https://github.com/evrooije/painting/tree/0.4 or https://github.com/evrooije/painting/archive/0.4.zip or clone the repository and do "git checkout 0.4" to switch to the 0.4 branch.
How to use? For painting, place the special Armor Canvas (a 6x6 canvas that fits on the armor textures) on the easel from the painting mod and use the different color brushes to make your painting:
Dig the painting, put it in the (last remaining XD) armor slot:
Et voila!!! XD The painting is now on BOTH the chest plate AND the shield:
To place a banner from the banners mod on your armor, craft a wooden banner and from that craft a special armor banner sheet made out of paper in a shield shape and the wooden banner in the middle. The item looks like a banner sheet but called "Armor Banner"
Left click (punch) in the air to start creating the banner as per usual with the banners mod
Double click outside the banner creation window and place the resulting armor banner in an armor slot
Download: https://github.com/evrooije/painted_3d_ ... master.zip
Source: https://github.com/evrooije/painted_3d_armor
Depends: default, 3d_armor, shields?, painting?, banners?
To install, see the GitHub page for detailed instructions, but basically make sure you install both stu's 3d_armor (https://github.com/stujones11/minetest-3d_armor, viewtopic.php?f=11&t=4654) and then this copy of the painting mod that I have which offers a painting API (https://github.com/evrooije/painting, originally from viewtopic.php?f=11&t=2588 but do not use the download there), DoctorFool's banners mod (https://github.com/shamoanjac/banners-mod, viewtopic.php?f=9&t=15305) or both of them if you want to support both paintings and banners.
If you use Minetest 0.5 and want to use painting, then you can download my version of the painting mode from master: https://github.com/evrooije/painting. If however you are using Minetest 0.4.x, you have to use the 0.4 branch of this repository, i.e. https://github.com/evrooije/painting/tree/0.4 or https://github.com/evrooije/painting/archive/0.4.zip or clone the repository and do "git checkout 0.4" to switch to the 0.4 branch.
How to use? For painting, place the special Armor Canvas (a 6x6 canvas that fits on the armor textures) on the easel from the painting mod and use the different color brushes to make your painting:
Dig the painting, put it in the (last remaining XD) armor slot:
Et voila!!! XD The painting is now on BOTH the chest plate AND the shield:
To place a banner from the banners mod on your armor, craft a wooden banner and from that craft a special armor banner sheet made out of paper in a shield shape and the wooden banner in the middle. The item looks like a banner sheet but called "Armor Banner"
Left click (punch) in the air to start creating the banner as per usual with the banners mod
Double click outside the banner creation window and place the resulting armor banner in an armor slot
- Attachments
-
- screenshot_20170726_195949.png (448.22 KiB) Viewed 1573 times
-
- screenshot_20170726_195726.png (392.74 KiB) Viewed 1573 times
-
- screenshot_20170726_112027.png (380.69 KiB) Viewed 1573 times
Last edited by Beerholder on Thu Aug 30, 2018 14:31, edited 4 times in total.
- duane
- Member
- Posts: 1715
- Joined: Wed Aug 19, 2015 19:11
- GitHub: duane-r
- Location: Oklahoma City
- Contact:
Re: [Mod] 3D Armor Painted Banners [painted_3d_armor]
I like that interface.
Believe in people and you don't need to believe anything else.
- the_raven_262
- Member
- Posts: 343
- Joined: Mon Sep 22, 2014 09:30
- GitHub: theraven262
- IRC: [Discord unfortunately] corvus262
- maikerumine
- Member
- Posts: 1420
- Joined: Mon Aug 04, 2014 14:27
- GitHub: maikerumine
- In-game: maikerumine
Re: [Mod] 3D Armor Painted Banners [painted_3d_armor]
Sweeeeet!!
Talamh Survival Minetest-->viewtopic.php?f=10&t=12959
- Beerholder
- Member
- Posts: 199
- Joined: Wed Aug 03, 2016 20:23
- GitHub: evrooije
- In-game: Beerholder
Re: [Mod] 3D Armor Painted Banners [painted_3d_armor]
FYI I wanted to initially base it on this exact banners mod actually, but ran into several problems... One is that afaik I cannot fit those banners on the player skin (there is only limited space :((( and probably it won't be nice to scale those banner images down. The other problem is that the Banners mod only supplies a predefined set of images that you can overlay.the_raven_262 wrote:This + Banners mod
If the banners mod would also leverage painting somehow, one would both have endless possibilities as far as banners are concerned and the possibility to place painted canvases on both the armor and the banner. I might actually have a look into that and see what is possible, maybe make a (configurable) bridge to that mod as well as part of this mod or make a separate one that glues everything together ...
But there's definitely more that will be done with this! :D
I fixed most issues right now and ready for first beta release so people can start trying it out. But need some coffee first, so it might be up on the GitHub in an hour or two, or somewhere in the evening CET time at the latest! :)
- Beerholder
- Member
- Posts: 199
- Joined: Wed Aug 03, 2016 20:23
- GitHub: evrooije
- In-game: Beerholder
Re: [Mod] 3D Armor Painted Banners [painted_3d_armor]
UPDATE: Download link and link to source code added. Detailed instructions can be found in the README.md and of course the source code ;)
Let me know in case of issues! I will install this on the Beerarchy server but really hope some more people can give this a good spin to flush out any problems. Thanks!
Let me know in case of issues! I will install this on the Beerarchy server but really hope some more people can give this a good spin to flush out any problems. Thanks!
- Lone_Wolf
- Member
- Posts: 2576
- Joined: Sun Apr 09, 2017 05:50
- GitHub: LoneWolfHT
- IRC: LandarVargan
- In-game: LandarVargan
Re: [Mod] 3D Armor Painted Banners [painted_3d_armor]
Nice! (Again lol)
- Beerholder
- Member
- Posts: 199
- Joined: Wed Aug 03, 2016 20:23
- GitHub: evrooije
- In-game: Beerholder
Re: [Mod] 3D Armor Painted Banners [painted_3d_armor]
Lol @Lone_Wolf XD Thanks all for the kind positive feedback! :D It's not the most polished solution though but should at least work! O_o
Minor update as well: You can now configure whether to show the banner on the player skin when not wearing a chest plate, or only show the banner when wearing a chest plate by setting overlayOnSkin to true or false in init.lua. In the repo it is set to true so if you absolutely do not want this, then you can change it in the code.
Minor update as well: You can now configure whether to show the banner on the player skin when not wearing a chest plate, or only show the banner when wearing a chest plate by setting overlayOnSkin to true or false in init.lua. In the repo it is set to true so if you absolutely do not want this, then you can change it in the code.
- stu
- Member
- Posts: 923
- Joined: Sat Feb 02, 2013 02:51
- GitHub: stujones11
- Location: United Kingdom
Re: [Mod] 3D Armor Painted Banners [painted_3d_armor]
+1 Brilliant idea, also nice use of the new armor api :)
- Beerholder
- Member
- Posts: 199
- Joined: Wed Aug 03, 2016 20:23
- GitHub: evrooije
- In-game: Beerholder
Re: [Mod] 3D Armor Painted Banners [painted_3d_armor]
Thanks for the API and those events I could hook into stu! Powerful stuff XDstu wrote:+1 Brilliant idea, also nice use of the new armor api :)
- ThomasMonroe
- Member
- Posts: 286
- Joined: Tue Apr 04, 2017 16:21
- GitHub: ThomasMonroe314
- IRC: ThomasMonroe TMcSquared
- In-game: ThomasMonroe TMcSquared
- Location: Wherever I am at
Re: [Mod] 3D Armor Painted Banners [painted_3d_armor]
looks very cool and interesting Beerholder, this might show up in MM-Survival one day, you never know! XD
I don't make messes, I just, er...disturb the local entropy!
- Lone_Wolf
- Member
- Posts: 2576
- Joined: Sun Apr 09, 2017 05:50
- GitHub: LoneWolfHT
- IRC: LandarVargan
- In-game: LandarVargan
Re: [Mod] 3D Armor Painted Banners [painted_3d_armor]
Might wanna try redoing the screenshots without any filters on. It would look nicer then IMO
- Beerholder
- Member
- Posts: 199
- Joined: Wed Aug 03, 2016 20:23
- GitHub: evrooije
- In-game: Beerholder
Re: [Mod] 3D Armor Painted Banners [painted_3d_armor]
UPDATE: I was not sure if I could make this work, but I actually managed to add 12x12 and 24x24 banners!! This will allow for more detailed paintings on the armor than the blocky 6x6. This could also possibly be the solution to make this work with the Banners mod .......!!! (keep your fingers crossed!! XD)
Example of a 12x12 painting on my admin armor:
In case you are interested, I was able to make this work by adding a ^[resize texture modifier before adding the banner image to the player skin. Effectively if you use the 12x12 the player skin is scaled by a factor of 2 on the fly before the banner is added. Using the 24x24, the skin is scaled by a factor of 4. Very hacky, but hey it works XD
Also on another note, you may have higher resolution textures for your 3D armor. That is why I added two new locals at the top of the init.lua for the armor texture size (standard size 64x32) and the armor preview (32x64). So if you have high res armor textures, just change these two variables to the appropriate texture sizes. If you mix low res and high res armor textures, this will not work properly however (and no intention to fix that, sorry). I have not tested this though, so in case of issues let me know!
Since there are now these higher resolution canvases, you may want to consider removing the 16x16, 32x32 and 64x64 painting canvases from the painting mod, since you might as well use the canvases supplied by this mod for both armor and normal paintings as well. To add a 48x48 canvas, you can copy the craft item and recipe code and register it with the painting mod.
Code pushed to GitHub, and in case you already installed the mod, just download the latest master zip or do a git pull, this version is compatible with the previous one.
Example of a 12x12 painting on my admin armor:
In case you are interested, I was able to make this work by adding a ^[resize texture modifier before adding the banner image to the player skin. Effectively if you use the 12x12 the player skin is scaled by a factor of 2 on the fly before the banner is added. Using the 24x24, the skin is scaled by a factor of 4. Very hacky, but hey it works XD
Also on another note, you may have higher resolution textures for your 3D armor. That is why I added two new locals at the top of the init.lua for the armor texture size (standard size 64x32) and the armor preview (32x64). So if you have high res armor textures, just change these two variables to the appropriate texture sizes. If you mix low res and high res armor textures, this will not work properly however (and no intention to fix that, sorry). I have not tested this though, so in case of issues let me know!
Since there are now these higher resolution canvases, you may want to consider removing the 16x16, 32x32 and 64x64 painting canvases from the painting mod, since you might as well use the canvases supplied by this mod for both armor and normal paintings as well. To add a 48x48 canvas, you can copy the craft item and recipe code and register it with the painting mod.
Code pushed to GitHub, and in case you already installed the mod, just download the latest master zip or do a git pull, this version is compatible with the previous one.
- Attachments
-
- screenshot_20170727_113006.png (501.83 KiB) Viewed 1573 times
- Beerholder
- Member
- Posts: 199
- Joined: Wed Aug 03, 2016 20:23
- GitHub: evrooije
- In-game: Beerholder
Re: [Mod] 3D Armor Painted Banners [painted_3d_armor]
Integration with [Mod] Banners Mod [1.0] [banners] !?!? Here you go!!!! XD But don't ask me how, this was terrible, again hours of work O_o Anyways the code is not stable yet, the texture keeps disappearing for some reason -_- so need to debug that before I unleash the beast... Once done I will push the update. Other things of note re. the version on my machine: painting mod and banners mod are optional now, both can be installed or just one of the two. Hope to have the new version online tomorrow!the_raven_262 wrote:This + Banners mod
- Attachments
-
- screenshot_20170729_015250.png (183.96 KiB) Viewed 1573 times
- the_raven_262
- Member
- Posts: 343
- Joined: Mon Sep 22, 2014 09:30
- GitHub: theraven262
- IRC: [Discord unfortunately] corvus262
Re: [Mod] 3D Armor Painted Banners [painted_3d_armor]
Dude thats epic! :D
- Beerholder
- Member
- Posts: 199
- Joined: Wed Aug 03, 2016 20:23
- GitHub: evrooije
- In-game: Beerholder
Re: [Mod] 3D Armor Painted Banners [painted_3d_armor]
Glad you like it! :D And I just pushed to code to GitHub so just git pull or download the zip (same link as before) to get the goodies.the_raven_262 wrote:Dude thats epic! :D
Instructions:
- Craft a wooden banner
- Craft a special armor banner sheet made out of paper in a shield shape and the wooden banner in the middle. The item looks like a banner sheet but called "Armor Banner"
- Left click (punch) in the air to start creating the banner as per usual with the banners mod
- Double click outside the banner creation window and place the resulting armor banner in an armor slot
Unfortunately it is not possible to place one of the banners from the banners mod (wooden banner, steel banner) straight into the armor slot since these two are registered as nodes and the armor *must* be either a tool or a craft item. If it is a node, then when you are punched by a mob the game crashes. Also, anything that was created with the wooden banner will not be transferred to the armor banner when you make a craft out of it. I might tweak this later e.g. replacing the banner node with a craft item on the fly when putting the banner in your armor slot and getting the node's metadata and putting it in the item on equip but so far I was not successful.
Scrap that, I did an override and pushed that to GitHub now as well, so this issue seems to be fixed. I still would like this to be fixed properly, so will wait and see what stu has to say :)Of more importance though is that it seems that the painted armor disappears when switching wielded items, which might be related to the visible wielded item mod. This I most definitely need to fix straight away. Hope I can figure something out without touching the other mods (3d_armor, wieldview) though ....... But if I do have to change those, I will try to make it generic and ask stu to add this to his mod.
In any case, most likely still more changes to come later, but if you want to give this new version a spin already, have fun and let me know in case of any other issues!
- Attachments
-
- screenshot_20170729_114357.png (210.14 KiB) Viewed 1573 times
-
- screenshot_20170729_114339.png (203.83 KiB) Viewed 1573 times
-
- screenshot_20170729_114201.png (161.69 KiB) Viewed 1573 times
- azekill_DIABLO
- Member
- Posts: 7507
- Joined: Wed Oct 29, 2014 20:05
- GitHub: azekillDIABLO
- In-game: azekill_DIABLO
- Location: OMICRON
- Contact:
Re: [Mod] 3D Armor Painted Banners [painted_3d_armor]
nice mod for a server with factions :D
Gone, but not dead. Contact me on discord: azekill_DIABLO#6565
DMs are always open if you want to get in touch!
DMs are always open if you want to get in touch!
Re: [Mod] 3D Armor Painted Banners [painted_3d_armor]
OMG OMG this is insane :D
Hey, what can i say? I'm the bad guy.
- Diamond knight
- Member
- Posts: 475
- Joined: Sun Apr 19, 2015 19:50
- GitHub: Diamondknight
- In-game: Ferrumprinceps
- Location: Chilling in Constantinople
- Contact:
Re: [Mod] 3D Armor Painted Banners [painted_3d_armor]
This mod is underrated, I may use it in the future in my planned age of empires semianarchy server.
My modding team: https://github.com/basilea-rhomaion
-
- Member
- Posts: 46
- Joined: Sat Aug 18, 2018 19:30
- In-game: init.lua
- Location: {X=25.25, y=-400, z=478,8} Bavaria, Germany
- Beerholder
- Member
- Posts: 199
- Joined: Wed Aug 03, 2016 20:23
- GitHub: evrooije
- In-game: Beerholder
Re: [Mod] 3D Armor Painted Banners [painted_3d_armor]
Once I am back, this weekend, I will check compatibility with the latest versions of MT (0.4.17x and 0.5) as well as latest versions of 3d_armor, shields and MT game. I will also look into removing some of the code overriding 3d_armor, as it keeps me from moving this to mod releases.
- Beerholder
- Member
- Posts: 199
- Joined: Wed Aug 03, 2016 20:23
- GitHub: evrooije
- In-game: Beerholder
Re: [Mod] 3D Armor Painted Banners [painted_3d_armor]
Hi all,
So I tested this and ran into various issues. First of all, seems I have a completely different painting mod from the one that is (currently) published in minetest-mods ..... The one I had offered a way to register canvases via a painting object API.
I cannot remember how or what I did to get this version ... But it needs this one with that has this API. So what I have done is to upload this version with the API that I have locally to Github: https://github.com/evrooije/painting
Another issue was the painting mod checking for the eye level:
Due to the 1 node player model offset in MT 0.5, this needed to be changed to (obviously):
In this copy of the painting mod on Github I have a version for 0.5 at master and a 0.4 branch in case you use 0.4.x, so you need to get the correct version of the mod.
In addition, the armor preview did not work with the latest 3d_armor. After some digging and trying out a couple of things, I was able to fix this. I also no longer need to override one of the wieldview mod's functions as stu had made a fix for this quite a while ago IIRC. I will update the first post with new instructions on how to get this to work with a link to my version of the painting mod!
This update was long overdue, seems 3d_armor is already at version 0.4.12 (while I was still at 0.4.8 compatibility).
So I tested this and ran into various issues. First of all, seems I have a completely different painting mod from the one that is (currently) published in minetest-mods ..... The one I had offered a way to register canvases via a painting object API.
I cannot remember how or what I did to get this version ... But it needs this one with that has this API. So what I have done is to upload this version with the API that I have locally to Github: https://github.com/evrooije/painting
Another issue was the painting mod checking for the eye level:
Code: Select all
--get player eye level
--see player.h line 129
local ppos = puncher:getpos()
ppos.y = ppos.y + 1.625
Code: Select all
--get player eye level
--see player.h line 129
local ppos = puncher:getpos()
ppos.y = ppos.y + 2.625
In addition, the armor preview did not work with the latest 3d_armor. After some digging and trying out a couple of things, I was able to fix this. I also no longer need to override one of the wieldview mod's functions as stu had made a fix for this quite a while ago IIRC. I will update the first post with new instructions on how to get this to work with a link to my version of the painting mod!
This update was long overdue, seems 3d_armor is already at version 0.4.12 (while I was still at 0.4.8 compatibility).
Who is online
Users browsing this forum: No registered users and 18 guests