Convert MC resource/texture packs to Minetest!

sofar
Developer
 
Posts: 1747
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Convert MC resource/texture packs to Minetest!

by sofar » Wed Jul 12, 2017 18:30

texmex wrote:It's hard to organize them as is, yes. :)


The goal of this project is to make an easy to use texture pack that works well for all users, including novice users. It does not exist to enable your OCD ;)
 

User avatar
texmex
Member
 
Posts: 1011
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex
 

User avatar
Wuzzy
Member
 
Posts: 3232
Joined: Mon Sep 24, 2012 15:01
GitHub: Wuzzy2
IRC: Wuzzy
In-game: Wuzzy

Re: Convert MC resource/texture packs to Minetest!

by Wuzzy » Wed Jul 19, 2017 21:02

FYI: Today I have worked on a Python converter script to convert textures from Minecraft to MineClone 2.

It can be found in the MineClone 2 repository under “tools/”.
It's stilly very rough (I am not proud of the coding style and all those system calls) and is able to create (incomplete) texture packs and even update the MineClone 2 files, in case I want to switch the default textures in future. Eventually I may switch to rely entirey on the CSV data, so the script does not contain any hardcoded file name at all.

I used Python because I think it is more portable than horrible Shell scripting, it's easy to do “everyday tasks” (like parsing a CSV), and I am simply very bad at Shell scripting and I just hate the language.
My creations. I gladly take any bitcoins you have lying around: 17fsUywHxeMHKG41UFfu34F1rAxZcrVoqH
 

sofar
Developer
 
Posts: 1747
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Convert MC resource/texture packs to Minetest!

by sofar » Wed Jul 19, 2017 21:46

Wuzzy wrote:FYI: Today I have worked on a Python converter script to convert textures from Minecraft to MineClone 2.

It can be found in the MineClone 2 repository under “tools/”.
It's stilly very rough (I am not proud of the coding style and all those system calls) and is able to create (incomplete) texture packs and even update the MineClone 2 files, in case I want to switch the default textures in future. Eventually I may switch to rely entirey on the CSV data, so the script does not contain any hardcoded file name at all.

I used Python because I think it is more portable than horrible Shell scripting, it's easy to do “everyday tasks” (like parsing a CSV), and I am simply very bad at Shell scripting and I just hate the language.


Code: Select all
resp = {"pffffff", "really?", "ewwww"}
print(resp[math.random(3)])


If this is not applicable for minetest_game texture packs, and it does not relate to the original project, then you're just advertising your own self-admitted shoddy project.

If you are actually interested in making a reasonable project that could work for both minetest_game and mineclone2, and do a platform independent solution that doesn't require a scripting language to be installed separately, then maybe I'll be up for doing this. E.g. `go` would be an excellent language to do a project like that into, since it is incredibly easy to create cross platform binaries (just like how I made mtmediasrv) right from e.g. Linux for e.g. Windows.
 

User avatar
captpete
Member
 
Posts: 105
Joined: Fri Nov 25, 2016 03:02

Re: Convert MC resource/texture packs to Minetest!

by captpete » Sat Jul 29, 2017 15:39

Is it possible for you, if time allows, to add conversion to some of the popular mods out there - such as the ones in VanessaE's Dreambuilder Modpack (anvil, bedrock, boost_cart, mesecons, moreblocks, moretrees, quartz, stained_glass, etc ), bakedclay, beacon, lapis, nether, xdecor, etc.

I know only some MineCraft blocks could be converted to MineTest mods but that would allow more MineCraft blocks to be used.
 

sofar
Developer
 
Posts: 1747
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Convert MC resource/texture packs to Minetest!

by sofar » Mon Jul 31, 2017 19:37

captpete wrote:Is it possible for you, if time allows, to add conversion to some of the popular mods out there - such as the ones in VanessaE's Dreambuilder Modpack (anvil, bedrock, boost_cart, mesecons, moreblocks, moretrees, quartz, stained_glass, etc ), bakedclay, beacon, lapis, nether, xdecor, etc.

