Page 1 of 1

Problem with a custom side [Solved]

Posted: Mon Nov 28, 2011 1:50 pm
by AhsokaTano
Hi.
I have a problem with a custom side.
I made a custom arc, but when i put it in the game, the game crashes.
Here is my lua:
Hidden/Spoiler:
ReadDataFile("sound\\yav.lvl;yav1cw")
ReadDataFile("SIDE\\rep.lvl",
"rep_inf_ep3_rifleman",
"rep_hover_fightertank",
"rep_hero_anakin",
"rep_hover_barcspeeder")

ReadDataFile("dc:SIDE\\rep.lvl",
"rep_inf_arc_blue",
"rep_inf_ep3_dogmaman",
"rep_inf_ep3_rifletup",
"rep_inf_ep3_jesseman",
"rep_inf_arc_five",
"rep_inf_ep3_hardcase")

ReadDataFile("SIDE\\cis.lvl",
"cis_inf_rifleman",
"cis_inf_rocketeer",
"cis_inf_engineer",
"cis_inf_sniper",
"cis_inf_officer",
"cis_inf_droideka",
"cis_hero_darthmaul",
"cis_hover_aat")


ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_laser",
"tur_bldg_tower")

SetupTeams{
rep = {
team = REP,
units = 20,
reinforcements = 150,
soldier = { "rep_inf_ep3_rifleman",9, 25},
assault = { "rep_inf_ep3_dogmaman",1, 4},
engineer = { "rep_inf_ep3_rifletup",1, 4},
sniper = { "rep_inf_ep3_jesseman",1, 4},
officer = {"rep_inf_ep3_hardcase",1, 4},
special = { "rep_inf_arc_blue",1, 4},
heavy = { "rep_inf_arc_five",1, 4},

},
cis = {
team = CIS,
units = 20,
reinforcements = 150,
soldier = { "cis_inf_rifleman",9, 25},
assault = { "cis_inf_rocketeer",1, 4},
engineer = { "cis_inf_engineer",1, 4},
sniper = { "cis_inf_sniper",1, 4},
officer = {"cis_inf_officer",1, 4},
special = { "cis_inf_droideka",1, 4},
}
}

SetHeroClass(CIS, "cis_hero_darthmaul")
SetHeroClass(REP, "rep_hero_anakin")

AddUnitClass(REP, "rep_inf_ep3_dogmaman")
AddUnitClass(REP, "rep_inf_ep3_rifletup")
AddUnitClass(REP, "rep_inf_ep3_jesseman")
AddUnitClass(REP, "rep_inf_ep3_hardcase")
AddUnitClass(REP, "rep_inf_arc_blue")
AddUnitClass(REP, "rep_inf_arc_five")
BFront2 log:
Hidden/Spoiler:
Opened logfile BFront2.log 2011-11-28 1839
shell_interface: Entered
shell_interface: gPlatformStr, gOnlineServiceStr, gLangStr, gLangEnum: PC GameSpy spanish 1
ifs_era_handler - Entered
ifs_era_handler - Exited
shell_interface: No custom_gc_0.lvl
shell_interface: No custom_gc_1.lvl
shell_interface: No custom_gc_2.lvl
shell_interface: No custom_gc_3.lvl
shell_interface: No custom_gc_4.lvl
shell_interface: No custom_gc_5.lvl
shell_interface: No custom_gc_6.lvl
shell_interface: No custom_gc_7.lvl
shell_interface: No custom_gc_8.lvl
shell_interface: No custom_gc_9.lvl
shell_interface: Found custom_gc_10.lvl
custom_gc_10: Entered
custom_gc_10: Found custom_gc_11.lvl
custom_gc_11: Entered
ifs_freeform_init_dt.lua
ifs_freeform_start_dt.lua
custom_gc_11: Taking control of custom_GetGCButtonList()...
custom_gc_11: Taking control of custom_PressedGCButton()...
custom_gc_11: Exited
custom_gc_10: No custom_gc_12.lvl. Will stop searching for any more cGC scripts.
custom_gc_10: Exited
custom_EraButtonList(): Finished building era button table Known eras buttons: 28
custom_GetGMapEras(): Finished building era table Known eras: 28
custom_GetGMapModes(): Finished building game mode table Known Modes: 39
custom_GetMPGameModeList(): Finished building game mode list table List Length: 40
custom_SetMovieLocation()
custom_gc_11: custom_GetGCButtonList(): Entered
custom_GetGCButtonList()
custom_gc_11: custom_GetGCButtonList(): Exited
custom_SetMovieLocation()
custom_GetFreeformBattleModeList(): Finished building freeform battle mode list Known Modes: 39
ingame stream movies\crawlsp.mvs
shell_interface: Opening movie: movies\shellsp.mvs
shell_interface: Leaving
Cannot find ..\..\addon\BFX\data\_LVL_PC\mission.lvl. Skipping BFX's extra missions
Cannot find ..\..\addon\BDT\data\_LVL_PC\SIDE\dark.lvl. Skipping DT's extra missions
Cannot find ..\..\addon\BFX\data\_LVL_PC\mission.lvl. Skipping BFX's extra missions
Cannot find ..\..\addon\BDT\data\_LVL_PC\SIDE\dark.lvl. Skipping DT's extra missions
MAP: Tatooine: Outpost (TJW): Searching for 153rd Legion and Extension (153, X15)
MAP: Tatooine: Outpost (TJW): Cannot find 153rd Legion (153) installed on this system.
MAP: Tatooine: Outpost (TJW): Searching for Star Wars: The Clone Wars and Extension (TCW)
MAP: Tatooine: Outpost (TJW): Cannot find Star Wars: The Clone Wars (TCW) installed on this system.
prev = none iLastPage = nil
prev = texture iLastPage = 2
prev = texture iLastPage = 3
ifs_legal.Exit

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\GameMovie.cpp(399)
Unable to find open movie segment shell_main

