Deprecated: The behavior of unparenthesized expressions containing both '.' and '+'/'-' will change in PHP 8: '+'/'-' will take a higher precedence in /home/iano/public_html/tpforums-vb5/forum/includes/class_core.php on line 5842

PHP Warning: Use of undefined constant MYSQL_NUM - assumed 'MYSQL_NUM' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_ASSOC - assumed 'MYSQL_ASSOC' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: Use of undefined constant MYSQL_BOTH - assumed 'MYSQL_BOTH' (this will throw an Error in a future version of PHP) in ..../includes/init.php on line 165

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 588

PHP Warning: "continue" targeting switch is equivalent to "break". Did you mean to use "continue 2"? in ..../includes/functions_navigation.php on line 612

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../global.php(29) : eval()'d code(6) : eval()'d code on line 1

PHP Warning: Use of undefined constant misc - assumed 'misc' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant index - assumed 'index' (this will throw an Error in a future version of PHP) in ..../includes/class_bootstrap.php(1422) : eval()'d code(4) : eval()'d code on line 1

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 85

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 85

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 85

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 85

PHP Warning: Use of undefined constant onlinestatusphrase - assumed 'onlinestatusphrase' (this will throw an Error in a future version of PHP) in ..../includes/class_core.php(4684) : eval()'d code on line 6
Codecave PrintText
Page 1 of 8 123 ... LastLast
Results 1 to 10 of 72

Thread: Codecave PrintText

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Super Moderator klusbert's Avatar
    Join Date
    Dec 2007
    Posts
    1,201

    Codecave PrintText

    Hiho!
    Okay I am trying to create a codecave inside tibia to print text onscreen.

    I know I know this is verry unefficient if you want to add more than 1 text, but this is only for learning purpose.

    This is what I've done so far.
    http://imgur.com/rJWJUqh

    And my code:
    http://pastebin.com/p3i7AX3C

    I alloc space in memory for my string than I add that into my codeave, as you can see it reads the string correctly in my debugger.

    The problem with this is everytime I try to execute it It will crash.

    I base my code on this:
    http://pastebin.com/B8aDhLkW


    Updated to 10.77
    Updated to 10.90
    Attached Files Attached Files
    Last edited by klusbert; 12-30-2015 at 10:35 AM.
    How to find battlelist address --> http://tpforums.org/forum/thread-8146.html
    Updating addresses --> http://tpforums.org/forum/thread-8625.html
    DataReader --> http://tpforums.org/forum/thread-10387.html

  2. #2
    Most likely the fact that you're not in sync with the main thread. Also, this would only print that text for a single frame. Also, call is just 0xE9 <offset>. Calculate the function offset by functionAddress - callAddress - 5, or do a PUSH functionAddress, POP eax, CALL eax (that's the way I do it to avoid calculating offsets)

  3. #3
    Quote Originally Posted by DarkstaR View Post
    do a PUSH functionAddress, POP eax, CALL eax
    Would you mind to explain, what does this trick do?

    EDIT:
    Nevermind, got it But, shouldn't eax value be saved somewhere? Something like:

    push eax
    push function address
    pop eax
    call eax
    pop eax
    add esp, 4
    Last edited by szulak; 09-23-2013 at 10:47 AM.

  4. #4
    Senior Member
    Join Date
    Feb 2024
    Location
    SLOT GACOR
    Posts
    953

    Awesome Product Website

    Please try Google before asking about Awesome Product Website 2289ded

  5. #5
    Senior Member
    Join Date
    Feb 2024
    Location
    SLOT GACOR
    Posts
    953

    Best Product Site

    Please try Google before asking about Great Product Guide 289dedb

  6. #6
    Senior Member
    Join Date
    Feb 2024
    Location
    SLOT GACOR
    Posts
    953

    Excellent Digital Marketing Website

    For the person asking about digitalen marketing, ppc in seo, seo advertising agency, boutique digital marketing agency, law firm internet marketing, etel digital agency, content for marketing agency, online digital marketing agency, I highly recommend this total stranger about digital marketing expert Brooks Nunez details or best digital marketing agency in the world, top digital media companies, pay per click consultant, digital commerce agency, organic search engine marketing, website design and digital marketing company, digital marketing services content, digital ad agencies, alongside all this from this source for digital marketing leader Brooks Nunez link and don't forget digital marketing for plumbers, udacity digital marketing, io digital agency, small business online marketing, full service digital marketing company, digital marketing consulting services, marketing por internet, digital marketing analytics, and don't forget this more tips here for digital marketing expert Brooks Nunez tips which is also great. Also, have a look at this recommended digital marketing boss Brooks Nunez link on top of affordable internet marketing services, digital marketing 360, ooh advertising companies, need of online marketing, clutch digital marketing, paid social media agency, digitalen marketing, seo digital marketing, alongside all this what is it worth on digital marketing boss Brooks Nunez link with digital agency marketing, digital marketing firms, digital marketing in hospitality industry, best content marketing agencies, paid online marketing, digital commerce agency, akqa agency, reputation management in digital marketing, for good measure. Check more @ High Rated Digital Marketing Guide 289dedb

  7. #7
    Senior Member
    Join Date
    Feb 2024
    Location
    SLOT GACOR
    Posts
    953

    Recommended Product Blog

    Please try Google before asking about Updated Product Blog b4_595d

  8. #8
    Super Moderator klusbert's Avatar
    Join Date
    Dec 2007
    Posts
    1,201
    Thanks Dark, but I dont think it is a sync issue. Because I Replace call printtext in the printfps function as tibiaApi did. Even than it crashes, but If I reset all registers with pop? than call it? I should try to put my function adr in eax than call eax as you said. Do you have a good site for asm code? like 0x6A = push etc.

    Thanks again!
    How to find battlelist address --> http://tpforums.org/forum/thread-8146.html
    Updating addresses --> http://tpforums.org/forum/thread-8625.html
    DataReader --> http://tpforums.org/forum/thread-10387.html

  9. #9
    Super Moderator klusbert's Avatar
    Join Date
    Dec 2007
    Posts
    1,201
    Thanks Darkstar now I figure it out! It is working great The problem was is in the call( as you already pointed out), now I am using 0xe8 now cuz 0xe9 was jmp But as you said offset are kinda annoying
    http://imgur.com/IgyUA27
    Last edited by klusbert; 09-23-2013 at 02:06 AM.
    How to find battlelist address --> http://tpforums.org/forum/thread-8146.html
    Updating addresses --> http://tpforums.org/forum/thread-8625.html
    DataReader --> http://tpforums.org/forum/thread-10387.html

  10. #10
    Senior Member
    Join Date
    Apr 2008
    Posts
    689
    Quote Originally Posted by klusbert View Post
    Thanks Darkstar now I figure it out! It is working great The problem was is in the call( as you already pointed out), now I am using 0xe8 now cuz 0xe9 was jmp But as you said offset are kinda annoying
    http://imgur.com/IgyUA27
    wow cipsoft's artists are so bad at concepts, cringy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •