mirror of
https://github.com/Sneed-Group/Poodletooth-iLand
synced 2025-01-09 17:53:50 +00:00
Default account-server secret for remotedb.
This commit is contained in:
parent
51a4e221be
commit
585dff5132
3 changed files with 12 additions and 4 deletions
|
@ -7,6 +7,7 @@ echo.
|
||||||
echo #1 - Localhost
|
echo #1 - Localhost
|
||||||
echo #2 - Dev Server
|
echo #2 - Dev Server
|
||||||
echo #3 - Custom
|
echo #3 - Custom
|
||||||
|
echo #4 - Local RemoteDB
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
:selection
|
:selection
|
||||||
|
@ -18,9 +19,11 @@ if %INPUT%==1 (
|
||||||
set TTS_GAMESERVER=127.0.0.1
|
set TTS_GAMESERVER=127.0.0.1
|
||||||
) else if %INPUT%==2 (
|
) else if %INPUT%==2 (
|
||||||
set TTS_GAMESERVER=167.114.220.172
|
set TTS_GAMESERVER=167.114.220.172
|
||||||
|
) else if %INPUT%==4 (
|
||||||
|
set TTS_GAMESERVER=127.0.0.1
|
||||||
) else if %INPUT%==3 (
|
) else if %INPUT%==3 (
|
||||||
echo.
|
echo.
|
||||||
set /P TTS_GAMESERVER=Gameserver:
|
set /P TTS_GAMESERVER=Gameserver:
|
||||||
) else (
|
) else (
|
||||||
goto selection
|
goto selection
|
||||||
)
|
)
|
||||||
|
@ -30,6 +33,9 @@ echo.
|
||||||
if %INPUT%==2 (
|
if %INPUT%==2 (
|
||||||
set /P ttsUsername="Username: "
|
set /P ttsUsername="Username: "
|
||||||
set /P ttsPassword="Password: "
|
set /P ttsPassword="Password: "
|
||||||
|
) else if %INPUT%==4 (
|
||||||
|
set /P ttsUsername="Username: "
|
||||||
|
set /P ttsPassword="Password: "
|
||||||
) else (
|
) else (
|
||||||
set /P TTS_PLAYCOOKIE=Username:
|
set /P TTS_PLAYCOOKIE=Username:
|
||||||
)
|
)
|
||||||
|
@ -53,6 +59,8 @@ cd ../../
|
||||||
|
|
||||||
if %INPUT%==2 (
|
if %INPUT%==2 (
|
||||||
"dependencies/panda/python/ppython.exe" -m toontown.toonbase.ClientStartRemoteDB
|
"dependencies/panda/python/ppython.exe" -m toontown.toonbase.ClientStartRemoteDB
|
||||||
|
) else if %INPUT%==4 (
|
||||||
|
"dependencies/panda/python/ppython.exe" -m toontown.toonbase.ClientStartRemoteDB
|
||||||
) else (
|
) else (
|
||||||
"dependencies/panda/python/ppython.exe" -m toontown.toonbase.ClientStart
|
"dependencies/panda/python/ppython.exe" -m toontown.toonbase.ClientStart
|
||||||
)
|
)
|
||||||
|
|
|
@ -24,6 +24,6 @@ else:
|
||||||
print response['reason']
|
print response['reason']
|
||||||
else:
|
else:
|
||||||
os.environ['TTS_PLAYCOOKIE'] = response['token']
|
os.environ['TTS_PLAYCOOKIE'] = response['token']
|
||||||
|
|
||||||
# Start the game:
|
# Start the game:
|
||||||
import toontown.toonbase.ClientStart
|
import toontown.toonbase.ClientStart
|
||||||
|
|
|
@ -40,7 +40,7 @@ def entropyIdeal(length):
|
||||||
return -length * prob * math.log(prob) / math.log(2.0)
|
return -length * prob * math.log(prob) / math.log(2.0)
|
||||||
|
|
||||||
accountDBType = config.GetString('accountdb-type', 'developer')
|
accountDBType = config.GetString('accountdb-type', 'developer')
|
||||||
accountServerSecret = config.GetString('account-server-secret', 'dev')
|
accountServerSecret = config.GetString('account-server-secret', '9sj6816aj1hs795j') # Changed in server distribution.
|
||||||
accountServerHashAlgo = config.GetString('account-server-hash-algo', 'sha512')
|
accountServerHashAlgo = config.GetString('account-server-hash-algo', 'sha512')
|
||||||
if accountDBType == 'remote':
|
if accountDBType == 'remote':
|
||||||
if accountServerSecret == 'dev':
|
if accountServerSecret == 'dev':
|
||||||
|
|
Loading…
Reference in a new issue