An Interesting Problem

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
GAB
1st Lieutenant
1st Lieutenant
Posts: 431
Joined: Sun Jul 03, 2011 8:56 pm
Location: Somewhere around the world
Contact:

An Interesting Problem

Post by GAB »

I believe some of you might already have faced the String pool is full: 32768 pool is not big enough! error.

I did it today. Now here's the what I find interesting. When I run my map in the debug exe (BF2_ModTools), the map crashes, as expected. But when I run it in the normal exe (BattlefrontII), everything runs fine. :runaway: :?

Has someone ever gone through this or does know why is such thing occuring?
Last edited by GAB on Fri Jan 04, 2013 2:02 pm, edited 1 time in total.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: An Intersting Problem

Post by Teancum »

Could be something that was patched later on. The debug build of the game is pre-release if I remember right.
User avatar
GAB
1st Lieutenant
1st Lieutenant
Posts: 431
Joined: Sun Jul 03, 2011 8:56 pm
Location: Somewhere around the world
Contact:

Re: An Interesting Problem

Post by GAB »

I managed to find the source of the problem, at least on my case. Apparently, it has to do with too many objects being loaded at once.

In the .lua that was getting the error, I was loading the base layer plus two extra layers which contained a reasonable number of objects. If I cut one of these extra layers, I get no error, but if I load them both, I get the string pool error.

As already mentioned in the first post, this happens only if the map is played in BF2_ModTools (the debug exe). In the normal executable (BattlefrontII.exe) everything runs fine.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: An Interesting Problem

Post by Fiodis »

I've had a few instances where the actual game exe ran the map fine but the debugger didn't. All of those instances, I was right at the edge of some limit - just about to run out of memory pool space or whatever. So, basically, if you can't play your map in the debugger, you ought to cut down on memory usage, even if the normal exe appears to run the map fine. Not really a surprise.
Post Reply