ifs_saveop_DoOps LoadFileList
ifs_saveop_DoOps LoadFileList

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LuaHelper.cpp(312)
CallProc failed: (none):0: attempt to compare two nil values
stack traceback:
(none): in function `ifs_login_EnterInterface'
(none): in function <(none):598>

ifs_saveop_DoOps LoadProfile
ifs_saveop_DoOps LoadProfile

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LuaHelper.cpp(312)
CallProc failed: (none):0: attempt to compare two nil values
stack traceback:
(none): in function `ifs_login_EnterInterface'
(none): in function <(none):598>

ifs_sp_campaign: Input_Accept(): Entered: [Nil]
ifs_sp_campaign: Input_Accept(): Entered: _tab_instant
missionlist_ExpandMapList()
ifs_missionselect_pcMulti_fnSetMapPreview(): Defaulting index to 1
this.CurButton = check_mode1
cur_button = nil
Checkbox for check_era3 clicked
this.CurButton = check_era3
cur_button = nil
this.CurButton = nil
cur_button = nil
DoubleClicked
custom_AddMapNew()
custom_printTable(): table: 03D3122C
The key, value is: era_c 1
The key, value is: era_g 1
The key, value is: mode_con_c 1
The key is mapluafile, the formated value is: DOU<A>_<B>
The key, value is: mode_con_g 1
The key, value is: bSelected 1
The key, value is: isModLevel 1
custom_printTable(): Returning
custom_printTable(): table: 03D36B4C
The key, value is: key mode_con
The key, value is: subst con
The key, value is: showstr modename.name.con
The key, value is: descstr modename.description.con
The key, value is: icon mode_icon_con
custom_printTable(): Returning
gMapEras.key = era_c Era = era_c subst = c
Adding map: DOUc_con idx: 1
this.CurButton = Launch
cur_button = nil

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\HUDElementBitmap.cpp(380)
HUD BitmapElement unable to find texture hud_target_hint_offscreen

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\HUDElementBitmap.cpp(380)
HUD BitmapElement unable to find texture hud_target_hint_offscreen

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\HUDElementBitmap.cpp(380)
HUD BitmapElement unable to find texture btn_directional_pad_LR
game_interface: Entered
utility_functions2: Listening on AddUnitClass() calls
utility_functions2: Listening on SetHeroClass() calls
utility_functions2: Listening on ReadDataFile() calls
game_interface: Reading in custom strings
game_interface: No user_script_0.lvl
game_interface: No user_script_1.lvl
game_interface: No user_script_2.lvl
game_interface: No user_script_3.lvl
game_interface: No user_script_4.lvl
game_interface: No user_script_5.lvl
game_interface: No user_script_6.lvl
game_interface: No user_script_7.lvl
game_interface: No user_script_8.lvl
game_interface: No user_script_9.lvl
game_interface: Found user_script_10.lvl
user_script_10: Entered
user_script_10: Replacing v1.3 (r117)'s AddUnitClass as it should've had a return value. This fixes the Leia bug.
user_script_10: No user_script_11.lvl. Will stop searching for any more user scripts.
user_script_10: Exited
ifs_sideselect_fnBuildScreen()
game_interface: Exited

