http://www.gametoast.com/forums/viewtop ... 98#p272398
What do i have to add instead of "Convofile" when the era is BFX or DT?
Can i make multiple of these (the gcw) or do i have to attend for something?
Thanks in advance
Moderator: Moderators


Code: Select all
if ScriptCB_IsFileExist(kotorfile) == 0 then
print("Cannot find "..kotorfile..". Skipping BRO's extra KotOR missions")
else
print("Found "..kotorfile..". Adding BRO's extra KotOR missions")
sp_missionselect_listbox_contents[sp_n+1].era_k = 1 --adds the k era checkbox
sp_missionselect_listbox_contents[sp_n+1].mode_con_k = 1 --adds the con mode checkbox
sp_missionselect_listbox_contents[sp_n+1].mode_tdm_k = 1 --adds the con mode checkbox
mp_missionselect_listbox_contents[mp_n+1] = sp_missionselect_listbox_contents[sp_n+1]
AddDownloadableContent("BRO","BROk_con",4)
AddDownloadableContent("BRO","BROk_tdm",4)
end
if ScriptCB_IsFileExist(dtfile) == 0 then
print("Cannot find "..dtfile..". Skipping BRO's extra Dark Times missions")
else
print("Found "..dtfile..". Adding BRO's extra Dark Times missions")
ReadDataFile("..\\..\\addon\\BDT\\data\\_LVL_PC\\dtshell.lvl")
sp_missionselect_listbox_contents[sp_n+1].era_1 = 1 --adds the k era checkbox
sp_missionselect_listbox_contents[sp_n+1].mode_con_1 = 1 --adds the con mode checkbox
sp_missionselect_listbox_contents[sp_n+1].change = {
era_1 = { name="Dark Times", icon2="darktimes_icon" },
} --adds the icon?
mp_missionselect_listbox_contents[mp_n+1] = sp_missionselect_listbox_contents[sp_n+1]
AddDownloadableContent("BRO","BRO1_con",4)
end




Maveritchell wrote:Post your whole addme.lua and the error you're getting as well.


Code: Select all
local dtfile = "..\\..\\addon\\BDT\\data\\_LVL_PC\\SIDE\\dark.lvl"

That should be fine, but you could just abbreviate that to:TK432 wrote:hows that?Hidden/Spoiler:
Code: Select all
local bfxfile = "side\\212.lvl"

Your Battlefront Extreme mission is only going to disappear from the selection screen once this file (side\\BFXsides\\212.lvl) is no longer in that location. It might be best to have your file check be for something in your Battlefront Extreme addon folder so that whenever the addon folder is moved it is not visible.TK432 wrote:could it be that its because i didn't "hide" BFX's gcw era yet?
