Advanced Beta Jegs and Warlocks!

It Does What It Says on the Tin: Resolved Issues

Moderators: Moderator, Quality Control, Developer, DM

User avatar
Rasael
Retired Staff
Posts: 8096
Joined: Wed Jun 30, 2010 6:52 am
Location: Leiden, Netherlands

Re: Advanced Beta Jegs and Warlocks!

Unread post 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.
NegInfinity
Posts: 2450
Joined: Wed Feb 05, 2014 11:24 am

Re: Advanced Beta Jegs and Warlocks!

Unread post 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.
NegInfinity
Posts: 2450
Joined: Wed Feb 05, 2014 11:24 am

Re: Advanced Beta Jegs and Warlocks!

Unread post 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.
User avatar
Rasael
Retired Staff
Posts: 8096
Joined: Wed Jun 30, 2010 6:52 am
Location: Leiden, Netherlands

Re: Advanced Beta Jegs and Warlocks!

Unread post by Rasael »

Thank you, highly appreciated. :)
Heimdallr
Posts: 81
Joined: Tue Aug 25, 2015 1:06 pm

Re: Advanced Beta Jegs and Warlocks!

Unread post by Heimdallr »

Will those pacts ever come alive?;p
Sylael
Posts: 35
Joined: Fri Mar 25, 2016 5:46 am

Re: Advanced Beta Jegs and Warlocks!

Unread post 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 :)
Post Reply

Return to “Solved Problems”