Jump to content

How to set up test environment?


Exo594

Recommended Posts

Up until now, I've been testing my mods by using "Run->client" in the NetBeans alt-click menu.

 

What do I need to do to properly simulate a client-server situation? I've seen the "run->server" option used several times, but no tutorials I've found have demonstrated how to set it up. When I've clicked "run->server" previously, it tells me I need to agree to the EULA, but I can't find where that's located in my files.

Link to comment
Share on other sites

The client and server will both run from the working directory set in the run configurations. If you're using the run configurations generated by ForgeGradle, this will be the directory you've set as the

minecraft.runDir

property in build.gradle (the default is run).

 

To log into the server, you'll either need to disable online mode in server.properties or add the

--username <email> --password <password>

program arguments to your client run configuration so it logs in with your Mojang account.

 

Disabling online mode will allow you to log in with clients that aren't authenticated, this allows you test a multiplayer scenario while only owning a single account.

Please don't PM me to ask for help. Asking your question in a public thread preserves it for people who are having the same problem in the future.

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.

Announcements



×
×
  • Create New...

Important Information

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