Jump to content

How do I show an input screen on game load?


Anonomys

Recommended Posts

I don't know. I can't think of a single mod that does anything like that.

Denying users access to a game they paid for, is questionable in terms of Mojang's EULA: https://www.minecraft.net/en-us/eula

and almost certainly a breach if you are doing it to make money.

 

Having said that, you could try listening on ScreenEvent.Render.Pre

 

If event.getScreen() is the TitleScreen and your conditions are met,

* cancel the event so it doesn't display the title screen

* Use Minecraft.getInstance().setScreen() to change to your screen

 

If you have done as little research as your original question suggested, your next will question will be "how do I write a screen?"

https://docs.minecraftforge.net/en/latest/gui/screens/

or look at vanilla's ErrorScreen for a simple example.

 

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

3 minutes ago, warjort said:

I don't know. I can't think of a single mod that does anything like that.

I know physics mod, the pro version asks you to enter your key when you launch the game. My mod just requires you to make a separate password for the mod if you are using cracked minecraft (the mod has separate accounts for cracked and premium users, premium users do not need to enter their password), so that people can't just access your stuff by using your username. I am not in any way doing it to make money.

 

3 minutes ago, warjort said:

Having said that, you could try listening on ScreenEvent.Render.Pre

Okay, thank you, I'll try.

Edited by Anonomys

This is my signature. I don't really too much know about java but i try to help and i try to get help from others too. Thank you!

Link to comment
Share on other sites

Cracked minecraft is definitely a breach of the EULA and not supported in this forum.

Boilerplate:

If you don't post your logs/debug.log we can't help you. For curseforge you need to enable the forge debug.log in its minecraft settings. You should also post your crash report if you have one.

If there is no error in the log file and you don't have a crash report then post the launcher_log.txt from the minecraft folder. Again for curseforge this will be in your curseforge/minecraft/Install

Large files should be posted to a file sharing site like https://gist.github.com  You should also read the support forum sticky post.

Link to comment
Share on other sites

Here's what I was talking about, this now shows at the start if you use cracked minecraft. The exit button just takes you to the main menu, if you don't want to login. But you will not be able to use the stuff the mod needs the api for.

image.png

 

And this shows if the API is down.

image.png

Edited by Anonomys

This is my signature. I don't really too much know about java but i try to help and i try to get help from others too. Thank you!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.