CoSMOS Gamehacking Tool

Page 1 of 1
Signup or Login to Post
CT import: unable to compile align
  • Premium Plus
    Send a message to Elandril
    ELITE
    Elandril posted on Sep 06, 2023 6:54:16 AM - Report post
     
    Hello,

    I have loaded some current CT tables with sections. When I try to execute the entry, I get an error message that the instruction "align 10" cannot be compiled. The relevant part looks as follows:

    aobscanmodule(saveChar,$process,?? 8B ?? ?? ?? 8B ?? E8 ?? ?? ?? ?? ?? 8B ?? ?? 0F 10 ?? 0F 10 ?? ?? 44 0F 10 ?? ?? 44 0F 10 ?? ?? 44 0F 10 ?? ?? F2)
    alloc(newmem,$1000,saveChar)

    label(saveCharPtr)
    label(saveCharBkp)
    label(return)

    newmem:
    test r14,r14
    je @f
    xor rcx,rcx
    mov ecx,[r14+34]
    cmp ecx,#20
    jg @f
    mov r9,saveCharPtr
    mov [r9+rcx*8],rax
    saveCharBkp:
    readmem(saveChar,7)
    jmp return

    align 10
    saveCharPtr:
    dq 0
    dq 0
    dq 0
    dq 0
    dq 0
    dq 0
    dq 0
    dq 0
    dq 0
    dq 0
    dq 0
    dq 0
    dq 0
    dq 0
    dq 0
    dq 0
    dq 0
    dq 0
    dq 0
    dq 0

    saveChar:
    jmp newmem
    nop 2
    return:
    registersymbol(saveChar)
    registersymbol(saveCharBkp)
    registersymbol(saveCharPtr)

    Does CoSMOS not support the "align" statement or is there some way to fix the script?

    Thanks and best regards,
    Elandril
  • Trainer Maker
    Send a message to 0x90
    STAFF
    0x90 posted on Sep 06, 2023 2:17:51 PM - Report post
     
    align is currently not supported but you can remove that line and the script should still work.
Page 1 of 1
Signup or Login to Post
All times are (GMT -06:00) Central Time (US & Canada). Current time is 7:24:11 AM