I made a new mod called ZRC. The idea is that ZRC adds my rc era to all BF1 maps from Marvel4's conversion. I tried to do this in my RCM before, and it worked for all maps that are alphabeticaly before my mod. To get it working for the maps i want to use this way. The only problem is that all maps crash after they are loaded. The debugger shows for a short moment the background from the sideselcet and crashs directly.
I took all scripts from data_RCM/common/scripts and put them in data_ZRC/common/scripts. Than i added the bf1 luas to data_ZRC/common/scripts/ZRC and added them in the mission.req and mission folder.
Here are the files. I took BCC as example, but the others look the same way. I think the most easiest way would be to add all missions to the RCM mod and just call them from the ZRC addme. But i don't know how to tell the ZRC addme to take the RCM mission.
addme.lua
Hidden/Spoiler:
[code]if ScriptCB_IsFileExist("..\\..\\addon\\RCM\\addme.script") == 1 then
-- recursively merges the second given table into the first given table
function MergeTables( mission, newFlags )
--for each table entry,
local array = type({})
for key,value in pairs(newFlags) do
--check for nested tables
if type(value) == array then
--mission must have this key as a table too
if type(mission[key]) ~= array then
mission[key] = {}
end
--merge these two tables recursively
MergeTables(mission[key], value)
else
--the key is a simple variable, so simply store it
mission[key] = value
end
end
end
--Search through the missionlist to find a map that matches mapName,
--then insert the new flags into said entry.
--Use this when you know the map already exists, but this content patch is just
--adding new gamemodes (otherwise you should just add whole new entries to the missionlist)
function AddNewGameModes(missionList, mapName, newFlags)
for i, mission in missionList do
if mission.mapluafile == mapName then
MergeTables(mission, newFlags)
end
end
end
--insert totally new maps here:
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\shell\\rc_mod_icon.lvl")
--insert totally new maps here:
local sp_n = 0
local mp_n = 0
sp_n = table.getn(sp_missionselect_listbox_contents)
-- BF1 --
print("")
print("ZRC: searching for additional maps..")
if ScriptCB_IsFileExist("..\\..\\addon\\BCC\\addme.script") == 1 then
print(" BCC detected - adding rc era..")
AddNewGameModes( sp_missionselect_listbox_contents, "BCC%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "BCC%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddDownloadableContent("BCC","BCCr_con",4)
else
print(" BCC not found - skipping..")
end
if ScriptCB_IsFileExist("..\\..\\addon\\BPF\\addme.script") == 1 then
print(" BPF detected - adding rc era..")
AddNewGameModes( sp_missionselect_listbox_contents, "BPF%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "BPF%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddDownloadableContent("BPF","BPFr_con",4)
else
print(" BPF not found - skipping..")
end
if ScriptCB_IsFileExist("..\\..\\addon\\GNS\\addme.script") == 1 then
print(" GNS detected - adding rc era..")
AddNewGameModes( sp_missionselect_listbox_contents, "GNS%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "GNS%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddDownloadableContent("GNS","GNSr_con",4)
else
print(" GNS not found - skipping..")
end
if ScriptCB_IsFileExist("..\\..\\addon\\KSD\\addme.script") == 1 then
print(" KSD detected - adding rc era..")
AddNewGameModes( sp_missionselect_listbox_contents, "KSD%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "KSD%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddDownloadableContent("KSD","KSDr_con",4)
else
print(" KSD not found - skipping..")
end
if ScriptCB_IsFileExist("..\\..\\addon\\KSI\\addme.script") == 1 then
print(" KSI detected - adding rc era..")
AddNewGameModes( sp_missionselect_listbox_contents, "KSI%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "KSI%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddDownloadableContent("KSI","KSIr_con",4)
else
print(" KSI not found - skipping..")
end
if ScriptCB_IsFileExist("..\\..\\addon\\KTC\\addme.script") == 1 then
print(" KTC detected - adding rc era..")
AddNewGameModes( sp_missionselect_listbox_contents, "KTC%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "KTC%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddDownloadableContent("KTC","KTCr_con",4)
else
print(" KTC not found - skipping..")
end
if ScriptCB_IsFileExist("..\\..\\addon\\NBP\\addme.script") == 1 then
print(" NBP detected - adding rc era..")
AddNewGameModes( sp_missionselect_listbox_contents, "NBP%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "NBP%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddDownloadableContent("NBP","NBPr_con",4)
else
print(" NBP not found - skipping..")
end
if ScriptCB_IsFileExist("..\\..\\addon\\NBT\\addme.script") == 1 then
print(" NBT detected - adding rc era..")
AddNewGameModes( sp_missionselect_listbox_contents, "NBT%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "NBT%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddDownloadableContent("NBT","NBTr_con",4)
else
print(" NBT not found - skipping..")
end
if ScriptCB_IsFileExist("..\\..\\addon\\RVC\\addme.script") == 1 then
print(" RVC detected - adding rc era..")
AddNewGameModes( sp_missionselect_listbox_contents, "RVC%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "RVC%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddDownloadableContent("RVC","RVCr_con",4)
else
print(" RVC not found - skipping..")
end
if ScriptCB_IsFileExist("..\\..\\addon\\RVH\\addme.script") == 1 then
print(" RVH detected - adding rc era..")
AddNewGameModes( sp_missionselect_listbox_contents, "RVH%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "RVH%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddDownloadableContent("RVH","RVHr_con",4)
else
print(" RVH not found - skipping..")
end
if ScriptCB_IsFileExist("..\\..\\addon\\TTD\\addme.script") == 1 then
print(" TTD detected - adding rc era..")
AddNewGameModes( sp_missionselect_listbox_contents, "TTD%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "TTD%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddDownloadableContent("TTD","TTDr_con",4)
else
print(" TTD not found - skipping..")
end
if ScriptCB_IsFileExist("..\\..\\addon\\TTM\\addme.script") == 1 then
print(" TTM detected - adding rc era..")
AddNewGameModes( sp_missionselect_listbox_contents, "TTM%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "TTM%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddDownloadableContent("TTM","TTMr_con",4)
else
print(" TTM not found - skipping..")
end
if ScriptCB_IsFileExist("..\\..\\addon\\Y4A\\addme.script") == 1 then
print(" Y4A detected - adding rc era..")
AddNewGameModes( sp_missionselect_listbox_contents, "Y4A%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "Y4A%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddDownloadableContent("Y4A","Y4Ar_con",4)
else
print(" Y4A not found - skipping..")
end
print("")
-- associate this mission name with the current downloadable content directory
-- (this tells the engine which maps are downloaded, so you need to include all new mission lua's here)
-- first arg: mapluafile from above
-- second arg: mission script name
-- third arg: level memory modifier. the arg to LuaScript.cpp: DEFAULT_MODEL_MEMORY_PLUS(x)
-- all done
newEntry = nil
n = nil
-- Now load our core.lvl into the shell to add our localize keys
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\core.lvl")
else
print("ZRC: ERROR - could not find RCM installation")
end[/code]
-- recursively merges the second given table into the first given table
function MergeTables( mission, newFlags )
--for each table entry,
local array = type({})
for key,value in pairs(newFlags) do
--check for nested tables
if type(value) == array then
--mission must have this key as a table too
if type(mission[key]) ~= array then
mission[key] = {}
end
--merge these two tables recursively
MergeTables(mission[key], value)
else
--the key is a simple variable, so simply store it
mission[key] = value
end
end
end
--Search through the missionlist to find a map that matches mapName,
--then insert the new flags into said entry.
--Use this when you know the map already exists, but this content patch is just
--adding new gamemodes (otherwise you should just add whole new entries to the missionlist)
function AddNewGameModes(missionList, mapName, newFlags)
for i, mission in missionList do
if mission.mapluafile == mapName then
MergeTables(mission, newFlags)
end
end
end
--insert totally new maps here:
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\shell\\rc_mod_icon.lvl")
--insert totally new maps here:
local sp_n = 0
local mp_n = 0
sp_n = table.getn(sp_missionselect_listbox_contents)
-- BF1 --
print("")
print("ZRC: searching for additional maps..")
if ScriptCB_IsFileExist("..\\..\\addon\\BCC\\addme.script") == 1 then
print(" BCC detected - adding rc era..")
AddNewGameModes( sp_missionselect_listbox_contents, "BCC%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "BCC%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddDownloadableContent("BCC","BCCr_con",4)
else
print(" BCC not found - skipping..")
end
if ScriptCB_IsFileExist("..\\..\\addon\\BPF\\addme.script") == 1 then
print(" BPF detected - adding rc era..")
AddNewGameModes( sp_missionselect_listbox_contents, "BPF%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "BPF%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddDownloadableContent("BPF","BPFr_con",4)
else
print(" BPF not found - skipping..")
end
if ScriptCB_IsFileExist("..\\..\\addon\\GNS\\addme.script") == 1 then
print(" GNS detected - adding rc era..")
AddNewGameModes( sp_missionselect_listbox_contents, "GNS%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "GNS%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddDownloadableContent("GNS","GNSr_con",4)
else
print(" GNS not found - skipping..")
end
if ScriptCB_IsFileExist("..\\..\\addon\\KSD\\addme.script") == 1 then
print(" KSD detected - adding rc era..")
AddNewGameModes( sp_missionselect_listbox_contents, "KSD%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "KSD%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddDownloadableContent("KSD","KSDr_con",4)
else
print(" KSD not found - skipping..")
end
if ScriptCB_IsFileExist("..\\..\\addon\\KSI\\addme.script") == 1 then
print(" KSI detected - adding rc era..")
AddNewGameModes( sp_missionselect_listbox_contents, "KSI%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "KSI%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddDownloadableContent("KSI","KSIr_con",4)
else
print(" KSI not found - skipping..")
end
if ScriptCB_IsFileExist("..\\..\\addon\\KTC\\addme.script") == 1 then
print(" KTC detected - adding rc era..")
AddNewGameModes( sp_missionselect_listbox_contents, "KTC%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "KTC%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddDownloadableContent("KTC","KTCr_con",4)
else
print(" KTC not found - skipping..")
end
if ScriptCB_IsFileExist("..\\..\\addon\\NBP\\addme.script") == 1 then
print(" NBP detected - adding rc era..")
AddNewGameModes( sp_missionselect_listbox_contents, "NBP%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "NBP%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddDownloadableContent("NBP","NBPr_con",4)
else
print(" NBP not found - skipping..")
end
if ScriptCB_IsFileExist("..\\..\\addon\\NBT\\addme.script") == 1 then
print(" NBT detected - adding rc era..")
AddNewGameModes( sp_missionselect_listbox_contents, "NBT%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "NBT%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddDownloadableContent("NBT","NBTr_con",4)
else
print(" NBT not found - skipping..")
end
if ScriptCB_IsFileExist("..\\..\\addon\\RVC\\addme.script") == 1 then
print(" RVC detected - adding rc era..")
AddNewGameModes( sp_missionselect_listbox_contents, "RVC%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "RVC%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddDownloadableContent("RVC","RVCr_con",4)
else
print(" RVC not found - skipping..")
end
if ScriptCB_IsFileExist("..\\..\\addon\\RVH\\addme.script") == 1 then
print(" RVH detected - adding rc era..")
AddNewGameModes( sp_missionselect_listbox_contents, "RVH%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "RVH%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddDownloadableContent("RVH","RVHr_con",4)
else
print(" RVH not found - skipping..")
end
if ScriptCB_IsFileExist("..\\..\\addon\\TTD\\addme.script") == 1 then
print(" TTD detected - adding rc era..")
AddNewGameModes( sp_missionselect_listbox_contents, "TTD%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "TTD%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddDownloadableContent("TTD","TTDr_con",4)
else
print(" TTD not found - skipping..")
end
if ScriptCB_IsFileExist("..\\..\\addon\\TTM\\addme.script") == 1 then
print(" TTM detected - adding rc era..")
AddNewGameModes( sp_missionselect_listbox_contents, "TTM%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "TTM%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddDownloadableContent("TTM","TTMr_con",4)
else
print(" TTM not found - skipping..")
end
if ScriptCB_IsFileExist("..\\..\\addon\\Y4A\\addme.script") == 1 then
print(" Y4A detected - adding rc era..")
AddNewGameModes( sp_missionselect_listbox_contents, "Y4A%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "Y4A%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddDownloadableContent("Y4A","Y4Ar_con",4)
else
print(" Y4A not found - skipping..")
end
print("")
-- associate this mission name with the current downloadable content directory
-- (this tells the engine which maps are downloaded, so you need to include all new mission lua's here)
-- first arg: mapluafile from above
-- second arg: mission script name
-- third arg: level memory modifier. the arg to LuaScript.cpp: DEFAULT_MODEL_MEMORY_PLUS(x)
-- all done
newEntry = nil
n = nil
-- Now load our core.lvl into the shell to add our localize keys
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\core.lvl")
else
print("ZRC: ERROR - could not find RCM installation")
end[/code]
Hidden/Spoiler:
[code]--
-- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved.
--
-- load the gametype script
ScriptCB_DoFile("ObjectiveConquest")
ScriptCB_DoFile("setup_teams")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\common.lvl")
ReadDataFile("common.lvl")
-- REP Attacking (attacker is always #1)
REP = 1;
CIS = 2;
CLONES = 3
-- These variables do not change
ATT = REP;
DEF = CIS;
function ScriptPostLoad()
--This defines the CPs. These need to happen first
cp1 = CommandPost:New{name = "CP1"}
cp2 = CommandPost:New{name = "CP2"}
cp3 = CommandPost:New{name = "CP3"}
cp4 = CommandPost:New{name = "CP4"}
cp5 = CommandPost:New{name = "CP5"}
cp6 = CommandPost:New{name = "CP7"}
--This sets up the actual objective. This needs to happen after cp's are defined
conquest = ObjectiveConquest:New{teamATT = ATT, teamDEF = DEF,
textATT = "game.modes.con",
textDEF = "game.modes.con2",
multiplayerRules = true}
--This adds the CPs to the objective. This needs to happen after the objective is set up
conquest:AddCommandPost(cp1)
conquest:AddCommandPost(cp2)
conquest:AddCommandPost(cp3)
conquest:AddCommandPost(cp4)
conquest:AddCommandPost(cp5)
conquest:AddCommandPost(cp6)
conquest:Start()
EnableSPHeroRules()
end
---------------------------------------------------------------------------
-- FUNCTION: ScriptInit
-- PURPOSE: This function is only run once
-- INPUT:
-- OUTPUT:
-- NOTES: The name, 'ScriptInit' is a chosen convention, and each
-- mission script must contain a version of this function, as
-- it is called from C to start the mission.
---------------------------------------------------------------------------
function ScriptInit()
ReadDataFile("dc:Load\\common.lvl")
SetMaxFlyHeight(-5)
SetMaxPlayerFlyHeight(-5)
SetMemoryPoolSize("ParticleTransformer::ColorTrans", 3000)
SetMemoryPoolSize("ParticleTransformer::PositionTr", 2500)
SetMemoryPoolSize("ParticleTransformer::SizeTransf", 2500)
SetMemoryPoolSize("FLEffectObject::OffsetMatrix", 150)
SetMemoryPoolSize ("SoldierAnimation", 800)
SetMemoryPoolSize ("ClothData",20)
SetMemoryPoolSize ("Combo",50) -- should be ~ 2x number of jedi classes
SetMemoryPoolSize ("Combo::State",650) -- should be ~12x #Combo
SetMemoryPoolSize ("Combo::Transition",650) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Condition",650) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Attack",550) -- should be ~8-12x #Combo
SetMemoryPoolSize ("Combo::DamageSample",6000) -- should be ~8-12x #Combo::Attack
SetMemoryPoolSize ("Combo::Deflect",100) -- should be ~1x #combo
local screenWidth, screenHeight = ScriptCB_GetScreenInfo()
local aspectRatio = screenWidth / screenHeight
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\SIDE\\fpanimset.lvl")
if aspectRatio <= 1.4 then
print("RCM_loading: Aspect Ratio 4:3 detected")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\HUD\\hud43.lvl")
ReadDataFile("ingame.lvl")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\HUD\\hudBmpKill.lvl")
elseif aspectRatio <= 1.63 and aspectRatio >= 1.5 then
print("RCM_loading: Aspect Ratio 16:10 detected")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\HUD\\hud1610.lvl")
ReadDataFile("ingame.lvl")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\HUD\\hudBmpKill.lvl")
elseif aspectRatio <= 1.9 and aspectRatio >= 1.63 then
print("RCM_loading: Aspect Ratio 16:9 detected")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\HUD\\hud169.lvl")
ReadDataFile("ingame.lvl")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\HUD\\hudBmpKill.lvl")
else
print("RCM_loading: Aspect Ratio unkown. Loading stock HUD.")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\HUD\\hudUnknown.lvl")
ReadDataFile("ingame.lvl")
end
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\sound\\rcm.lvl;comSnd")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\sound\\rcm.lvl")
ReadDataFile("..\\..\\addon\\BCC\\data\\_LVL_PC\\sound\\BCC.lvl;BCCcw")
ReadDataFile("sound\\dea.lvl;dea1cw")
ReadDataFile("sound\\hot.lvl;hot1gcw")
ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_laser")
ReadDataFile("SIDE\\rep.lvl",
"rep_fly_assault_dome")
ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_laser")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\SIDE\\rep.lvl",
"rep_inf_commando_01_rifleman",
"rep_inf_commando_02_roketeer",
"rep_inf_commando_03_sniper",
"rep_inf_commando_04_engineer",
"rep_inf_commando_05_electronic",
"rep_inf_commando_06_sergeant",
"rep_inf_commando_07_havoc",
"rep_inf_commando_08_elite")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\SIDE\\cis.lvl",
"cis_inf_b1_rifleman",
"cis_inf_b1_rocketeer",
"cis_inf_b1_sniper",
"cis_inf_sbd",
"cis_inf_magnaguard",
"cis_inf_droideka")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\SIDE\\mdo.lvl",
"mdo_inf_assassin",
"mdo_inf_officer")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\SIDE\\tnd.lvl",
"tnd_inf_slaver",
"tnd_inf_mercenary")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\SIDE\\rrl.lvl",
"rrl_inf_ep2_rifleman",
"rrl_inf_ep2_commander",
"rrl_inf_ep2_jettrooper")
TrandoOrMando = math.random(1,10)
if TrandoOrMando < 6 then
SetupTeams{
rep = {
team = REP,
units = 16,
reinforcements = 150,
soldier = { "rep_inf_commando_01_rifleman",9, 25},
assault = { "rep_inf_commando_02_roketeer",1,4},
sniper = { "rep_inf_commando_03_sniper",1,4},
engineer= { "rep_inf_commando_04_engineer",1,4},
officer = { "rep_inf_commando_05_electronic",1,4},
special = { "rep_inf_commando_06_sergeant",1,4},
commander={ "rep_inf_commando_07_havoc", 1, 4},
general = { "rep_inf_commando_08_elite", 1, 2}
},
cis = {
team = CIS,
units = 32,
reinforcements = 300,
soldier = {"cis_inf_b1_rifleman",10, 30},
assault = {"cis_inf_b1_rocketeer",1, 4},
sniper = {"cis_inf_b1_sniper",1, 4},
engineer= {"mdo_inf_assassin",1, 3},
officer = {"cis_inf_sbd",1, 2},
special = {"mdo_inf_officer",1, 2},
commander={"cis_inf_droideka", 1, 2},
general = {"cis_inf_magnaguard", 1, 2}
}
}
end
if TrandoOrMando > 5 then
SetupTeams{
rep = {
team = REP,
units = 16,
reinforcements = 150,
soldier = { "rep_inf_commando_01_rifleman",9, 25},
assault = { "rep_inf_commando_02_roketeer",1,4},
sniper = { "rep_inf_commando_03_sniper",1,4},
engineer= { "rep_inf_commando_04_engineer",1,4},
officer = { "rep_inf_commando_05_electronic",1,4},
special = { "rep_inf_commando_06_sergeant",1,4},
commander={ "rep_inf_commando_07_havoc", 1, 4},
general = { "rep_inf_commando_08_elite", 1, 2}
},
cis = {
team = CIS,
units = 32,
reinforcements = 300,
soldier = {"cis_inf_b1_rifleman",10, 30},
assault = {"cis_inf_b1_rocketeer",1, 4},
sniper = {"cis_inf_b1_sniper",1, 4},
engineer= {"tnd_inf_mercenary",1, 3},
officer = {"cis_inf_sbd",1, 2},
special = {"tnd_inf_slaver",1, 2},
commander={"cis_inf_droideka", 1, 2},
general = {"cis_inf_magnaguard", 1, 2}
}
}
end
-- Clones -------------------------
SetTeamName (3, "clone")
AddUnitClass (3, "rrl_inf_ep2_rifleman", 6)
AddUnitClass(3, "rrl_inf_ep2_commander",1)
SetUnitCount (3, 7)
AddAIGoal(CLONES, "Deathmatch", 100)
SetTeamAsFriend(3,REP)
SetTeamAsEnemy(3,CIS)
SetTeamAsFriend(REP,3)
SetTeamAsEnemy(CIS,3)
-----------------------------------
-- Level Stats
-- ClearWalkers()
AddWalkerType(0, 4) -- special -> droidekas
AddWalkerType(1, 0) -- 1x2 (1 pair of legs)
AddWalkerType(2, 0) -- 2x2 (2 pairs of legs)
AddWalkerType(3, 0) -- 3x2 (3 pairs of legs)
local weaponCnt = 1024
SetMemoryPoolSize("Aimer", 75)
SetMemoryPoolSize("AmmoCounter", weaponCnt)
SetMemoryPoolSize("BaseHint", 1024)
SetMemoryPoolSize("EnergyBar", weaponCnt)
SetMemoryPoolSize("EntityCloth", 50)
SetMemoryPoolSize("EntityFlyer", 32)
SetMemoryPoolSize("EntityHover", 32)
SetMemoryPoolSize("EntityLight", 200)
SetMemoryPoolSize("EntitySoundStream", 4)
SetMemoryPoolSize("EntitySoundStatic", 32)
SetMemoryPoolSize("MountedTurret", 32)
SetMemoryPoolSize("Navigator", 128)
SetMemoryPoolSize("Obstacle", 1024)
SetMemoryPoolSize("PathNode", 1024)
SetMemoryPoolSize("SoundSpaceRegion", 64)
SetMemoryPoolSize("TreeGridStack", 1024)
SetMemoryPoolSize("UnitAgent", 128)
SetMemoryPoolSize("UnitController", 128)
SetMemoryPoolSize("Weapon", weaponCnt)
SetSpawnDelay(10.0, 0.25)
--ReadDataFile("dc:BCC\\BCC.lvl", "BCC_conquest")
ReadDataFile("..\\..\\addon\\BCC\\data\\_LVL_PC\\BCC\\bes2.lvl", "bespin2_conquest")
SetDenseEnvironment("true")
AddDeathRegion("DeathRegion")
AddDeathRegion("DeathRegion2")
-- Sound
SetSoundEffect("ScopeDisplayZoomIn", "binocularzoomin")
SetSoundEffect("ScopeDisplayZoomOut", "binocularzoomout")
voiceSlow = OpenAudioStream("sound\\global.lvl", "rep_unit_vo_slow")
AudioStreamAppendSegments("sound\\global.lvl", "cis_unit_vo_slow", voiceSlow)
AudioStreamAppendSegments("sound\\global.lvl", "global_vo_slow", voiceSlow)
voiceQuick = OpenAudioStream("sound\\global.lvl", "rep_unit_vo_quick")
AudioStreamAppendSegments("sound\\global.lvl", "cis_unit_vo_quick", voiceQuick)
OpenAudioStream("sound\\global.lvl", "cw_music")
OpenAudioStream("..\\..\\addon\\RCM\\data\\_LVL_PC\\sound\\rcm.lvl", "rcm_music")
-- OpenAudioStream("sound\\global.lvl", "global_vo_quick")
-- OpenAudioStream("sound\\global.lvl", "global_vo_slow")
OpenAudioStream("sound\\dea.lvl", "dea1")
OpenAudioStream("sound\\dea.lvl", "dea1")
OpenAudioStream("sound\\hot.lvl", "hot1gcw")
OpenAudioStream("sound\\hot.lvl", "hot1gcw")
SetBleedingVoiceOver(REP, REP, "rep_off_com_report_us_overwhelmed", 1)
SetBleedingVoiceOver(REP, CIS, "rep_off_com_report_enemy_losing", 1)
SetBleedingVoiceOver(CIS, REP, "cis_off_com_report_enemy_losing", 1)
SetBleedingVoiceOver(CIS, CIS, "cis_off_com_report_us_overwhelmed", 1)
SetLowReinforcementsVoiceOver(REP, REP, "rep_off_defeat_im", .1, 1)
SetLowReinforcementsVoiceOver(REP, CIS, "rep_off_victory_im", .1, 1)
SetLowReinforcementsVoiceOver(CIS, CIS, "cis_off_defeat_im", .1, 1)
SetLowReinforcementsVoiceOver(CIS, REP, "cis_off_victory_im", .1, 1)
SetOutOfBoundsVoiceOver(2, "cisleaving")
SetOutOfBoundsVoiceOver(1, "repleaving")
SetAmbientMusic(REP, 1.0, "rep_amb_start", 0,1)
SetAmbientMusic(REP, 0.8, "rep_amb_middle", 1,1)
SetAmbientMusic(REP, 0.2, "rep_amb_end", 2,1)
SetAmbientMusic(CIS, 1.0, "cis_amb_start", 0,1)
SetAmbientMusic(CIS, 0.8, "cis_amb_middle", 1,1)
SetAmbientMusic(CIS, 0.2, "cis_amb_end", 2,1)
SetVictoryMusic(REP, "rep_dea_amb_victory")
SetDefeatMusic (REP, "rep_dea_amb_defeat")
SetVictoryMusic(CIS, "cis_dea_amb_victory")
SetDefeatMusic (CIS, "cis_dea_amb_defeat")
SetSoundEffect("ScopeDisplayZoomIn", "binocularzoomin")
SetSoundEffect("ScopeDisplayZoomOut", "binocularzoomout")
--SetSoundEffect("BirdScatter", "birdsFlySeq1")
--SetSoundEffect("WeaponUnableSelect", "com_weap_inf_weaponchange_null")
--SetSoundEffect("WeaponModeUnableSelect", "com_weap_inf_modechange_null")
SetSoundEffect("SpawnDisplayUnitChange", "shell_select_unit")
SetSoundEffect("SpawnDisplayUnitAccept", "shell_menu_enter")
SetSoundEffect("SpawnDisplaySpawnPointChange", "shell_select_change")
SetSoundEffect("SpawnDisplaySpawnPointAccept", "shell_menu_enter")
SetSoundEffect("SpawnDisplayBack", "shell_menu_exit")
-- Camera Stats
-- Giz Shot
AddCameraShot(0.879348, -0.142046, 0.448684, 0.072478, -38.413761, 30.986401, 195.879623);
AddCameraShot(0.755143, 0.032624, 0.654137, -0.028260, -80.924103, -32.534859, 59.805065);
AddCameraShot(0.596514, -0.068856, -0.794372, -0.091695, -139.203629, -28.934868, 56.316780);
AddCameraShot(0.073602, -0.011602, -0.985060, -0.155272, -118.288239, -28.934868, 125.938355);
AddCameraShot(0.902687, 0.001274, 0.430295, -0.000607, -90.957382, -47.834820, 180.831787);
AddCameraShot(-0.418815, -0.024036, -0.906262, 0.052011, -162.066483, -47.234821, 80.504837);
AddCameraShot(0.988357, 0.062970, 0.138228, -0.008807, -173.774002, -55.334801, 142.567810);
AddCameraShot(-0.100554, 0.008160, -0.991639, -0.080476, -246.954437, -31.334862, 153.438812);
AddCameraShot(0.717164, -0.018075, 0.696449, 0.017553, -216.827194, -31.334862, 186.863648);
AddCameraShot(0.844850, -0.049702, 0.531770, 0.031284, -247.181458, -45.734825, 29.732487);
AddCameraShot(0.454881, 0.028302, -0.888384, 0.055273, -291.636658, -48.734818, 21.009203);
AddCameraShot(0.818322, -0.026150, -0.573874, -0.018339, -193.434647, -58.634792, -12.443044);
AddCameraShot(0.471109, 0.004691, -0.882018, 0.008783, -192.251679, -61.334786, -32.647247);
if aspectRatio <= 1.4 then
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\SIDE\\43.lvl")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\HUD\\hudTxtKill.lvl")
elseif aspectRatio <= 1.63 and aspectRatio >= 1.5 then
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\SIDE\\1610.lvl")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\HUD\\hudTxtKill.lvl")
elseif aspectRatio <= 1.9 and aspectRatio >= 1.63 then
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\SIDE\\169.lvl")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\HUD\\hudTxtKill.lvl")
else
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\SIDE\\unkown.lvl")
end
end
[/code]
-- Copyright (c) 2005 Pandemic Studios, LLC. All rights reserved.
--
-- load the gametype script
ScriptCB_DoFile("ObjectiveConquest")
ScriptCB_DoFile("setup_teams")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\common.lvl")
ReadDataFile("common.lvl")
-- REP Attacking (attacker is always #1)
REP = 1;
CIS = 2;
CLONES = 3
-- These variables do not change
ATT = REP;
DEF = CIS;
function ScriptPostLoad()
--This defines the CPs. These need to happen first
cp1 = CommandPost:New{name = "CP1"}
cp2 = CommandPost:New{name = "CP2"}
cp3 = CommandPost:New{name = "CP3"}
cp4 = CommandPost:New{name = "CP4"}
cp5 = CommandPost:New{name = "CP5"}
cp6 = CommandPost:New{name = "CP7"}
--This sets up the actual objective. This needs to happen after cp's are defined
conquest = ObjectiveConquest:New{teamATT = ATT, teamDEF = DEF,
textATT = "game.modes.con",
textDEF = "game.modes.con2",
multiplayerRules = true}
--This adds the CPs to the objective. This needs to happen after the objective is set up
conquest:AddCommandPost(cp1)
conquest:AddCommandPost(cp2)
conquest:AddCommandPost(cp3)
conquest:AddCommandPost(cp4)
conquest:AddCommandPost(cp5)
conquest:AddCommandPost(cp6)
conquest:Start()
EnableSPHeroRules()
end
---------------------------------------------------------------------------
-- FUNCTION: ScriptInit
-- PURPOSE: This function is only run once
-- INPUT:
-- OUTPUT:
-- NOTES: The name, 'ScriptInit' is a chosen convention, and each
-- mission script must contain a version of this function, as
-- it is called from C to start the mission.
---------------------------------------------------------------------------
function ScriptInit()
ReadDataFile("dc:Load\\common.lvl")
SetMaxFlyHeight(-5)
SetMaxPlayerFlyHeight(-5)
SetMemoryPoolSize("ParticleTransformer::ColorTrans", 3000)
SetMemoryPoolSize("ParticleTransformer::PositionTr", 2500)
SetMemoryPoolSize("ParticleTransformer::SizeTransf", 2500)
SetMemoryPoolSize("FLEffectObject::OffsetMatrix", 150)
SetMemoryPoolSize ("SoldierAnimation", 800)
SetMemoryPoolSize ("ClothData",20)
SetMemoryPoolSize ("Combo",50) -- should be ~ 2x number of jedi classes
SetMemoryPoolSize ("Combo::State",650) -- should be ~12x #Combo
SetMemoryPoolSize ("Combo::Transition",650) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Condition",650) -- should be a bit bigger than #Combo::State
SetMemoryPoolSize ("Combo::Attack",550) -- should be ~8-12x #Combo
SetMemoryPoolSize ("Combo::DamageSample",6000) -- should be ~8-12x #Combo::Attack
SetMemoryPoolSize ("Combo::Deflect",100) -- should be ~1x #combo
local screenWidth, screenHeight = ScriptCB_GetScreenInfo()
local aspectRatio = screenWidth / screenHeight
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\SIDE\\fpanimset.lvl")
if aspectRatio <= 1.4 then
print("RCM_loading: Aspect Ratio 4:3 detected")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\HUD\\hud43.lvl")
ReadDataFile("ingame.lvl")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\HUD\\hudBmpKill.lvl")
elseif aspectRatio <= 1.63 and aspectRatio >= 1.5 then
print("RCM_loading: Aspect Ratio 16:10 detected")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\HUD\\hud1610.lvl")
ReadDataFile("ingame.lvl")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\HUD\\hudBmpKill.lvl")
elseif aspectRatio <= 1.9 and aspectRatio >= 1.63 then
print("RCM_loading: Aspect Ratio 16:9 detected")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\HUD\\hud169.lvl")
ReadDataFile("ingame.lvl")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\HUD\\hudBmpKill.lvl")
else
print("RCM_loading: Aspect Ratio unkown. Loading stock HUD.")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\HUD\\hudUnknown.lvl")
ReadDataFile("ingame.lvl")
end
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\sound\\rcm.lvl;comSnd")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\sound\\rcm.lvl")
ReadDataFile("..\\..\\addon\\BCC\\data\\_LVL_PC\\sound\\BCC.lvl;BCCcw")
ReadDataFile("sound\\dea.lvl;dea1cw")
ReadDataFile("sound\\hot.lvl;hot1gcw")
ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_laser")
ReadDataFile("SIDE\\rep.lvl",
"rep_fly_assault_dome")
ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_laser")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\SIDE\\rep.lvl",
"rep_inf_commando_01_rifleman",
"rep_inf_commando_02_roketeer",
"rep_inf_commando_03_sniper",
"rep_inf_commando_04_engineer",
"rep_inf_commando_05_electronic",
"rep_inf_commando_06_sergeant",
"rep_inf_commando_07_havoc",
"rep_inf_commando_08_elite")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\SIDE\\cis.lvl",
"cis_inf_b1_rifleman",
"cis_inf_b1_rocketeer",
"cis_inf_b1_sniper",
"cis_inf_sbd",
"cis_inf_magnaguard",
"cis_inf_droideka")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\SIDE\\mdo.lvl",
"mdo_inf_assassin",
"mdo_inf_officer")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\SIDE\\tnd.lvl",
"tnd_inf_slaver",
"tnd_inf_mercenary")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\SIDE\\rrl.lvl",
"rrl_inf_ep2_rifleman",
"rrl_inf_ep2_commander",
"rrl_inf_ep2_jettrooper")
TrandoOrMando = math.random(1,10)
if TrandoOrMando < 6 then
SetupTeams{
rep = {
team = REP,
units = 16,
reinforcements = 150,
soldier = { "rep_inf_commando_01_rifleman",9, 25},
assault = { "rep_inf_commando_02_roketeer",1,4},
sniper = { "rep_inf_commando_03_sniper",1,4},
engineer= { "rep_inf_commando_04_engineer",1,4},
officer = { "rep_inf_commando_05_electronic",1,4},
special = { "rep_inf_commando_06_sergeant",1,4},
commander={ "rep_inf_commando_07_havoc", 1, 4},
general = { "rep_inf_commando_08_elite", 1, 2}
},
cis = {
team = CIS,
units = 32,
reinforcements = 300,
soldier = {"cis_inf_b1_rifleman",10, 30},
assault = {"cis_inf_b1_rocketeer",1, 4},
sniper = {"cis_inf_b1_sniper",1, 4},
engineer= {"mdo_inf_assassin",1, 3},
officer = {"cis_inf_sbd",1, 2},
special = {"mdo_inf_officer",1, 2},
commander={"cis_inf_droideka", 1, 2},
general = {"cis_inf_magnaguard", 1, 2}
}
}
end
if TrandoOrMando > 5 then
SetupTeams{
rep = {
team = REP,
units = 16,
reinforcements = 150,
soldier = { "rep_inf_commando_01_rifleman",9, 25},
assault = { "rep_inf_commando_02_roketeer",1,4},
sniper = { "rep_inf_commando_03_sniper",1,4},
engineer= { "rep_inf_commando_04_engineer",1,4},
officer = { "rep_inf_commando_05_electronic",1,4},
special = { "rep_inf_commando_06_sergeant",1,4},
commander={ "rep_inf_commando_07_havoc", 1, 4},
general = { "rep_inf_commando_08_elite", 1, 2}
},
cis = {
team = CIS,
units = 32,
reinforcements = 300,
soldier = {"cis_inf_b1_rifleman",10, 30},
assault = {"cis_inf_b1_rocketeer",1, 4},
sniper = {"cis_inf_b1_sniper",1, 4},
engineer= {"tnd_inf_mercenary",1, 3},
officer = {"cis_inf_sbd",1, 2},
special = {"tnd_inf_slaver",1, 2},
commander={"cis_inf_droideka", 1, 2},
general = {"cis_inf_magnaguard", 1, 2}
}
}
end
-- Clones -------------------------
SetTeamName (3, "clone")
AddUnitClass (3, "rrl_inf_ep2_rifleman", 6)
AddUnitClass(3, "rrl_inf_ep2_commander",1)
SetUnitCount (3, 7)
AddAIGoal(CLONES, "Deathmatch", 100)
SetTeamAsFriend(3,REP)
SetTeamAsEnemy(3,CIS)
SetTeamAsFriend(REP,3)
SetTeamAsEnemy(CIS,3)
-----------------------------------
-- Level Stats
-- ClearWalkers()
AddWalkerType(0, 4) -- special -> droidekas
AddWalkerType(1, 0) -- 1x2 (1 pair of legs)
AddWalkerType(2, 0) -- 2x2 (2 pairs of legs)
AddWalkerType(3, 0) -- 3x2 (3 pairs of legs)
local weaponCnt = 1024
SetMemoryPoolSize("Aimer", 75)
SetMemoryPoolSize("AmmoCounter", weaponCnt)
SetMemoryPoolSize("BaseHint", 1024)
SetMemoryPoolSize("EnergyBar", weaponCnt)
SetMemoryPoolSize("EntityCloth", 50)
SetMemoryPoolSize("EntityFlyer", 32)
SetMemoryPoolSize("EntityHover", 32)
SetMemoryPoolSize("EntityLight", 200)
SetMemoryPoolSize("EntitySoundStream", 4)
SetMemoryPoolSize("EntitySoundStatic", 32)
SetMemoryPoolSize("MountedTurret", 32)
SetMemoryPoolSize("Navigator", 128)
SetMemoryPoolSize("Obstacle", 1024)
SetMemoryPoolSize("PathNode", 1024)
SetMemoryPoolSize("SoundSpaceRegion", 64)
SetMemoryPoolSize("TreeGridStack", 1024)
SetMemoryPoolSize("UnitAgent", 128)
SetMemoryPoolSize("UnitController", 128)
SetMemoryPoolSize("Weapon", weaponCnt)
SetSpawnDelay(10.0, 0.25)
--ReadDataFile("dc:BCC\\BCC.lvl", "BCC_conquest")
ReadDataFile("..\\..\\addon\\BCC\\data\\_LVL_PC\\BCC\\bes2.lvl", "bespin2_conquest")
SetDenseEnvironment("true")
AddDeathRegion("DeathRegion")
AddDeathRegion("DeathRegion2")
-- Sound
SetSoundEffect("ScopeDisplayZoomIn", "binocularzoomin")
SetSoundEffect("ScopeDisplayZoomOut", "binocularzoomout")
voiceSlow = OpenAudioStream("sound\\global.lvl", "rep_unit_vo_slow")
AudioStreamAppendSegments("sound\\global.lvl", "cis_unit_vo_slow", voiceSlow)
AudioStreamAppendSegments("sound\\global.lvl", "global_vo_slow", voiceSlow)
voiceQuick = OpenAudioStream("sound\\global.lvl", "rep_unit_vo_quick")
AudioStreamAppendSegments("sound\\global.lvl", "cis_unit_vo_quick", voiceQuick)
OpenAudioStream("sound\\global.lvl", "cw_music")
OpenAudioStream("..\\..\\addon\\RCM\\data\\_LVL_PC\\sound\\rcm.lvl", "rcm_music")
-- OpenAudioStream("sound\\global.lvl", "global_vo_quick")
-- OpenAudioStream("sound\\global.lvl", "global_vo_slow")
OpenAudioStream("sound\\dea.lvl", "dea1")
OpenAudioStream("sound\\dea.lvl", "dea1")
OpenAudioStream("sound\\hot.lvl", "hot1gcw")
OpenAudioStream("sound\\hot.lvl", "hot1gcw")
SetBleedingVoiceOver(REP, REP, "rep_off_com_report_us_overwhelmed", 1)
SetBleedingVoiceOver(REP, CIS, "rep_off_com_report_enemy_losing", 1)
SetBleedingVoiceOver(CIS, REP, "cis_off_com_report_enemy_losing", 1)
SetBleedingVoiceOver(CIS, CIS, "cis_off_com_report_us_overwhelmed", 1)
SetLowReinforcementsVoiceOver(REP, REP, "rep_off_defeat_im", .1, 1)
SetLowReinforcementsVoiceOver(REP, CIS, "rep_off_victory_im", .1, 1)
SetLowReinforcementsVoiceOver(CIS, CIS, "cis_off_defeat_im", .1, 1)
SetLowReinforcementsVoiceOver(CIS, REP, "cis_off_victory_im", .1, 1)
SetOutOfBoundsVoiceOver(2, "cisleaving")
SetOutOfBoundsVoiceOver(1, "repleaving")
SetAmbientMusic(REP, 1.0, "rep_amb_start", 0,1)
SetAmbientMusic(REP, 0.8, "rep_amb_middle", 1,1)
SetAmbientMusic(REP, 0.2, "rep_amb_end", 2,1)
SetAmbientMusic(CIS, 1.0, "cis_amb_start", 0,1)
SetAmbientMusic(CIS, 0.8, "cis_amb_middle", 1,1)
SetAmbientMusic(CIS, 0.2, "cis_amb_end", 2,1)
SetVictoryMusic(REP, "rep_dea_amb_victory")
SetDefeatMusic (REP, "rep_dea_amb_defeat")
SetVictoryMusic(CIS, "cis_dea_amb_victory")
SetDefeatMusic (CIS, "cis_dea_amb_defeat")
SetSoundEffect("ScopeDisplayZoomIn", "binocularzoomin")
SetSoundEffect("ScopeDisplayZoomOut", "binocularzoomout")
--SetSoundEffect("BirdScatter", "birdsFlySeq1")
--SetSoundEffect("WeaponUnableSelect", "com_weap_inf_weaponchange_null")
--SetSoundEffect("WeaponModeUnableSelect", "com_weap_inf_modechange_null")
SetSoundEffect("SpawnDisplayUnitChange", "shell_select_unit")
SetSoundEffect("SpawnDisplayUnitAccept", "shell_menu_enter")
SetSoundEffect("SpawnDisplaySpawnPointChange", "shell_select_change")
SetSoundEffect("SpawnDisplaySpawnPointAccept", "shell_menu_enter")
SetSoundEffect("SpawnDisplayBack", "shell_menu_exit")
-- Camera Stats
-- Giz Shot
AddCameraShot(0.879348, -0.142046, 0.448684, 0.072478, -38.413761, 30.986401, 195.879623);
AddCameraShot(0.755143, 0.032624, 0.654137, -0.028260, -80.924103, -32.534859, 59.805065);
AddCameraShot(0.596514, -0.068856, -0.794372, -0.091695, -139.203629, -28.934868, 56.316780);
AddCameraShot(0.073602, -0.011602, -0.985060, -0.155272, -118.288239, -28.934868, 125.938355);
AddCameraShot(0.902687, 0.001274, 0.430295, -0.000607, -90.957382, -47.834820, 180.831787);
AddCameraShot(-0.418815, -0.024036, -0.906262, 0.052011, -162.066483, -47.234821, 80.504837);
AddCameraShot(0.988357, 0.062970, 0.138228, -0.008807, -173.774002, -55.334801, 142.567810);
AddCameraShot(-0.100554, 0.008160, -0.991639, -0.080476, -246.954437, -31.334862, 153.438812);
AddCameraShot(0.717164, -0.018075, 0.696449, 0.017553, -216.827194, -31.334862, 186.863648);
AddCameraShot(0.844850, -0.049702, 0.531770, 0.031284, -247.181458, -45.734825, 29.732487);
AddCameraShot(0.454881, 0.028302, -0.888384, 0.055273, -291.636658, -48.734818, 21.009203);
AddCameraShot(0.818322, -0.026150, -0.573874, -0.018339, -193.434647, -58.634792, -12.443044);
AddCameraShot(0.471109, 0.004691, -0.882018, 0.008783, -192.251679, -61.334786, -32.647247);
if aspectRatio <= 1.4 then
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\SIDE\\43.lvl")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\HUD\\hudTxtKill.lvl")
elseif aspectRatio <= 1.63 and aspectRatio >= 1.5 then
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\SIDE\\1610.lvl")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\HUD\\hudTxtKill.lvl")
elseif aspectRatio <= 1.9 and aspectRatio >= 1.63 then
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\SIDE\\169.lvl")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\HUD\\hudTxtKill.lvl")
else
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\SIDE\\unkown.lvl")
end
end
[/code]
Hidden/Spoiler:
[code]ucft
{
REQN
{
"config"
"ingame_movies"
}
REQN
{
"script"
"setup_teams"
"gametype_conquest"
"gametype_capture"
"Objective"
"MultiObjectiveContainer"
"ObjectiveCTF"
"ObjectiveAssault"
"ObjectiveSpaceAssault"
"ObjectiveConquest"
"ObjectiveTDM"
"ObjectiveOneFlagCTF"
"SoundEvent_ctf"
"ObjectiveGoto"
"LinkedShields"
"LinkedDestroyables"
"LinkedTurrets"
"Ambush"
"PlayMovieWithTransition"
}
REQN
{
"lvl"
"BCCr_con"
"BPFr_con"
"GNSr_con"
"KSDr_con"
"KSIr_con"
"KTCr_con"
"NBPr_con"
"NBTr_con"
"RVCr_con"
"RVHr_con"
"TTDr_con"
"TTMr_con"
"Y4Ar_con"
}
}[/code]
{
REQN
{
"config"
"ingame_movies"
}
REQN
{
"script"
"setup_teams"
"gametype_conquest"
"gametype_capture"
"Objective"
"MultiObjectiveContainer"
"ObjectiveCTF"
"ObjectiveAssault"
"ObjectiveSpaceAssault"
"ObjectiveConquest"
"ObjectiveTDM"
"ObjectiveOneFlagCTF"
"SoundEvent_ctf"
"ObjectiveGoto"
"LinkedShields"
"LinkedDestroyables"
"LinkedTurrets"
"Ambush"
"PlayMovieWithTransition"
}
REQN
{
"lvl"
"BCCr_con"
"BPFr_con"
"GNSr_con"
"KSDr_con"
"KSIr_con"
"KTCr_con"
"NBPr_con"
"NBTr_con"
"RVCr_con"
"RVHr_con"
"TTDr_con"
"TTMr_con"
"Y4Ar_con"
}
}[/code]
https://www.dropbox.com/s/jjdx4g5867c7i ... 2.log?dl=0
==EDIT==
solution was an Message Severity: 2.
The new fonts were not found. Added the RCM core to ZRC and all works now.

