SunBeamXD

Blank char value causing issues with script

3 posts in this topic

#1 ·  Posted

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...

00A6DDE0
00A6DDE1
00A6DDE2
00A6DDE3
00A6DDE4

Share this post


Link to post
Share on other sites



#2 ·  Posted

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")

Share this post


Link to post
Share on other sites

#3 ·  Posted

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


Any of my own code posted anywhere on the forum is available for use by others without any restriction of any kind._______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

 

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.