Player Resource Consortium

 

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Halgroth

Pages: [1]
1
Help / Re: Dynconvo ERROR on prc_domain_war
« on: June 07, 2017, 03:14:40 PM »
Any help or pointers on this issue would be great :)

2
Help / Dynconvo ERROR on prc_domain_war
« on: May 26, 2017, 04:41:43 AM »
Hello,

I am running PRC 3.5 and getting the following error

Code: [Select]
Dynconvo ERROR: No response tokens set up and exiting not allowed!
The character is a standard cleric with war domain, and was imported from a vanilla NWN server. After resting for the first time I was presented with a conversation with no options (except 1. End Dialog) that I cannot abort.

By adding debug output to the PRC resources I found that the dynamic conversation fails to create options in the file prc_domain_war.nss:74

Code: [Select]
for(i = 0; i < GetPRCSwitch(FILE_END_BASEITEMS); i++) //Total rows in baseitems.2da
where GetPRCSwitch(FILE_END_BASEITEMS) returns 0. I traced this variable to where it is initialized in inc_switch_setup.nss:160 as

Code: [Select]
SetPRCSwitch("PRC_FILE_END_baseitems", 204);
I wanted to debug SetPRCSwitch to see if the value is overwritten at some point, but I have been unable to successfully add debug output to anything in prc_include.hak

The PRC switch PRC_FILE_END_baseitems is not set manually anywhere in the module, so afaik it should be the initialized value.

Any help will be greatly appreciated.


Screenshot:


Log (note that this contains some non-standard PRC debug output from custom changes on my end):
Code: [Select]
[Fri May 26 08:32:57] prc_restwpnsize - OnUnEquip
[Fri May 26 08:32:57] Running Prc_templates
[Fri May 26 08:32:57] prc_inc_sneak: Rogue Sneak Dice: 0
[Fri May 26 08:32:57] prc_inc_sneak: Blackguard Sneak Dice: 0
[Fri May 26 08:32:57] GetOffHandAttacks: iOffHandAttacks = 0
[Fri May 26 08:32:57] prc_bab_caller: restoring base attack bonus of Matron Mother Sharainiva Nelan
[Fri May 26 08:32:57] Deleting composite bonus list 'PRC_ComAttBon' on 'Matron Mother Sharainiva Nelan' - '' - '' - 7ffffffd
[Fri May 26 08:32:57] Deleting composite bonus list 'PRC_CBon' on 'base_prc_skin' - 'base_prc_skin' - 'base_prc_skin' - 2239
[Fri May 26 08:32:57] Clearing class flags
[Fri May 26 08:32:57] prc_inc_sneak: Rogue Sneak Dice: 0
[Fri May 26 08:32:57] prc_inc_sneak: Blackguard Sneak Dice: 0
[Fri May 26 08:32:57] prc_inc_sneak: Assassin Sneak Dice: 0
[Fri May 26 08:32:57] prc_inc_sneak: Epic Sneak Dice: 0
[Fri May 26 08:32:57] Halgroth[Matron Mother Sharainiva Nelan](VDKJ6H6W) IP: 172.18.0.1 entering as a player
Halgroth has current player state of 0
[Fri May 26 08:32:57] Running Prc_templates
[Fri May 26 08:32:57] prc_inc_sneak: Rogue Sneak Dice: 0
[Fri May 26 08:32:57] prc_inc_sneak: Blackguard Sneak Dice: 0
[Fri May 26 08:32:57] GetOffHandAttacks: iOffHandAttacks = 0
[Fri May 26 08:32:57] prc_bab_caller: restoring base attack bonus of Matron Mother Sharainiva Nelan
[Fri May 26 08:32:57] PRC Domain Skin is running
[Fri May 26 08:32:57] Add Domain Feat is running
[Fri May 26 08:32:57] You have no bonus domains, exiting prc_domain_skin
[Fri May 26 08:32:57] PRC Domain Skin is running
[Fri May 26 08:32:57] Add Domain Feat is running
[Fri May 26 08:32:57] You have no bonus domains, exiting prc_domain_skin
[Fri May 26 08:32:59] StartDynamicConversation(): Starting new dynamic conversation, parameters:
sConversationScript = 'prc_domain_war'
oPC = 'Matron Mother Sharainiva Nelan' - '' - '' - 7ffffffd
nAllowExit = DYNCONV_EXIT_NOT_ALLOWED
bAllowAbort = False
bForceStart = True
oConverseWith = 'Matron Mother Sharainiva Nelan' - '' - '' - 7ffffffd

