Page 1 of 1

Adding era - help

Posted: Thu Jul 14, 2016 11:59 am
by CdtFox
Hello GT,

I've succesfuly added my own era to my map, but I can't manage to get it on all the stocks customs maps:
Hidden/Spoiler:
Image
For exemple I want it on 4 stock custom maps such as Felucia, coruscant, mustafar and the death star. I don't know if the following steps are good but I renamed stocks scripts and i added them to the mission.req:
Hidden/Spoiler:
Image
and to the ingame file:
Hidden/Spoiler:
Image
Many thanks for the help :D

Also I didn't understand how to localize the era's name...

Re: Adding era - help

Posted: Thu Jul 14, 2016 3:54 pm
by Samee3
Have you called it in the Addme file?

Coruscant, for example:

Code: Select all

AddDownloadableContent("cor1","cor1u_con",4)
You have the scripts, your mission.req looks good, but don't forget the Addme.

Re: Adding era - help

Posted: Thu Jul 14, 2016 6:16 pm
by commanderawesome
Samee3 wrote:

Code: Select all

AddDownloadableContent("COR","cor1u_con",4)
That should be:

Code: Select all

AddDownloadableContent("cor1","cor1u_con",4)

Re: Adding era - help

Posted: Thu Jul 14, 2016 6:24 pm
by Samee3
commanderawesome wrote: That should be:

Code: Select all

AddDownloadableContent("cor1","cor1u_con",4)
It works fine for me as "COR", but I'll edit it anyway.

Re: Adding era - help

Posted: Fri Jul 15, 2016 11:23 am
by CdtFox
Unfortunately, there is something wrong because the era is playable only on the main map.

Here is the addme.lua:
Hidden/Spoiler:
[code]-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
for flag, value in pairs(newFlags) do
mission[flag] = value
end
end
end
end




--insert totally new maps here:
local sp_n = 0
local mp_n = 0
sp_n = table.getn(sp_missionselect_listbox_contents)

sp_missionselect_listbox_contents[sp_n+1] = { isModLevel = 1, mapluafile = "CIS%s_%s", era_g = 1, era_c = 1, mode_con_g = 1, mode_con_c = 1, era_u = 1, mode_con_u = 1}
mp_n = table.getn(mp_missionselect_listbox_contents)
mp_missionselect_listbox_contents[mp_n+1] = sp_missionselect_listbox_contents[sp_n+1]

-- 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)

AddDownloadableContent("CIS","CISg_con",4)
AddDownloadableContent("CIS","CISc_con",4)
AddDownloadableContent("CIS","CISu_con",4)
AddDownloadableContent("mus1","mus1u_con",4)
AddDownloadableContent("fel1","fel1u_con",4)
AddDownloadableContent("dea1","dea1u_con",4)
AddDownloadableContent("cor1","cor1u_con",4)



-- all done
newEntry = nil
n = nil

-- Now load our core.lvl into the shell to add our localize keys
ReadDataFile("..\\..\\addon\\CIS\\data\\_LVL_PC\\core.lvl")
[/code]
All the scripts are good, I have all the .req for each script the mission.req is fine but there is still a problem...

Anyways thanks for the hep guys :D

Re: Adding era - help

Posted: Sat Jul 16, 2016 3:28 am
by Anakin
It's the wrong addme. Take the one from 1.3

Here is my Addme as a reference:
Hidden/Spoiler:
[code]
print("RCM addme - entered")

-- 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

--[[if ScriptCB_IsFileExist("..\\..\\addon\\RCM\\data\\_LVL_PC\\custom_gc_5.lvl") == 1 then
if ScriptCB_IsFileExist("custom_gc_5.lvl") == 1 then
print("RCM: WARNING - custom_gc_5.lvl already exists.")
else
print("RCM: custom_gc_5.lvl installed. Restart to apply changes.")
print(os.move("",""))
print("ausgabe ende")
end
end]]--



