It seems that you're using an outdated browser. Some things may not work as they should (or don't work at all).
We suggest you upgrade newer and better browser like: Chrome, Firefox, Internet Explorer or Opera

×
Weird game crash when trying to enter Umpani Base Camp,

Debug assertion in module C:\Projects\Wizardry 8\Local code\PC
Item.cpp line 578 failed:

Experssion [ uiMAX_DICE(pMulti) < 256 ] evaluates to false.

Anyone know what's going on?
No posts in this topic were marked as the solution yet. If you can help, add your reply
Do not know whats going on there,
have seen dozens of different types of Wiz8 error messages during testplays of mods,
but almost certainly none which contained the term "..uiMAX_DICE..."

In the exe the full message in that section is:
___
InitNewItem: ERROR - Invalid multi code
uiMAX_DICE(pMulti) < 256
___

Are you playing the original game or a mod, respectively did changes on the game or a save in some way?

Which version is the exe? (see upper right on the main menu screen)

Was it the 1st time you entered the Umpani Base Camp (UBC) ?

Can you safely reproduce the crash, i.e. does it always happen when you enter UBC?

Do you have an Alchemist in party? (because of the "new" in "initNewItem" )

The part "PC Item.cpp" makes me guess it may by related to an item somewhere in your parties inventory,
if true the crash may not happen if you drop all items on the ground before you enter the camp,
(the quest items you can not drop on the ground can be put into a container, e.g. a chest with lid)
Then again, i fail to recognize a reason why the crash only happens if you enter the camp.
The "< 256" indicates its an issue of numbers,
e.g. more than 256 arrows in a single stack somewhere in the camp,
but i fail to recognize how they get there.

So, no conclusive theory, sorry,
perhaps your reply will shine some light into the shade.
Post edited May 12, 2020 by townltu
Sorry, after some sleep and a few hour of testing, i found out its because of the musket...

Played around with CosmicForgeU and i think that breaks the gun, so once i throw it away, i cound enter now,

sorry, and thanks for the help :D

PS : it's also the musket balls as well.
Post edited May 12, 2020 by Middlestick
avatar
Middlestick: Weird game crash when trying to enter Umpani Base Camp,

Debug assertion in module C:\Projects\Wizardry 8\Local code\PC
Item.cpp line 578 failed:

Experssion [ uiMAX_DICE(pMulti) < 256 ] evaluates to false.

Anyone know what's going on?
I ran into this on a chest I edited. It appears the stack item quantity max is 255. For example, if you edited bullet stone stacks to have > 255, and there are stones on the ground for pickup, it will run this error.

It appears the maximum space allowed for picked up items is 2 hexadecimal characters (FF being the maximum at 255).

_

I tested this with a chest. I set stones to 1000 per stack and got the error. Set them to 256, and got the error.
When I set the item to 255, the err didn't recur.

If you're getting the error from just entering the Base, there may be something in that area with a single stacked item (on the ground) with more then 255 in the stack.

Side note and other semi-related:
The only way I can see (could be wrong) that the musket would be the problem is if you changed the max charges to be > 255.

If you've mod-ed or used the forge to change musket balls, try reducing it to 255 per stack and see if that fixes the problem without having to drop equipment.


Gold's maximum is 255*255 + 32000 maximum without error.
Post edited July 03, 2021 by Porter83