#!/bin/bash ###################################################################### # Nebula Artemis Download script, (C) 2015-2024 Nosey Nick Waterman, # https://noseynick.org/artemis/nebula/ # All wrong righted, all rights reserved. Licensed under thev GNU # Affero General Public License v3.0 https://www.gnu.org/licenses/agpl.txt # with Commons Clause https://commonsclause.com/ v1.0 ###################################################################### cd || exit # shellcheck disable=SC1090 # don't parse when shellchecking: . ~/bin/conf.sh [[ "$EE_VER" ]] && exit 0 [[ "$NAME" ]] || export NAME=275stock banner Downloading Artemis $NAME bits nebula parser.pl # nebula TSN-Artemis.ca.pl ; nebula EFShips.pl - see artemis.sh art_dl () { TRY_S3=1 nebula "$1" 'tar xvfz' cd && cd 2.* || exit # Patch for Large Address Aware, reduce OOM crashes! banner LAA Large Address Aware mod allows Artemis to use more than 2GB RAM nebula SetLAA.pl perl Artemis.exe [[ "$2" ]] || return MOD="$2" ; shift ; shift # zips that have foo/bar/baz/dat - make symlinks foo->. bar->. baz->. for X in "$@"; do banner "Fixup $MOD subdir $X"; ln -vs . "$X"; done chmod 755 dat # sometimes not writable?!? TRY_S3=1 nebula "$MOD" 'unzip -o' } cos_dl () { [[ "$DISPLAY" ]] || export DISPLAY=:20 nebula https://aka.ms/vs/17/release/vc_redist.x64.exe wine /passive sudo rm -rfv /var/cache/apt/archives/ # space is TIGHT! rm -vf ~/bin/teamspeak3*.bz2 ~/bin/vc_redist.x64.exe # space is TIGHT! banner "Cosmos downloads are BIG - be patient! ($1)" TRY_S3=1 nebula "Cosmos-${1//./-}.zip" "unzip -d $1 -o" rm -vf "bin/Cosmos-${1//./-}.zip" # BIIIIIG - need disk space :-/ } torp_fix () { # FIX some mods for 2.8.0 :-) cd && cd 2.* || return grep ^torpedoTubeLoadingCoeff artemis.ini && return cat >> artemis.ini <Artemis.exe' } # https://artemisspaceshipbridge.com/wp-content/uploads/2017/10/ArtemisDEMOInstall.exe # https://artemisspaceshipbridge.com/wp-content/uploads/2017/10/Artemis_Upgrade_v2_6_0.exe case "$NAME" in micro) echo "DELIBERATELY no artemis download" ;; 240*) art_dl 2.4.0.tgz ;; # last tablet-compatible version? 260ben) art_dl 2.6.0.tgz BensMod4.2.12_2.6.0LegacyEdition.zip ;; 260*) art_dl 2.6.0.tgz ;; 263*) art_dl 2.6.3.tgz ;; 270ben4211) art_dl 2.7.0.tgz BensMod4.2.11.zip ;; 270ben4212) art_dl 2.7.0.tgz BensMod4.2.12.zip ;; 270ben432) art_dl 2.7.0.tgz BensMod4.3.2.zip "Bens Mod 4.3.2" ;; # strip dir 270ben434) art_dl 2.7.0.tgz BensMod4.3.4.zip "Bens Mod 4.3.4" ;; # strip dir 270ben435) art_dl 2.7.0.tgz BensMod4.3.5.zip ;; 270ben*) art_dl 2.7.0.tgz http://www.benfornshell.com/Artemis/BensModLatest.zip ;; 270*) art_dl 2.7.0.tgz ;; 271ef-old|271east-old) art_dl 2.7.1-EF.tgz ;; # 271ef*|271east*) art_dl 2.7.1.tgz EFModV1.1.zip "EFMOD V1.1" ;; # BROKE! 271ef*|271east*) art_dl 2.7.1.tgz https://github.com/cdw129/EF-MOD/raw/master/Ef%20MOD.zip ;; 271tsnrp2009) art_dl 2.7.1.tgz TSN-Mod-2009-for-2.7.1-Full.zip ;; 271tsnrp|271tsn-rp) art_dl 2.7.1.tgz TSN-Mod-2010-for-2.7.1-Full.zip ;; # 271tsn-rp-s-git) art_dl 2.7.1.tgz https://github.com/tsnrp/mod/raw/server/tsnrp-mod-server.zip ;; # NOW BROKEN 271tsn-rp*) art_dl 2.7.1.tgz 'https://github.com/tsnrp/mod/archive/master.zip#/tsnrp.zip' mod-master ;; # strip dir 271ben4211) art_dl 2.7.1.tgz BensMod4.2.11.zip ;; 271ben4212) art_dl 2.7.1.tgz BensMod4.2.12.zip ;; 271ben432) art_dl 2.7.1.tgz BensMod4.3.2.zip "Bens Mod 4.3.2" ;; # strip dir 271ben434) art_dl 2.7.1.tgz BensMod4.3.4.zip "Bens Mod 4.3.4" ;; # strip dir 271ben435) art_dl 2.7.1.tgz BensMod4.3.5.zip ;; 271ben*) art_dl 2.7.1.tgz http://www.benfornshell.com/Artemis/BensModLatest.zip ;; 271*) art_dl 2.7.1.tgz ;; 272ef*|272east*) art_dl 2.7.2.tgz https://github.com/cdw129/EF-MOD/raw/master/Ef%20MOD.zip ;; # UNTESTED 272tsnrp|272tsn-rp) art_dl 2.7.2.tgz TSN-Mod-2009-for-2.7.1-Full.zip ;; # UNTESTED # 272tsn-rp-s-git) art_dl 2.7.2.tgz https://github.com/tsnrp/mod/raw/server/tsnrp-mod-server.zip ;; # NOW BROKEN 272tsn-rp*) art_dl 2.7.2.tgz 'https://github.com/tsnrp/mod/archive/master.zip#/tsnrp.zip' mod-master ;; # strip dir. UNTESTED 272ben4211) art_dl 2.7.2.tgz BensMod4.2.11.zip ;; 272ben4212) art_dl 2.7.2.tgz BensMod4.2.12.zip ;; 272ben432) art_dl 2.7.2.tgz BensMod4.3.2.zip "Bens Mod 4.3.2" ;; # strip dir 272ben434) art_dl 2.7.2.tgz BensMod4.3.4.zip "Bens Mod 4.3.4" ;; # strip dir 272ben435) art_dl 2.7.2.tgz BensMod4.3.5.zip ;; 272ben*) art_dl 2.7.2.tgz http://www.benfornshell.com/Artemis/BensModLatest.zip ;; 272*) art_dl 2.7.2.tgz ;; 274ef*|274east*) art_dl 2.7.4.tgz https://github.com/cdw129/EF-MOD/raw/master/Ef%20MOD.zip "EF MOD" ;; # strip dir. UNTESTED # 274tsn-rp-s-git) art_dl 2.7.4.tgz https://github.com/tsnrp/mod/raw/server/tsnrp-mod-server.zip ;; # NOW BROKEN 274tsn-rp*) art_dl 2.7.4.tgz 'https://github.com/tsnrp/mod/archive/master.zip#/tsnrp.zip' mod-master ;; # strip dir. UNTESTED 274ben*) art_dl 2.7.4.tgz http://www.benfornshell.com/Artemis/BensModLatest.zip ;; # UNTESTED 274*) art_dl 2.7.4.tgz ;; 275ef30|275east*30) art_dl 2.7.5.tgz https://raw.githubusercontent.com/cdw129/EF-MODS/main/EF_MOD_3.0.zip "Artemis2_7_5 EFMOD 3_0" Artemis ;; # strip dirs 275ef*|275east*) art_dl 2.7.5.tgz https://raw.githubusercontent.com/cdw129/EF-Server-Mods/main/EF%20MOD%20Server%203.1.zip "Artemis2_7_5 EFMOD 3_0" Artemis ;; # strip dirs # 275tsn-rp-s-git) art_dl 2.7.5.tgz https://github.com/tsnrp/mod/raw/server/tsnrp-mod-server.zip ;; # NOW BROKEN 275tsn-rp*) art_dl 2.7.5.tgz 'https://github.com/tsnrp/mod/archive/master.zip#/tsnrp.zip' mod-master ;; # strip dir. UNTESTED 275ben*) art_dl 2.7.5.tgz Fork_UE_4.3.0.zip BensModForkUE ;; # strip dir 275*) art_dl 2.7.5.tgz ;; 2799ef30*|2799east*30) art_dl 2.7.99.tgz https://raw.githubusercontent.com/cdw129/EF-MODS/main/EF_MOD_3.0.zip "Artemis2_7_5 EFMOD 3_0" Artemis ;; # strip dirs. UNTESTED 2799ef*|2799east*) art_dl 2.7.99.tgz https://raw.githubusercontent.com/cdw129/EF-Server-Mods/main/EF%20MOD%20Server%203.1.zip "Artemis2_7_5 EFMOD 3_0" Artemis ;; # strip dirs 2799ben*) art_dl 2.7.99.tgz Fork_UE_4.3.0.zip BensModForkUE ;; # strip dir. UNTESTED 2799*) art_dl 2.7.99.tgz ;; 280ben*) art_dl 2.8.0.tgz Bens_Mod_Fork_UE_4.3.1.zip "Ben's Mod Fork UE 4.3.1" "Artemis Ben" # UNTESTED torp_fix ;; # FIX MOD for 2.8.x :-) # art_dl 2.8.0.tgz Fork_UE_4.3.0.zip BensModForkUE # strip dir. UNTESTED # torp_fix ;; # FIX MOD for 2.8.0 :-) 280ef31*|280east*31*) art_dl 2.8.0.tgz https://raw.githubusercontent.com/cdw129/EF-Server-Mods/main/EF%20MOD%20Server%203.1.zip "Artemis2_7_5 EFMOD 3_0" Artemis # strip dirs torp_fix ;; # FIX MOD for 2.8.0 :-) 280ef*|280east*) art_dl 2.8.0.tgz 'https://github.com/cdw129/EF-Server-Mods/raw/main/EF%20MOD%20SERVER%203.5.zip' "Artemis2_7_5 EFMOD 3_5" Artemis # strip dirs torp_fix ;; # FIX MOD for 2.8.0 :-) 280tsn*) art_dl 2.8.0.tgz 'https://github.com/tsnrp/mod/archive/refs/heads/master.zip#tsnrp.zip' mod-master # strip dir. UNTESTED torp_fix ;; # FIX MOD for 2.8.0 :-) 280*) art_dl 2.8.0.tgz ;; # 2.8.1-beta as seen at Artemis Armada 2022 and: # https://artemis.forumchitchat.com/post/artemis-2-8-1-exe-download-12665047 281ben*|281b-ben*) art_dl 2.8.1.tgz Bens_Mod_Fork_UE_4.3.1.zip "Ben's Mod Fork UE 4.3.1" "Artemis Ben" # UNTESTED exe_link 2.8.0 2.8.1; torp_fix ;; # FIX MOD for 2.8.x :-) 281b-ef31*|281b-east*31*|\ 281ef31*|281east*31*) art_dl 2.8.1.tgz https://raw.githubusercontent.com/cdw129/EF-Server-Mods/main/EF%20MOD%20Server%203.1.zip "Artemis2_7_5 EFMOD 3_0" Artemis # strip dirs exe_link 2.8.0 2.8.1; torp_fix ;; # FIX MOD for 2.8.x :-) 281b-ef*|281b-east*\ 281ef*|281east*) art_dl 2.8.1.tgz 'https://github.com/cdw129/EF-Server-Mods/raw/main/EF%20MOD%20SERVER%203.5.zip' "Artemis2_7_5 EFMOD 3_5" Artemis # strip dirs exe_link 2.8.0 2.8.1; torp_fix ;; # FIX MOD for 2.8.0 :-) 281tsn*|281b-tsn*) art_dl 2.8.1.tgz 'https://github.com/tsnrp/mod/archive/refs/heads/master.zip#tsnrp.zip' mod-master # strip dir. UNTESTED exe_link 2.8.0 2.8.1; torp_fix ;; # FIX MOD for 2.8.x :-) 281*) art_dl 2.8.1.tgz ; exe_link 2.8.0 2.8.1 ;; # Artemis3 Cosmos Pre-Releases !!! # NOT FOR DISTRIBUTION unless marked STEAM # Reverse order so cos092* doesn't steal cos0922* # +++++ ADD NEW COSMOS HERE (keep this marker! team-release.sh searches for it) cos104*|3104*) cos_dl 1.0.4 ;; # 2025-03-22 (with Doug updates) fixed hot_key_settings, new npc_killed msgs, screen size/ratio fixes, radar updates... cos103*|3103*) cos_dl 1.0.3 ;; # 2025-03-07 "[No changes to C++ but] has some complex changes to the GUI that Doug implemented" cos102*|3102*) cos_dl 1.0.2 ;; # 2025-02-26 new spatial gui, 50-100fps throttle, main screen data grid asserts, comms filter tabs, helm altimeter cos101*|3101*) cos_dl 1.0.1 ;; # 2024-12-14 new font rendering, fixed clicks, 2d radar "lock" fix... cos100*|3100*) cos_dl 1.0.0 ;; # 2024-11-14 REAL 1.0 release! cos0945*|30945*) cos_dl 0.9.45 ;; # 2024-11-05 "Can it be 1.0? Finally? Let's test it", engineering not right 1st time, weapons locked up while fighting, etc cos0944*|30944*) cos_dl 0.9.44 ;; # 2024-10-23 "Continuing work on network code to increase reliability" cos0941*|30941*) cos_dl 0.9.41 ;; # 2024-10-17 "Keepin on fixin" - latest enet network layer, sync timeTickCount, flush old skyboxes, etc cos0940*|30940*) cos_dl 0.9.40 ;; # 2024-10-07 "Keep those wheels a rollin!" shrunk all the ship textures, lots of script work, smooth engine trails, more cinematic mode cos0938*|30938*) cos_dl 0.9.38 ;; # 2024-09-30 "But we all keep trying, like fools!", server/cleint sync issues, misc # 0937 30937 0.9.37 ??? cos0936*|30936*) cos_dl 0.9.36 ;; # 2024-09-19 Are we close? What is even this thing? :) fixed engine trails being too big and too far forward cos0935*|30935*) cos_dl 0.9.35 ;; # 2024-09-17 "So ding dang close" cos0934*|30934*) cos_dl 0.9.34 ;; # 2024-09-12 "Even frickin' closer", rotating, drag bars, can fighter hurt a base now? cos0933*|30933*) cos_dl 0.9.33 ;; # 2024-09-04 make new ladder/horde mission; Walk The Line cos0932*|30932*) cos_dl 0.9.32 ;; # 2024-08-30 bombers (10 homing, 2 nukes, 15 mines) random spawn on stations... cos0931*|30931*) cos_dl 0.9.31 ;; # 2024-08-23 Furiously fixing! crash in dmx, science tab broken... cos0930*|30930*) cos_dl 0.9.30 ;; # 2024-08-21 adjusted lighting, eng_presets widget, ximni quickjump, "fix" mine blink :-( cos0927*|30927*) cos_dl 0.9.27 ;; # 2024-08-05 build that worked fairly well at San Diego Comic Con 2024 cos0926*|30926*) cos_dl 0.9.26 ;; # 2024-07-08 STEAM RELEASE! minefield fixes, bunch of crash fixes, angrier monsters cos0925*|30925*) cos_dl 0.9.25 ;; # 2024-07-06 Steam CANDIDATE - redesigned black hole, ship doesn't orbit station, etc cos0924*|30924*) cos_dl 0.9.24 ;; # 2024-07-03 check crash bugs are taken care of cos0922*|30922*) cos_dl 0.9.22 ;; # 2024-06-24 (fixed) Bluer GUI, fullscreen, quit, bunch of python bits cos0918*|30918*) cos_dl 0.9.18 ;; # 2024-06-13 AIHOOK::FAST_TICK, fractional player ships, engine trails prettier cos0917*|30917*) cos_dl 0.9.17 ;; # 2024-06-06 manual beam GUI, comms improvements, no jump when dock / vice-versa cos0916*|30916*) cos_dl 0.9.16 ;; # 2024-05-16 GUI changes _clear and _complete cos0915*|30915*) cos_dl 0.9.15 ;; # 2024-05-02 basic DMX, cinematic mode cos0914*|30914*) cos_dl 0.9.14 ;; # 2024-04-17 Navareas - like border war neutral areas cos0913*|30913*) cos_dl 0.9.13 ;; # 2024-04-04 STEAM RELEASE! missiles 30s->25s, turn off red flash, bear arcs unborked cos0912*|30912*) cos_dl 0.9.12 ;; # 2024-03-30 "click on radar to steer ship", "major overhaul to comms waterfall" etc cos0911*|30911*) cos_dl 0.9.11 ;; # 2024-03-22 "Doug and I have been workin hard" cos0910*|30910*) cos_dl 0.9.10 ;; # 2024-03-14 has fleets and fighters and all sorts of stuff, close to another Steam release cos099*|3099*) cos_dl 0.9.9 ;; # 2024-03-07 Enemy fleets! Enemy fighter wings now launch from carriers! cos097b*|3097b*) cos_dl 0.9.7b ;; # 2024-02-13 Darrin's 0.9.7 cos096*|3096*) cos_dl 0.9.6 ;; # 2024-02-02 stop-thrust-boost control, GUI for speed/shield, fix control lag cos095*|3095*) cos_dl 0.9.5 ;; # 2024-02-01 Fixed Wreck data, phantom fighters cos094*|3094*) cos_dl 0.9.4 ;; # 2024-01-31 BROKEN BasicSiegeMast monsters / fighters cos093*|3093*) cos_dl 0.9.3 ;; # 2024-01-24, fighters, typhon, "standby" cos092*|3092*) cos_dl 0.9.2 ;; # 2024-01-16, testfighter cos091*|3091*) cos_dl 0.9.1 ;; # 2023-12-07 torp-to-energy widget, dock/undock button cos090*|3090*) cos_dl 0.9.0 ;; # 2023-11-10 STEAM RELEASE? cos0811*|30811*) cos_dl 0.8.11 ;; # 2023-11-09 cos0810*|30810*) cos_dl 0.8.10 ;; # 2023-11-05 cos089*|3089*) cos_dl 0.8.9 ;; # 2023-10-28 cos088*|3088*) cos_dl 0.8.8 ;; # 2023-10-26 cos087*|3087*) cos_dl 0.8.7 ;; # 2023-10-05 cos086*|3086*) cos_dl 0.8.6 ;; # 2023-09-21 cos085*|3085*) cos_dl 0.8.5 ;; # 2023-09-11 cos084*|3084*) cos_dl 0.8.4 ;; # 2023-09-06 cos083*|3083*) cos_dl 0.8.3 ;; # 2023-08-30 cos082*|3082*) cos_dl 0.8.2 ;; # 2023-08-23 cos081*|3081*) cos_dl 0.8.1 ;; # 2023-08-09 cos0716*|30716*) cos_dl 0.7.16 ;; # 2023-07-08 STEAM RELEASE? cos0713*|30713*) cos_dl 0.7.13 ;; # 2023-07-02 cos0711*|30711*) cos_dl 0.7.11 ;; # 2023-07-01 cos079*|3079*) cos_dl 0.7.9 ;; # 2203-06-20 ish? cos078*|3078*) cos_dl 0.7.8 ;; cos070*|3070*) cos_dl 0.7.0 ;; cos066*|3066*) cos_dl 0.6.6 ;; # 2023-04-30 https://artemis.forumchitchat.com/post/artemis-cosmos-3-0-6-6-prerelease-12579183?pid=1334990512 (x2) cos062*|3062*) cos_dl 0.6.2 ;; # 2023-01-21 https://artemis.forumchitchat.com/post/artemis-cosmos-3-0-6-2-prerelease-12541289 *) art_dl 2.8.1.tgz ; exe_link 2.8.0 2.8.1 ;; # default esac # Empty black skyboxes and starfield (MUCH faster over VNC): cd || exit nebula empty.jpg 'chmod 644' nebula empty.png 'chmod 644' for X in 2.*/art/sb*/*.jpg; do cp -v ~/bin/empty.jpg "$X"; done cp -v ~/bin/empty.png 2.*/dat/aster2.png nebula mkclicks.sh bash # Make /Missions/ available on the webserver: ln -vfs ~/2.*/dat/Missions www/ if [[ "$IP" ]]; then MISS_URL="http://$IP/Missions/" else MISS_URL="/Missions/"; fi if [[ -d www/Mssions ]]; then banner Missions and their logs are available \ 'here' fi # +++++++++++++++ A silly Nebula logo / branding on the Artemis logo? # ++++++++++++++++++++ "7z -y x" can be used to extract files like Artemis_Upgrade_v2_7_5.exe