I know only some MineCraft blocks could be converted to MineTest mods but that would allow more MineCraft blocks to be used.


yes, it's totally all possible, except that it's a huge time sink and I don't generally use most of these mods, so I'd be wasting my time - at least that's how I feel about it.

But, if someone else adds good conversions for things like technic, mesecons and other popular minetest mods, then I'll merge it. Someone just needs to do this.
 

User avatar
captpete
Member
 
Posts: 105
Joined: Fri Nov 25, 2016 03:02

Re: Convert MC resource/texture packs to Minetest!

by captpete » Tue Aug 01, 2017 21:22

Unfortunately, I don't know Lua but I'll take a look at some of the code and see how simple assignment works for the simpler building blocks - the "technical" blocks would probably be beyond me - if I can find the time to sink into it.
 

User avatar
Enrikoo
Member
 
Posts: 393
Joined: Thu Nov 16, 2017 18:18
Location: Germany
GitHub: Enrikoo
IRC: Enrico - Enricoo - Enrlco
In-game: Enrico - Enriko
 

sofar
Developer
 
Posts: 1747
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Convert MC resource/texture packs to Minetest!

by sofar » Sat Sep 01, 2018 03:47

Enrikoo wrote:Can you please convert this?


Not interested. Please convert it yourself.

There is no license posted so it may not even be legal to redistribute a converted texture pack, plus, because it's PVP focused it likely doesn't have any of the normal survival textures redone. At 17mb for 256px, It probably doesn't have any real coverage over the basics.
 

User avatar
Enrikoo
Member
 
Posts: 393
Joined: Thu Nov 16, 2017 18:18
Location: Germany
GitHub: Enrikoo
IRC: Enrico - Enricoo - Enrlco
In-game: Enrico - Enriko

Re: Convert MC resource/texture packs to Minetest!

by Enrikoo » Sat Sep 01, 2018 10:18

sofar wrote:
Enrikoo wrote:Can you please convert this?


Not interested. Please convert it yourself.

There is no license posted so it may not even be legal to redistribute a converted texture pack, plus, because it's PVP focused it likely doesn't have any of the normal survival textures redone. At 17mb for 256px, It probably doesn't have any real coverage over the basics.


I already tried to convert but I always fail at converting. I need to know how to convert textures on Windows 10.

Isn't there any way to convert it on Windows 10, maybe a link?
 

User avatar
texmex
Member
 
Posts: 1011
Joined: Mon Jul 11, 2016 21:08
GitHub: tacotexmex
In-game: texmex
 

User avatar
Enrikoo
Member
 
Posts: 393
Joined: Thu Nov 16, 2017 18:18
Location: Germany
GitHub: Enrikoo
IRC: Enrico - Enricoo - Enrlco
In-game: Enrico - Enriko
 

sofar
Developer
 
Posts: 1747
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Convert MC resource/texture packs to Minetest!

by sofar » Sun Sep 02, 2018 04:07

Enrikoo wrote:Isn't there any way to convert it on Windows 10, maybe a link?


I'm not interested in supporting windows. I neither use it nor do I have any energy making code work on it.
 

User avatar
captpete
Member
 
Posts: 105
Joined: Fri Nov 25, 2016 03:02

Re: Convert MC resource/texture packs to Minetest!

by captpete » Tue Sep 04, 2018 18:50

Enrikoo wrote:I already tried to convert but I always fail at converting. I need to know how to convert textures on Windows 10.

Isn't there any way to convert it on Windows 10, maybe a link?


For those of you using Winblows(intentional) install "Cygwin" on Windows. Go to http://www.cygwin.com and scroll down to "Installing Cygwin" and follow the directions for the base install. Then run the setup file again and select "All" from the dropdown. Search for "wget", "unzip" and "imagemagic" successively and click on the "skip" for each package to select it, it will change to a version number. Complete the install. Then run the "Cygwin Terminal" from the icon on your Desktop and follow the directions in the original post in this topic.

