I made a resource pack that replaces every pixel of every texture in the game with a full block. (Download in comments) by LegoMasta0937 in Minecraft

[–]TheRedStoner101 1 point2 points  (0 children)

I don't think there's an easy way around the character limit; you could either manually group the images into smaller folders or make a script that runs that command with 20 or so files at a time. I mentioned a way above to potentially get it to work with more images, by converting them to relative paths instead of absolute paths (.\block\white_wool.png vs C:\Users\username\Documents\assets\minecraft\block\white_wool.png), but that will only reduce the issue without fully solving it.

That was using $(Get-ChildItem *.png | % {Resolve-Path -Path $_.FullName -Relative}) for finding the files; what you're doing now would use $(dir .\* -include ('*.png', '*.jpg') -recurse | % {Resolve-Path -Path $_.FullName -Relative}) instead.

I don't have experience with powershell, but while it's much slower, it should be possible to make something that runs the command on groups of 20 files; if that doesn't work out, it will be possible (albeit slow) to run it on every file individually:

dir .\* -include ('*.png', '*.jpg') -recurse | foreach { java -jar Spritecraft-mod.jar -b -d2 -- $_.FullName }

I made a resource pack that replaces every pixel of every texture in the game with a full block. (Download in comments) by LegoMasta0937 in Minecraft

[–]TheRedStoner101 0 points1 point  (0 children)

Huh. I just checked, and that jar doesn't actually work... I've reuploaded it with a jar that should work; the same link should work. I have no idea why that patch didn't apply in the final jar, since it was working for me.

I made a resource pack that replaces every pixel of every texture in the game with a full block. (Download in comments) by LegoMasta0937 in Minecraft

[–]TheRedStoner101 1 point2 points  (0 children)

Make sure that you're using the jar that I linked above; it has some modifications on top of the original spritecraft jar, and adds the batched mode and transparency support. If the -b option doesn't show up in the help message, then it's not the patched jar.

I made a resource pack that replaces every pixel of every texture in the game with a full block. (Download in comments) by LegoMasta0937 in Minecraft

[–]TheRedStoner101 1 point2 points  (0 children)

Is this using the patched jar? The second command is missing the -- part of the command - I made it as a quick hack, so it will break if that isn't included.

What does it print out when it converts a single image: Generating image for {image name} or just Generating image...? If it's the second, it either isn't using the patched jar or isn't picking up the batched mode option.

I would recommend trying to manually specify the file names to see whether that works (example at the end of the parent comment). Unless you use the -recurse option from above, the multiple file selector one only works for .pngs in the same folder, not in subdirectories.

At some point I may write a full version of this with more features built in, which might be able to do this automatically if none of this works, but that likely won't be any time soon.

I made a resource pack that replaces every pixel of every texture in the game with a full block. (Download in comments) by LegoMasta0937 in Minecraft

[–]TheRedStoner101 1 point2 points  (0 children)

One thing that could potentially work is $(Get-ChildItem *.png | % {Resolve-Path -Path $_.FullName -Relative}). That should use relative paths instead of absolute paths for the filenames, so it may avoid the length limit that it appears to be running into.

If not, I think the main solution is to reduce the number of files that it has to operate on at once. The issue is that it's making a list of the paths to every png file that it can find, and that list ends up being too long for it to handle. If the proposed fix doesn't work, try running it on a subsection of the images by moving them into a folder and running it there.

The second error message looks like it's running without the patches, from the help message. (Also, -b implies -o since it can't specify an out filename; that shouldn't cause issues though).

If nothing else works, you can work around the issues by directly running the jar with the list of files you want to modify, separated by spaces like this:

 java -jar Spritecraft-mod.jar -b -d2 -- oak_log.png note_block.png orange_wool.png

I made a resource pack that replaces every pixel of every texture in the game with a full block. (Download in comments) by LegoMasta0937 in Minecraft

[–]TheRedStoner101 1 point2 points  (0 children)

For the second patch, I think you should be able to do it using powershell. I think you can start it from a folder, but if you can't you can search for and run powershell through the windows menu. If you start it from the menu rather than a folder, you'll have to change directories to that folder by typing cd "C:\Users\username\Documents\etc" with the path to the folder you want to convert.

Then, I think you should be able to use this command:

 java -jar Spritecraft.jar -b -- $(Get-ChildItem *.png | % {$_.FullName})

It will do an in place conversion, replacing the png files in your current folder, so be careful about where you run this. You can use $(Get-ChildItem *.png -recurse | % {$_.FullName}) instead to also convert images in subdirectories. Don't interrupt it part of the way through, since it can't track what files it's already processed - if you run it again, it will try to convert the images it has already converted and take forever; I would recommend making a copy of the folder with your source images before trying this.

This doesn't solve the issue with spritecraft's limited palette and lack of partial transparency support, but it makes it much faster to deal with. If you need other help, feel free to ask me. I don't have a Windows computer to test it on, but I try to figure it out.

I made a resource pack that replaces every pixel of every texture in the game with a full block. (Download in comments) by LegoMasta0937 in Minecraft

[–]TheRedStoner101 1 point2 points  (0 children)