--insert totally new maps here:
print(" load custom interface..")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\shell\\rc_interface_shell.lvl")
print(" load custom era icon..")
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)

-- CONQUEST --
print(" adding conquest missions..")

AddNewGameModes( sp_missionselect_listbox_contents, "tat2%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "tat2%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

AddNewGameModes( sp_missionselect_listbox_contents, "tat3%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "tat3%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

AddNewGameModes( sp_missionselect_listbox_contents, "cor1%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "cor1%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

AddNewGameModes( sp_missionselect_listbox_contents, "dag1%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "dag1%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

AddNewGameModes( sp_missionselect_listbox_contents, "dea1%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "dea1%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

--AddNewGameModes( sp_missionselect_listbox_contents, "end1%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
--AddNewGameModes( mp_missionselect_listbox_contents, "end1%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

AddNewGameModes( sp_missionselect_listbox_contents, "fel1%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "fel1%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

AddNewGameModes( sp_missionselect_listbox_contents, "geo1%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "geo1%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

AddNewGameModes( sp_missionselect_listbox_contents, "hot1%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "hot1%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

AddNewGameModes( sp_missionselect_listbox_contents, "kam1%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "kam1%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

AddNewGameModes( sp_missionselect_listbox_contents, "kas2%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "kas2%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

AddNewGameModes( sp_missionselect_listbox_contents, "mus1%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "mus1%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

AddNewGameModes( sp_missionselect_listbox_contents, "myg1%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "myg1%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

AddNewGameModes( sp_missionselect_listbox_contents, "nab2%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "nab2%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

AddNewGameModes( sp_missionselect_listbox_contents, "pol1%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "pol1%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

AddNewGameModes( sp_missionselect_listbox_contents, "tan1%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "tan1%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

AddNewGameModes( sp_missionselect_listbox_contents, "uta1%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "uta1%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

AddNewGameModes( sp_missionselect_listbox_contents, "yav1%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "yav1%s_%s", {era_r = 1, mode_con_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

-- KILL THE TARGET --

--AddNewGameModes( sp_missionselect_listbox_contents, "cor1%s_%s", {era_r = 1, mode_hunt_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
--AddNewGameModes( mp_missionselect_listbox_contents, "cor1%s_%s", {era_r = 1, mode_hunt_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

--AddNewGameModes( sp_missionselect_listbox_contents, "mus1%s_%s", {era_r = 1, mode_hunt_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
--AddNewGameModes( mp_missionselect_listbox_contents, "mus1%s_%s", {era_r = 1, mode_hunt_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

-- SPACE --
print(" adding space missions..")

AddNewGameModes( sp_missionselect_listbox_contents, "spa3%s_%s", {era_r = 1, mode_assault_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "spa3%s_%s", {era_r = 1, mode_assault_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

AddNewGameModes( sp_missionselect_listbox_contents, "spa6%s_%s", {era_r = 1, mode_assault_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "spa6%s_%s", {era_r = 1, mode_assault_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

AddNewGameModes( sp_missionselect_listbox_contents, "spa7%s_%s", {era_r = 1, mode_assault_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "spa7%s_%s", {era_r = 1, mode_assault_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

-- CTF --
print(" adding ctf missions..")

AddNewGameModes( sp_missionselect_listbox_contents, "dea1%s_%s", {era_r = 1, mode_1flag_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "dea1%s_%s", {era_r = 1, mode_1flag_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

AddNewGameModes( sp_missionselect_listbox_contents, "pol1%s_%s", {era_r = 1, mode_ctf_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "pol1%s_%s", {era_r = 1, mode_ctf_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

AddNewGameModes( sp_missionselect_listbox_contents, "tan1%s_%s", {era_r = 1, mode_1flag_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "tan1%s_%s", {era_r = 1, mode_1flag_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

-- TDM --
print(" adding tdm missions..")

AddNewGameModes( sp_missionselect_listbox_contents, "cor1%s_%s", {era_r = 1, mode_tdm_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "cor1%s_%s", {era_r = 1, mode_tdm_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

AddNewGameModes( sp_missionselect_listbox_contents, "dea1%s_%s", {era_r = 1, mode_tdm_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "dea1%s_%s", {era_r = 1, mode_tdm_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

AddNewGameModes( sp_missionselect_listbox_contents, "geo1%s_%s", {era_r = 1, mode_tdm_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "geo1%s_%s", {era_r = 1, mode_tdm_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

AddNewGameModes( sp_missionselect_listbox_contents, "kam1%s_%s", {era_r = 1, mode_tdm_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "kam1%s_%s", {era_r = 1, mode_tdm_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

AddNewGameModes( sp_missionselect_listbox_contents, "kas2%s_%s", {era_r = 1, mode_tdm_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "kas2%s_%s", {era_r = 1, mode_tdm_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

AddNewGameModes( sp_missionselect_listbox_contents, "mus1%s_%s", {era_r = 1, mode_tdm_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "mus1%s_%s", {era_r = 1, mode_tdm_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

AddNewGameModes( sp_missionselect_listbox_contents, "nab2%s_%s", {era_r = 1, mode_tdm_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "nab2%s_%s", {era_r = 1, mode_tdm_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

AddNewGameModes( sp_missionselect_listbox_contents, "tan1%s_%s", {era_r = 1, mode_tdm_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "tan1%s_%s", {era_r = 1, mode_tdm_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

AddNewGameModes( sp_missionselect_listbox_contents, "tat2%s_%s", {era_r = 1, mode_tdm_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "tat2%s_%s", {era_r = 1, mode_tdm_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )

AddNewGameModes( sp_missionselect_listbox_contents, "tat3%s_%s", {era_r = 1, mode_tdm_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )
AddNewGameModes( mp_missionselect_listbox_contents, "tat3%s_%s", {era_r = 1, mode_tdm_r = 1, change = { era_r ={ name="Republic Commando", icon2="rcm" }}} )


-- 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)

AddDownloadableContent("tat2","tat2r_con",4)
AddDownloadableContent("tat3","tat3r_con",4)
AddDownloadableContent("cor1","cor1r_con",4)
AddDownloadableContent("dag1","dag1r_con",4)
AddDownloadableContent("dea1","dea1r_con",4)
--AddDownloadableContent("end1","end1r_con",4)
AddDownloadableContent("fel1","fel1r_con",4)
AddDownloadableContent("geo1","geo1r_con",4)
AddDownloadableContent("geo1","hot1r_con",4)
AddDownloadableContent("kam1","kam1r_con",4)
AddDownloadableContent("kas2","kas2r_con",4)
AddDownloadableContent("mus1","mus1r_con",4)
AddDownloadableContent("myg1","myg1r_con",4)
AddDownloadableContent("nab2","nab2r_con",4)
AddDownloadableContent("pol1","pol1r_con",4)
AddDownloadableContent("tan1","tan1r_con",4)
AddDownloadableContent("uta1","uta1r_con",4)
AddDownloadableContent("yav1","yav1r_con",4)

AddDownloadableContent("spa3","spa3r_Diet Dr. Pepper",4)
AddDownloadableContent("spa6","spa6r_Diet Dr. Pepper",4)
AddDownloadableContent("spa7","spa7r_Diet Dr. Pepper",4)

AddDownloadableContent("dea1","dea1r_1flag",4)
AddDownloadableContent("pol1","pol1r_ctf",4)
AddDownloadableContent("tan1","tan1r_1flag",4)

AddDownloadableContent("cor1","cor1r_tdm",4)
AddDownloadableContent("dea1","dea1r_tdm",4)
AddDownloadableContent("geo1","geo1r_tdm",4)
AddDownloadableContent("kam1","kam1r_tdm",4)
AddDownloadableContent("kas2","kas2r_tdm",4)
AddDownloadableContent("mus1","mus1r_tdm",4)
AddDownloadableContent("nab2","nab2r_tdm",4)
AddDownloadableContent("tan1","tan1r_tdm",4)
AddDownloadableContent("tat2","tat2r_tdm",4)
AddDownloadableContent("tat3","tat3r_tdm",4)

--AddDownloadableContent("cor1","cor1r_hunt",4)
--AddDownloadableContent("mus1","mus1r_hunt",4)



-- all done
newEntry = nil
n = nil

-- Now load our core.lvl into the shell to add our localize keys
print(" loading localize keys..")
ReadDataFile("..\\..\\addon\\RCM\\data\\_LVL_PC\\core.lvl")

print("RCM addme - exited")

[/code]

Re: Adding era - help

Posted: Sat Jul 16, 2016 5:10 am
by CdtFox
Whaoo...

Where did you find this? I can't find someting corresponding to the addme.lua in the V.1.3 patch... :o

Thanks Anakin! It will be very helpful... :thumbs:

Re: Adding era - help

Posted: Sat Jul 16, 2016 5:46 am
by Anakin
i think it was somewhere in the 1.3 docs

But here it is, too: http://www.gametoast.com/viewtopic.php? ... 6&p=287596
8) Change your addme lua. RED51 explains how to do it in this link.
and "this link" is this link XD

But don't feel silly because you didn't found it, i asked for it, too and Zerted (? maybe it was aqt, or darthduck, or some of the other modding gurus) told me how to do ;)

Re: Adding era - help

Posted: Sun Jul 17, 2016 2:38 am
by CdtFox
Unfortunately the 1.3 docs were a way more simple to me...I didn't understand the tutorial with sky and red.. :oops:

Also, any idea where the custom icon should go? What is the best format for the texture? png? Maybe jpg? I have no idea...

Re: Adding era - help

Posted: Sun Jul 17, 2016 4:12 am
by Anakin
actually everything in BF is tga and goes to a lvl file.

your custom lvl needs to contain something like this

Code: Select all

ucft
{
	REQN
	{
		"texture"
		"icon_name"
	}
}
It's always the same: ucft for begin file, reqn for a new group, first line tells what kind of file you have (texture in this example) followed by a list of file names.

You can use the shell lvl or my custom LVL munge tool to generate this file.
If you are done, add it the way i did it in the addme file

Re: Adding era - help

Posted: Sun Jul 17, 2016 9:16 am
by CdtFox
Anakin wrote:actually everything in BF is tga and goes to a lvl file.

your custom lvl needs to contain something like this

Code: Select all

ucft
{
	REQN
	{
		"texture"
		"icon_name"
	}
}
It's always the same: ucft for begin file, reqn for a new group, first line tells what kind of file you have (texture in this example) followed by a list of file names.

You can use the shell lvl or my custom LVL munge tool to generate this file.
If you are done, add it the way i did it in the addme file
Thanks, but in wich folder?

I've put my custom icon in data_***/Common/interface and it dosen't work
data_***/Common/mshs and it dosen't work

Hope I'm not bothering you...

Re: Adding era - help

Posted: Sun Jul 17, 2016 9:31 am
by Anakin
It depends on the way you are going to munge the lvl.

Shell: I cannot find the link at the moment. Everything goes to C:\BF2_ModTools\data_XXX\shell. Next you munge the shell lvl and rename it to what ever you want

CustomLVL:
viewtopic.php?f=64&t=30995
there is a detailed readme about how to use. Simplified:
0) install the tool (simply copy paste some files)
1) choose a name and add a req file in the CustomLVL folder with that name ("my_cool_LVL.req")
2) add what ever you want to that req file.
3) put the files in the depending folder (scripts, textures,...) i think it doesn't matter what name the folders have.
4) run the exe, it shows you all files (.req) in the folder, choose what you wanna munge and klick munge :D
5) optional you can add .option files, that way you needn't copy the files where you need them.