crashing transmute snippet

viniculum8

Active Member
Code:
function main(int FromLevel, int ToLevel)
{
    variable int i = 1
 
    if ${FromLevel} <= 0 || ${ToLevel} <= 0
    {
        echo "BAD SYNTAX"
        return
    }   
 
    Me:CreateCustomInventoryArray[nonbankonly]
    wait 5
 
    do
    {
        if !${Me.CustomInventory[${i}](exists)}
            continue
 
        if !${Me.CustomInventory[${i}].Tier.Equal[TREASURED]}
            continue
 
        if ${Me.CustomInventory[${i}].Attuned}
            continue
 
        if ${Me.CustomInventory[${i}].NoValue}
            continue
 
        if ${Me.CustomInventory[${i}].Crafter(exists)} && ${Me.CustomInventory[${i}].Crafter.Length} > 0
            continue
 
        if ${Me.CustomInventory[${i}].IsContainer}
            continue
 
        if ${Me.CustomInventory[${i}].Level} < ${FromLevel} || ${Me.CustomInventory[${i}].Level} > ${ToLevel}
            continue
 
        echo "DEBUG:: Transmuting ${Me.CustomInventory[${i}]}."
 
        Me.CustomInventory[${i}]:Transmute
        wait 5
        do
        {
            waitframe
        }
        while ${Me.CastingSpell}
 
        wait 750 ${RewardWindow(exists)}
        RewardWindow:Receive   
        wait 15
    }
    while ${i:Inc}<=${Me.CustomInventoryArraySize}
 
    press ESC
    echo "Script Ended."
}
Results in crashing every time I run it. I have never had it crash before. This is the error. Syntax 2 20 never crashed. I used 45 and its always crashing with these results.

Extension: isxeq2.dll
Extension Crash Info: Crash unhandled by custom extension
Inner Space: Inner Space Kernel 1.09 Build 5039 (Thu Aug 20 22:36:48 2009)
Crash: 0x087D5611: Exception 0xc0000005 reading from address 0x00000001 in module isxeq2.dll
_________________
_CUT OUT MODULES_
_________________

LavishScript Execution Stack:
-----------------------------------
${Me.CustomInventory[${i}].Tier.Equal[TREASURED]}
!${Me.CustomInventory[${i}].Tier.Equal[TREASURED]}

Running Scripts:
-----------------------------------
transmute
 

viniculum8

Active Member
Yeah, that looks like a part of another script altogether. I've heard Ogre is the rage, but I can't afford to subscribe to yet another party at this time. When I can, tho, it's likey that I will do so.
 

Kannkor

Ogre
Inner Space: Inner Space Kernel 1.09 Build 5039 (Thu Aug 20 22:36:48 2009)

While this is likely NOT your problem, this will cause problems at some stage. I recommend upgrading your innerspace when you can. At this stage, I believe the current live build (5240) works on both XP and Win7.


On a side note, I can reproduce the crash.


Me:CreateCustomInventoryArray[nonbankonly]
echo ${Me.CustomInventory[1].Tier.Equal[TREASURED]}

kaboom.
 

viniculum8

Active Member
I don't know what is happening to be honest. It won't crash when I /run transmute 2 20. It runs just fine. But I go and start working on a new tier. 32, 45, etc items. It crashes.

Any coder provide any insight as to what might be the cause? :confused:

Edit to add:
Upon running Craft to transmute items after making them, there is an error that dumps the game as well.

Code:
${Me.Inventory[${ItemsCreated.Get[${ItemsCreated.Used}]}].Tier.Equal[MASTERCRAFTED]}
 ${Me.Inventory[${ItemsCreated.Get[${ItemsCreated.Used}]}].Tier.Equal[MASTERCRAFTED]}
 
Last edited:
Top Bottom