[Fri May 26 08:32:59] StartDynamicConversation(): Starting new dynamic conversation, parameters:
sConversationScript = 'prc_domain_war'
oPC = 'Matron Mother Sharainiva Nelan' - '' - '' - 7ffffffd
nAllowExit = DYNCONV_EXIT_NOT_ALLOWED
bAllowAbort = False
bForceStart = True
oConverseWith = 'Matron Mother Sharainiva Nelan' - '' - '' - 7ffffffd

[Fri May 26 08:32:59] prc_onenter: RestoreAppearance failed
[Fri May 26 08:33:07] DoRestoreAMS: Spellbook_Known_2_0
[Fri May 26 08:33:07] DoRestoreAMS: array size = -1
[Fri May 26 08:33:07] DoRestoreAMS: Spellbook_Known_2_1
[Fri May 26 08:33:07] DoRestoreAMS: array size = -1
[Fri May 26 08:33:07] DoRestoreAMS: Spellbook_Known_2_2
[Fri May 26 08:33:07] DoRestoreAMS: array size = -1
[Fri May 26 08:33:07] DoRestoreAMS: Spellbook_Known_2_3
[Fri May 26 08:33:07] DoRestoreAMS: array size = -1
[Fri May 26 08:33:07] DoRestoreAMS: Spellbook_Known_2_4
[Fri May 26 08:33:07] DoRestoreAMS: array size = -1
[Fri May 26 08:33:07] DoRestoreAMS: Spellbook_Known_2_5
[Fri May 26 08:33:07] DoRestoreAMS: array size = -1
[Fri May 26 08:33:07] DoRestoreAMS: Spellbook_Known_2_6
[Fri May 26 08:33:07] DoRestoreAMS: array size = -1
[Fri May 26 08:33:07] DoRestoreAMS: Spellbook_Known_2_7
[Fri May 26 08:33:07] DoRestoreAMS: array size = -1
[Fri May 26 08:33:07] DoRestoreAMS: Spellbook_Known_2_8
[Fri May 26 08:33:07] DoRestoreAMS: array size = -1
[Fri May 26 08:33:07] DoRestoreAMS: Spellbook_Known_2_9
[Fri May 26 08:33:07] DoRestoreAMS: array size = -1
[Fri May 26 08:33:08] Running prc_domain_war
[Fri May 26 08:33:08] nValue = -1
[Fri May 26 08:33:08] nStage = 0
[Fri May 26 08:33:08] DYNCONV_SETUP_STAGE
[Fri May 26 08:33:08] STAGE_WEAPON_CHOICE
[Fri May 26 08:33:08] Number of legal choices: 0
[Fri May 26 08:33:08] Dynconvo ERROR: No response tokens set up and exiting not allowed!

3
Help / Re: PRC builds prc_data biowaredb even eith MySQL activated
« on: April 23, 2016, 07:53:41 AM »
Thank you for getting back to me, xwarren. Things are making more sense now.

Option 1 has already been applied, but I would like to have a cleaner solution in the long run so I'm going to have a shot at option 2. To begin with I need to know the purpose of re-reading and storing the database object in this way. The only reason I can think of is to update some data, but I have no idea what needs updating. Last night, Drake and I set up a stripped down PRC server with only one area and no extra content, and this morning the database had accumulated to +160MB, with absolutely no activity on the server. As far as I can tell, during the first 30 seconds after the module loads a database with 6.8MB of content is created, and then this content is appended every 30 min or so. For what purpose? Nothing happened, so nothing should need updating.

I'm digging through sources now and will try to recompile with some changes and see where that gets me.

4
Help / Re: PRC builds prc_data biowaredb even eith MySQL activated
« on: April 18, 2016, 12:24:15 PM »
Either the data is encoded, or it's binary. At this point I'm going to go with binary. Still, the table names should give a pointer as to what's being put in them. Are these tables in accord with expected behavior for the above configuration?

5
Help / Re: PRC builds prc_data biowaredb even eith MySQL activated
« on: April 16, 2016, 06:23:15 AM »
Code: [Select]
/nwntestserver/database $ dbf_dump --table --nomemo prc_data.dbf
 +---------------------------+----------+------------------+---------+-----+------+------+------+------+------+------+------+
 |          VARNAME          | PLAYERID |    TIMESTAMP     | VARTYPE | INT | DBL1 | DBL2 | DBL3 | DBL4 | DBL5 | DBL6 | MEMO |
 +---------------------------+----------+------------------+---------+-----+------+------+------+------+------+------+------+
 | version                   |          | 02/29/1616:08:12 | S       |     |      |      |      |      |      |      |      |
 | CacheChest                |          | 02/29/1616:08:11 | O       |     |      |      |      |      |      |      |      |
 | PRC_2DA_Cache_Fingerprint |          | 02/29/1616:08:12 | S       |     |      |      |      |      |      |      |      |
 +---------------------------+----------+------------------+---------+-----+------+------+------+------+------+------+------+


