Page 1 of 1

Ingame.lvl fail

Posted: Sat Apr 03, 2010 4:25 pm
by Fiodis
I tried to make a custom ingame.lvl and retextured the health bar texture. I put the ReadDataFile("DC:ingame.lvl") line before the one without the DC, munged, put the ingame.lvl in my map's LVL_PC folder, and played it. In-game, there was no change (I'm certain this procedure works, I've done it before on other maps). I removed the second ReadDataFile line and kept the DC: one, and I get a crash with the following error log:
Hidden/Spoiler:
Opened logfile BFront2.log 2010-04-03 1620
shell_interface: Entered
shell_interface: gPlatformStr, gOnlineServiceStr, gLangStr, gLangEnum: PC GameSpy english 0
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: No custom_gc_11.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_GetGCButtonList()
custom_SetMovieLocation()
custom_GetFreeformBattleModeList(): Finished building freeform battle mode list Known Modes: 39
ingame stream movies\crawl.mvs
shell_interface: Opening movie: movies\shell.mvs
shell_interface: Leaving
Mission Checker: Entered addme
Mission Checker: addme: Now listening in on AddDownloadableContent() calls
Mission Checker: Exited addme
Found side\rvs.lvl. Adding BRO's extra KotOR missions
Found ..\..\addon\BDT\data\_LVL_PC\SIDE\dark.lvl. Adding BRO's extra Dark Times missions
Found ..\..\addon\CFB\data\_LVL_PC\CFB\CFB.lvl. Adding Jaspo's Crystal Forest lazer tag mission
Cannot find ..\..\addon\HFV\data\_LVL_PC\HFV\HFV.lvl
Cannot find ..\..\addon\JAG\data\_LVL_PC\JAG\JAG.lvl
Cannot find ..\..\addon\MJE\data\_LVL_PC\MJE\MJE.lvl
Cannot find ..\..\addon\PRK\data\_LVL_PC\PRK\PRK.lvl
Cannot find ..\..\addon\RGC\data\_LVL_PC\RGC\RGC.lvl
Cannot find ..\..\addon\SDA\data\_LVL_PC\SDA\SDA.lvl
Cannot find ..\..\addon\TCS\data\_LVL_PC\TCS\TCS.lvl
Cannot find ..\..\addon\TS2\data\_LVL_PC\TS2\TS2.lvl
Cannot find ..\..\addon\TSS\data\_LVL_PC\TSS\TSS.lvl
prev = none iLastPage = nil
prev = texture iLastPage = 1
prev = texture iLastPage = 2
prev = texture iLastPage = 3
ifs_legal.Exit

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

ifs_saveop_DoOps LoadFileList
ifs_saveop_DoOps LoadFileList
ifs_saveop_DoOps LoadProfile
ifs_saveop_DoOps LoadProfile
ifs_sp_campaign: Input_Accept(): Entered: _tab_instant
missionlist_ExpandMapList()
ifs_missionselect_pcMulti_fnSetMapPreview(): Defaulting index to 1
this.CurButton = nil
cur_button = nil
this.CurButton = check_mode1
cur_button = nil
this.CurButton = nil
cur_button = nil
Checkbox for check_era20 clicked
this.CurButton = check_era20
cur_button = nil
custom_AddMapNew()
custom_printTable(): table: 05F2DE10
The key, value is: change table: 05F2DE3C
The key, value is: era_g 1
The key, value is: mode_con_c 1
The key, value is: isModLevel 1
The key, value is: bSelected 1
The key, value is: blue 180
The key, value is: era_t 1
The key, value is: era_c 1
The key, value is: green 235
The key is mapluafile, the formated value is: TTM<A>_<B>
The key, value is: mode_con_g 1
The key, value is: mode_con_t 1
The key, value is: red 180
custom_printTable(): Returning
custom_printTable(): table: 05B1672C
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_t Era = era_t subst = t
Adding map: TTMt_con idx: 1
this.CurButton = _map_add
cur_button = nil
this.CurButton = Launch
cur_button = nil

Message Severity: 3
.\Source\SoldierAnimatorClass.cpp(654)
Can't find soldier animation bank "human"

What's wrong now? I kept the original ingame.req, so everything should have been munged, including the human anims.

Re: Ingame.lvl fail

Posted: Sat Apr 03, 2010 4:34 pm
by AQT
I'm not sure but try lowercase dc: instead and add back the original ingame.lvl line as well.

Re: Ingame.lvl fail

Posted: Sat Apr 03, 2010 4:43 pm
by Fiodis
I'll try it, since it's something to do, but every other time I used DC: (including for ingame.lvl tweaks) uppercase has been fine. It's an odd case of LUA being case-insensitive.

Re: Ingame.lvl fail

Posted: Sat Apr 03, 2010 5:00 pm
by Maveritchell
First of all, your add-on ingame.lvl should not be loading the entirety of the ingame.lvl - if it is, that should be fixed. If it's not, that's your error - the entirety of an ingame.lvl has to be loaded.

Secondly, your munged ingame.lvl won't (I believe) include everything that's needed to run the game by itself, even if you do munge the entire unmodified ingame.req.

It would help if we could see exactly what's being changed and how it was.

I don't know if you have been following RepSharpshooter's HUD tutorial, but if not you may find it a boon to do so:
http://www.gametoast.com/forums/viewtop ... &sk=t&sd=a

Re: Ingame.lvl fail

Posted: Sat Apr 03, 2010 5:08 pm
by Fiodis
I've seen the HUD tutorial. What was changed was hud_jetpack_and_energybar_fill.tga in dataTTM/Common/interface. I've reskinned it as I would reskin most other textures. I reference it under a "texture" section in ingame.req, put the original ReadDataFile("ingame.lvl") line back in the LUA with a DC: version before it, and munged with the Common box checked, nothing else. Then I copied ingame.lvl from dataTTM/LVL_PC into TTM/data/lvl_pc.