No I haven't, how would I do that?
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Pages1
#2
SWBF2 Modding / How to edit class scripts for vanilla maps?
January 20, 2019, 03:02:11 AM
Just gotten into modding this game, and have the mod tools
My goal for now is to make the republic rep_inf_ep3_sniper_felucia into rep_inf_ep3_sniper
I've gotten it to work easily for my own custom map, however I've had no luck with vanilla maps.
Note: this is not my end goal, just a quick way to test how to do this so I edit a lot more with the maps.
I've added kas2c_con.lua into Data_(my map)/Common/scripts/KAS
with the changes being:
ReadDataFile("SIDE\\rep.lvl",
"rep_inf_ep3_rifleman",
"rep_inf_ep3_rocketeer",
"rep_inf_ep3_sniper",
"rep_inf_ep3_engineer",
"rep_inf_ep3_jettrooper",
"rep_inf_ep3_officer",
"rep_hero_yoda",
"rep_hover_fightertank",
"rep_fly_cat_dome",
"rep_hover_barcspeeder")
and
SetupTeams{
rep={
team = REP,
units = 29,
reinforcements = 150,
soldier = {"rep_inf_ep3_rifleman",10, 25},
assault = {"rep_inf_ep3_rocketeer",1, 4},
engineer = {"rep_inf_ep3_engineer",1, 4},
sniper = {"rep_inf_ep3_sniper",1, 4},
officer = {"rep_inf_ep3_officer",1, 4},
special = {"rep_inf_ep3_jettrooper",1, 4},
This works on my own map but not on vanilla maps, so there must be another thing I need to change.
I also edited the mission.req in Data_(my map)/Common, adding:
REQN
{
"lvl"
"SKAg_con"
"SKAc_con"
"kas2c_con"
}
I'm still not getting any luck, could anyone point out what I'm missing?
My goal for now is to make the republic rep_inf_ep3_sniper_felucia into rep_inf_ep3_sniper
I've gotten it to work easily for my own custom map, however I've had no luck with vanilla maps.
Note: this is not my end goal, just a quick way to test how to do this so I edit a lot more with the maps.
I've added kas2c_con.lua into Data_(my map)/Common/scripts/KAS
with the changes being:
ReadDataFile("SIDE\\rep.lvl",
"rep_inf_ep3_rifleman",
"rep_inf_ep3_rocketeer",
"rep_inf_ep3_sniper",
"rep_inf_ep3_engineer",
"rep_inf_ep3_jettrooper",
"rep_inf_ep3_officer",
"rep_hero_yoda",
"rep_hover_fightertank",
"rep_fly_cat_dome",
"rep_hover_barcspeeder")
and
SetupTeams{
rep={
team = REP,
units = 29,
reinforcements = 150,
soldier = {"rep_inf_ep3_rifleman",10, 25},
assault = {"rep_inf_ep3_rocketeer",1, 4},
engineer = {"rep_inf_ep3_engineer",1, 4},
sniper = {"rep_inf_ep3_sniper",1, 4},
officer = {"rep_inf_ep3_officer",1, 4},
special = {"rep_inf_ep3_jettrooper",1, 4},
This works on my own map but not on vanilla maps, so there must be another thing I need to change.
I also edited the mission.req in Data_(my map)/Common, adding:
REQN
{
"lvl"
"SKAg_con"
"SKAc_con"
"kas2c_con"
}
I'm still not getting any luck, could anyone point out what I'm missing?
Pages1