Author Topic: nwnx plugin for polymorph  (Read 688 times)

Legacy_Savagefool

  • Jr. Member
  • **
  • Posts: 92
  • Karma: +0/-0
nwnx plugin for polymorph
« on: April 21, 2015, 07:24:40 pm »


               

Are there any plugins on nwnx (Linux version) to change shapes, add new shapes etc etc.


High ground do just what i'm describing but I think they use haks.



               
               

               
            

Legacy_kalbaern

  • Hero Member
  • *****
  • Posts: 1531
  • Karma: +0/-0
nwnx plugin for polymorph
« Reply #1 on: April 22, 2015, 01:43:08 am »


               

You can edit existing and create new polymorphs in the polymorph.2da and players don't require it. You can host the change either in the server's override folder or add it to whatever top hak the server uses. As far as granting access to the new options, you can do that via scripting and check for variables that will produce the new options. Variables can be assigned via the crafting conversation, special convos when a widget is used or many other things.



               
               

               
            

Baaleos

  • Administrator
  • Hero Member
  • *****
  • Posts: 1916
  • Karma: +0/-0
nwnx plugin for polymorph
« Reply #2 on: April 22, 2015, 08:56:44 am »


               

Polymorph.2da is a server side 2da - so I don't think the clients need to have it.


You can just drop it in the override on the server, and not have to distribute it to the players.


 


Other than that - I think hooking polymorph is do-able, but might be more trouble than its worth.


Think you would need to recreate the entire method, to check for locals etc, instead of reading from the 2da - as the 2DA contains pretty much everything:


Base Attributes, Skin resrefs, creature resrefs etc


 


It might be easier using the 2DA Approach



               
               

               
            

Legacy_Savagefool

  • Jr. Member
  • **
  • Posts: 92
  • Karma: +0/-0
nwnx plugin for polymorph
« Reply #3 on: April 22, 2015, 11:10:01 am »


               

Ah brilliant, yes I was thinking the same about the hooking but it seems that wouldn't be the easiest way. I deemed it necessary however.


So if I just overwrite the Polymorph that should be that, this particular server does not allow overrides or haks however. Hopefully I can persuade the override, but Hak I wont be able to heh. Thank you for the replies!



               
               

               
            

Legacy_kalbaern

  • Hero Member
  • *****
  • Posts: 1531
  • Karma: +0/-0
nwnx plugin for polymorph
« Reply #4 on: April 22, 2015, 02:02:57 pm »


               


Ah brilliant, yes I was thinking the same about the hooking but it seems that wouldn't be the easiest way. I deemed it necessary however.


So if I just overwrite the Polymorph that should be that, this particular server does not allow overrides or haks however. Hopefully I can persuade the override, but Hak I wont be able to heh. Thank you for the replies!




If this is for a vanilla NWN install, overrides on the serverside will work just fine. If by -no haks- you really mean, we only use the CEP or Project Q, then the change can be done with either an override or editting just the server's top hak. In either cases, builders should also do the same thing, but players themselves wouldn't need anything more.


               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
nwnx plugin for polymorph
« Reply #5 on: April 22, 2015, 04:20:25 pm »


               


Polymorph.2da is a server side 2da - so I don't think the clients need to have it.


You can just drop it in the override on the server, and not have to distribute it to the players.


 


Other than that - I think hooking polymorph is do-able, but might be more trouble than its worth.




Hooking polymorph is doable without NWNX. My latest CPP beta 1.72 offers OnPrePolymorph (where you can change appearance/hitpoints/cancel it), OnPolymorp (where you can control item merging), OnUnPolymorph and OnRePolymorph (thats the engine thing when character is saved via ExportSingleCharacter function).


 


It uses this concept + the whole polymorphing is recoded and item merging is softcoded into this event so everything can be modified dynamically without need to recompile/modify polymorphing spells.



               
               

               
            

Legacy_Savagefool

  • Jr. Member
  • **
  • Posts: 92
  • Karma: +0/-0
nwnx plugin for polymorph
« Reply #6 on: April 23, 2015, 02:17:12 pm »


               

Alright so that would work for one server, how about in a situation where I cannot use hacks or overrides. The server in question does not allow these. However it does allow plugins, thus my question



               
               

               
            

Legacy_kalbaern

  • Hero Member
  • *****
  • Posts: 1531
  • Karma: +0/-0
nwnx plugin for polymorph
« Reply #7 on: April 23, 2015, 05:02:46 pm »


               


Alright so that would work for one server, how about in a situation where I cannot use hacks or overrides. The server in question does not allow these. However it does allow plugins, thus my question




For  a hakless server, Override and custom scripts.


 


If using haks, you can add it to the server's topmost hak as well as script edits, or just drop the 2da into the override. Either work. My own preference would be adding to a hak just to keep things orderly.


               
               

               
            

Legacy_Savagefool

  • Jr. Member
  • **
  • Posts: 92
  • Karma: +0/-0
nwnx plugin for polymorph
« Reply #8 on: April 23, 2015, 05:10:27 pm »


               

Agreed but they wont let me heh, custom scripts it is, I'm going to look into it. I seem to remember polymorph 2das able to be overwritten via plugin.. I did read it somewhere when looking through the git source.



               
               

               
            

Legacy_WebShaman

  • Hero Member
  • *****
  • Posts: 1390
  • Karma: +0/-0
nwnx plugin for polymorph
« Reply #9 on: April 26, 2015, 07:52:00 am »


               The Isle of Than PW does this without haks.  One can DL the PW from their forum as well (must first register).


Then just open it in the toolset and take a look.
               
               

               
            

Legacy_Savagefool

  • Jr. Member
  • **
  • Posts: 92
  • Karma: +0/-0
nwnx plugin for polymorph
« Reply #10 on: April 26, 2015, 09:34:35 pm »


               

Oh nice, thank you for that.



               
               

               
            

Legacy_leo_x

  • Sr. Member
  • ****
  • Posts: 403
  • Karma: +0/-0
nwnx plugin for polymorph
« Reply #11 on: April 26, 2015, 10:05:23 pm »


               

You've mentioned nwnx_silm before maybe you read about the override thing there: https://silm.pw/disp...h too much time ?



               
               

               
            

Legacy_Savagefool

  • Jr. Member
  • **
  • Posts: 92
  • Karma: +0/-0
nwnx plugin for polymorph
« Reply #12 on: April 27, 2015, 02:43:28 pm »


               

Oh nice, thank you for that valuable information.