Comments (12)
Thank you, this is the right line! I check this shortly
from portablemc.
I don't understand how you managed to get this metadata format for arguments. To explain, when launching fabric:1.16.5:0.11.6
, the fabric add-on download correct metadata to .minecraft/versions/fabric-1.16.5-0.11.6
, this version depends on the 1.16.5
version. The problem seems to came from the version metadata 1.16.5
(at .minecraft/versions/1.16.5/1.16.5.json
), this metadata were probably downloaded not by PortableMC, can you confirm that?
I know how to fix this issue, but before I need to know if the issue come from an old metadata format that I MUST support for retro-compatibility, or if this is an issue of another launcher.
Can you send here the metadata file for the version 1.16.5 ?
from portablemc.
@mindstorm38 Thank you for replying, I fixed the problem by delete version 1.16.5. If can, can you help me make a simple short launch script that launch minecraft fabric loader ? (Include offline mode feature too if possible). I was planning to make a custom launcher with GUI that launch Fabric Mod for my Fabric Modded Server.
from portablemc.
Ok, I'm assuming that you already have the script with the modloader_fabric
add-on. Then you can start the launcher process using subprocess
package in Python. You can use for example start fabric:<minecraft_version> -u <username> -i <uuid>
to use offline mode profile. Argument -i
is optional but can be useful in some cases.
from portablemc.
The fabric.py
file will not launch, it is not made to be launched. As you said, only portable.py
is working it load fabric add-on.
For bundling the python files in the .exe
thing without requiring the user to download Python, I have never done this, so I can't help you. Maybe you can ship multiple files into the EXE, maybe not, I don't know :/
from portablemc.
Hi! Thank you for this report, this will be easier for me if you can add a bit of debug code into the script. Can you add print(args)
after the line 719 (ret = []
in function interpret_args
) and try again, this will not fix the issue but ouput the arguments list, then you just share the output here.
from portablemc.
I'm I putting it in the right line ? Seem to be the same error output.
from portablemc.
Oh anyway after you done fix. Can you help me make a simple short launch script that launch minecraft fabric loader. (include offline mode too if possible). I know there a sample on the minecraft launcher lib but it give me error output almost(not all) like the one I had right now on your script. I guess I'm suppose to ask this in pull request but if I do it there you won't know what the error is. Thanks.
from portablemc.
Have you checked the README? It describes all arguments to start the game (e.g. in offline mode). You can also use start -h
sub command to get help for the start sub command.
Also, what type of script do you need, bash/python?
from portablemc.
@mindstorm38 I need a simple python script that start minecraft Fabric loader and load all the mobs. I was plaining to make a full GUI launcher for my Fabric server but I can't find a way to launch Fabric Loader. I tried learn your script but it's confusing. Thanks.
from portablemc.
@mindstorm38 I dont understand which files you mean. I tried to launch command in powershell like this python fabric.py start fabric:1.16.5 -u MCUser
. The output seem to be none. It show nothing the powershell just open new line. But with portablemc.py
it working fine. Anyway my goal is to make my python script convert into .exe so other people can easily install and launch my Minecraft launcher. But since there separate python file, if I use subprocess to launch the python script, other people also need to install python. So I'm just trying to make thing easy by making one script that contain the GUI+(way to launch minecraft fabric loader) inside one script. It's just that I been google for 2weeks I still can't find a way to launch Fabric loader. I was expecting sample script like:
mc_version = 1.16.5
loader_version = 0.11.6
# And then the code below will launch Minecraft Version 1.16.5 with Fabric loader version 0.11.6
Thanks very much, for helping me.
from portablemc.
@mindstorm38 Thanks.
from portablemc.
Related Issues (20)
- Starting Minecraft older than 1.19 crashes on Apple Silicon HOT 21
- Error: Could not find or load main class net.minecraft.client.main.Main HOT 9
- Question about API authentication HOT 10
- How do you run the game offline? HOT 2
- Obtain the progress of the download. HOT 2
- Arch Linux package incoherencies HOT 9
- Minecraft: Forge - Failed to initialize graphics window with current settings. HOT 5
- Errors remain when attempting offline usage HOT 11
- Neoforged repo for ForgeVersion HOT 8
- LWJGL 3.3.3 and onward HOT 2
- Invalid session HOT 2
- Installing fabric and mods on it HOT 9
- LWJGL not found in classpath for early versions HOT 7
- Installing mods with events HOT 1
- Possible to add info to README re: another method of contributing...? HOT 4
- Trouble launching Windows Minecraft from WSL HOT 4
- portablemc start forge:1.20.1-latest does not work HOT 9
- can someone help HOT 1
- Missing minecraft resource HOT 4
- DoesNotOwnMinecraftError within auth_session.refresh() HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from portablemc.