logo logo

 Back to main page

The NWNX Community Forum

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
NWNX_Patch
Goto page Previous  1, 2, 3 ... 34, 35, 36
 
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development
View previous topic :: View next topic  
Author Message
ShaDoOoW



Joined: 20 Aug 2005
Posts: 535

PostPosted: Wed Oct 11, 2017 7:36    Post subject: Reply with quote

Ok maybe I know whats the problem. Given its so random, I tried to fix the only part of code that could cause it.

fixed version
_________________
Community Patch / NWNX Patch / NWNX Files / NWNX Connect
Back to top
View user's profile Send private message
Antegate



Joined: 20 Apr 2012
Posts: 93

PostPosted: Wed Oct 11, 2017 7:44    Post subject: Reply with quote

I just setting everything by default, with increasing levels.
nothing unusual
I noticed that the error disappeared after several pressing the cancel button to raise the level.

Thanks. I will test.
Back to top
View user's profile Send private message
Valbor



Joined: 26 Dec 2016
Posts: 118

PostPosted: Wed Oct 11, 2017 10:01    Post subject: Reply with quote

Is there a way to determine character can leveling-up in a given class or not? (i.e. determining it on have all prerequisites, say for example leveling-up in class of Weapon Master written in cls_pres_wm.2da) me need it for function LevelUpHenchman
Back to top
View user's profile Send private message
ShaDoOoW



Joined: 20 Aug 2005
Posts: 535

PostPosted: Wed Oct 11, 2017 10:42    Post subject: Reply with quote

Valbor wrote:
Is there a way to determine character can leveling-up in a given class or not? (i.e. determining it on have all prerequisites, say for example leveling-up in class of Weapon Master written in cls_pres_wm.2da) me need it for function LevelUpHenchman

manually? Very Happy

there might be sometthing in engine but this can easily be checked in NWScript I believe
_________________
Community Patch / NWNX Patch / NWNX Files / NWNX Connect
Back to top
View user's profile Send private message
Valbor



Joined: 26 Dec 2016
Posts: 118

PostPosted: Wed Oct 11, 2017 11:04    Post subject: Reply with quote

ShaDoOoW wrote:
Valbor wrote:
Is there a way to determine character can leveling-up in a given class or not? (i.e. determining it on have all prerequisites, say for example leveling-up in class of Weapon Master written in cls_pres_wm.2da) me need it for function LevelUpHenchman

manually? Very Happy

there might be sometthing in engine but this can easily be checked in NWScript I believe

I want to set up for the adherents of the choice of class in which it is possible to develop in his dialog, pre-excluding the variety of classes that he is unable at the moment to develop, do i have to manually configure? Sad
and what this the condition in each class 70_Allow* ?
Back to top
View user's profile Send private message
ShaDoOoW



Joined: 20 Aug 2005
Posts: 535

PostPosted: Wed Oct 11, 2017 12:44    Post subject: Reply with quote

Valbor wrote:
and what this the condition in each class 70_Allow* ?
If you are using classes.2da from CPP and new cls_pres_*.2da

then each base class can be disabled if you set variable 70_Allow* to 1 (or any non zero value)

Explanation: the exact requirement is that variable 70_Allow* must be 0. Since the default value for integer variable is 0 the condition is automatically fulfilled, unless the variable is set to non-zero value by scripter.

This can be confusing since one would thought that variable with name "Allow" should be set to true (1) to allow class however this is how variables for prestige classes were designed (X1_Allow* X2_Allow*) and thus I made it so it matches the already existing scheme.
_________________
Community Patch / NWNX Patch / NWNX Files / NWNX Connect
Back to top
View user's profile Send private message
Valbor



Joined: 26 Dec 2016
Posts: 118

PostPosted: Wed Oct 11, 2017 17:12    Post subject: Reply with quote

LevelUpHenchman(oHenchman, CLASS_TYPE_SHOU_DISCIPLE, FALSE, PACKAGE_INVALID);
This function ignores the class on the NPC leveling up in classes of Shou Disciple and Eye of Gruumsh, i had to add a separate Package for this classes, then everything worked is fine.

Please add separate packages for these classes in the next version of the patch.
Back to top
View user's profile Send private message
ShaDoOoW



Joined: 20 Aug 2005
Posts: 535

PostPosted: Thu Oct 12, 2017 0:24    Post subject: Reply with quote

Valbor wrote:
LevelUpHenchman(oHenchman, CLASS_TYPE_SHOU_DISCIPLE, FALSE, PACKAGE_INVALID);
This function ignores the class on the NPC leveling up in classes of Shou Disciple and Eye of Gruumsh, i had to add a separate Package for this classes, then everything worked is fine.

Please add separate packages for these classes in the next version of the patch.

I see. Could you send me your packages then?
_________________
Community Patch / NWNX Patch / NWNX Files / NWNX Connect
Back to top
View user's profile Send private message
Valbor



Joined: 26 Dec 2016
Posts: 118

PostPosted: Thu Oct 12, 2017 8:20    Post subject: Reply with quote

ShaDoOoW wrote:
I see. Could you send me your packages then?

I made them out of the assumptions that you stated in classes.2da --> Package:
Code:
132        Eye_of_Gruumsh_Orcblood            6932    6933          39        STR         20     ****     ****      ****      ****        ****            PackFTBarb5    PackSKBarb5    PackEQBarb5    0          1
133        Shou_Disciple_Default              6918    6919          40        WIS         20     ****     ****      ****      ****        ****            PackFTMonk1    PackSKMonk1    PackEQMonk1    0          1
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    nwnx.org Forum Index -> Windows development All times are GMT + 2 Hours
Goto page Previous  1, 2, 3 ... 34, 35, 36
Page 36 of 36

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group