This is a Windows Plugin for nwnx-windows, which may be of use to people who have real problems with the TMI Limit in nwnscript.
http://nwvault.ign.c....Detail&id=1482
When it gets approved, it should appear here.
This is a derivitive work off Addicted2rpg's work - I looked on the vault for a way to contact him, but couldnt find one. Oh well....
I just dont want people thinking I am taking credit for his plugin, he totally made the plugin base, I just added a little extra functionality to it.
Basically, he made a windows plugin which allowed the raising of TMI Cap on start up of the server - via reading from the nwnx.ini
I pretty much pieced together parts of the existing code, and made it possible for the plugin to set the TMI Limit via nwn script in addition to the start up method.
(This is probably something that Linux servers already had via nwnx, but I think Windows guys werent quite there yet)
Basically, setting the TMI Limit via nwnscript is done via.
void NWNXTMISetTMILimit(int nTMICap)
{
SetLocalString(GetModule(),"NWNX!TMI!SET",IntToString(nTMICap));
DeleteLocalString(GetModule(),"NWNX!TMI!SET");
}
And then called like so -
NWNXTMISetTMILimit(4); //Doubles the Bioware TMI Cap
NWNXTMISetTMILimit(; // Bioware x4
NWNXTMISetTMILimit(16); // Bioware x8
I was attempting to get Unlimited TMI Cap working from nwnscript, but that part wasnt working - trying to set unlimited seemed to crash the server, as such, I commented that code out - perhaps someone else can continue to work on it.
That being said... Unlimited TMI Cap is a dangerous thing, and with the current functionality, there really isnt much need for it anyway.
If you have a script that takes longer than
NWNXTMISetTMILimit(20); to finish..... then there might be something wrong.
There isnt much validation in this version of the plugin from nwnscript, so just make sure you send it a positive number for the cap value.
2 is the default Bioware value.
Note - I know this is more a nwnscript forum, but this plugin doesnt look like it would 'belong' in the plugin/dev forum, with other apps and such.
Besides, TMI is a real problem that many people have with 'Scripting' its a potential fix for windows users who encounter the problem, and have to find alternative ways around it.
Note - Source code is included too.