SmartlyDressedGames / Unturned-Docs

Documentation for Unturned's modding features.
133 stars 49 forks source link

When I run the batch file it takes me to my users name in file explorer #31

Closed Diamondslayer19 closed 4 years ago

Diamondslayer19 commented 4 years ago

Im using the internet hosted server and the other files were not created in servers upon launching the batch file

SDGNelson commented 4 years ago

Which batch file - the ExampleServer.bat script?

Diamondslayer19 commented 4 years ago

no, the tutorial.bat, forgot to mention that im also on windows

D-AIRY commented 4 years ago

Are you have any whitespace in path to bat file?

Diamondslayer19 commented 4 years ago

can you explain what you mean more in depth. I understand hardware more than software.

D-AIRY commented 4 years ago

Replace %~dp0ServerHelper.bat with "%~dp0ServerHelper.bat" and try again

Diamondslayer19 commented 4 years ago

now it says "windows cannot find '+InternetServer/MyServer' make sure you typed the name correctly, and then try again"

SDGNelson commented 4 years ago

If you try this does it work?

start "" "%~dp0ServerHelper.bat" +InternetServer/MyServer

Good catch @D-AIRY, thanks for raising that issue. I will update the docs and example scripts accordingly.

Diamondslayer19 commented 4 years ago

nope, it does the same thing as the first problem

SDGNelson commented 4 years ago

It takes you to your user directory now, or it says it cannot find something? Is your script in the same folder as the ExampleServer.bat script? It should be.

SDGNelson commented 4 years ago

Closing, but feel free to comment and I will re-open.