Message Severity: 2
C:\Battlefront2\main\RedEngineFL\Memory\RedMemoryPool.cpp(317)
Memory pool "ClothData" set item count after being allocated

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\VOHelper.cpp(183)
VOSound (rep1_inf_pc_com_hostile_inVehicle): unknown modifier "InVehicle"

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\VOHelper.cpp(183)
VOSound (rep1_inf_pc_com_bacta_inVehicle): unknown modifier "InVehicle"

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\VOHelper.cpp(183)
VOSound (rep1_inf_pc_com_mechanic_inVehicle): unknown modifier "InVehicle"

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\VOHelper.cpp(183)
VOSound (rep1_inf_pc_com_ammo_inVehicle): unknown modifier "InVehicle"

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\VOHelper.cpp(183)
VOSound (rep1_inf_pc_com_transport_inVehicle): unknown modifier "InVehicle"

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\VOHelper.cpp(183)
VOSound (rep1_inf_pc_com_backup_inVehicle): unknown modifier "InVehicle"

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\VOHelper.cpp(183)
VOSound (rep1_inf_pc_com_clear_area_inVehicle): unknown modifier "InVehicle"

Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\VOHelper.cpp(183)
VOSound (rep1_inf_pc_com_defend_inVehicle): unknown modifier "InVehicle"

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\EntityGeometry.cpp(619)
Entity "rep_inf_arc_five" missing geometry "rep_inf_arctrooper_five"


And, when i munge:

Hidden/Spoiler:
ERROR[levelpack req\rep_inf_arc_five.req]:Expecting bracket, but none was found.
File : munged\pc\rep_inf_arctrooper_five.model.req(1)...

ucft <--
ERROR[levelpack req\rep_inf_arc_five.req]:Expecting bracket, but none was found.
File : munged\pc\rep_inf_arctrooper_five.model.req(1)...

ucft <--

2 Errors 0 Warnings



I think the problem is there:

Code: Select all

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\EntityGeometry.cpp(619)
Entity "rep_inf_arc_five" missing geometry "rep_inf_arctrooper_five"
But, i have the msh of rep_inf_arc_five in the msh file...
Thanks for the help.

Re: Problem with a custom side

Posted: Mon Nov 28, 2011 2:00 pm
by DarthD.U.C.K.
the mungerrors mean that something is wrong with the model and therefore it isnt munged. thats why battlefront cant find it. where did you get it from and did you modify the msh somehow?

Re: Problem with a custom side

Posted: Mon Nov 28, 2011 2:04 pm
by AhsokaTano
I get the arc of the assets file of BF2_ModTools. But, before of make this arc, i made other arc... And the other arc works, but this arc don't work.
I made a skin of the arc, a retexture.

Re: Problem with a custom side

Posted: Mon Nov 28, 2011 2:07 pm
by DarthD.U.C.K.
to the only thing that is different betwene this and the other arc is the texture?
how did you make this arc use another texture?

Re: Problem with a custom side

Posted: Mon Nov 28, 2011 2:11 pm
by AhsokaTano
I made a skin for Rex's arc model and different skin for Fives's arc model.
After, i used a HexEditor to change the textures in the model. I use this tutorial:

http://www.gametoast.com/forums/viewtop ... =27&t=6040

The problem is strange... Because i use the same method for both models... And Rex works, but Fives don't work...

Re: Problem with a custom side

Posted: Mon Nov 28, 2011 2:14 pm
by DarthD.U.C.K.
see, thats exactly what i meant with "did you modify the msh somehow". you must obviously done something wrong when editing this model. by the way: the acrtrooper supports override texture that means you can change the tetxure through odf.

Re: Problem with a custom side

Posted: Mon Nov 28, 2011 2:32 pm
by AhsokaTano
Oh, i'm very stupid...
The problem was the Fives's odf...
In the GeometryName was put a no-existing model... A stupid problem...
Thanks for the help DarthD.U.C.K :D