#!/bin/bash ###################################################################### # Nebula Artemis Download script, (C) 2015-2020 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' [[ "$2" ]] || return MOD="$2" ; shift ; shift cd && cd 2.* || exit # 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!" 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 !!! # https://artemis.forumchitchat.com/post/artemis-cosmos-3-0-6-2-prerelease-12541289 cos062*|3062*) cos_dl 0.6.2 ;; # https://artemis.forumchitchat.com/post/artemis-cosmos-3-0-6-6-prerelease-12579183?pid=1334990512 (x2) cos066*|3066*) cos_dl 0.6.6 ;; cos070*|3070*) cos_dl 0.7.0 ;; cos0914*|30914*) cos_dl 0.9.14 ;; # 2024-04-17 Navareas - like border war neutral areas # STEAM RELEASE! cos0913*|30913*) cos_dl 0.9.13 ;; # 2024-04-04 missiles 30s->25s, turn off red flash, bear arcs unborked # NOT FOR DISTRIBUTION: 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 ;; cos090*|3090*) cos_dl 0.9.0 ;; # Steam release? cos0811*|30811*) cos_dl 0.8.11 ;; cos0810*|30810*) cos_dl 0.8.10 ;; cos089*|3089*) cos_dl 0.8.9 ;; cos088*|3088*) cos_dl 0.8.8 ;; cos087*|3087*) cos_dl 0.8.7 ;; cos086*|3086*) cos_dl 0.8.6 ;; cos085*|3085*) cos_dl 0.8.5 ;; cos084*|3084*) cos_dl 0.8.4 ;; cos083*|3083*) cos_dl 0.8.3 ;; cos082*|3082*) cos_dl 0.8.2 ;; cos081*|3081*) cos_dl 0.8.1 ;; cos0716*|30716*) cos_dl 0.7.16 ;; # Steam Release? cos0713*|30713*) cos_dl 0.7.13 ;; cos0711*|30711*) cos_dl 0.7.11 ;; cos079*|3079*) cos_dl 0.7.9 ;; cos078*|3078*) cos_dl 0.7.8 ;; *) 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