Unexplained crash [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
TWINKEYRUNAWAY
Lieutenant General
Lieutenant General
Posts: 730
Joined: Fri Aug 17, 2012 3:13 pm
Projects :: Empire Rising
Games I'm Playing :: SWBF Doom FONV
xbox live or psn: No gamertag set
Location: 411Remnant
Contact:

Unexplained crash [Solved]

Post by TWINKEYRUNAWAY »

Hello guys. I recently ran unto a rather vexing problem that I am having a hardtime figuring out. I made a few changes to the imp side on the project im working on and after a recent munge it seems that once I picked the empire it would crash me out of BFII. So I went ahead and reverted the changes and still I seem to get crashed out the moment I chose one of my imperial units. At the moment im at the point where i really cant figure this out on my own and I was hoping a more experienced modder can tell me whats wrong or perhaps what I did wrong. I cant really dechipher what the problem is in my log file and I was hoping someone might be able to tell more or less what its saying:

http://www.mediafire.com/view/xr9vs529y ... Front2.log

what stuck me as odd is this line:
"Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\DisplaySoldier.cpp(349)
DisplaySoldier 'imp_inf_rifleman' failed to find animmap human_"

I didnt make any kind of animation munge or even touched or edit the animation folder. So to me that seems rather strange.
Last edited by TWINKEYRUNAWAY on Fri Nov 07, 2014 9:48 pm, edited 2 times in total.
Noobasaurus
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2006
Joined: Tue Aug 17, 2010 5:56 pm

Re: Unexplained crash

Post by Noobasaurus »

Code: Select all

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(829)
Unable to find level chunk imp_inf_rifleman in C:\Program Files (x86)\Steam\steamapps\common\Star Wars Battlefront II\GameData\AddOn\IC3\Data\_lvl_pc\SIDE\imp.lvl

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LoadUtil.cpp(1019)
Unable to find level chunk  in dc:SIDE\imp.lvl

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\DisplaySoldier.cpp(349)
DisplaySoldier 'imp_inf_rifleman' failed to find animmap human_
You've done goofed to your imp_inf_rifleman. What did you do to him?
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Unexplained crash

Post by jedimoose32 »

Did you do a manual clean of your imp side?

Troops use human_0, human_1, etc. animation groups, and they munge to common (not the side). So you could also try manually cleaning common, although I doubt the issue lies there as it sounds like your other troops are working okay.
Edit: But maybe I'm being hasty. What happens when you select a different unit. Say a Rebel trooper?
User avatar
TWINKEYRUNAWAY
Lieutenant General
Lieutenant General
Posts: 730
Joined: Fri Aug 17, 2012 3:13 pm
Projects :: Empire Rising
Games I'm Playing :: SWBF Doom FONV
xbox live or psn: No gamertag set
Location: 411Remnant
Contact:

Re: Unexplained crash

Post by TWINKEYRUNAWAY »

The rebel side doesnt seem to crash as they can be chosen. Its when the empire side spawns that when the game crashes
out. I never touched the imp rifleman prior to the crash but I might as well double check his odf. Also ill go ahead and clean the common side and report back. Thanks for the suggestions gentlemen.

Edit:
Ok well I did a manual clean on the common folder and now its seems to crash right after the loading screen. here is what I get now on my log:

Message Severity: 2
C:\Battlefront2\main\RedEngineFL\Memory\RedMemoryPool.cpp(170)
Memory pool "SoldierAnimation" is full; raise count to at least 188
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Unexplained crash

Post by jedimoose32 »

Code: Select all

SetMemoryPoolSize("SoldierAnimation", 500)
Put this in your mode's lua. Make it as high as you need it to be in order to stop getting that message.

However, that error is nonfatal. See the "BFront2.log Errors" thread at the top of this index for details.

I'll be back a little later to see if I can help.

Edit: Okay, go to the odf file(s) of your unit's weapon(s). Make sure you have

Code: Select all

AnimationBank      = "rifle"
(or whatever animationbank it needs, e.g. pistol) in there. In all of the stock weapon odfs it shows up before the properties section. Make sure that's in place, otherwise your unit is not going to know which animations to use while holding said weapon.
User avatar
TWINKEYRUNAWAY
Lieutenant General
Lieutenant General
Posts: 730
Joined: Fri Aug 17, 2012 3:13 pm
Projects :: Empire Rising
Games I'm Playing :: SWBF Doom FONV
xbox live or psn: No gamertag set
Location: 411Remnant
Contact:

Re: Unexplained crash

Post by TWINKEYRUNAWAY »

Specically where in my lua would I put that little gem?
Also I to my surprize the animation bank line wasn't in my rifle odf. I went ahead and added it and I still seem to have some animation pool problems. Thank you so much for your help so far sir.

Edit:
Actually that rifle line seemed to fix it. I want to thank both you and noobasaurus for all your help!
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Unexplained crash [SOLVED]

Post by jedimoose32 »

No problem. Glad everything's working properly for you now.

For future reference, the SetMemoryPoolSize bit can go right in with the other memory pool info. I'm not at home and I can't remember whether you find that under PostLoad or ScriptInit but you should spot it no problem when you scroll through the file.
Post Reply