Author Topic: Trouble getting SIMTools chat logging to function  (Read 486 times)

Legacy_paopufruito

  • Newbie
  • *
  • Posts: 26
  • Karma: +0/-0
Trouble getting SIMTools chat logging to function
« on: June 21, 2014, 04:50:59 pm »


               

Hello everyone. I tried to plugin SIMTools to my module, and the chat logging function doesn't seem to work. I tried it with the demo module that SIMTools came with but it didn't appear to work any better. I used the same NWNX + plugins from the SIMTools nwvault page, so I guess everything should be in order.


 


Maybe I'm looking in the wrong place? Perhaps the log file is stored elsewhere?


 


If it helps, this is my NWNX.ini file.



; NWNX2 configuration file
; These are the default values for NWNX2. Values specified on the command
; line take precedence.

[NWNX]
ServerPort = 5121
ModuleName = "SIMTools_Test"
WatchdogProcess = yes
UpdateIntervalProcess = 5
WatchdogGamespy = yes
UpdateIntervalGamespy = 20
GamespyRetries = 5
OldGamespyProtocol = no
RestartDelay = 5

[ODBC2]
; Log file
MaxLogSize = 512 ; in KByte
LogLevel = 1 ; 0=nothing, 1=only errors, 2=everything

; Use these two settings for the SQLite internal database
source = sqlite
file   = sqlite.db

; Use these two settings for ODBC connections
source = odbc
dsn    = nwn

; Use these five settings for MySQL connections
;source = mysql
;server = localhost
;user   = nwn
;pwd    = nwn
;db     = nwn

; Set hookscorco to false if you want to disable hooking of
; StoreCampaignObject and RetrieveCampaignObject entirely
hookscorco = true

[PROFILER]
MaxLogSize = 512 ; in KByte
LogLevel = 1 ; 1=overall statistics, 2=full script callstack

[FIXES]
hide_charlist_levels = 1
hide_charlist_dms = 1
hide_charlist_portraits = 0
copy_vars = 0
compare_vars = 0
keep_hidden_in_conversation = 0
hp_limit = -10
cap_ability_inc = 12
cap_atkbonus_inc = 20
cap_ability_dec = 12
cap_atkbonus_dec = 20

; Set hookscorco to false if you want to disable hooking of
; StoreCampaignObject and RetrieveCampaignObject entirely
hookscorco = true

[CHAT]
chat_script=fky_chat
server_script=fky_chat_srv

Thanks '<img'>



               
               

               
            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
Trouble getting SIMTools chat logging to function
« Reply #1 on: June 26, 2014, 12:59:59 am »


               

Where are you looking for the logging? It goes into the regular log file, if memory serves. Other functionality allows it to go elsewhere, but I'm pretty sure the default scripts just send it to the standard server log (not client log, mind you).


 


Funky



               
               

               
            

Legacy_paopufruito

  • Newbie
  • *
  • Posts: 26
  • Karma: +0/-0
Trouble getting SIMTools chat logging to function
« Reply #2 on: June 26, 2014, 06:57:03 am »


               

I looked in every single log file in my logs.0 folder. I had the RotateServerLogs Boolean switched to 1, would that affect it? Or perhaps it doesn't initialize for a few minutes after starting up?


 


BTW, what is the regular log file? nwserverlog1.txt?



               
               

               
            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
Trouble getting SIMTools chat logging to function
« Reply #3 on: June 26, 2014, 07:19:02 pm »


               

It's something very close to that, yes, though I forget if it has any capital letters. Sorry, it's been a long time since I worked with a standard setup.


 


Did you remember to recompile the module's scripts after you changed the ini?


 


Was the recompile successful? If you get compile errors, the changes won't take, and SIMTools will require the special compiler by Skywing/Virusman if you merge it with other mod events of decent size.


 


Have you put the SIMTools event script in the right events, or merged them?


 


Have you disabled the default bioware chat system? It was added after SIMTools released, and has less functionality by far, as it can't hook tells, but it will interfere with SIMTools.


 


Sorry for the delays in responding, but RL is crazy busy atm.


 


Funky



               
               

               
            

Legacy_paopufruito

  • Newbie
  • *
  • Posts: 26
  • Karma: +0/-0
Trouble getting SIMTools chat logging to function
« Reply #4 on: June 27, 2014, 10:16:26 am »


               

Well, at first I thought it was something wrong with the way I implemented with the module. Instead I opted to host your demo module and see if it will work then (I assume everything is set up right in there) to see if it was related to anything outside the module (such as a bad NWNX install).


 


