#๐ minecraft launcher lib
5 messages ยท Page 1 of 1 (latest)
@limber fox
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
minecraft launcher lib python. help me how to launch a DUMB forge. The documentation says that you can not use find_forge_version, while then it is written that it should be used to run, otherwise I tried all the ways I tried to manually specify the version of the game, I tried to use the vanilla version to run, PLEASE HELP IF YOU CAN
He successfully installs this version and cannot run it.
try:
forge_version = minecraft_launcher_lib.forge.find_forge_version("1.12.2")
if forge_version is None:
print("Forge version for Minecraft 1.12.2 not found")
sys.exit(1)
options = {
'username': username,
'uuid': '',
'token': ''
}
if minecraft_launcher_lib.forge.supports_automatic_install(forge_version):
print("installing")
callback = {
"setStatus": lambda text: print(text)
}
minecraft_launcher_lib.forge.install_forge_version(forge_version, minecraft_directory, callback=callback)
else:
print(f"Forge {forge_version} can't be installed automatic.")
minecraft_launcher_lib.forge.run_forge_installer(forge_version)
command = minecraft_launcher_lib.command.get_minecraft_command(version="1.12.2-forge-14.23.5.2860", minecraft_directory=minecraft_directory, options=options) # here (version=) I tried to specify the forge_version variable, write the vanilla version number
print(command)
subprocess.call(command)
except Exception as e:
raise e
print(f"Error: {e}")
time.sleep(3)
sys.exit(1)```
# ping me pls
@limber fox
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.