NWNX Leto Plugin
echoo
Member Posts: 43
I'm running a PW module called Rhun which relies on the NWNX Leto plugin for setting player subraces.
Is there any way to get the Leto plugin running on the EE dedicated server? If not, are there any plans to port it to NWNXEE?
Is there any way to get the Leto plugin running on the EE dedicated server? If not, are there any plans to port it to NWNXEE?
1
Comments
No work required on the NWNX side. In fact, porting the NWNX leto plugin as is to NWNXEE would just open the servers up to a whole new class of very bad security vulnerabilities.
However, if all you're doing is just modifying the stats for subraces, maybe it's easier to just use the Creature NWNX plugin and modify them directly:
https://github.com/nwnxee/unified/blob/master/Plugins/Creature/NWScript/nwnx_creature.nss
Here's a sample of how you can do simple subraces with it:
https://gist.github.com/mtijanic/6ee05fdc842440bd0cce187a93dd1327
I'd like to do that as well.. Thanks!
No guarantees.
You could try...
--1
Open the script editor search "sha_mod"
Comment out line "sha_mod_load"
and
"sha_mod_hb"
They should be in your module on load and heartbeat.
--2
Open the script editor search "sha_on"
Comment out lines:
"sha_on_itemactiv"
"sha_on_cl_leave"
"sha_on_itemactiv"
"sha_on_pceqpitem"
"sha_on_modload"
maybe others, maybe less
--3
Open your module properties in the toolbox.
edit-> module properties
Events tab
then look around for "sha_"
--4
search "sha_subr_methds"
Then comment out those includes and the function calls.
Careful about spell hooks.
I kept mine.
--5
I had some other Leto calls too so find those if you have them
Found mine in step 3
--6
Build Module ->
Compile Scripts
Fix errors and repeat 6 as necessary.
This will enable the bioware database based shayan subrace engine (turning off leto functionality):
in the script sha_subr_consts:
set ENABLE_LETO to false on line 27
example:
const int ENABLE_LETO = FALSE;