Results 1 to 6 of 6
  1. #1
    niko1921's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Location
    mov Location, eax
    Posts
    130
    Reputation
    36
    Thanks
    261

    DrawText error on mw3

    Hi everyone, i'm triying call DrawText from IW5 engine without R_EndFrame hook or another game func, my code is the following:


    Code:
    void DrawCommonText(float x, float y, float fsize, char* txt)
    {
            // IW5 drawengine...
    	EngineDrawText(txt, strlen(txt), FontA, x, y, fsize, fsize, 0, WHITE, 3);
    }
    
    void InitDraw()
    {
    	while (1)
    	{
    		static int z = 0;
    		DrawCommonText(200, 50, 1, "^6 Working!");
    	
    		Sleep(1);
    
    	}
    }
    
    // called from a new thread created from DllMain();
    void Main()
    {
            HANDLE hProcess = OpenProcess(PROCESS_ALL_ACCESS, false, GetCurrentProcessId());
    
    	DWORD thidr;
    
    	HANDLE thr = CreateRemoteThread(hProcess, NULL, 0, (LPTHREAD_START_ROUTINE)InitDraw, (PVOID)NULL, 0, &thidr);
    
    	if (thr != NULL)
    		MessageBox(NULL, L"Remote thread created!", L"Success!", MB_OK | MB_ICONASTERISK);
    
    }


    well, this works but for a few seconds, then the game crashes telling me something like:


    Name of the problem event: APPCRASH
    ** Name of the application: iw5mp.exe
    ** Application Version: 0.0.0.0
    ** Application timestamp: 4f186c8f
    ** Name of the module with errors: StackHash_0a9e
    ** Module version with errors: 0.0.0.0
    ** Module timestamp with errors: 00000000
    ** Exception code: c0000005
    ** Displacement exception: 3cd82408
    ** Operating system version: 6.1.7601.2.1.0.256.1
    ** Regional Settings Id: 11274
    ** Additional Information 1: 0a9e
    ** Additional Information 2: 0a9e372d3b4ad19135b953a78882e789
    ** Additional Information 3: 0a9e
    ** Additional Information 4: 0a9e372d3b4ad19135b953a78882e789



    Any idea how i can solve it? thanks to all.. Greetings.-

  2. #2
    Silent's Avatar
    Join Date
    Jan 2015
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    5,070
    Reputation
    2172
    Thanks
    8,474
    My Mood
    Bitchy
    Google the exception code.
    https://bfy.tw/9eqj
    Click Here to visit the official MPGH wiki! Keep up with the latest news and information on games and MPGH! To check out pages dedicated to games, see the links below!











    dd/mm/yyyy
    Member - 31/01/2015
    Premium - 12/09/2016
    Call of Duty minion - 05/11/2016 - 05/11/2019
    BattleOn minion - 28/02/2017 - 05/11/2019
    Battlefield minion - 30/05/2017 - 05/11/2019
    Other Semi-Popular First Person Shooter Hacks minion - 21/09/2017 - 17/09/2019
    Publicist - 07/11/2017 - 02/08/2018
    Cock Sucker - 01/12/2017 - Unknown
    Minion+ - 06/03/2018 - 05/11/2019
    Fortnite minion - 08/05/2018 - 05/11/2019
    Head Publicist - 08/10/2018 - 10/01/2020
    Developer Team - 26/10/2019 - 10/01/2020
    Former Staff - 10/01/2020



  3. The Following User Says Thank You to Silent For This Useful Post:

    niko1921 (01-24-2017)

  4. #3
    niko1921's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Location
    mov Location, eax
    Posts
    130
    Reputation
    36
    Thanks
    261
    yes, it is due to a memory constraint, i thinks that it haven't solution, thx *****...
    Last edited by Silent; 07-17-2018 at 08:34 PM.

  5. #4
    niko1921's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Location
    mov Location, eax
    Posts
    130
    Reputation
    36
    Thanks
    261
    Quote Originally Posted by niko1921 View Post
    yes, it is due to a memory constraint, i thinks that it haven't solution, thx *******...
    It's not solved, but i've solved creating my own device on directx...
    close this...
    Last edited by Silent; 07-17-2018 at 08:35 PM.

  6. #5
    殺す必要がある唯一のものは殺されるために準備され人 々である。
    Premium Member
    Hitokiri~'s Avatar
    Join Date
    Oct 2012
    Gender
    female
    Location
    Cancer.
    Posts
    1,201
    Reputation
    24
    Thanks
    937
    My Mood
    Bitchy
    Quote Originally Posted by niko1921 View Post
    It's not solved, but i've solved creating my own device on directx...
    close this...
    Acquire the directx ownership in your thread, draw the text, release ownership.

  7. The Following User Says Thank You to Hitokiri~ For This Useful Post:

    niko1921 (01-31-2017)

  8. #6
    niko1921's Avatar
    Join Date
    Apr 2014
    Gender
    male
    Location
    mov Location, eax
    Posts
    130
    Reputation
    36
    Thanks
    261
    Quote Originally Posted by Hitokiri~ View Post

    Acquire the directx ownership in your thread, draw the text, release ownership.
    Device ptr? yes, i'll try it... thx.

Similar Threads

  1. [Help] Teknogod MW3 Error Exceeded limit of 64 'Attachments' assets
    By kd9au in forum Call of Duty Modern Warfare 3 Private Server Hacks
    Replies: 13
    Last Post: 12-11-2012, 07:18 AM
  2. MW3 DirectX Unrecoverable Error.
    By ERHGAERHAERHEARher in forum Call of Duty Modern Warfare 3 Help
    Replies: 11
    Last Post: 08-13-2012, 09:03 AM
  3. mw3 multiplayer error
    By taco900 in forum Call of Duty Modern Warfare 3 Help
    Replies: 0
    Last Post: 04-19-2012, 05:20 AM
  4. [Help Request] MW3 Server error: the server have a different version : 1.4
    By mattoe123 in forum Call of Duty Modern Warfare 3 Help
    Replies: 6
    Last Post: 01-21-2012, 02:44 AM
  5. MW3 error - need help to resolve it
    By moklin in forum Call of Duty Modern Warfare 3 Help
    Replies: 6
    Last Post: 11-14-2011, 04:32 PM

Tags for this Thread