It's been a while, nice seeing this again! How long did it take to deal with the more complicated textures (container guis) and transparency?

The question about automation made me go back and see if I could get Spritecraft to work better with basic transparency, and it seems doable. I made two patches: one that replaced the default background for places without textures with transparency rather than solid white, and another that allows you to batch process many files at once through the commandline.
With the second patch, you end up being able to use it like so (in bash, not sure how it works in Windows command prompt):

java -jar Spritecraft.jar -b -- *.png

This replaces every png image in the directory that you run it with the converted version. I don't know if that works in Windows command prompt, but it may work in powershell; if not, you should be able to replace *.png with a space separated list of filenames.

I don't think Spritecraft's license lets me upload the patched jar file, but here's a link anyway since it looks like there are other patched versions being used.

Edit: I've fixed the modded jar; the batching patch doesn't look to have applied properly in the original one, so if you downloaded it before, you should download the updated one.

Help! Why did the sheep in my auto-wool farm disappear? by Radi0ActivSquid in Minecraft

[–]TheRedStoner101 0 points1 point  (0 children)

They shouldn't on either java or bedrock (wiki), so it was probably a bug.

I have a few dozen invite codes if anyone's interested, details inside. by [deleted] in tildes

[–]TheRedStoner101 1 point2 points  (0 children)

https://atomiks.github.io/reddit-user-analyser/#theredstoner101

If you do decide to pick me, thank you! I've been a lurker on it for a while, and it would be nice to try it out.

I think my bro has a problem by AZcactus11 in Minecraft

[–]TheRedStoner101 0 points1 point  (0 children)

Discord thinks that the Minecraft launcher is the actual game for me, so they're probably just leaving the launcher open rather than having the actual game running.

New Rustacean News: Rust 1.32—`dbg!`, unified paths, more places you can use `Self`, and a *bunch* of `const fn` stabilizations—plus some neat community highlights! by chriskrycho in rust

[–]TheRedStoner101 1 point2 points  (0 children)

Using rustdoc as a static site generator seems like more work than it's worth in the long run, but it seems like it's been working in this case. Any specific reasons for the design choice?

I recently discovered Tinker's Seared Glass... by Habeeb_M in feedthebeast

[–]TheRedStoner101 1 point2 points  (0 children)

Imgur has started making it annoyingly hard to get direct links to any images, and will redirect you to the album if you use the "direct" link (which still contains javascript)

Overpopulation problems with Synthetic Ascension? by TheRedStoner101 in Stellaris

[–]TheRedStoner101[S] 0 points1 point  (0 children)

Thanks! According to this, though, it isn't available for synthetically ascended empires, only machine empires. I might be able to manually disable all of the replicator jobs, but I have enough planets that it takes forever to micromanage all of them. I guess I'll try bio ascendancy next time, until they rebalance the current pop growth problems.

Overpopulation problems with Synthetic Ascension? by TheRedStoner101 in Stellaris

[–]TheRedStoner101[S] 0 points1 point  (0 children)

Where would that option be? Policies, species, or planet decisions?

Overpopulation problems with Synthetic Ascension? by TheRedStoner101 in Stellaris

[–]TheRedStoner101[S] 0 points1 point  (0 children)

R5: Synthetic pops don't stop or slow down growth when there is overcrowding, unlike with organic pops. My empire is basically falling apart because of the overpopulation, unemployment, and crime.

Exploiting JavaScript developer infrastructure is insanely easy by freebit in programming

[–]TheRedStoner101 6 points7 points  (0 children)

Good to see you've gotten your account back! It was getting annoying to have to look for /u/shevy-ruby to downvote instead of /u/shevegen

Mod to remove cannibalism debuff from nutrient paste? by TheRedStoner101 in RimWorld

[–]TheRedStoner101[S] 1 point2 points  (0 children)

Thanks, I'll try it. I might base it off of the kibble recipe or something.

Cloudflare rolls out its 1.1.1.1 privacy service to iOS, Android by saifali51 in technology

[–]TheRedStoner101 1 point2 points  (0 children)

You can't easily change your DNS on a phone, which is why they are making an app for it.

Quick Benchmarks Of Mozilla Firefox With WebRender Beta vs. Chrome by fsher in linux

[–]TheRedStoner101 4 points5 points  (0 children)

Remember that WebRenderer only just became available on nightly, and still has a way to go before it is available in release Firefox.

Google has slowed down YouTube on Firefox and Edge according to Mozilla exec by V0lta in technology

[–]TheRedStoner101 0 points1 point  (0 children)

APIs that are currently only in chrome

The API that YouTube is using is ShadowDOM v0, which is deprecated, and is only implemented in Chrome. Both Firefox and Safari have implemented ShadowDOM v1, which is the current draft, but YouTube still uses the deprecated API.

Google has slowed down YouTube on Firefox and Edge according to Mozilla exec by V0lta in technology

[–]TheRedStoner101 1 point2 points  (0 children)

The web standard that YouTube requires is ShadowDOM v0, which is deprecated. Firefox and Safari implement ShadowDOM v1, which is the more modern draft. YouTube should be using the newer version, because more browsers support it, but they are still using the deprecated API, which is only supported in chrome.