View previous topic :: View next topic |
Author |
Message |
DarkSet
Joined: 06 Jun 2016 Posts: 98
|
Posted: Sat Oct 07, 2017 14:43 Post subject: |
|
|
My server crushed recently, I have this in nwnx.txt:
Code: | * Function not specified.* Function not specified.* Library PATCH!SWITCH does not exist.* Library PATCH!SWITCH does not exist.* Library PATCH!SWITCH does not exist.* Library PATCH!SWITCH does not exist.* Library PATCH!SWITCH does not exist.* Library PATCH!SWITCH does not exist.* Library PATCH!SWITCH does not exist.* Library PATCH!SWITCH does not exist.* Library PATCH!SWITCH does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!FUNCS!431 does not exist.* Library PATCH!FUNCS!431 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* Library PATCH!VERIFY does not exist.* Library PATCH!FUNCS!9 does not exist.* L |
Is it normal or this shows the crash reason?
I use latest nwnx_patch |
|
Back to top |
|
|
ShaDoOoW
Joined: 20 Aug 2005 Posts: 584
|
Posted: Sat Oct 07, 2017 17:13 Post subject: |
|
|
That will most likely be correct because nwnx_patch doesn't use NWNX API. What the last few lines in nwnx_patch.txt and nwnserverlog0.txt? Not that I think it will show anything... _________________ Community Patch / NWNX Patch / NWNX Files / NWNX Connect |
|
Back to top |
|
|
DarkSet
Joined: 06 Jun 2016 Posts: 98
|
Posted: Sat Oct 07, 2017 21:32 Post subject: |
|
|
well, nwnx_patch.txt is not copied on restart to history folder so it's overwritten with log after auto-up of the server.
nwnserverlog shows nothing special.
My player told me he used one feature just before the restart where I use function to set item value. This function from nwn_funcs crushed server, nwn_patch one worked before, but maybe this is it.
BTW, after restart item value changes back to original and sometimes players can't enter server, as I've set value lesser, then original and char equiped it and after restart it's value came back and item become inapropriate to low level char.
Can you advise something to avoid it? |
|
Back to top |
|
|
ShaDoOoW
Joined: 20 Aug 2005 Posts: 584
|
Posted: Sat Oct 07, 2017 21:46 Post subject: |
|
|
DarkSet wrote: | well, nwnx_patch.txt is not copied on restart to history folder so it's overwritten with log after auto-up of the server.
nwnserverlog shows nothing special.
My player told me he used one feature just before the restart where I use function to set item value. This function from nwn_funcs crushed server, nwn_patch one worked before, but maybe this is it.
BTW, after restart item value changes back to original and sometimes players can't enter server, as I've set value lesser, then original and char equiped it and after restart it's value came back and item become inapropriate to low level char.
Can you advise something to avoid it? |
Hmm nwnx_patch is copied into subfolders in my version of nwn. This is not a nwnx_patch problem but nwnx2.exe iirc. Maybe someone knows.
What are you doing exactly? Send me code into PM, I will take a look. _________________ Community Patch / NWNX Patch / NWNX Files / NWNX Connect |
|
Back to top |
|
|
Antegate
Joined: 20 Apr 2012 Posts: 100
|
Posted: Mon Oct 09, 2017 10:17 Post subject: |
|
|
ShaDoOoW
Maybe, you do know the formula for calculating the goldvalue of items? =) |
|
Back to top |
|
|
ShaDoOoW
Joined: 20 Aug 2005 Posts: 584
|
Posted: Mon Oct 09, 2017 10:36 Post subject: |
|
|
Antegate wrote: | ShaDoOoW
Maybe, you do know the formula for calculating the goldvalue of items? =) |
no because it is extremely complicated and there are weird multipliers
adding itemproperty that costs 100gp does not always increase cost by 100gp, the actual value is multiplied by number of itemproperties and current cost, don't know more
"Additional cost" is exception that value is always added to the base cost however additional cost is limited to something like 35k and cannot be negative. That makes it unusable for modifying item value anyway.
I recommed to use CPP Item Cost Parameter or CEP's Increased Item Cost itemproperty. CPP has also scripting functions for this so it can be applied dynamically. However due to the weird cost calculation, it is nearly impossible to use it to set cost to exact value you want.
At any rate, there are two reason why would you want to change item cost.
1) selling item to merchants
2) modify ILR
And nwnx_patch allows to modify ILR by setting local variable CILR int X on item. _________________ Community Patch / NWNX Patch / NWNX Files / NWNX Connect |
|
Back to top |
|
|
Antegate
Joined: 20 Apr 2012 Posts: 100
|
Posted: Mon Oct 09, 2017 10:56 Post subject: |
|
|
I wanted to change prices for econоmic and craft system.
EDIT:
How reliable are the local variables on items? |
|
Back to top |
|
|
DarkSet
Joined: 06 Jun 2016 Posts: 98
|
Posted: Mon Oct 09, 2017 22:46 Post subject: |
|
|
Antegate wrote: | I wanted to change prices for econоmic and craft system.
EDIT:
How reliable are the local variables on items? |
if you want to change all economic - it's better to modify 2da's where costs are given I think.
Local variables on items are reliable, item cost changes are not. It can go back or go wild at any point. nwnx_funcs function for it just crash me server, nwnx_patch function works, but you have to play with base cost and additional cost. Additional is rather good. Base is awfull, I made some attempts for it and no real success.
If you'll be more succesffull - please share your win story!
So, local variables on items when they are on char are stored in char file, it's reliable. If you use DB and use functions to save object to DB and object is item - it's also reliable, I used that.
But if you make copy of an item in scripts - I'm not sure if variables are copied as well. If you sell item to the store and there is already item with the same tag and resref - you'll probably see only 1 item in the store and who knows what vars it will have. When you buy item from the store - who knows again what you get. |
|
Back to top |
|
|
Valgav
Joined: 28 Aug 2010 Posts: 53
|
Posted: Tue Oct 10, 2017 0:07 Post subject: |
|
|
DarkSet wrote: |
if you want to change all economic - it's better to modify 2da's where costs are given I think. |
What if you would disable every cost in 2da(set it to zero) then manipulate base cost using variables? |
|
Back to top |
|
|
highv priest
Joined: 01 Mar 2013 Posts: 111
|
Posted: Tue Oct 10, 2017 2:32 Post subject: |
|
|
It's too bad they deleted the BioWare forums. I had calculated the algorithm for item cost on there. Give me a few days and I'll see if I can figure it out again. |
|
Back to top |
|
|
DarkSet
Joined: 06 Jun 2016 Posts: 98
|
Posted: Tue Oct 10, 2017 10:52 Post subject: |
|
|
Valgav wrote: | DarkSet wrote: |
if you want to change all economic - it's better to modify 2da's where costs are given I think. |
What if you would disable every cost in 2da(set it to zero) then manipulate base cost using variables? |
May work, just use additional cost instead. Dont touch base cost. |
|
Back to top |
|
|
Antegate
Joined: 20 Apr 2012 Posts: 100
|
Posted: Tue Oct 10, 2017 19:14 Post subject: |
|
|
What is the maximum number of spells a hero can know?
I accidentally forgot to add cls_spopt_wiz and when rising the level I had about 65000+ points to learn spells ))
|
|
Back to top |
|
|
Antegate
Joined: 20 Apr 2012 Posts: 100
|
Posted: Tue Oct 10, 2017 21:43 Post subject: |
|
|
ShaDoOoW
Barbarian 9, Wizard 2
When adding a level wizard 3 - points to select the spells 8194.
INT 15
Your cls_spopt_wiz in hakpak.
If you refuse level up and rised for the new - the figure varies from 8-60 thousand points
screen
https://wmpics.pics/upload/images/I9EZ.jpg
Quote: | o Initializing racial_types.2da.
o racial_types.2da loaded.
o done.
o Initializing spells.2da.
o spells.2da loaded.
o Initializing spells_level.2da.
o spells_level.2da loaded.
o Initializing classes.2da.
o classes.2da loaded.
o Initializing cls_spopt_wiz.2da.
o cls_spopt_wiz.2da loaded.
o Initializing cls_prog_palema.2da.
o cls_prog_palema.2da loaded.
o done.
o Initializing racial_types.2da.
o racial_types.2da already initialized. Unloading content.
o racial_types.2da loaded.
o done.
o Initializing spells.2da.
o spells.2da already initialized. Unloading content.
o spells.2da loaded.
o Initializing spells_level.2da.
o spells_level.2da already initialized. Unloading content.
o spells_level.2da loaded.
o Initializing classes.2da.
o classes.2da already initialized. Unloading content.
o classes.2da loaded.
o Initializing cls_spopt_wiz.2da.
o cls_spopt_wiz.2da already initialized. Unloading content.
o cls_spopt_wiz.2da loaded.
o Initializing cls_prog_palema.2da.
o cls_prog_palema.2da already initialized. Unloading content.
o cls_prog_palema.2da loaded.
o done. |
|
|
Back to top |
|
|
Antegate
Joined: 20 Apr 2012 Posts: 100
|
Posted: Tue Oct 10, 2017 22:00 Post subject: |
|
|
I clicked all by default. After several failures to rised the level up everything returned to normal - 2 points returned. |
|
Back to top |
|
|
ShaDoOoW
Joined: 20 Aug 2005 Posts: 584
|
Posted: Tue Oct 10, 2017 22:34 Post subject: |
|
|
Antegate wrote: | I clicked all by default. After several failures to rised the level up everything returned to normal - 2 points returned. |
I need savegame where attempt to level as witzard triggers the bug. _________________ Community Patch / NWNX Patch / NWNX Files / NWNX Connect |
|
Back to top |
|
|
|