Page 1 of 1
What memory pools do I need to raise?
Posted: Fri Jun 05, 2015 12:32 pm
by commanderawesome
This is somewhat of a continuation of
this thread. While working on my skin changer mod, I've had some issues with crashing using ReadDataFile() to change playermodels. It appears to be a memory issue. So I ask: what memory pool(s) would I need to raise?
Re: What memory pools do I need to raise?
Posted: Fri Jun 05, 2015 12:53 pm
by Noobasaurus
Most RedMemory pool errors can't be fixed. Usually they appear when you've hit an ingame limit. Looking at the error log in your first post, this is probably what's happened.
Re: What memory pools do I need to raise?
Posted: Fri Jun 05, 2015 1:13 pm
by Teancum
Noobasaurus wrote:Most RedMemory pool errors can't be fixed. Usually they appear when you've hit an ingame limit. Looking at the error log in your first post, this is probably what's happened.
Incorrect. Ingame limit implies you can't go any higher. Adjustable memory pools like those you set in LUA have defaults that can be raised. This ensures that the minimal amount is used.
In regards to the actual crashing, be sure to be running the debug exe that comes with the mod tools. While ingame, hit ~, then type mem to see the current memory usage. These are stats that can't be made bigger, so if you find one that's maxed out, that's as far as you can go.
Re: What memory pools do I need to raise?
Posted: Fri Jun 05, 2015 1:42 pm
by Noobasaurus
Teancum wrote:Incorrect. Ingame limit implies you can't go any higher. Adjustable memory pools like those you set in LUA have defaults that can be raised. This ensures that the minimal amount is used.
My bad. I guess that I'm just used to seeing a lot of these errors and raising said memory pools did not help.
Re: What memory pools do I need to raise?
Posted: Thu Jun 11, 2015 5:36 pm
by commanderawesome
I still need help with this.
Re: What memory pools do I need to raise?
Posted: Thu Jun 11, 2015 6:02 pm
by Teancum
Did you actually do what I outlined above? You're probably hitting the hard limit, but you won't be able to tell until you actually use the mem command in the debug executable.