How to eliminate SoldierAnimation memory pool errors

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
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

How to eliminate SoldierAnimation memory pool errors

Post by YaNkFaN »

I've noticed that there are a lot of new modders who always forget to fill the soldier animation pools and then the map is buggy or crashes this tutorial is simple yet effective at getting rid of soldier animation pool problems forever

Step 1
go to C:\BF2_ModTools\TEMPLATE\Common\scripts\@#$

Step 2
open up all the files that have .lua as their extension

not .lua.bak

add this line

SetMemoryPoolSize("SoldierAnimation", 800)

to every .lua right above this line

SetMemoryPoolSize ("ClothData",20)

if you can't find that line just click ctrl+f and type it in.

Now every map you make will have those lines in the .lua and you will never have to worry about soldier animation pools ever again.

(side note) this method will work for any animation pool but I don't recommend it since most animation pools are map sensitive
RepSharpshooter
Gametoast Staff
Gametoast Staff
Posts: 1351
Joined: Tue Jul 10, 2007 4:10 pm

Re: How to never have soldier animation problems ever again

Post by RepSharpshooter »

Looks like a clever solution to future memory problems. Only problem that if someone was starting out modding, they might not know that they need to do this.
YaNkFaN
Field Commander
Field Commander
Posts: 943
Joined: Sat Dec 13, 2008 8:17 am

Re: How to never have soldier animation problems ever again

Post by YaNkFaN »

i know that there are plenty of topics out there covering this but there wasn't one in the everything you need to know thread actually addressing it
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: How to never have soldier animation problems ever again

Post by Fiodis »

But...this one isn't either.
Post Reply