Page 2 of 2

Re: Advanced Beta Jegs and Warlocks!

Posted: Thu May 14, 2015 4:20 am
by Rasael
Thank you for the feedback I will look at the bugs and gameplay when I get home. :)

The coding observations are actually informed choices... nwn2 doesnt support arrays (trying to replicate them makes them more expensive juryrigged things) ... reading everything from 2da files is significantly slower and more expensive than the copy paste method and is prone to causing TMI errors . For singleplay this isnt an issue but with multi efficiency matters. when i compared it it did better than than the original mechanic.

The spell swapping is an oversight on my part. I thought you were allowed to switch lower invocations out for higher ones. Because you can freely pick to start with.

Luck of heroes sounds like its something screwed up in the training module. That feat wasnt touched for any content that I remember.

Casterlevel is also set in the spell hook and most feats are treated there. Including psc if memory serves... that feat shluldnt give spell progression.

Re: Advanced Beta Jegs and Warlocks!

Posted: Thu May 14, 2015 4:47 am
by NegInfinity
Rasael wrote: The coding observations are actually informed choices... nwn2 doesnt support arrays (trying to replicate them makes them more expensive juryrigged things) ... reading everything from 2da files is significantly slower and more expensive than the copy paste method and is prone to causing TMI errors . For singleplay this isnt an issue but with multi efficiency matters. when i compared it it did better than than the original mechanic.
In that case I highly recommend to write simple code generator for copy-pasted functions of this kind. Maintaining something like that by hand is asking for VERY big trouble later.

A small script in python would take an evening or two and will potentially save weeks of time later. It can be written from scratch (fairly trivial) or it is should be possible to use something like this tool.

It is probably possible to apply this approach to many other scripting functions (and possibly make code easier to maintain, eliminating many bad practices, like "magic numbers" that are frequently used in NWN2 scripts), but only spellbook script needs something like that urgently.

Re: Advanced Beta Jegs and Warlocks!

Posted: Tue May 19, 2015 10:26 am
by NegInfinity
Here's python code generator I mentioned earlier.
I advise to use it and adapt to other scripts.

https://www.dropbox.com/s/vmsgjf5inolbh ... ut.7z?dl=0

Provided:
sample input/output (full warlock spellbook script). Using generator made warlock spellbook script 3 times shorter, which would reduce chance of human error.

Resulting generated script is completely untested tested and might contain typos and such.

Having knowledge of python/nwn2 script is highly recommended.

Re: Advanced Beta Jegs and Warlocks!

Posted: Tue May 19, 2015 11:16 am
by Rasael
Thank you, highly appreciated. :)

Re: Advanced Beta Jegs and Warlocks!

Posted: Sun Mar 13, 2016 8:02 pm
by Heimdallr
Will those pacts ever come alive?;p

Re: Advanced Beta Jegs and Warlocks!

Posted: Fri Apr 01, 2016 7:00 pm
by Sylael
Hello,

Im curious if these Pact changes are in the update pipeline somewhere down the road? I like the idea of choosing pacts upon creation. It helps to flesh out and direct RP with a substantial guideline and im sure it will assist DMs in plots.

Just a friendly inquiry :)