Printing with memo goes haywire. There's so much data (+2GB) and it doesn't seem to print any readable data. Not sure if that is due to corrupted data or not. Working on it..

Edit:
So I realize the data is just encoded and the tools I tried so far do not seem to handle decoding very well.

6
Help / Re: PRC builds prc_data biowaredb even eith MySQL activated
« on: April 15, 2016, 08:54:17 AM »
Thank you for replying.

I have difficulties viewing the biowaredb content, but as far as I can tell it's PRC_2DA_Cache_FingerprintCacheChest.

Any suggestions for viewing the contents?

Edit1:
There seems to be a few alternatives for viewing xbase db files.
dbfdump is very simple and available from the shapelib package on Ubuntu

Edit2:
dbf_dump provides better output and functionalities

7
Help / PRC builds prc_data biowaredb even eith MySQL activated
« on: April 11, 2016, 04:03:53 PM »
Hi, I could really use some help on this one. Problem description is as follows:

Ubuntu 14 x64
nwnx2

Our test server runs a fully functional PRC module, the only issue is that it builds the prc_data using biowaredb, and every week or so the server instance crashes with the following error:

Code: [Select]
NWNX2lib: Init
NWNX2lib: org SetString() at 81f41b4, new SetString() at f774cd86
NWNX2lib: org GetObj() at 81f40bc, new GetObj() at f774cdad
* Parsing configuration...
NWN Extender v2.8-dev
(c) 2004 by the APS/NWNX Linux Conversion Group
(c) 2007-2010 by virusman and Acaos
Based on the Win32 version (c) 2003 by Ingmar Stieger (Papillon)
and Jeroen Broekhuizen
visit us at http://www.avlis.org

* Searching for signatures...
* Loading modules...
CONNECT plugin registered.
ODBC plugin registered.
FUNCS plugin registered.
FUNCSEXT plugin registered.
PATCH plugin registered.
* NWNX2 activated.
Neverwinter Nights Server
Build:8109
Copyright BioWare Corp 1998-2004

Server: Loading...
Server: Running...

Server: Loading module "test_server"...
Server: Module loaded
INIT(S): valid ret=0x082041ec
INIT(S): reset ignored ret=0x082041ec


Error Number  -120, 90619
Writing to File
file4write

/home/bastionofpeace/nwntestserver/database/prc_data.fpt

Content of database folder
Code: [Select]
/home/bastionofpeace/nwntestserver ~ $ ls -lh database
total 2,1G
3,0K feb 22 16:22 prc_data.cdx
1,1K feb 29 16:39 prc_data.dbf
2,0G feb 29 16:39 prc_data.fpt

Relevant switches (bop_switches.nss):
Code: [Select]
#include "x2_inc_switches"
#include "prc_inc_switch"

void main()
{
    SetPRCSwitch(PRC_CONVOCC_ENABLE, FALSE);
    SetPRCSwitch(PRC_CONVOCC_USE_XP_FOR_NEW_CHAR, FALSE);
    SetPRCSwitch(PRC_USE_DATABASE, TRUE);
    SetPRCSwitch(PRC_DB_MYSQL, TRUE);
    SetPRCSwitch(PRC_USE_LETOSCRIPT, FALSE);
    SetPRCSwitch(PRC_USE_BIOWARE_DATABASE, FALSE);
...
}

and on module load:
Code: [Select]
// prc_onmodload,m_on_mod_load
/////////////////////////////////////////////////////////////////////
//
// This script has been auto-generated by HakInstaller to call
// multiple handlers for the onmoduleload event.
//
/////////////////////////////////////////////////////////////////////
void main()
{
    ExecuteScript("bop_switches", OBJECT_SELF);
    ExecuteScript("prc_onmodload", OBJECT_SELF);
    ExecuteScript("m_on_mod_load", OBJECT_SELF);

}

Deleting the database on regular intervals is not an acceptable workaround as building the database drains significant resources. I need to get to the bottom of it. I've been digging through the PRC sources but cannot find anything obvious, and the configuration should be fine for all I know. My main problem is that I don't have enough time to familiarize myself with the PRC sources and I don't know the debugging strategy, so I could really use a hand here.

Please let me know if any additional information is required.

Thank you for reading, and for any help you may have to offer.

Cheers :)

Pages: [1]