JannisX11 / blockbench

Blockbench - A low poly 3D model editor
https://www.blockbench.net
GNU General Public License v3.0
3.05k stars 271 forks source link

Opening .jem files downgrades the installed Blockbench version from 4.10.3 to 4.8.3 #2371

Closed Streament closed 3 weeks ago

Streament commented 3 weeks ago

What are you trying to do, and what do you expect to happen?

I want to open a .jem files that is a model for a minecraft optifine texturepack. I expect that the file opens similar to how a .bbmodel would open. I'd then edit it etc.

What happens instead?

whenever I do right-click>open with...> blockbench the .jem file, a small window appears with text that reads "installation is running, please wait". If it was previously closed, the process completes and blockbench opens, but does not open the file. The .jem file will not be visible in the "Recent" tab. In the start menu of blockbench, I can see a screen as if blockbench was actually updated. Right now, that means I see the "The Knife Tool Update" screen. If blockbench is running while I attempt to open the file, it will tell me to close blockbench.

The "update" process downgrades blockbench to 4.8.3.

Any models in the "recent" tab look fine, there is no initial texture issue. If I then open one of the .bbmodel files, the models textures' will not be applied correctly to the cubes. Immediately after opening the .bbmodel file, a window appears inside of blockbench that reads "Outdated Client" "Please update to the latest version of blockbench to do this."

I can reproduce the bug consistently if I download and reinstall blockbench from https://www.blockbench.net/downloads (windows). Once the installation is complete, blockbench opens as is usual, the home menu will again show the "Knife Tool Update" thing, the version shows 4.10.3. The .bbmodel with the messed up textures will show with these messed up textures on the "recent" tab. Opening the model fixes the texture issue without requiring me to do anything. Opening the .jem file again will make the issue appear again.

https://github.com/JannisX11/blockbench/assets/97909201/3762677b-398e-4e43-967f-3d0f79fb22cb

After setting all plugins to 'disabled', I was able to reproduce the issue.

Model format in which the issue occurs

jem

Blockbench variant

Program

Blockbench version

4.10.3

Operating System

Windows 10 Pro 22H2

Installed Blockbench plugins

Minecraft Title Generator, Player Statue Generator, Shape Generator, Resourcepack Manager, Rainbow Road Game, Figura Model Format, Voxelshape Generators, Simplify Models, Activity Tracker, Startup Tips, Backup Viewer

Streament commented 3 weeks ago

I have found the underlying cause and fixed it, kinda a fuckup on my side. The programm I set to always open jem files with was an old installer of blockbench(for 4.8.3 in fact), which somehow ended up in the folder C:\Program Files\Blockbench. Windows gave that 'app' as an option for "always open with", no wonder it would always start a downgrade process.