And I'm unfamiliar with turning off the default bioware chat system '<img'> Is that a NWNX option? Or something in the module?



               
               

               
            

Legacy_Shadooow

  • Hero Member
  • *****
  • Posts: 7698
  • Karma: +0/-0
Trouble getting SIMTools chat logging to function
« Reply #5 on: June 28, 2014, 12:53:22 am »


               


Well, at first I thought it was something wrong with the way I implemented with the module. Instead I opted to host your demo module and see if it will work then (I assume everything is set up right in there) to see if it was related to anything outside the module (such as a bad NWNX install).


 


And I'm unfamiliar with turning off the default bioware chat system '<img'> Is that a NWNX option? Or something in the module?




just keep the OnChat in module events empty


               
               

               
            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
Trouble getting SIMTools chat logging to function
« Reply #6 on: June 28, 2014, 02:50:19 am »


               


Well, at first I thought it was something wrong with the way I implemented with the module. Instead I opted to host your demo module and see if it will work then (I assume everything is set up right in there) to see if it was related to anything outside the module (such as a bad NWNX install).


 


And I'm unfamiliar with turning off the default bioware chat system '<img'> Is that a NWNX option? Or something in the module?




Shad is right on turning off the default. Sorry, that was pretty vague on my part.


 


If you are hosting the demo module and still having problems, there's another issue, likely with either your setup of nwnx or your running of the module. Are you launching it with NWNX? Simply trying to run the mod in test mode from the toolset is not going to get you anywhere (at least with the vanilla toolset F9).


 


You would also need to make sure that the nwnx.ini was configured according to the instructions that came with SIMTools.


 


Funky


               
               

               
            

Legacy_paopufruito

  • Newbie
  • *
  • Posts: 26
  • Karma: +0/-0
Trouble getting SIMTools chat logging to function
« Reply #7 on: June 29, 2014, 06:56:28 am »


               

Man, it's really frustrating getting this to work.


 


And yep, all the times I have tested I have tested it by running NWNX2.exe. I reinstalled GOG's version of NWN to a clean directory and then installed the NWNX files and the SIMTools files there too. Unfortunately I can't look at the SIMTools instructions anymore (because of what's happened to NWVault), but I looked at the default NWNX.ini file that came with your NWNX files and it points to loading the SIMTools test module by default, so I guess that should be the right instructions.


 


Funnily enough, I opened the fky_chat_config file in the SIMTools test mod, and guess what I saw?



const int TEXT_LOGGING_ENABLED = FALSE;

I set it to TRUE, wouldn't compile. It compiled after I downloaded the NWNX toolset extender. Unfortunately, despite that, it still did not work. I really don't know what I am doing wrong at this point.



               
               

               
            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
Trouble getting SIMTools chat logging to function
« Reply #8 on: June 29, 2014, 08:11:37 pm »


               

Hm, I thought the new Vault had preserved all the stuff on the original, but searching for SIMTools there yeilds nada. I'll see if I find a copy of the current download on my home computer tonight.


 


For now, you're on the right track. I suspect now you just need to read the rest of the config file, as there are other text logging options. You would also need to enter at least one DM key (the 8 character public key) if you wanted to see the text ingame as well as in logs. Make sure to save the scripts, then compile, then save the mod, before you try to test.


 


Funky



               
               

               
            

Legacy_paopufruito

  • Newbie
  • *
  • Posts: 26
  • Karma: +0/-0
Trouble getting SIMTools chat logging to function
« Reply #9 on: July 01, 2014, 12:51:51 am »


               

.... I GOT IT WORKING '<img'>


There wasn't anything wrong with your instructions or what I did. Only what happened in this thread: http://forum.bioware...nd-169-rebuild/ Basically, I was compiling/hosting it from a bad NWN Diamond version.


 


After I updated it my GOG Diamond to 1.69, changed the text logging bool to TRUE, and recompiled with the NWN Toolset Extender, it now actually friggin' works! It's awesome.


 


For reference, it is located (by default I believe) in nwnx_chat.txt inside the logs.0 folder.


 


BTW, is it possible to have a timestamp for the logs? I looked inside the config script and found nothing related to it.


 


Also, does the RotateServerLog=0 function in nwnplayer.ini still work? I found it in the wiki but it's actually not inside the .ini.



               
               

               
            

Legacy_FunkySwerve

  • Hero Member
  • *****
  • Posts: 2325
  • Karma: +0/-0
Trouble getting SIMTools chat logging to function
« Reply #10 on: July 05, 2014, 12:12:05 am »


               

Glad you got it working. '<img'>


 


No idea on RotateServerLog. We dump all our logs in custom folders.


 


Funky