Jump to content

Blank char value causing issues with script


Recommended Posts

I'm using _MemoryRead to gather information from a game, in this case it's my characters name. This particular game stores the name in memory over several different addresses like so...

00A89920 - S
00A89921 - U
00A89922 - N
00A89923 - B
00A89924 - E
00A89925 - A
00A89926 - M

I'm trying to read each individual address and then put them all together into a single value..
Example: 

    $Char0 = _MemoryRead("0x00A89920",$ReadMem, "char")
    $Char1 = _MemoryRead("0x00A89921",$ReadMem, "char")
    $Char2 = _MemoryRead("0x00A89922",$ReadMem, "char")
    $Char3 = _MemoryRead("0x00A89923",$ReadMem, "char")
    $Char4 = _MemoryRead("0x00A89924",$ReadMem, "char")
    $Char5 = _MemoryRead("0x00A89925",$ReadMem, "char")
    $Char6 = _MemoryRead("0x00A89926",$ReadMem, "char")
    $Char7 = _MemoryRead("0x00A89927",$ReadMem, "char")
    $Char8 = _MemoryRead("0x00A89928",$ReadMem, "char")
    $Char9 = _MemoryRead("0x00A89929",$ReadMem, "char")

   $GetID = $Char0 & $Char1 & $Char2 & $Char3 & $Char4 & $Char5 & $Char6 & $Char7 & $Char8 & $Char9
    

And this works FINE up until this point.. However since there's a 10 character limit for your character name if you're reading "SunBeam" which is only 7 Characters, the last 3 are just blank... This is keeping the rest of my code from executing because I am displaying the information in a ToolTip function.. I get the character name but none of the other information...

    ToolTip(""& _
    "Name: " & String($GetID) & @CRLF & _
    "Level: " & $Level & @CRLF & _
    "Class: " & $Class & @CRLF & _
    "Location: " & $MapID & @CRLF & _
    "Server: " & $iServ & @CRLF & @CRLF & _
    "Current HP: " & $CurHP & "/" & $MaxHP & @CRLF & _
    "Current MP: " & $CurMP & "/" & $MaxMP & @CRLF & _
    "Current SP: " & $CurSP & "/" & $MaxSP & @CRLF & @CRLF & _
    "Monster Kills: " & $mKill & @CRLF & _
    "Total Attacks: " & $cAttk & @CRLF & _
    "Earned XP: " & $sesXP & @CRLF & _
    "Earned GP: " & $EarnedGP & @CRLF & _
    "Next Lvl XP: " & $curNL & @CRLF & @CRLF & _
    "Threat Level: " & $DangerLv & @CRLF & _
    "Curren Action: " & $CurAction & @CRLF,0,0,"PT-DataMine")

Link to comment
Share on other sites

  • Moderators

SunBeamXD,

Welcome to the AutoIt forum.

Unfortunately you appear to have missed the Forum rules on your way in. Please read them now - particularly the bit about not discussing game interaction - and then you will understand why you will get no help and this thread will now be locked.

See you soon with a legitimate question I hope.

M23

Public_Domain.png.2d871819fcb9957cf44f4514551a2935.png Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind

Open spoiler to see my UDFs:

Spoiler

ArrayMultiColSort ---- Sort arrays on multiple columns
ChooseFileFolder ---- Single and multiple selections from specified path treeview listing
Date_Time_Convert -- Easily convert date/time formats, including the language used
ExtMsgBox --------- A highly customisable replacement for MsgBox
GUIExtender -------- Extend and retract multiple sections within a GUI
GUIFrame ---------- Subdivide GUIs into many adjustable frames
GUIListViewEx ------- Insert, delete, move, drag, sort, edit and colour ListView items
GUITreeViewEx ------ Check/clear parent and child checkboxes in a TreeView
Marquee ----------- Scrolling tickertape GUIs
NoFocusLines ------- Remove the dotted focus lines from buttons, sliders, radios and checkboxes
Notify ------------- Small notifications on the edge of the display
Scrollbars ----------Automatically sized scrollbars with a single command
StringSize ---------- Automatically size controls to fit text
Toast -------------- Small GUIs which pop out of the notification area

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...