Page 2 of 2

Re: [Idea] Singleplayer version

Posted: Sat Dec 29, 2018 12:11 pm
by tokariew
not nice solution for this moment but using batch/bat file on windows…

Code: Select all

@echo off
start /B tomenet.server.exe
TomeNET.exe -lUser Password 127.0.0.1
TIMEOUT 2
taskkill /F /IM tomenet.server.exe
Problems:
Using bat file to run it…
Killing server in brutal way after all, not sure how often it is saving state…
No time is passed between playing…
The server window is still visible. So it possible to accidently kill server during playing
For windows there is no official tomenet.server.exe file…

It is possible to distribute it with premade admin account and validated user.
probably not neccesery test/proof version: https://www.dropbox.com/s/3tjangxmgvvde ... er.7z?dl=0
Run using Single_player_experience.bat :)

Re: [Idea] Singleplayer version

Posted: Sat Dec 29, 2018 1:47 pm
by tangar
tokariew wrote: Sat Dec 29, 2018 12:11 pm It is possible to distribute it with premade admin account and validated user.
good idea :) but I didn't understand - what your bat file do? what the idea.. please could you explain it 'on fingers'

Re: [Idea] Singleplayer version

Posted: Sat Dec 29, 2018 1:55 pm
by tokariew
download the file and run the bat ;) i think that bat code that i added show what it do… It already have admin account, and the 'User' is validated

Start the server, if it's first run on the machine it generate world.
run tomenet and skip server and login screen, straight to character creation/choosing page
if the tomenet.exe is close it wait 2 second and kill the server.


So it very basic…
probably with some trickery is possible to hide tomenet.server window, but someone is lazy… (me)