BotF Startup Codes (Command-line arguments)

Startup Codes (Command-line arguments); support/discussion/questions

Moderator: thunderchero

User avatar
Benman2785
Lieutenant-Commander
Lieutenant-Commander
Posts: 225
Joined: Fri Mar 20, 2009 2:00 am

Re: BotF Startup Codes (Command-line arguments)

Post by Benman2785 »

Hi thunderchero:

i play vanilla 1366 - unregular, big, many
Car:3 Fed:5 Fer:1 Kli:3 Rom:2

it gives Earth with Vulcan and Andoria near by and only Klingons on wrong side, also Bajor is near Cardassia
canon_seed.gif
canon_seed.gif (217.24 KiB) Viewed 363 times
User avatar
thunderchero
Site Administrator aka Fleet Admiral
Site  Administrator aka Fleet Admiral
Posts: 7965
Joined: Fri Apr 25, 2008 2:00 am
Location: On a three month training mission, in command of the USS Valiant.

Re: BotF Startup Codes (Command-line arguments)

Post by thunderchero »

since you based this on 16:9 map 1705714077 will not display as you expect on current installer vanilla with 5:4 maps
1705714077.jpg
1705714077.jpg (332.7 KiB) Viewed 333 times
so your "cannon" would only be good for your install.
User avatar
Benman2785
Lieutenant-Commander
Lieutenant-Commander
Posts: 225
Joined: Fri Mar 20, 2009 2:00 am

Re: BotF Startup Codes (Command-line arguments)

Post by Benman2785 »

ah didnt know that

i modified my launcher to support only all working commands:

Code: Select all

@echo off
title "BotF Launcher"
mode 39,14
cd %~dp0
cls

:check
if exist %trek.exe GOTO found
mode 39,6
cls
echo --------------------------------------
echo -   trek.exe not found by Launcher   -
echo -      ========================      -
echo -   place Launcher in BotF folder    -
echo --------------------------------------
ping localhost -n 6 >NUL
cls
exit

:found
mode 39,6
cls
echo --------------------------------------
echo -     trek.exe found by Launcher     -
echo -      ========================      -
echo -      loading Launcher Options      -
echo --------------------------------------
ping localhost -n 1 >NUL
cls
GOTO choose
exit

:choose
mode 39,14
cls
echo --------------------------------------
echo - Star Trek: Birth of the Federation -
echo -          -----------------         -
echo - 1) play without changes            -
echo - 2) play with MUDD (Cheats)         -
echo -          -----------------         -
echo - 4) Video: Game won                 -
echo - 5) Video: Alliances formed         -
echo - 6) Video: Planet destroyed         -
echo - 7) Video: Game lost                -
echo -          -----------------         -
echo - 9) exit Launcher                   -
echo --------------------------------------
CHOICE /C 123456789 /M "- Enter Choice =" 

IF ERRORLEVEL 9 GOTO EOF
IF ERRORLEVEL 8 GOTO choose
IF ERRORLEVEL 7 GOTO gorn
IF ERRORLEVEL 6 GOTO kirk
IF ERRORLEVEL 5 GOTO bones
IF ERRORLEVEL 4 GOTO picard
IF ERRORLEVEL 3 GOTO choose
IF ERRORLEVEL 2 GOTO mudd
IF ERRORLEVEL 1 GOTO van

:van
mode 39,6
cls
echo --------------------------------------
echo - Star Trek: Birth of the Federation -
echo -          -----------------         -
echo -          no commands added         -
echo --------------------------------------
ping localhost -n 5 >NUL
cd %~dp0
start trek.exe
exit

:mudd
mode 39,10
cls
echo --------------------------------------
echo - Star Trek: Birth of the Federation -
echo -          -----------------         -
echo -          ---C-H-E-A-T-S---         -
echo -          -----------------         -
echo - F9  = 100%% Reseach to all          -
echo - F10 = adds 10.000 credits          -
echo - F11 = shows full map               -
echo --------------------------------------
ping localhost -n 5 >NUL
cd %~dp0
start trek.exe -MUDD
exit

:picard
mode 39,6
cls
echo --------------------------------------
echo - Star Trek: Birth of the Federation -
echo -          -----------------         -
echo -           Video: Game won          -
echo --------------------------------------
ping localhost -n 5 >NUL
cd %~dp0
start trek.exe -picard
exit

:bones
mode 39,6
cls
echo --------------------------------------
echo - Star Trek: Birth of the Federation -
echo -          -----------------         -
echo -       Video: Alliances formed      -
echo --------------------------------------
ping localhost -n 5 >NUL
cd %~dp0
start trek.exe -bones
exit

:kirk
mode 39,6
cls
echo --------------------------------------
echo - Star Trek: Birth of the Federation -
echo -          -----------------         -
echo -       Video: Planet destroyed      -
echo --------------------------------------
ping localhost -n 5 >NUL
cd %~dp0
start trek.exe -kirk
exit

:gorn
mode 39,6
cls
echo --------------------------------------
echo - Star Trek: Birth of the Federation -
echo -          -----------------         -
echo -           Video: GameOver          -
echo --------------------------------------
ping localhost -n 5 >NUL
cd %~dp0
start trek.exe -gorn
exit

:EOF
exit
here as .bat and .exe
BotF_Launcher.zip
(48.48 KiB) Downloaded 13 times
lau.jpg
lau.jpg (255.16 KiB) Viewed 323 times
User avatar
Spocks-cuddly-tribble
Code Master
Code Master
Posts: 1961
Joined: Sun Apr 27, 2008 2:00 am

Re: BotF Startup Codes (Command-line arguments)

Post by Spocks-cuddly-tribble »

The descriptions are a bit strange.

- Alliance = Game won in Ally team mode (i.e. Alliance 75% galactic population/vanilla bugged)
- Planet destroyed = Own empire annihilated (last system lost)
- Game won = solo Victory (60% galactic population/vanilla bugged)
- Game lost = other empire or alliance triggerd %pop victory condition (you hardly see this in vanilla due to bugs)
I don't know how many bugs is too many but that point is reached somewhere before however many in BotF is.
User avatar
Benman2785
Lieutenant-Commander
Lieutenant-Commander
Posts: 225
Joined: Fri Mar 20, 2009 2:00 am

Re: BotF Startup Codes (Command-line arguments)

Post by Benman2785 »

here i "wrote" a launcher with Bat-2-Exe that uses an old WinXP terminal so the "mode" command works without tangle with Win10 or 11 Terminal settings

enjoy
BotF_Launcher.zip
(186.64 KiB) Downloaded 21 times
Post Reply

Return to “Startup Codes (Command-line arguments)”