Skip to content

Commit 90298d2

Browse files
authored
Map Editor + rules_cncnet.ini integration (#825)
* mix changes * New Tools Folder * update main menu for new buttons + update gitignore * Delete finalsun.ini * Update .gitignore * Update versionconfig.ini * Restore map renderer folder * update versionconfig.ini
1 parent a193d6e commit 90298d2

File tree

317 files changed

+29119
-97
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

317 files changed

+29119
-97
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,9 @@
6060
/package/stringtable*.csf
6161
/package/subtitle.txt
6262
/package/subtitlemd.txt
63+
package/Tools/Map Editor/FA2SP/FA2sp.log
64+
package/Tools/Map Editor/FA2SP/finalalert2log.txt
65+
package/Tools/Map Editor/FA2SP/syringe.log
66+
package/Tools/Map Editor/WAE/MapEditorLog.log
67+
package/Tools/Map Editor/WAE/MapEditorSettings.ini
68+
package/Tools/Map Editor/WAE/UserData/MissingTranslationValues.ini

game-assets/cncnet.pack/art_cncnet.ini

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,26 @@
2222
; PrimaryFireFLH=80,0,105
2323
; SecondaryFireFLH=80,0,90
2424

25+
[CGBUNK05]; Bunker added by McPwny
26+
Foundation=2x2
27+
Height=4
28+
NewTheater=yes
29+
DemandLoad=true
30+
Buildup=CGBUNK05MK
31+
MuzzleFlash0=-33,13
32+
MuzzleFlash1=-22,19
33+
MuzzleFlash2=-7,23
34+
MuzzleFlash3=7,24
35+
MuzzleFlash4=20,17
36+
MuzzleFlash5=31,11
37+
DamageFireOffset0=-29,22
38+
DamageFireOffset1=24,0
39+
CanHideThings=true
40+
CanBeHidden=false
41+
OccupyHeight=0
42+
DemandLoadBuildup=true
43+
FreeBuildup=true
44+
2545
[SGUNSHIP] ; Spectre Gunship v5.0 THIS NOT CUSTOM CAMEO, Usage of PDPLANE/CARGOPLANE cameo on a vehicle type unit because can't overwrite [AircraftTypes]
2646
Cameo=OBMBICON
2747
Image=orcab

game-assets/cncnet.pack/cncnet community pack/README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ Everything should be free for public use and have no copy right restrictions. If
99
1010
**If you're unsure if it's ok to share, don't add them.**
1111
12-
All assets put in this folder need to be declared inside `art_cncnet.ini` within `cncnet.pack`. We should never touch `artmd.ini` to avoid affecting the vanilla game.
12+
All assets put in this folder need to be declared inside `art_cncnet.ini` within `game-assets\cncnet.pack`. We should never touch `artmd.ini` to avoid affecting the vanilla game.
1313
14-
Using these assets require `.map` file modifications.
15-
16-
For example, if you're adding new animations you must add to the `[Animations]` list within your map file. We do **NOT** modify `rulesmd.ini` for map modders.
14+
Using these assets require `.map` file modifications. Place all necessary rules code inside `rules_cncnet.ini` with techlevel of -1(or 11 depending on use case). Then inside the map file, change tech level to your desired usecase. WAE has been modified to support reading this file automatically.
1715
```
24.9 KB
Binary file not shown.
68.2 KB
Binary file not shown.
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
;-------------------------------------------------------------------------------------------------------------
2+
; INI Control File for additional rulesmd entries for community maps.
3+
; Any and all additions should only be used for custom maps. It should NEVER be noticeable or seen in vanilla.
4+
; EVERYTHING, with 100% no exceptions, should have TechLevel=-1 **and** AIBuildThis=no.
5+
;
6+
; After making changes here and submitting them to the CNC-Net YR repository, please wait for approval.
7+
;
8+
; Try to keep this file clean and organized for future contributors.
9+
;
10+
; Created by the CNCNet community.
11+
;-------------------------------------------------------------------------------------------------------------
12+
;
13+
;
14+
; New vehicles, infantry or buildings should be listed within their appropriate type section with SUPER high numbers.
15+
; YES, the game generates a new internal array at runtime so it could be CanCowsFly=Fuckyeah and it doesn't matter.
16+
; BUT, we're gonna be 100% absolutely sure there's not gonna be any conflicts anywhere with custom maps.
17+
;
18+
; EXAMPLE BELOW
19+
;
20+
; [VehicleTypes]
21+
; 50000=NewVehicleHere
22+
; [InfantryTypes]
23+
; 50000=NewInfantryHere
24+
; [BuildingTypes]
25+
; 50000=NewBuildingHere
26+
27+
[BuildingTypes]
28+
50000=CGBUNK05
29+
30+
[CGBUNK05]; Bunker added by McPwny
31+
UIName=NOSTR:Concrete Bunker
32+
Name=Concrete Bunker
33+
Adjacent=2
34+
AIBasePlanningSide=1
35+
Armor=steel
36+
BaseNormal=no
37+
BuildCat=Combat
38+
Prerequisite=NACNST
39+
Capturable=false
40+
ClickRepairable=yes
41+
Cost=500
42+
Crewed=no
43+
DebrisAnims=Dbris3sm,Dbris4lg,Dbris4sm,Dbris6sm,Dbris7lg,Dbris7sm,Dbris8sm,Dbris10lg,Dbris10sm
44+
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
45+
IsBaseDefense=yes
46+
MaxDebris=15
47+
MinDebris=5
48+
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
49+
Powered=no
50+
Sight=6
51+
Strength=600
52+
TechLevel=-1
53+
AIBuildThis=no
54+
CanBeOccupied=yes
55+
MaxNumberOccupants=5
56+
CanOccupyFire=yes
57+
AntiInfantryValue=25
58+
AntiArmorValue=10
59+
AntiAirValue=0

game-assets/cncnet.pack/rulesmd.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
; values are expressed in minutes.
88
; If multiple rules files are present, the Name field is used to identify between them.
99

10+
[$Include]
11+
0=rules_cncnet.ini
12+
1013
[General]
1114
UIName=Name:General
1215
Name=Red Alert 2 Yuri's Revenge -- Official Rules of Engagement

game-assets/ra2mode.pack/rulesmd.ini

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
; values are expressed in minutes.
88
; If multiple rules files are present, the Name field is used to identify between them.
99

10+
[$Include]
11+
0=rules_cncnet.ini
12+
1013
[General]
1114
; dkeeton - additions needed for YR exe compatibility
1215
; Most of these options were moved from AudioVisual in RA2 to General in YR
Lines changed: 84 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,98 @@
11
[ExtrasWindow]
22
DrawBorders=false
33
Size=800,600
4-
BackgroundTexture=MainMenu\mainmenubg.png
4+
BackgroundTexture=MainMenu/mainmenubg.png
55

66
[ExtraPictureBoxes]
77

8-
[btnExCancel]
9-
Location=645,535
10-
IdleTexture=MainMenu\button.png
11-
HoverTexture=MainMenu\button_c.png
8+
[ExtraControls]
9+
0=lblMenuName:XNALabel
10+
1=btnExCNCMapsRenderer:XNALinkButton
11+
2=btnExMapEditor2:XNALinkButton
12+
3=btnExMapEditor3:XNALinkButton
13+
4=btnExMapFolder:XNALinkButton
14+
5=btnModEncLink:XNALinkButton
15+
16+
[lblMenuName]
17+
AnchorPoint=708,54
18+
TextAnchor=HORIZONTAL_CENTER
19+
Text=Extra Resources
20+
FontIndex=1
21+
RemapColor=230,230,230
22+
Visible=1
23+
24+
[btnExMapEditor]
25+
Visible=0
26+
27+
[btnExMapEditor2]
28+
Location=645,199
29+
IdleTexture=MainMenu/button.png
30+
HoverTexture=MainMenu/button_c.png
1231
HoverSoundEffect=button.wav
13-
Text=Back
14-
ForeColor=255,255,0
15-
Font=Arial,Bold,9.25
16-
ForeColor=230,230,230
32+
Text=Map Editor - WAE
1733
FontIndex=1
18-
TextColorIdle=230,230,230
19-
TextColorHover=255,255,255
34+
Visible=1
35+
URL=Tools\Map Editor\WAE\WorldAlteringEditor.exe
2036

37+
[btnExMapEditor3]
38+
Location=645,241
39+
IdleTexture=MainMenu/button.png
40+
HoverTexture=MainMenu/button_c.png
41+
HoverSoundEffect=button.wav
42+
Text=Map Editor - FA2
43+
FontIndex=1
44+
Visible=1
45+
URL=Tools\Map Editor\FA2SP\FA2SPLaunch.exe
2146

22-
[ExtraControls]
47+
[btnExCNCMapsRenderer]
48+
Location=645,283
49+
IdleTexture=MainMenu/button.png
50+
HoverTexture=MainMenu/button_c.png
51+
Text=Map Renderer
52+
HoverSoundEffect=button.wav
53+
FontIndex=1
54+
Visible=1
55+
URL=Tools\Map Renderer\CNCMaps.Renderer.GUI.exe
2356

24-
; ==========================
25-
; Hidden Buttons
26-
; ==========================
27-
[btnExCredits]
28-
Visible=false
57+
[btnExMapFolder]
58+
Location=645,325
59+
IdleTexture=MainMenu/button.png
60+
HoverTexture=MainMenu/button_c.png
61+
Text=Custom Maps
62+
HoverSoundEffect=button.wav
63+
FontIndex=1
64+
Visible=1
65+
URL=Tools\OpenCustomMaps.bat
66+
67+
[btnModEncLink]
68+
Location=645,367
69+
IdleTexture=MainMenu/button.png
70+
HoverTexture=MainMenu/button_c.png
71+
Text=Mod Encyclopedia
72+
HoverSoundEffect=button.wav
73+
FontIndex=1
74+
Visible=1
75+
URL=https://modenc.renegadeprojects.com/Main_Page
2976

3077
[btnExStatistics]
31-
Visible=false
78+
Location=884,493
79+
IdleTexture=MainMenu/button.png
80+
HoverTexture=MainMenu/button_c.png
81+
Text=Statistics
82+
HoverSoundEffect=button.wav
83+
FontIndex=1
84+
Visible=0
3285

33-
[btnExMapEditor]
34-
Visible=false
86+
[btnExCredits]
87+
Location=0,0
88+
Size=0,0
89+
Visible=0
90+
91+
[btnExCancel]
92+
Location=645,535
93+
IdleTexture=MainMenu/button.png
94+
HoverTexture=MainMenu/button_c.png
95+
Text=Back
96+
HoverSoundEffect=button.wav
97+
FontIndex=1
98+
Visible=1

0 commit comments

Comments
 (0)