If you feel adventurous you can install "X-Windows" (goto the "Cygwin/X" section on the website) and then "zenity" for the GUI.

Hope this helps.
 

User avatar
captpete
Member
 
Posts: 105
Joined: Fri Nov 25, 2016 03:02

Re: Convert MC resource/texture packs to Minetest!

by captpete » Wed Sep 05, 2018 14:11

Is it possible to add some of the new default textures (I'm thinking Desert and Silver Sandstone) to the converter? Might it be simple like modifying Sandstone images via a palette or using Red Sandstone and changing the saturation? It seems your Desert Stone could be used for Desert Sandstone and maybe up the saturation for a new Desert Stone? Not to sure about Silver Sandstone but maybe a conversion to grey scale?

Jut a thought since I don't really know ImageMagic that well.
 

sofar
Developer
 
Posts: 1747
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Convert MC resource/texture packs to Minetest!

by sofar » Wed Sep 05, 2018 16:59

Honestly the script is something I'd like to replace with e.g. a golang implementation, since that would allow me to (trivially) create binaries that work on Windows and Linux. If anyone feels like starting a rewrite in Go, please let me know, and I can help out.
 

User avatar
captpete
Member
 
Posts: 105
Joined: Fri Nov 25, 2016 03:02

Re: Convert MC resource/texture packs to Minetest!

by captpete » Wed Sep 05, 2018 18:01

Well I'm not a programmer but I wonder if this would work in your current script to add silver_sandstone to it and not break anything:

Code: Select all
# attempt to make silver sand(stone)
      echo -e "." >> _n/_tot
      if [ -f _n/blocks/sandstone_normal.png ]; then
         convert _n/blocks/sand.png  -colorspace Gray default_silver_sand.png
         convert _n/blocks/sandstone_top.png  -colorspace Gray default_silver_sandstone.png
         convert _n/blocks/sandstone_carved.png  -colorspace Gray default_silver_sandstone_block.png
         convert _n/blocks/sandstone_normal.png  -colorspace Gray default_silver_sandstone_brick.png
         echo -e "." >> _n/_counter
      fi


Is that correct usage or do I need to check if all sand/sandstone variants exist individually?
 

sofar
Developer
 
Posts: 1747
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Convert MC resource/texture packs to Minetest!

by sofar » Wed Sep 05, 2018 22:51

captpete wrote:Well I'm not a programmer but I wonder if this would work in your current script to add silver_sandstone to it and not break anything:

...

Is that correct usage or do I need to check if all sand/sandstone variants exist individually?


Nope, that looks fine. Why don't you try making a git pull request, so we can do code review?
 

User avatar
captpete
Member
 
Posts: 105
Joined: Fri Nov 25, 2016 03:02

Re: Convert MC resource/texture packs to Minetest!

by captpete » Sat Sep 08, 2018 15:09

I'm not a programmer or a developer and I don't have a developer setup for github/lib so I'm not sure how to go about that. Since I don't have a project to host I'm not sure of the steps to get an account. I don't really want to have more online accounts to maintain if I can help it. I'm just a very poor script jockey only kicking and screaming when my family or close friends want something. I know just enough to get into trouble quite frequently [Grin].
 

sofar
Developer
 
Posts: 1747
Joined: Fri Jan 16, 2015 07:31
GitHub: sofar
IRC: sofar
In-game: sofar

Re: Convert MC resource/texture packs to Minetest!

by sofar » Sun Sep 09, 2018 18:52

captpete wrote:I'm not a programmer or a developer and I don't have a developer setup for github/lib so I'm not sure how to go about that. Since I don't have a project to host I'm not sure of the steps to get an account. I don't really want to have more online accounts to maintain if I can help it. I'm just a very poor script jockey only kicking and screaming when my family or close friends want something. I know just enough to get into trouble quite frequently [Grin].


lol

I understand. But, if you want to learn how to be able to do more trouble, it may help to learn how to use git and github!
 

Previous

Return to Texture Packs



Who is online

Users browsing this forum: No registered users and 5 guests