NearW / minecraft-speedrun

Server configuration for a speedrun server
8 stars 1 forks source link

other people cant join my server with this #11

Closed sladke closed 3 years ago

sladke commented 3 years ago

I am able to have other people join my port forwarded server when using the default batch file with the classic "C:\Program Files\Java\jre1.8.0_301\bin\java.exe" -Xmx8G -Xms1024M -jar server.jar nogui line. However, when using this, other people cant join. I can still join with localhost and everything else seems to work, but noone else can join, it just says connecting to server forever and then times out

heres me running your batch file

C:\mcserver>node server.js
Parsing speedrun.json ...
Deleting world folder ...
[21:17:15] [main/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', name='PROD'
[21:17:16] [main/WARN]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498]
[21:17:16] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[21:17:16] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0]
[21:17:16] [main/WARN]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498]
[21:17:16] [main/WARN]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[21:17:16] [main/INFO]: Reloading ResourceManager: Default
[21:17:17] [Worker-Main-6/INFO]: Loaded 7 recipes
[21:17:17] [Worker-Main-6/INFO]: Loaded 927 advancements
[21:17:18] [Server thread/INFO]: Starting minecraft server version 1.16.1
[21:17:18] [Server thread/INFO]: Loading properties
[21:17:18] [Server thread/INFO]: Default game type: SURVIVAL
[21:17:18] [Server thread/INFO]: Generating keypair
[21:17:19] [Server thread/INFO]: Starting Minecraft server on *:25565
[21:17:19] [Server thread/INFO]: Using default channel type
[21:17:19] [Server thread/INFO]: Preparing level "world"
[21:17:24] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld
[21:17:24] [Worker-Main-5/INFO]: Preparing spawn area: 0%
[21:17:24] [Worker-Main-6/INFO]: Preparing spawn area: 0%
[21:17:25] [Worker-Main-4/INFO]: Preparing spawn area: 1%
[21:17:25] [Worker-Main-6/INFO]: Preparing spawn area: 2%
[21:17:26] [Worker-Main-6/INFO]: Preparing spawn area: 4%
[21:17:26] [Worker-Main-6/INFO]: Preparing spawn area: 5%
[21:17:27] [Worker-Main-6/INFO]: Preparing spawn area: 5%
[21:17:27] [Worker-Main-5/INFO]: Preparing spawn area: 9%
[21:17:28] [Worker-Main-5/INFO]: Preparing spawn area: 9%
[21:17:28] [Worker-Main-4/INFO]: Preparing spawn area: 9%
[21:17:29] [Worker-Main-5/INFO]: Preparing spawn area: 15%
[21:17:29] [Worker-Main-4/INFO]: Preparing spawn area: 17%
[21:17:30] [Worker-Main-6/INFO]: Preparing spawn area: 17%
[21:17:30] [Worker-Main-6/INFO]: Preparing spawn area: 24%
[21:17:31] [Worker-Main-6/INFO]: Preparing spawn area: 24%
[21:17:31] [Worker-Main-6/INFO]: Preparing spawn area: 28%
[21:17:32] [Worker-Main-4/INFO]: Preparing spawn area: 33%
[21:17:32] [Worker-Main-6/INFO]: Preparing spawn area: 35%
[21:17:33] [Worker-Main-5/INFO]: Preparing spawn area: 35%
[21:17:33] [Worker-Main-6/INFO]: Preparing spawn area: 40%
[21:17:34] [Worker-Main-4/INFO]: Preparing spawn area: 43%
[21:17:35] [Worker-Main-5/INFO]: Preparing spawn area: 49%
[21:17:35] [Worker-Main-5/INFO]: Preparing spawn area: 55%
[21:17:35] [Worker-Main-4/INFO]: Preparing spawn area: 59%
[21:17:36] [Worker-Main-5/INFO]: Preparing spawn area: 62%
[21:17:36] [Worker-Main-4/INFO]: Preparing spawn area: 66%
[21:17:37] [Worker-Main-5/INFO]: Preparing spawn area: 72%
[21:17:37] [Worker-Main-6/INFO]: Preparing spawn area: 75%
[21:17:38] [Worker-Main-4/INFO]: Preparing spawn area: 77%
[21:17:38] [Worker-Main-4/INFO]: Preparing spawn area: 77%
[21:17:39] [Worker-Main-6/INFO]: Preparing spawn area: 84%
[21:17:40] [Worker-Main-5/INFO]: Preparing spawn area: 87%
[21:17:40] [Worker-Main-5/INFO]: Preparing spawn area: 90%
[21:17:41] [Worker-Main-5/INFO]: Preparing spawn area: 93%
[21:17:41] [Worker-Main-5/INFO]: Preparing spawn area: 93%
[21:17:41] [Server thread/INFO]: Time elapsed: 17177 ms
[21:17:41] [Server thread/INFO]: Done (21.907s)! For help, type "help"
Turning auto-save off.
[21:17:41] [Server thread/INFO]: Automatic saving is now disabled
[21:17:52] [User Authenticator #1/INFO]: UUID of player sladke is 3e7cfffd-444d-47ff-8e9b-2fb1e526898a
[21:17:52] [Server thread/INFO]: sladke[/127.0.0.1:63176] logged in with entity id 280 at (110.5, 64.0, 275.5)
[21:17:52] [Server thread/INFO]: sladke joined the game
[21:17:54] [Server thread/INFO]: sladke lost connection: Disconnected
[21:17:54] [Server thread/INFO]: sladke left the game

heres me running the default batch file

C:\mcserver>"C:\Program Files\Java\jre1.8.0_301\bin\java.exe" -Xmx8G -Xms1024M -jar server.jar nogui
[21:24:39] [main/INFO]: Environment: authHost='https://authserver.mojang.com', accountsHost='https://api.mojang.com', sessionHost='https://sessionserver.mojang.com', name='PROD'
[21:24:40] [main/WARN]: Ambiguity between arguments [teleport, destination] and [teleport, targets] with inputs: [Player, 0123, @e, dd12be42-52a9-4a91-a8a1-11c01849e498]
[21:24:40] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[21:24:40] [main/WARN]: Ambiguity between arguments [teleport, location] and [teleport, targets] with inputs: [0.1 -0.5 .9, 0 0 0]
[21:24:40] [main/WARN]: Ambiguity between arguments [teleport, targets] and [teleport, destination] with inputs: [Player, 0123, dd12be42-52a9-4a91-a8a1-11c01849e498]
[21:24:40] [main/WARN]: Ambiguity between arguments [teleport, targets, location] and [teleport, targets, destination] with inputs: [0.1 -0.5 .9, 0 0 0]
[21:24:40] [main/INFO]: Reloading ResourceManager: Default
[21:24:40] [Worker-Main-4/INFO]: Loaded 7 recipes
[21:24:41] [Worker-Main-4/INFO]: Loaded 927 advancements
[21:24:41] [Server thread/INFO]: Starting minecraft server version 1.16.1
[21:24:41] [Server thread/INFO]: Loading properties
[21:24:41] [Server thread/INFO]: Default game type: SURVIVAL
[21:24:41] [Server thread/INFO]: Generating keypair
[21:24:42] [Server thread/INFO]: Starting Minecraft server on *:25565
[21:24:42] [Server thread/INFO]: Using default channel type
[21:24:42] [Server thread/INFO]: Preparing level "world"
[21:24:47] [Server thread/INFO]: Preparing start region for dimension minecraft:overworld
[21:24:47] [Worker-Main-4/INFO]: Preparing spawn area: 0%
[21:24:48] [Worker-Main-4/INFO]: Preparing spawn area: 0%
[21:24:48] [Worker-Main-6/INFO]: Preparing spawn area: 0%
[21:24:49] [Worker-Main-6/INFO]: Preparing spawn area: 0%
[21:24:49] [Worker-Main-6/INFO]: Preparing spawn area: 0%
[21:24:50] [Worker-Main-5/INFO]: Preparing spawn area: 1%
[21:24:50] [Worker-Main-4/INFO]: Preparing spawn area: 3%
[21:24:51] [Worker-Main-4/INFO]: Preparing spawn area: 3%
[21:24:51] [Worker-Main-4/INFO]: Preparing spawn area: 3%
[21:24:52] [Worker-Main-6/INFO]: Preparing spawn area: 9%
[21:24:52] [Worker-Main-6/INFO]: Preparing spawn area: 9%
[21:24:53] [Worker-Main-4/INFO]: Preparing spawn area: 15%
[21:24:53] [Worker-Main-4/INFO]: Preparing spawn area: 15%
[21:24:54] [Worker-Main-4/INFO]: Preparing spawn area: 15%
[21:24:54] [Worker-Main-4/INFO]: Preparing spawn area: 15%
[21:24:55] [Worker-Main-5/INFO]: Preparing spawn area: 29%
[21:24:55] [Worker-Main-4/INFO]: Preparing spawn area: 35%
[21:24:56] [Worker-Main-4/INFO]: Preparing spawn area: 35%
[21:24:56] [Worker-Main-4/INFO]: Preparing spawn area: 35%
[21:24:57] [Worker-Main-4/INFO]: Preparing spawn area: 35%
[21:24:57] [Worker-Main-4/INFO]: Preparing spawn area: 54%
[21:24:58] [Worker-Main-5/INFO]: Preparing spawn area: 54%
[21:24:58] [Worker-Main-5/INFO]: Preparing spawn area: 54%
[21:24:59] [Worker-Main-5/INFO]: Preparing spawn area: 54%
[21:25:01] [Worker-Main-6/INFO]: Preparing spawn area: 71%
[21:25:01] [Worker-Main-6/INFO]: Preparing spawn area: 71%
[21:25:01] [Worker-Main-5/INFO]: Preparing spawn area: 71%
[21:25:01] [Worker-Main-5/INFO]: Preparing spawn area: 71%
[21:25:01] [Worker-Main-4/INFO]: Preparing spawn area: 92%
[21:25:02] [Server thread/INFO]: Time elapsed: 14371 ms
[21:25:02] [Server thread/INFO]: Done (19.553s)! For help, type "help"
[21:25:04] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 2713ms or 54 ticks behind
[21:25:16] [User Authenticator #1/INFO]: UUID of player sladke is 3e7cfffd-444d-47ff-8e9b-2fb1e526898a
[21:25:16] [Server thread/INFO]: sladke[/hidden] logged in with entity id 291 at (26.5, 66.0, 125.5)
[21:25:16] [Server thread/INFO]: sladke joined the game
[21:30:06] [Server thread/WARN]: Can't keep up! Is the server overloaded? Running 2017ms or 40 ticks behind
[21:33:36] [User Authenticator #2/INFO]: UUID of player RefunctStinks is 335a5b80-ca22-48dd-ac58-3fec88a63ae3
[21:33:36] [Server thread/INFO]: RefunctStinks[/hidden] logged in with entity id 2101 at (9.5, 66.0, 112.5)
[21:33:36] [Server thread/INFO]: RefunctStinks joined the game
[21:33:45] [Server thread/INFO]: <RefunctStinks> mornin goon
[21:33:51] [Server thread/INFO]: <sladke> oMG!!!!
[21:34:13] [Server thread/INFO]: <sladke> hows she runnin
[21:34:19] [Server thread/INFO]: <RefunctStinks> runnin good for me
[21:34:24] [Server thread/INFO]: <sladke> sweet

if you need anything else from me id be happy to supply it

NearW commented 3 years ago

That's interesting. Do you mind posting your server.properties and speedrun.json file, too?

sladke commented 3 years ago
#Minecraft server properties
#Sat Jul 31 16:54:54 EDT 2021
enable-jmx-monitoring=false
rcon.port=25575
level-seed=
enable-command-block=false
gamemode=survival
enable-query=false
generator-settings=
level-name=world
motd=goons
query.port=25565
pvp=true
generate-structures=true
difficulty=easy
network-compression-threshold=256
max-tick-time=60000
max-players=10
use-native-transport=true
enable-status=true
online-mode=true
allow-flight=true
broadcast-rcon-to-ops=true
view-distance=10
max-build-height=256
server-ip=
allow-nether=true
server-port=25565
sync-chunk-writes=true
enable-rcon=false
op-permission-level=4
prevent-proxy-connections=false
resource-pack=
entity-broadcast-range-percentage=100
player-idle-timeout=0
rcon.password=
force-gamemode=false
hardcore=false
white-list=false
broadcast-console-to-ops=true
spawn-npcs=true
spawn-animals=true
snooper-enabled=true
function-permission-level=2
level-type=default
spawn-monsters=true
enforce-whitelist=false
spawn-protection=0
resource-pack-sha1=
max-world-size=29999984
{
    "MIN_RAM": 8,
    "MAX_RAM": 10,
    "OP": [],
    "WHITELIST": [],
    "DATA_PACK": false,
    "SEEDS": [],
    "AUTO_SAVE": false,
    "KEEP_WORLDS": false,
    "LOAD_WORLD": ""
}
sladke commented 3 years ago

also, how do i cleanly exit the batch file without having to smash the x button like 20 times

NearW commented 3 years ago

My first idea would be to change the RAM in the speedrun.json file. It's allocating 8 to 10gb of RAM while the default minecraft batch file allocates 1 to 8gb of RAM. I assume, that it can't allocate the RAM and therefore can't execute the server.jar properly.

Currently there is no way to exit the terminal windows besides using the close button or ending the process through the e.g. Task Manager. However, I think it would be great to type in exit in order to stop the server completely.

How does this sound to you? :)

sladke commented 3 years ago

ah i figured it out, it was completely on my end. i had another java path that it must have been using that wasnt allowed in the firewall. thanks for helping out though. and yeah typing in exit would be sweet

sladke commented 3 years ago

also, i just wanted to say that i was able to combine this with a fabric server (which is allowed for speedruns) with the allowed performance mods by just changing the server name in the node.js file and it made my resets way faster

NearW commented 3 years ago

Sounds great. I'll code up the exit command for the next release.

If fabric servers are allowed, I should support these natively. Is there a documentation on how to setup a fabric server with these mods that you could link to me?

Good luck speedrunning!

sladke commented 3 years ago

https://fabricmc.net/wiki/player:tutorials:server:windows i think this is the closest thing to relevant documentation, the relevant mods are https://github.com/mrmangohands/sodium-fabric/releases/tag/mc1.16.1-0.1.1-SNAPSHOT%2B2021-02-12 https://github.com/mrmangohands/lithium-fabric/releases/tag/mc1.16.1-0.6.6 https://github.com/mrmangohands/phosphor-fabric/releases/tag/mc1.16.1-0.7.2 https://github.com/Tuinity/Starlight/releases (phosphor but better, not compatible with phosphor) https://modrinth.com/mod/lazydfu https://github.com/modmuss50/Voyager/releases/tag/1.0.0 https://github.com/mrmangohands/krypton/releases/tag/mc1.16.1-0.1.3-SNAPSHOT%2B2021-02-20

for me, a mods folder just appeared in the server root folder when i started the server up for the first time, and then i placed all the 1.16.1 mod jar files in there. also, the fabric API is not allowed in speedruns, but all these mods don't require them so its all good

NearW commented 3 years ago

Thanks a lot!

So it should be sufficient to have an option in the speedrun.json file to set a different name for the server.jar file.

I'll add this to the next release, too.

NearW commented 3 years ago

@sladke done

https://github.com/NearW/minecraft-speedrun/releases/tag/1.5.0