Help with Powerbash in 1.24

brized

New Member
Reaction score
0
Hello. I'm trying to use n\/Cl34r's powerbash and it naturally was hosed by the 1.24 patch.

Here's what I've done so far:

I modified Vexorian's Handle Variables Functions to fix the issues per Sevion's Tutorial:
JASS:

function H2I takes handle h returns integer
return GetHandleId(h)
endfunction

function H2U takes handle h returns unit
    return h
    call DoNothing()
    return null
endfunction

function GetHandleHandle takes handle subject, string name returns handle
    return GetStoredInteger(LocalVars(), I2S(H2I(subject)), name)
    call DoNothing()
    return null
endfunction


In the powerbash code itself, I can't find any issues.

I'm unable to find any instances of the return bug.
I'm unable to find any instances of H2I/GetHandleId problems.
I'm unable to find any instances of the Else Return Bug (all instances of "return" in "if" blocks are followed by "endif").
I'm unable to find any instances of local globals.

I've attached a barebones map that just has Vexorian's and n\/Cl34r's code and modified to accommodate the 1.24 changes per the tutorial. The debugger will throw "invalid type for specified operator" unless I disable the powerbash trigger. So...am I missing from Sevion's tutorial, or is there something else causing the error not covered in the tutorial?
 

Attachments

  • TEST_Powerbash.w3x
    23 KB · Views: 204

Karawasa

Element Tower Defense
Reaction score
38
I don't have the time to help you at the moment, but this is the kind of post I like to see. You've clearly taken the initiative and tried to do it yourself. I hope someone comes along and helps you with this.
 

Sevion

The DIY Ninja
Reaction score
413
Give me a sec, let me take a look at the map.

The problem lies in Vex's Handle Vars. They aren't 1.24 compatible. They abuse the return bug, which I heard that the DoNothing trick no longer works. I need to update the tutorial on that.

I might be able to recode the spell to not use Vex's Handle Vars. Give me a bit.

I got it to syntax, not sure if it actually works.
 

Attachments

  • TEST_Powerbash.w3x
    22.9 KB · Views: 216

Sevion

The DIY Ninja
Reaction score
413
what? when? pls elaborate..

Someone had just told me DoNothing will syntax but not "work as intended".

Just what I was told.

BTW, the version I uploaded only works with units (Get/SaveHandleHandle is really Get/SaveHandleUnit)
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top