Initial full mirror of c:\VWE (source + assets + toolchain + outputs) via Git LFS

Complete disaster-recovery snapshot: engine/game source, game data assets,
VC6 toolchain + DX SDKs, build outputs, deployed game, and _UNUSED archive.
Large binaries in Git LFS; text preserved byte-for-byte (core.autocrlf=false,
no eol attributes). See RECOVERY.md for the one-clone rebuild procedure.
This commit is contained in:
Cyd
2026-06-24 21:28:16 -05:00
commit 2b8ca921cb
66341 changed files with 7923174 additions and 0 deletions
@@ -0,0 +1,412 @@
#include "Content\\ShellScripts\\stddefs.h"
#include "Content\\ShellScripts\\ScriptStrings.h"
#include "Content\\ShellScripts\\buttons.script"
#include "Content\\ShellScripts\\ErrorScreen.script"
#include "Content\\ShellScripts\\common_shell.script" // jcem
//#include "Content\\ShellScripts\\MechLabHeaders.h"
#define ALPHA_MIN 0
#define ALPHA_DEC 15 // fade out deccrement down to ALPHA_MIN
#define ALPHA_INIT_VALUE 5 // should be between ALPHA_MIN < & < ALPHA_MAX
#define ALPHA_INC 15 // fade in incrementsupward ALPHA_MAX
#define ALPHA_MAX 120 //
#define RANK_MAXLOOPS 9 // sync w/ gs_multi_id.script
#define TITLE_HEIGHT 28
#define TITLE_GAPY 9
#define RANK_YSTART 220
#define RANK_LMARGIN 160
#define RANK_RMARGIN (160 - 30)
#define RANK_TOTALX (800 - RANK_LMARGIN - RANK_RMARGIN)
#define RANK_H_THICK 4
#define RANK_H_THIN 2
#define RANK_T_HEIGHT 20
#define RANK_L_HEIGHT 20
#define NAME_TIME_HEIGHT 60 // 60 pixel high
#define MAX_IDLE 15000
#define MAX_IDLE2 10000
main
{
GUI_CREATE
{
//Makes the connection to the string table .dll
//Requires the #include "Content\\ShellScripts\\ScriptStrings.h" in every script with localizable text
setresource("ScriptStrings.dll")
location = 0, 0, 10000
if callback($$CTCL_CheckUseJPD$$)
setpointer(0)
object screen = o_ID_Screen
initialize(screen)
focus(screen.o_fscreen)
if 0 // exists(@mainmenu@)
{
deactivate(@mainmenu@o_lighting_movie)
activate(@mainmenu@o_mainscrn_ctr)
}
mail(25, @shell@volumn_control)
}
GUI_DESTROY
{
if 0 // exists(@mainmenu@)
{
deactivate(@mainmenu@o_mainscrn_ctr)
activate(@mainmenu@o_lighting_movie)
}
}
}
o_ID_Screen
{
GUI_CREATE
{
int nTimeCutOFF
int nTime_Quit = MAX_IDLE
int nTime_Left = -1
int nTime_Cur // temp value
nTimeCutOFF = gettimex() + nTime_Quit
framerate=10
sound sndOpenPanel = SPATH "sfx_vtol_drop.wav" // sfx_turret_actuator.wav
play sndOpenPanel, 1
callback($$CTCL_SetDispStateCOOP$$, 0, 1, 1)
callback($$CTCL_SetDispStateCOOP$$, 1, 1, 0)
callback($$CTCL_SetDispStateCOOP$$, 2, 1, 1)
callback($$CTCL_SetDispStateCOOP$$, 3, 1, 1)
font3d TitleFont = "arial.ttf"
font3d font_mesg = "arial.ttf" // FPATH ""
if callback($$CTCL_GetACP$$) == 949 // korean
font3d help_font = "굴림.ttf"
else
font3d help_font = "arial.ttf" // FPATH ""
object o_fscreen = s_fscreen
//o_fscreen.playHorz = 1
//o_fscreen.playVert = 1
initialize(o_fscreen)
pane p_infopanel = "hsh\\coop\\infopanel.png"
color(p_infopanel) = packcolor(255, 255, 255, 255)
alphamode(p_infopanel) = am_alpha_alphainvalpha
int nDiffX = 15
int nPanelX = -getwidth(p_infopanel)
pane p_rank = "hsh\\coop\\rank.png"
color(p_rank) = packcolor(255, 255, 255, 255)
alphamode(p_rank) = am_alpha_alphainvalpha
// variables for fading in and out
int alpha_val = ALPHA_INIT_VALUE
int fadeout = false
int nRetBut = 0
string mech_name[60] // NoMechID
callback($$TBL_GetResNames$$, mech_name[], 0, -1)
string saNames[RANK_MAXLOOPS]
int naStages[RANK_MAXLOOPS]
int naScores[RANK_MAXLOOPS]
int naKills[RANK_MAXLOOPS]
int naDeaths[RANK_MAXLOOPS]
int naTime[RANK_MAXLOOPS]
int naMech[RANK_MAXLOOPS]
int naSuccess[RANK_MAXLOOPS]
int nLastIdx = RANK_MAXLOOPS
int nScores
nScores = callback($$CTCL_CheckCampaign$$,6,nLastIdx,saNames[0], naStages[0], naScores[0], naKills[0], naDeaths[0], naTime[0], naMech[0], naSuccess[0])
callback($$CTCL_CheckCampaign$$, 3, 0)
}
GUI_INIT
{
}
GUI_EXECUTE
{
if (!fadeout)
{
nTime_Cur = gettimex()
if nTimeCutOFF <= nTime_Cur
{
// esc.. cancel this screen
//play btnTriggeredSound,1
fadeout = true
nRetBut = fs_but2
return
}
else
{
nTime_Cur = nTimeCutOFF - nTime_Cur
nTime_Cur = nTime_Cur + 500 // round up
nTime_Cur = nTime_Cur / 1000 // as sec
if nTime_Cur < 0
nTime_Cur = 0
if (nTime_Quit / 1000) < nTime_Cur
nTime_Cur = nTime_Quit / 1000
// display as sec...
nTime_Left = nTime_Cur
}
}
if fadeout == true
{
// Fading out(Exiting)
if ALPHA_MIN < alpha_val
{
alpha_val = alpha_val - ALPHA_DEC
if alpha_val <= ALPHA_MIN
{
alpha_val = ALPHA_MIN
@shell@id_type_is_single = 1
unfocus
if (nLastIdx == -1) || (nRetBut == fs_but2)
{
@SHELL@currentScreen = MAINMENU // @SHELL@lastScreen[@SHELL@lastScreenDepth] // mainmenu?
@SHELL@lastScreenDepth--
}
else
{
//@SHELL@lastScreenDepth++
@SHELL@lastScreen[@SHELL@lastScreenDepth] = MAINMENU
@SHELL@currentScreen = 201 // id input...
}
//script_end "gs_single_rank.script"
}
}
return
}
else
{
// Fading in(Entering)
if alpha_val < ALPHA_MAX
{
alpha_val += ALPHA_INC
if alpha_val >= ALPHA_MAX
{
alpha_val = ALPHA_MAX
}
}
}
nDiffX = nDiffX + 15
if nPanelX < 0
nPanelX = nPanelX + nDiffX
if 0 < nPanelX
nPanelX = 0
}
GUI_DRAW
{
render @shell@p_bkgnd_4coop, 0, 0, 0
setpencolor(0, 0, 40, alpha_val)
drawrect 0, 0 to getresx(), getresy()
int boxcolor
int y
#if 0
boxcolor = packcolor(0, 0, 120, 255) // blue
setpencolor(boxcolor)
drawrect 0, 0 to getresx(), getresy()
#endif
render p_infopanel, nPanelX, 0, 0
render p_rank, nPanelX + RANK_LMARGIN, RANK_YSTART - (TITLE_HEIGHT + TITLE_GAPY), 0
y = RANK_YSTART
// rank callsign mech score kill/death
int nTotal = 4 + 14 + 8 + 5 + 3 // 35
int nRankX = RANK_LMARGIN
int nCallX = nRankX + ((RANK_TOTALX * 4) / nTotal)
int nTotalEndX = RANK_LMARGIN + RANK_TOTALX
int nKNDX = nTotalEndX - ((RANK_TOTALX * 3) / nTotal)
int nScoreX = nKNDX - ((RANK_TOTALX * 5) / nTotal)
int nMechX = nScoreX - ((RANK_TOTALX * 8) / nTotal)
int text_size
int n_color
text_size = -(1000 + RANK_T_HEIGHT)
n_color = packcolor(255,255,0,255)
print3d_attributes = TitleFont, n_color, text_size,0,1,1,0,just_left,1
print3d_position = nPanelX + nRankX, y
print3d "Rank"
print3d_position = nPanelX + nCallX, y
print3d "Callsign"
print3d_position = nPanelX + nMechX, y
print3d "Mech"
print3d_position = nPanelX + nScoreX, y
print3d "Score"
print3d_position = nPanelX + nKNDX, y
print3d "Kill" // "Kill/Death"
y = y + RANK_T_HEIGHT
boxcolor = packcolor(40, 40, 40, 255) // gray
setpencolor(boxcolor)
y = y + RANK_H_THICK
drawrect nPanelX + RANK_LMARGIN, y to nPanelX + getresx() - RANK_RMARGIN, y + RANK_H_THICK
y = y + RANK_H_THICK + RANK_H_THICK
text_size = -(1000 + RANK_L_HEIGHT)
n_color = packcolor(255,255,0,255)
print3d_attributes = TitleFont, n_color, text_size,0,1,1,0,just_left,1
int nLoopRank
string text
int w
for nLoopRank = 0; nLoopRank < nScores; nLoopRank++
{
if (0 <= nPanelX) // 0 < length$(saNames[nLoopRank])
{
if nLoopRank == nLastIdx
{
n_color = packcolor(255,255,0,255)
}
else
{
n_color = packcolor(220,220,220,255)
}
print3d_attributes = TitleFont, n_color, text_size,0,1,1,0,just_left,1
text = conv$(nLoopRank + 1)
w = getprint3dwidth(text)
print3d_position = nRankX + (((nCallX - nRankX) - w) / 2), y
print3d text
print3d_position = nCallX, y
if nLoopRank == nLastIdx
print3d "<< Click!!! >>"
else
print3d saNames[nLoopRank]
print3d_position = nMechX, y
print3d mech_name[naMech[nLoopRank]]
print3d_position = nScoreX, y
print3d conv$(naScores[nLoopRank])
print3d_position = nKNDX, y
print3d conv$(naKills[nLoopRank]) // "/" conv$(naDeaths[nLoopRank])
}
y = y + RANK_L_HEIGHT
y = y + RANK_H_THIN
if (nLoopRank + 1 < RANK_MAXLOOPS)
drawrect nPanelX + RANK_LMARGIN, y to nPanelX + getresx() - RANK_RMARGIN, y + RANK_H_THIN
y = y + RANK_H_THIN + RANK_H_THIN
}
if (nPanelX == 0) && (nTime_Left != -1)
{
print3d_margins = 610, 140 to 690, 214
text = conv$(nTime_Left)
text_size = -(1000 + NAME_TIME_HEIGHT)
n_color = packcolor(255,255,255,255)
print3d_attributes = font_mesg, n_color, text_size,0,1,1,0,just_center,1
int nHeight = getprint3dheight(text)
print3d_position = 610, 214 - nHeight
print3d text
// jcem - draw help text!!!
if (nLastIdx != -1)
{
print3d_attributes = help_font, 0xff80ff00, -(1000 + 14), 1, 1, 1, 0, just_center
print3d_margins = 140, 495 to 670, 530
print3d_position = 140, 495
if callback($$CTCL_GetACP$$) == 949 // korean
{
print3d "초기 화면은 엄지(미사일) 버튼을 누르시면 됩니다.\nHigh Score 아이디 입력 화면으로 가시려면, 조이스틱의 방아쇠를 당겨 십시오."
}
else
{
print3d "Thumb button(on joystick) for MainScreen.\nTrigger for High Score Screen."
}
}
}
}
GUI_MAILBOX
{
if sender == o_fscreen
{
nTime_Cur = gettimex()
nTime_Quit = nTimeCutOFF - nTime_Cur
nTime_Quit = nTime_Quit / 1000
nTime_Quit = nTime_Quit * 1000
if nTime_Quit < MAX_IDLE2
nTime_Quit = MAX_IDLE2
if MAX_IDLE < nTime_Quit
nTime_Quit = MAX_IDLE // possible?
nTime_Left = nTime_Quit / 1000
nTimeCutOFF = gettimex() + nTime_Quit
int kEvent = getmessage(1)
if kEvent == fs_but1
{
fadeout = true
nRetBut = fs_but1
return
}
if kEvent == fs_but2
{ // esc.. cancel this screen
//play btnTriggeredSound,1
fadeout = true
nRetBut = fs_but2
return
}
if (kEvent & fs_left)
{
}
if (kEvent & fs_right)
{
}
if (kEvent & fs_up)
{
}
if (kEvent & fs_down)
{
}
}
}
GUI_DESTROY
{
unfocus
}
}