User Tools

Site Tools


servers:windows:games:void_localhost

Information

  • Void Server 1)

Resources

Prerequisites

Dependencies

Java

25

  • Entire feature install of Microsoft Build of OpenJDK

Download Source

Void

"%ProgramFiles%\Git\bin\git.exe" clone --branch "main" --depth "1" --recurse-submodules "https://github.com/GregHib/void.git" "%UserProfile%\Projects\Void-Server\src"

Build

CD "%UserProfile%\Projects\Void-Server\src" & SET "_JAVA_OPTIONS=--enable-native-access=ALL-UNNAMED" && "%UserProfile%\Projects\Void-Server\src\gradlew.bat" "clean" --no-daemon && SET "_JAVA_OPTIONS="
CD "%UserProfile%\Projects\Void-Server\src" & SET "_JAVA_OPTIONS=--enable-native-access=ALL-UNNAMED" && "%UserProfile%\Projects\Void-Server\src\gradlew.bat" "assemble" --no-daemon && SET "_JAVA_OPTIONS="

Cache

RMDIR /S /Q "%UserProfile%\Projects\Void-Server\src\data\cache" & MKDIR "%UserProfile%\Projects\Void-Server\src\data\cache" && "%ProgramFiles%\7-Zip\7z.exe" x "%UserProfile%\Downloads\"*"-void-634-cache.7z" -o"%UserProfile%\Projects\Void-Server\src\data\cache"
DEL /Q "%UserProfile%\Downloads\"*"-void-634-cache.7z"

Settings

COPY /Y "%UserProfile%\Projects\Void-Server\src\game\src\main\resources\game.properties" "%UserProfile%\Projects\Void-Server\src"
MKDIR "%UserProfile%\Projects\Void-Server\scripts" & "%SystemRoot%\System32\notepad.exe" "%UserProfile%\Projects\Void-Server\scripts\server-settings-sed.sh"
#!/bin/sh

cd '/tmp'

'/usr/bin/sed' -i -e 's/server.name=Void/server.name=Void ::1/g' ~/'Projects/Void-Server/src/game.properties'
'/usr/bin/sed' -i -e 's/server.live=false/server.live=true/g' ~/'Projects/Void-Server/src/game.properties'
'/usr/bin/sed' -i -e 's/development.admin.name=Greg/development.admin.name=Test/g' ~/'Projects/Void-Server/src/game.properties'
'/usr/bin/sed' -i -e 's/bots.count=30/bots.count=0/g' ~/'Projects/Void-Server/src/game.properties'

# End
"%ProgramFiles%\Git\bin\sh.exe" -- "%UserProfile%\Projects\Void-Server\scripts\server-settings-sed.sh"
"%SystemRoot%\System32\notepad.exe" "%UserProfile%\Projects\Void-Server\src\game.properties"

Scripts

MKDIR "%UserProfile%\Projects\Void-Server\scripts"
"%SystemRoot%\explorer.exe" "%UserProfile%\Projects\Void-Server\scripts"

Server Start

"%SystemRoot%\System32\notepad.exe" "%UserProfile%\Projects\Void-Server\scripts\localhost-server-start.bat"
@echo off

CD "%Temp%"

START "Void Server" /MIN /D "%UserProfile%\Projects\Void-Server\src" "%JAVA_HOME%\bin\java.exe" -jar "%UserProfile%\Projects\Void-Server\src\game\build\libs\void-server-dev.jar"

:: End
"%UserProfile%\Projects\Void-Server\scripts\localhost-server-start.bat"

Server Update

"%SystemRoot%\System32\notepad.exe" "%UserProfile%\Projects\Void-Server\scripts\localhost-server-update.bat"
@echo off

TITLE Void Updater
CD "%Temp%"

"%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\Void-Server\src" reset --hard "origin/main"
"%ProgramFiles%\Git\bin\git.exe" -C "%UserProfile%\Projects\Void-Server\src" pull origin "main" --rebase

CD "%UserProfile%\Projects\Void-Server\src"

SET "_JAVA_OPTIONS=--enable-native-access=ALL-UNNAMED"

CALL "%UserProfile%\Projects\Void-Server\src\gradlew.bat" "clean" --no-daemon
CALL "%UserProfile%\Projects\Void-Server\src\gradlew.bat" "assemble" --no-daemon

SET "_JAVA_OPTIONS="
CD "%Temp%"

COPY /Y "%UserProfile%\Projects\Void-Server\src\game\src\main\resources\game.properties" "%UserProfile%\Projects\Void-Server\src"
"%ProgramFiles%\Git\bin\sh.exe" -- "%UserProfile%\Projects\Void-Server\scripts\server-settings-sed.sh"

"%SystemRoot%\System32\timeout.exe" /T "2"
"%SystemRoot%\System32\msg.exe" %USERNAME% /TIME:"2" "Void localhost server update complete"

:: End
"%UserProfile%\Projects\Void-Server\scripts\localhost-server-update.bat"

Save Data Back-up

"%SystemRoot%\System32\notepad.exe" "%UserProfile%\Projects\Void-Server\scripts\localhost-save-backup.bat"
@echo off

CD "%Temp%"

"%SystemRoot%\System32\tar.exe" -czf "%UserProfile%\Downloads\%RANDOM%-Void-localhost-Saves.tar.gz" -C "%UserProfile%\Projects\Void-Server\src\data\saves" *".toml"

"%SystemRoot%\System32\msg.exe" %USERNAME% /TIME:"2" "Void Save Data Backed-up Successfully to Downloads"

:: End
"%UserProfile%\Projects\Void-Server\scripts\localhost-save-backup.bat"

Launcher Shortcuts

Desktop

Server Start

"%UserProfile%\Projects\Void-Server\scripts\localhost-server-start.bat"
Void Server

Start Menu

MKDIR "%AppData%\Microsoft\Windows\Start Menu\Programs\Void" & "%SystemRoot%\explorer.exe" "%AppData%\Microsoft\Windows\Start Menu\Programs\Void"

Server Start

"%UserProfile%\Projects\Void-Server\scripts\localhost-server-start.bat"
Server Start

Update

"%UserProfile%\Projects\Void-Server\scripts\localhost-server-update.bat"
Server Updater

Save Backup

"%UserProfile%\Projects\Void-Server\scripts\localhost-save-backup.bat"
Save Back-up

Save Folder

MKDIR "%UserProfile%\Projects\Void-Server\src\data\saves"
"%UserProfile%\Projects\Void-Server\src\data\saves"
Save Folder

Install Notes

"https://wiki.realmofespionage.xyz/servers;windows;games;void_localhost"
Install Notes (Server)

Quick Commands

Save Restore

  • data\saves\espionage724.toml
MKDIR "%UserProfile%\Projects\Void-Server\src\data\saves" & "%SystemRoot%\explorer.exe" "%UserProfile%\Projects\Void-Server\src\data\saves"
2)
bot actions get logged to disk along with players
/var/www/wiki/data/pages/servers/windows/games/void_localhost.txt · Last modified: by Sean Rhone

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki