Skip to content

Commit 70e0b5a

Browse files
committed
Add "Tiberian Sun: Aftermath" to mods to compile for
1 parent 7c0635e commit 70e0b5a

File tree

16 files changed

+275
-11
lines changed

16 files changed

+275
-11
lines changed

.github/workflows/windows.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ jobs:
2828
strategy:
2929
fail-fast: false
3030
matrix:
31-
type: [ TSCLIENT, MOD_DTA, MOD_TI, MOD_TO, MOD_RUBICON, MOD_FD, MOD_SD ]
32-
#type: [ SINGLEPLAYER, TIBSUN, TSCLIENT, MOD_DTA, MOD_TI, MOD_TO, MOD_RUBICON, MOD_FD, MOD_SD ]
31+
type: [ TSCLIENT, MOD_DTA, MOD_TI, MOD_TO, MOD_RUBICON, MOD_FD, MOD_SD, MOD_TSA ]
32+
#type: [ SINGLEPLAYER, TIBSUN, TSCLIENT, MOD_DTA, MOD_TI, MOD_TO, MOD_RUBICON, MOD_FD, MOD_SD, MOD_TSA ]
3333

3434
steps:
3535
- name: Clone Repository

Makefile

Lines changed: 25 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,12 @@ NFLAGS += -DMOD_SD
105105
CFLAGS += -DMOD_SD
106106
endif
107107

108+
ifdef MOD_TSA
109+
$(info MOD_TSA defined)
110+
NFLAGS += -DMOD_TSA
111+
CFLAGS += -DMOD_TSA
112+
endif
113+
108114
ifdef VINIFERA
109115
$(info VINIFERA defined)
110116
NFLAGS += -DVINIFERA
@@ -160,8 +166,8 @@ ifneq ($(call ifdef_any_of,MOD_DTA MOD_TI MOD_TO MOD_RUBICON MOD_FD),)
160166
OBJS += src/ai_target_emp_like_multimissile.o
161167
endif
162168

163-
# Only include in: MOD_TI MOD_FD MOD_RUBICON
164-
ifneq ($(call ifdef_any_of,MOD_TI MOD_FD MOD_RUBICON),)
169+
# Only include in: MOD_TI MOD_FD MOD_RUBICON MOD_TSA
170+
ifneq ($(call ifdef_any_of,MOD_TI MOD_FD MOD_RUBICON MOD_TSA),)
165171
OBJS += src/ai_target_droppods_like_multimissile.o
166172
endif
167173

@@ -263,8 +269,8 @@ OBJS += src/saved_games_in_subdir.o
263269
OBJS += src/savegame.o
264270
OBJS += src/scrap_metal_explosion.o
265271

266-
# Only include in: MOD_TO MOD_RUBICON MOD_FD MOD_SD TSCLIENT
267-
ifneq ($(call ifdef_any_of,MOD_TO MOD_TI MOD_RUBICON MOD_FD MOD_SD TSCLIENT),)
272+
# Only include in: MOD_TO MOD_RUBICON MOD_FD MOD_SD MOD_TSA TSCLIENT
273+
ifneq ($(call ifdef_any_of,MOD_TO MOD_TI MOD_RUBICON MOD_FD MOD_SD MOD_TSA TSCLIENT),)
268274
OBJS += src/shared_control.o
269275
endif
270276

@@ -348,8 +354,8 @@ OBJS += src/max_pip_counts.o
348354
OBJS += src/mechanics.o
349355
OBJS += src/ionstorm_jumpjet_crash.o
350356

351-
# Only include in: MOD_TO MOD_RUBICON MOD_FD MOD_SD TSCLIENT
352-
ifneq ($(call ifdef_any_of,MOD_TO MOD_RUBICON MOD_FD MOD_SD TSCLIENT),)
357+
# Only include in: MOD_TO MOD_RUBICON MOD_FD MOD_SD MOD_TSA TSCLIENT
358+
ifneq ($(call ifdef_any_of,MOD_TO MOD_RUBICON MOD_FD MOD_SD MOD_TSA TSCLIENT),)
353359
OBJS += src/move_team_group_number.o
354360
endif
355361

@@ -373,7 +379,7 @@ OBJS += src/chat_ignore.o
373379
OBJS += src/chatallies.o
374380

375381
# The logger is needed for certain client features
376-
ifneq ($(call ifdef_any_of,MOD_DTA MOD_TI MOD_TO MOD_RUBICON MOD_FD MOD_SD TSCLIENT),)
382+
ifneq ($(call ifdef_any_of,MOD_DTA MOD_TI MOD_TO MOD_RUBICON MOD_FD MOD_SD MOD_TSA TSCLIENT),)
377383
OBJS += src/logger.o
378384
endif
379385

@@ -382,8 +388,8 @@ ifneq ($(call ifdef_any_of,MOD_DTA MOD_TO),)
382388
OBJS += src/remove_iscoredefender_emp_immunity.o
383389
endif
384390

385-
# Only include in: MOD_TO MOD_TI MOD_RUBICON MOD_FD MOD_SD TSCLIENT
386-
ifneq ($(call ifdef_any_of,MOD_TO MOD_TI MOD_RUBICON MOD_FD MOD_SD TSCLIENT),)
391+
# Only include in: MOD_TO MOD_TI MOD_RUBICON MOD_FD MOD_SD MOD_TSA TSCLIENT
392+
ifneq ($(call ifdef_any_of,MOD_TO MOD_TI MOD_RUBICON MOD_FD MOD_SD MOD_TSA TSCLIENT),)
387393
OBJS += src/tiberium_stuff.o
388394
endif
389395

@@ -544,6 +550,9 @@ endif
544550
ifdef MOD_SD
545551
OBJS += src/sd_hacks.o
546552
endif
553+
ifdef MOD_TSA
554+
OBJS += src/tsa_hacks.o
555+
endif
547556

548557

549558
# =========================================================
@@ -576,6 +585,9 @@ endif
576585
ifdef MOD_SD
577586
OBJS += res/sd/res.o
578587
endif
588+
ifdef MOD_TSA
589+
OBJS += res/tsa/res.o
590+
endif
579591

580592

581593
# =========================================================
@@ -647,3 +659,7 @@ ifdef MOD_SD
647659
res/to/res.o: res/sd/res.rc
648660
$(WINDRES) $(WINDRES_FLAGS) -Ires/sd/ $< $@
649661
endif
662+
ifdef MOD_TSA
663+
res/to/res.o: res/tsa/res.rc
664+
$(WINDRES) $(WINDRES_FLAGS) -Ires/tsa/ $< $@
665+
endif

build_tsa.cmd

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
@echo off
2+
REM
3+
REM cnc-patch environment config
4+
REM
5+
set PATH=C:\win-builds-patch-32\bin
6+
7+
set /P c=Generate Release executable [Y/N]?
8+
if /I "%c%" EQU "N" goto :debug
9+
10+
if not exist "build\release" mkdir build\release
11+
12+
gmake clean
13+
gmake MOD_TSA=1
14+
move /Y game.exe ./build/release/game.exe
15+
16+
:debug
17+
set /P c=Generate Debug executable [Y/N]?
18+
if /I "%c%" EQU "N" goto :vinifera
19+
20+
if not exist "build\debug" mkdir build\debug
21+
22+
gmake clean
23+
gmake MOD_TSA=1 WWDEBUG=1
24+
move /Y game.exe ./build/debug/game.exe
25+
26+
:vinifera
27+
set /P c=Generate Vinifera executable [Y/N]?
28+
if /I "%c%" EQU "N" goto :exit
29+
30+
if not exist "build\vinifera" mkdir build\vinifera
31+
32+
gmake clean
33+
gmake MOD_TSA=1 VINIFERA=1
34+
move /Y game.exe ./build/vinifera/game.exe
35+
36+
pause
37+
38+
:exit
39+
exit

res/tsa/104.cur

326 Bytes
Binary file not shown.

res/tsa/248.cur

766 Bytes
Binary file not shown.

res/tsa/93.ico

119 KB
Binary file not shown.

res/tsa/cursor.rch

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
104 CURSOR "104.cur"

res/tsa/dialog.rch

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
198 DIALOGEX 0, 0, 200, 100, 0
2+
STYLE DS_SETFONT | WS_POPUP
3+
EXSTYLE WS_EX_TRANSPARENT
4+
FONT 8, "MS Sans Serif"
5+
{
6+
LTEXT "This is a dialog of known size that is used to resize other dialogs.", -1, 17, 23, 154, 23, WS_DISABLED, WS_EX_TRANSPARENT
7+
LTEXT "Please don't change the size, and leave it as a popup, not a child!!!!", -1, 14, 60, 157, 25, WS_DISABLED, WS_EX_TRANSPARENT
8+
}
9+
10+
247 DIALOG 0, 0, 252, 82
11+
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION
12+
CAPTION "Tiberian Sun"
13+
FONT 8, "MS Sans Serif"
14+
{
15+
CTEXT "Tiberian Sun: Aftermath has encountered an internal error", -1, 7, 11, 238, 8, NOT WS_GROUP
16+
CTEXT "and is unable to continue normally.", 1151, 7, 19, 238, 8, NOT WS_GROUP
17+
CTEXT "Please visit our website at https://www.playaftermath.net", 1152, 7, 36, 238, 8, NOT WS_GROUP
18+
PUSHBUTTON "OK", 1153, 83, 61, 79, 14
19+
CTEXT "for the latest updates and technical support.", -1, 7, 44, 238, 8, NOT WS_GROUP
20+
}
21+

res/tsa/icon.rch

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
93 ICON "93.ico"

res/tsa/menu.rch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
160 MENU
2+
{
3+
POPUP "&Mode"
4+
{
5+
MENUITEM "640 x 400", -25227, CHECKED
6+
MENUITEM "640 x 480", -25232
7+
MENUITEM "800 x 600", -25231
8+
MENUITEM "1024 x 768", -25230
9+
MENUITEM "1280 x 1024", -25229
10+
MENUITEM SEPARATOR
11+
}
12+
}
13+

0 commit comments

Comments
 (0)