I bought a masterwork spyglass from Gregor Samsa. However, the interface didn’t show it moving over the my inventory (still 0/1 showing him as having it), until I switched screens to a different item type and back again, at that point it showed me as having it.
I checked and the error log was this:
RUNTIME ERROR - file: interface\itemstrade.c; line: 1305
invalid index -1 [size:2000]
RUNTIME ERROR - file: interface\itemstrade.c; line: 1305
invalid array index
RUNTIME ERROR - file: interface\itemstrade.c; line: 1305
function 'DoTradeOperation' stack error
RUNTIME ERROR - file: interface\itemstrade.c; line: 874
Unknown data type
I looked up the source of the error in itemstrade.c, and it was this code:
// TIH --> auto-equip better spyglass if bought another Jul15'06
if ( nTradeQuantity > 0 && CheckAttribute(itemref,"groupID") ) {
if ( itemref.groupID == SPYGLASS_ITEM_TYPE ) {
if( sti(itemref.quality) > sti(Items[GetItemIndex(GetCharacterEquipByGroup(refMyCh,SPYGLASS_ITEM_TYPE))].quality) ) {
RemoveCharacterEquip(refMyCh, SPYGLASS_ITEM_TYPE);// remove equip of old one
EquipCharacterByItem(refMyCh, itmName);// equip the new better one
}
}
}
// TIH <-- auto-equip better spyglass
I checked and I hadn’t had a spyglass equipped beforehand. I imagine this glitch occurs when you try to buy a spyglass without one currently equipped.
Very minor glitch, but thought I’d report it.
I checked and the error log was this:
RUNTIME ERROR - file: interface\itemstrade.c; line: 1305
invalid index -1 [size:2000]
RUNTIME ERROR - file: interface\itemstrade.c; line: 1305
invalid array index
RUNTIME ERROR - file: interface\itemstrade.c; line: 1305
function 'DoTradeOperation' stack error
RUNTIME ERROR - file: interface\itemstrade.c; line: 874
Unknown data type
I looked up the source of the error in itemstrade.c, and it was this code:
// TIH --> auto-equip better spyglass if bought another Jul15'06
if ( nTradeQuantity > 0 && CheckAttribute(itemref,"groupID") ) {
if ( itemref.groupID == SPYGLASS_ITEM_TYPE ) {
if( sti(itemref.quality) > sti(Items[GetItemIndex(GetCharacterEquipByGroup(refMyCh,SPYGLASS_ITEM_TYPE))].quality) ) {
RemoveCharacterEquip(refMyCh, SPYGLASS_ITEM_TYPE);// remove equip of old one
EquipCharacterByItem(refMyCh, itmName);// equip the new better one
}
}
}
// TIH <-- auto-equip better spyglass
I checked and I hadn’t had a spyglass equipped beforehand. I imagine this glitch occurs when you try to buy a spyglass without one currently equipped.
Very minor glitch, but thought I’d report it.
