Page 1 of 1

NWN1 Blast from the ALFA past ... Level 4 Validation

Posted: Sun Jun 25, 2017 9:24 pm
by dergon darkhelm
Had forgotten all about that :)

Re: NWN1 Blast from the ALFA past ... Level 4 Validation

Posted: Sun Jun 25, 2017 9:45 pm
by Mick
It was put in place to keep dirty PGers like you in check.

Also...congrats.

Re: NWN1 Blast from the ALFA past ... Level 4 Validation

Posted: Mon Jun 26, 2017 1:11 am
by ayergo
Dirtiest of the PGers!

I should have remembered about that because it messed with my testing a lot. I don't know at what point it changed but it used to only kick in at level 10 and I haven't been able to find the code for it.

Re: NWN1 Blast from the ALFA past ... Level 4 Validation

Posted: Mon Jun 26, 2017 3:16 pm
by Arianna
ayergo wrote:Dirtiest of the PGers!

I should have remembered about that because it messed with my testing a lot. I don't know at what point it changed but it used to only kick in at level 10 and I haven't been able to find the code for it.
Its not in the onplayerlevelup part of the module scripts?

Re: NWN1 Blast from the ALFA past ... Level 4 Validation

Posted: Wed Jun 28, 2017 6:50 am
by ayergo
Arianna wrote:
ayergo wrote:Dirtiest of the PGers!

I should have remembered about that because it messed with my testing a lot. I don't know at what point it changed but it used to only kick in at level 10 and I haven't been able to find the code for it.
Its not in the onplayerlevelup part of the module scripts?
Will dig in and see. Didn't expect to have such dedicated players!

Re: NWN1 Blast from the ALFA past ... Level 4 Validation

Posted: Wed Jun 28, 2017 5:26 pm
by Stormbringer
Need more areas to explore... The Rat hills are getting deadly with the super swarms and same with the sewers. Either more gold earned so we can better equip our toons or something needs to give. Would love to look into Daggerford server and see if it is worth hosting/fixing up. Maybe tie it into WD so peeps have other places to explore.

Re: NWN1 Blast from the ALFA past ... Level 4 Validation

Posted: Thu Jun 29, 2017 2:02 am
by ayergo
Stormbringer wrote:Need more areas to explore... The Rat hills are getting deadly with the super swarms and same with the sewers. Either more gold earned so we can better equip our toons or something needs to give. Would love to look into Daggerford server and see if it is worth hosting/fixing up. Maybe tie it into WD so peeps have other places to explore.
Agree 150% on that and I'm working on it. Give me until July 9th and I'll have some more content up and the sewers a bit more reasonable.

Am interested in wealth levels though, I have a few PCs that have done pretty well with the rat hills and not much has changed there recently. Can you post your experiences with rewards in the thread on the WD forums?

Re: NWN1 Blast from the ALFA past ... Level 4 Validation

Posted: Wed Jul 05, 2017 6:03 pm
by Arianna
the script that controls the level validation is csm_onlvlup, unfortunately it is in the ahp_3.0_2da.hak

You may be able to override it by-

open your script editor , click all resources, find csm_onlelvlup , open it change line 25

from

if ( nLevel < 3 )

to

if ( nLevel < 10 )

save and compile, save mod. This places the script in the mod itself.

Removing the script would cause other scripts to fail

I think mod scripts overide hak scripts but not 100% certain on this
Ideally the hak script should be changed to conserve resources

Re: NWN1 Blast from the ALFA past ... Level 4 Validation

Posted: Wed Jul 05, 2017 11:42 pm
by ayergo
Arianna wrote:the script that controls the level validation is csm_onlvlup, unfortunately it is in the ahp_3.0_2da.hak

You may be able to override it by-

open your script editor , click all resources, find csm_onlelvlup , open it change line 25

from

if ( nLevel < 3 )

to

if ( nLevel < 10 )

save and compile, save mod. This places the script in the mod itself.

Removing the script would cause other scripts to fail

I think mod scripts overide hak scripts but not 100% certain on this
Ideally the hak script should be changed to conserve resources

Yeah, agreed. Definitely something in the ACR. I might just modify the ACR script to be back at 10 where it is supposed to be. Code is below:

Code: Select all

#include "csm_include"

void main()
{
    object oPC = GetPCLevellingUp();
    object oModule = GetModule();
    string sID = GetName( oPC ) + GetPCPublicCDKey( oPC );
    int nExp = GetXP( oPC );
    int nLevel = GetHitDice( oPC );
    int nNewExp = CSM_GetXPForLevel( nLevel ) - 1;
    int nFlag = GetLocalInt( oModule, ALFA_ALLOW_LEVELUP+sID );

    if ( nLevel < 3 )
        return;

    // If the player has been granted XP by a DM, the player's good to go
    if ( nFlag )
    {
        SetLocalInt( oModule, ALFA_ALLOW_LEVELUP+sID, FALSE );
        return;
    }

    // Drop the player to within 1 xp of the level he just made
    SetXP( oPC, nNewExp );
    SendMessageToPC( oPC, "Congratulations, adventurer! Please see a DM to proceed to the next level of power." );
    SendMessageToPC( oPC, sID + ", your level has been calculated at " + IntToString( nLevel ) + "." );
}

Re: NWN1 Blast from the ALFA past ... Level 4 Validation

Posted: Thu Jul 06, 2017 1:43 am
by Arianna
Just remember any alteration to stuff inside the haks requires peeps to reaquire that hak

Re: NWN1 Blast from the ALFA past ... Level 4 Validation

Posted: Sat Jul 08, 2017 11:45 am
by ayergo
Fixable without changing haks. Do the following in alfa_include (notice Execute script change):

Code: Select all

void ALFA_OnPlayerLevelUp()
{
  object oPC = GetPCLevellingUp();

  /* Force DM assistance on levels 11+ */
  ExecuteScript( "csm_onlvlupaay", OBJECT_SELF );

  /* Subraces */
  ExecuteScript( "sei_subracelvlup", OBJECT_SELF );

  /* Animal Companions */
  AC_OnLevelUp(oPC);

  /* Familiar adjustment */
  FamiliarCheckOnLevelUp(oPC);

  /* User Defined */
  SignalEvent( OBJECT_SELF, EventUserDefined(ALFA_EVENT_MODULE_ON_LEVEL_UP) );
}
Then make a copy of csm_onlvlup and change the number to your level preference. Done.

Re: NWN1 Blast from the ALFA past ... Level 4 Validation

Posted: Sun Jul 09, 2017 8:17 pm
by Stormbringer
For some reason it did not compile.. not sure what I did wrong but when I opened the alfa_include it was blank

Re: NWN1 Blast from the ALFA past ... Level 4 Validation

Posted: Sun Jul 09, 2017 10:27 pm
by ayergo
Possible you have a different setup. If you need a hand post up your "OnLevelUp" code and will see what I can do.

Re: NWN1 Blast from the ALFA past ... Level 4 Validation

Posted: Sun Jul 09, 2017 10:59 pm
by Stormbringer
Arianna helped me with it. and I got it fixed I hope. Have not tested it yet but I will cross my fingers.