You need to follow the mod tool's getting started doc. Also read the jedi creation guide. It talks about how to create custom sides (and those are needed for custom units)
[RDH]Zerted wrote:You need to follow the mod tool's getting started doc. Also read the jedi creation guide. It talks about how to create custom sides (and those are needed for custom units)
And just for future reference, you can find more tutorials and helpful hints like this in the FAQ/Everything You Need To Know, a repository of tutorials and tricks for modding Battlefront 2 found throughout the years.
I'm not sure if the getting started doc mentions it, but that "small screen" thing is supposed to happen. That's not the modtool, that's the debugger....or whatever people call it around here. You use that if your map isn't working and you want to know why.
Okay i followed all the instructions, added the unit to the coruscant conquest, but the change doesn't show up.
ReadDataFile("SIDE\\imp.lvl",
--Insert "imp_bldg_defensegridturret", once the odf has been set up
"imp_inf_rifleman", "imp_com_stormtrooper",
"imp_inf_rocketeer",
"imp_inf_engineer",
"imp_inf_sniper",
"imp_inf_officer",
"imp_inf_dark_trooper",
"imp_hero_emperor")
-- set up teams
SetupTeams{
imp = {
team = IMP,
units = 32,
reinforcements = 150,
turret = "all_bldg_defensegridturret", --change this to imp_bldg_defensegridturret once the odf has been set up
soldier = { "imp_inf_rifleman",7, 25},
assault = { "imp_inf_rocketeer",1, 4},
engineer = { "imp_inf_engineer",1, 4},
sniper = { "imp_inf_sniper",1, 4},
officer = {"imp_inf_officer",1, 4},
special = { "imp_inf_dark_trooper",1, 4},
Could be just me, but I think you have to move that line up to the IMP section. Otherwise, if you have it under the SetHeroClass functions, I doubt the LUA knows where to put the new unit.
impspy wrote:Okay i followed all the instructions, added the unit to the coruscant conquest, but the change doesn't show up.
Hidden/Spoiler:
ReadDataFile("SIDE\\imp.lvl",
--Insert "imp_bldg_defensegridturret", once the odf has been set up
"imp_inf_rifleman", "imp_com_stormtrooper",
"imp_inf_rocketeer",
"imp_inf_engineer",
"imp_inf_sniper",
"imp_inf_officer",
"imp_inf_dark_trooper",
"imp_hero_emperor")
-- set up teams
SetupTeams{
imp = {
team = IMP,
units = 32,
reinforcements = 150,
turret = "all_bldg_defensegridturret", --change this to imp_bldg_defensegridturret once the odf has been set up
soldier = { "imp_inf_rifleman",7, 25},
assault = { "imp_inf_rocketeer",1, 4},
engineer = { "imp_inf_engineer",1, 4},
sniper = { "imp_inf_sniper",1, 4},
officer = {"imp_inf_officer",1, 4},
special = { "imp_inf_dark_trooper",1, 4},
what is the .odf name for the commander? it NEVER works if the .odf file and .req file have different names. is it in your imp.req file? wierd, what about the .odf file, this is probably a dumb queston, but does your sides folder contain the .odf/.msh/.tga/.option/.req necessary? check to make sure NOTHING is missing. also check to make sure there are NO spelling errors in ANY of the files. if there is even ONE spelling error, the whole thing wont work.