mirror of
https://github.com/imayushsaini/Bombsquad-Ballistica-Modded-Server.git
synced 2025-11-07 17:36:15 +00:00
bug fix , v2 account , node.changerotation, _ba.enable_2d_mode
This commit is contained in:
parent
b110f8a12a
commit
66df21cd2e
12 changed files with 366 additions and 92 deletions
16
dist/ba_root/mods/custom_hooks.py
vendored
16
dist/ba_root/mods/custom_hooks.py
vendored
|
|
@ -18,7 +18,7 @@ import time
|
|||
import os
|
||||
import ba
|
||||
import _ba
|
||||
|
||||
import logging
|
||||
from ba import _hooks
|
||||
from bastd.activity import dualteamscore, multiteamscore, drawscore
|
||||
from bastd.activity.coopscore import CoopScoreScreen
|
||||
|
|
@ -72,7 +72,7 @@ def playerspaz_init(playerspaz: ba.Player, node: ba.Node, player: ba.Player):
|
|||
|
||||
def bootstraping():
|
||||
"""Bootstarps the server."""
|
||||
print("Bootstraping mods..")
|
||||
logging.warning("Bootstraping mods...")
|
||||
# server related
|
||||
_ba.set_server_device_name(settings["HostDeviceName"])
|
||||
_ba.set_server_name(settings["HostName"])
|
||||
|
|
@ -83,7 +83,17 @@ def bootstraping():
|
|||
_thread.start_new_thread(mystats.refreshStats, ())
|
||||
pdata.load_cache()
|
||||
_thread.start_new_thread(pdata.dump_cache, ())
|
||||
|
||||
if(settings["useV2Account"]):
|
||||
from tools import account
|
||||
if(ba.internal.get_v1_account_state()=='signed_in' and ba.internal.get_v1_account_type()=='V2'):
|
||||
logging.debug("Account V2 is active")
|
||||
else:
|
||||
ba.internal.sign_out_v1()
|
||||
logging.warning("Account V2 login started ...wait")
|
||||
account.AccountUtil()
|
||||
else:
|
||||
ba.app.accounts_v2.set_primary_credentials(None)
|
||||
ba.internal.sign_in_v1('Local')
|
||||
# import plugins
|
||||
if settings["elPatronPowerups"]["enable"]:
|
||||
from plugins import elPatronPowerups
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue