diff --git a/bombsquad_server b/bombsquad_server index 1f72e7f..70d9896 100644 --- a/bombsquad_server +++ b/bombsquad_server @@ -20,6 +20,33 @@ from nbstreamreader import NonBlockingStreamReader as NBSR ERROR_LOGGING=False +import os,platform,shutil +def migrate_to_aarch(): + maps = ["BridgitMash.so","BridgitParallelo.so","CreativeThoughts.so","FloatingIsland.so","InTheAir.so","soccerStadiumPro.so"] + games = ["BlockDash.so","CanonFight.so","DuelElimination.so","FlappyBird.so","LaserTracer.so","MonkeyClimb.so","OneNightNoStand.so","soccer.so", + "SquidRace.so","StumbleRace.so","SubwayRun.so","UFOAttackGame.so"] + features = ["StumbledScoreScreen.so"] + tools = ["corelib.so"] + root = os.path.realpath(".")+"/dist/ba_root" + for map in maps: + shutil.copy(root+"/mods/aarch64/"+map,root+'/mods/maps/'+map) + for game in games: + shutil.copyfile(root+"/mods/aarch64/"+game,root+'/mods/games/'+game) + for f in features: + shutil.copyfile(root+"/mods/aarch64/"+f,root+'/mods/features/'+f) + for t in tools: + shutil.copyfile(root+"/mods/aarch64/"+t,root+'/mods/tools/'+t) + with open(".we_are_good","w") as f: + pass +# by default we have x86_64 setup +# if we found aarch64 system copy required files +if platform.processor() == 'aarch64': + print("We are on aarch64 system") + if os.path.exists(".we_are_good"): + pass + else: + migrate_to_aarch() + # We make use of the bacommon and efro packages as well as site-packages # included with our bundled Ballistica dist, so we need to add those paths # before we import them. @@ -133,7 +160,7 @@ class ServerManagerApp: dbgstr = 'debug' if __debug__ else 'opt' print( - f'{Clr.CYN}{Clr.BLD}BallisticaCore server manager {VERSION_STR}' + f'{Clr.CYN}{Clr.BLD}Ballistica server manager {VERSION_STR}' f' starting up ({dbgstr} mode)...{Clr.RST}', flush=True) @@ -584,6 +611,8 @@ class ServerManagerApp: print(f'{Clr.CYN}Launching server subprocess...{Clr.RST}', flush=True) binary_name = ('BallisticaCoreHeadless.exe' if os.name == 'nt' else './bombsquad_headless') + if platform.processor() == 'aarch64': + binary_name = './bombsquad_headless_aarch64' assert self._ba_root_path is not None self._subprocess = None diff --git a/dist/ba_root/mods/aarch64/BlockDash.so b/dist/ba_root/mods/aarch64/BlockDash.so new file mode 100644 index 0000000..c2e37b6 Binary files /dev/null and b/dist/ba_root/mods/aarch64/BlockDash.so differ diff --git a/dist/ba_root/mods/aarch64/BridgitMash.so b/dist/ba_root/mods/aarch64/BridgitMash.so new file mode 100644 index 0000000..bca18b5 Binary files /dev/null and b/dist/ba_root/mods/aarch64/BridgitMash.so differ diff --git a/dist/ba_root/mods/aarch64/BridgitParallelo.so b/dist/ba_root/mods/aarch64/BridgitParallelo.so new file mode 100644 index 0000000..843ef89 Binary files /dev/null and b/dist/ba_root/mods/aarch64/BridgitParallelo.so differ diff --git a/dist/ba_root/mods/aarch64/CanonFight.so b/dist/ba_root/mods/aarch64/CanonFight.so new file mode 100644 index 0000000..2d8a3f9 Binary files /dev/null and b/dist/ba_root/mods/aarch64/CanonFight.so differ diff --git a/dist/ba_root/mods/aarch64/CreativeThoughts.so b/dist/ba_root/mods/aarch64/CreativeThoughts.so new file mode 100644 index 0000000..0460084 Binary files /dev/null and b/dist/ba_root/mods/aarch64/CreativeThoughts.so differ diff --git a/dist/ba_root/mods/aarch64/DuelElimination.so b/dist/ba_root/mods/aarch64/DuelElimination.so new file mode 100644 index 0000000..ff12a39 Binary files /dev/null and b/dist/ba_root/mods/aarch64/DuelElimination.so differ diff --git a/dist/ba_root/mods/aarch64/FlappyBird.so b/dist/ba_root/mods/aarch64/FlappyBird.so new file mode 100644 index 0000000..137ac5c Binary files /dev/null and b/dist/ba_root/mods/aarch64/FlappyBird.so differ diff --git a/dist/ba_root/mods/aarch64/FloatingIsland.so b/dist/ba_root/mods/aarch64/FloatingIsland.so new file mode 100644 index 0000000..20abee6 Binary files /dev/null and b/dist/ba_root/mods/aarch64/FloatingIsland.so differ diff --git a/dist/ba_root/mods/aarch64/InTheAir.so b/dist/ba_root/mods/aarch64/InTheAir.so new file mode 100644 index 0000000..6bde2a1 Binary files /dev/null and b/dist/ba_root/mods/aarch64/InTheAir.so differ diff --git a/dist/ba_root/mods/aarch64/LaserTracer.so b/dist/ba_root/mods/aarch64/LaserTracer.so new file mode 100644 index 0000000..fd09de5 Binary files /dev/null and b/dist/ba_root/mods/aarch64/LaserTracer.so differ diff --git a/dist/ba_root/mods/aarch64/MonkeyClimb.so b/dist/ba_root/mods/aarch64/MonkeyClimb.so new file mode 100644 index 0000000..89595ca Binary files /dev/null and b/dist/ba_root/mods/aarch64/MonkeyClimb.so differ diff --git a/dist/ba_root/mods/aarch64/OneNightNoStand.so b/dist/ba_root/mods/aarch64/OneNightNoStand.so new file mode 100644 index 0000000..b7e71e7 Binary files /dev/null and b/dist/ba_root/mods/aarch64/OneNightNoStand.so differ diff --git a/dist/ba_root/mods/aarch64/SquidRace.so b/dist/ba_root/mods/aarch64/SquidRace.so new file mode 100644 index 0000000..8c69f4e Binary files /dev/null and b/dist/ba_root/mods/aarch64/SquidRace.so differ diff --git a/dist/ba_root/mods/aarch64/StumbleRace.so b/dist/ba_root/mods/aarch64/StumbleRace.so new file mode 100644 index 0000000..d7e6f61 Binary files /dev/null and b/dist/ba_root/mods/aarch64/StumbleRace.so differ diff --git a/dist/ba_root/mods/aarch64/StumbledScoreScreen.so b/dist/ba_root/mods/aarch64/StumbledScoreScreen.so new file mode 100644 index 0000000..14d89d7 Binary files /dev/null and b/dist/ba_root/mods/aarch64/StumbledScoreScreen.so differ diff --git a/dist/ba_root/mods/aarch64/SubwayRun.so b/dist/ba_root/mods/aarch64/SubwayRun.so new file mode 100644 index 0000000..5446bf9 Binary files /dev/null and b/dist/ba_root/mods/aarch64/SubwayRun.so differ diff --git a/dist/ba_root/mods/aarch64/UFOAttackGame.so b/dist/ba_root/mods/aarch64/UFOAttackGame.so new file mode 100644 index 0000000..93dd07d Binary files /dev/null and b/dist/ba_root/mods/aarch64/UFOAttackGame.so differ diff --git a/dist/ba_root/mods/aarch64/corelib.so b/dist/ba_root/mods/aarch64/corelib.so new file mode 100644 index 0000000..6b2b47d Binary files /dev/null and b/dist/ba_root/mods/aarch64/corelib.so differ diff --git a/dist/ba_root/mods/aarch64/soccer.so b/dist/ba_root/mods/aarch64/soccer.so new file mode 100644 index 0000000..775ca57 Binary files /dev/null and b/dist/ba_root/mods/aarch64/soccer.so differ diff --git a/dist/ba_root/mods/aarch64/soccerStadiumPro.so b/dist/ba_root/mods/aarch64/soccerStadiumPro.so new file mode 100644 index 0000000..883adb9 Binary files /dev/null and b/dist/ba_root/mods/aarch64/soccerStadiumPro.so differ diff --git a/dist/bombsquad_headless_aarch64 b/dist/bombsquad_headless_aarch64 new file mode 100644 index 0000000..0446499 Binary files /dev/null and b/dist/bombsquad_headless_aarch64 differ