Results 1 to 12 of 12
  1. #1
    maxrio's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    44
    Reputation
    10
    Thanks
    1
    My Mood
    Fine

    Question Sdk Game Crashed

    First of all,after many days Thanks for ccman32 explaining knife boost ,and I found it .thank you very much.

    New problem about ue AVA sdk:

    In the hookprocessEvent()

    Code:
    		if (!strcmp(FunctionName, "Function avaGame.avaGameViewportClient.PostRender"))
    		{
    			UGameViewportClient* viewport = (UGameViewportClient*)pCallObject;
    
    			Logf("viewport = (UGameViewportClient*)pCallObject\n");
    
    			if (viewport)
    			{
    				UGameViewportClient_eventPostRender_Parms* parameters = (UGameViewportClient_eventPostRender_Parms*)pParms; 
    
    				Logf("parameters = (UGameViewportClient_eventPostRender_Parms*)pParms\n");
    
    				if (parameters)
    				{
    				//	PostRender(parameters->Canvas); // when do this game crashed
    					Logf("//PostRender(parameters->Canvas); //  if don't do postRender ,logf success,and game not crash
    				}
    			}
    		}

    Code:
    void PostRender ( UCanvas* pCanvas ) //Hooked postrender, draw stuff here!
    {
    	if (pCanvas)
    	{
    		Logf("=In the DrawCrossHair=");
    		DrawCossHair(pCanvas); // Crash here
    	}
    	
    }

    Code:
    void DrawCossHair(UCanvas* pCanvas)
    {
    	Logf("=In CrossHair=\n");
    	FColor Green = MakeColor(0,255,0,255);
    
    	Logf("=Ready Draw2DLine=\n");
    	pCanvas->UCanvas::Draw2DLine(200, 200, 400, 400, Green);//Error
    	Logf("=After Draw2DLine=\n");
    
    //	pCanvas->Draw2DLine(pCanvas->ClipX/2 ,pCanvas->ClipY/2 -10, pCanvas->ClipX/2 ,pCanvas->ClipY/2 +10,Green);// Crashed Here
    	Logf("=End CrossHair=\n");
    }

    So the problem is why when Draw2DLine cause crash.

    Since do this success,

    hookProcess
    {
    ...........
    // postRender(); don't do this ,don't draw2Dline.
    log() ;
    ..........
    }


    need master for help, so
    @ccman32
    @AVA PlaYe
    @Riddick
    @bollafa

  2. #2
    maxrio's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    44
    Reputation
    10
    Thanks
    1
    My Mood
    Fine

    Question

    When don't PostRender()

    Code:
    =new toolkit::VMTHook(obj)=
    =Hook->GetMethod<tProcessEvent>(59) =
    =HookMethod(&hkProcessEvent, 59=
    <<<<<<<<<<Function Engine.GameViewportClient.Tick>>>>>>>>
    <<<<<<<<<<Function avaGame.avaGameViewportClient.LayoutPlayers>>>>>>>>
    <<<<<<<<<<Function Engine.GameViewportClient.GetSubtitleRegion>>>>>>>>
    <<<<<<<<<<Function avaGame.avaGameViewportClient.PostRender>>>>>>>>
    viewport = (UGameViewportClient*)pCallObject
    parameters = (UGameViewportClient_eventPostRender_Parms*)pParms
    //PostRender(parameters->Canvas); // call a hooked postrender method
    <<<<<<<<<<Function Engine.GameViewportClient.Tick>>>>>>>>
    <<<<<<<<<<Function avaGame.avaGameViewportClient.LayoutPlayers>>>>>>>>
    <<<<<<<<<<Function Engine.GameViewportClient.GetSubtitleRegion>>>>>>>>
    <<<<<<<<<<Function avaGame.avaGameViewportClient.PostRender>>>>>>>>
    viewport = (UGameViewportClient*)pCallObject
    parameters = (UGameViewportClient_eventPostRender_Parms*)pParms
    //PostRender(parameters->Canvas); // call a hooked postrender method
    <<<<<<<<<<Function Engine.GameViewportClient.Tick>>>>>>>>
    <<<<<<<<<<Function avaGame.avaGameViewportClient.LayoutPlayers>>>>>>>>
    <<<<<<<<<<Function Engine.GameViewportClient.GetSubtitleRegion>>>>>>>>
    <<<<<<<<<<Function avaGame.avaGameViewportClient.PostRender>>>>>>>>
    viewport = (UGameViewportClient*)pCallObject
    parameters = (UGameViewportClient_eventPostRender_Parms*)pParms
    //PostRender(parameters->Canvas); // call a hooked postrender method
    <<<<<<<<<<Function Engine.GameViewportClient.Tick>>>>>>>>
    <<<<<<<<<<Function avaGame.avaGameViewportClient.LayoutPlayers>>>>>>>>
    <<<<<<<<<<Function Engine.GameViewportClient.GetSubtitleRegion>>>>>>>>
    <<<<<<<<<<Function avaGame.avaGameViewportClient.PostRender>>>>>>>>
    log loop in postRender and log.txt became larger, game will not crash;


    When postRender()

    log:
    Code:
    In CrossHair=
    =Ready Draw2DLine=
    and game crashed,not more logs

  3. #3
    muhavich's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    On chair
    Posts
    48
    Reputation
    10
    Thanks
    7
    My Mood
    Yeehaw
    Wish i can help bro ..

  4. #4
    maxrio's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    44
    Reputation
    10
    Thanks
    1
    My Mood
    Fine
    Well,tell me..please

  5. #5
    Artificial intelligence is no match for natural stupidity
    Premium Member
    Frought's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    In the dark island
    Posts
    3,399
    Reputation
    156
    Thanks
    5,950
    My Mood
    Cool
    You don't know what you're doing . Why you are using Logf? It is already drawing the cross hair. And explain better since I don't understand your English.
    If the facts don't fit the theory, change the facts.
    Learn from yesterday, live for today, hope for tomorrow. The important thing is not to stop questioning.
    Try not to become a man of success, but rather try to become a man of value.
    You have to learn the rules of the game. And then you have to play better than anyone else.

    -Albert Einstein



  6. #6
    maxrio's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    44
    Reputation
    10
    Thanks
    1
    My Mood
    Fine
    Quote Originally Posted by Navorite View Post
    You don't know what you're doing . Why you are using Logf? It is already drawing the cross hair. And explain better since I don't understand your English.
    Logf("=Ready Draw2DLine=\n");
    pCanvas->UCanvas:raw2DLine(200, 200, 400, 400, Green);//Error
    Logf("=After Draw2DLine=\n");

    Sorry for my bad English...

    log: =Ready Draw2DLine= , Before draw2dline,program can run to here.

    but can't see log:=After Draw2DLine=

    So,the problem is in the DrawLine;

  7. #7
    Artificial intelligence is no match for natural stupidity
    Premium Member
    Frought's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    In the dark island
    Posts
    3,399
    Reputation
    156
    Thanks
    5,950
    My Mood
    Cool
    Quote Originally Posted by maxrio View Post
    Logf("=Ready Draw2DLine=\n");
    pCanvas->UCanvas:raw2DLine(200, 200, 400, 400, Green);//Error
    Logf("=After Draw2DLine=\n");

    Sorry for my bad English...

    log: =Ready Draw2DLine= , Before draw2dline,program can run to here.

    but can't see log:=After Draw2DLine=

    So,the problem is in the DrawLine;
    Code:
    void DrawCossHair(UCanvas* pCanvas)
    {
    	Logf("=In CrossHair=\n");
    	FColor Green = MakeColor(0,255,0,255);
    
    	Logf("=Ready Draw2DLine=\n");
    	pCanvas->UCanvas::Draw2DLine(200, 200, 400, 400, Green);//Error
    	Logf("=After Draw2DLine=\n");
    
    //	pCanvas->Draw2DLine(pCanvas->ClipX/2 ,pCanvas->ClipY/2 -10, pCanvas->ClipX/2 ,pCanvas->ClipY/2 +10,Green);// Crashed Here
    	Logf("=End CrossHair=\n");
    }
    Change to :
    Code:
    void DrawCossHair(UCanvas* pCanvas)
    {
    	Logf("=In CrossHair=\n");
    	FColor Green = MakeColor(0,255,0,255);
    
    	Logf("=Ready Draw2DLine=\n");
    	pCanvas->Draw2DLine(200, 200, 400, 400, Green);
    	Logf("=After Draw2DLine=\n");
    
    //	pCanvas->Draw2DLine(pCanvas->ClipX/2 ,pCanvas->ClipY/2 -10, pCanvas->ClipX/2 ,pCanvas->ClipY/2 +10,Green);
    	Logf("=End CrossHair=\n");
    }
    If the facts don't fit the theory, change the facts.
    Learn from yesterday, live for today, hope for tomorrow. The important thing is not to stop questioning.
    Try not to become a man of success, but rather try to become a man of value.
    You have to learn the rules of the game. And then you have to play better than anyone else.

    -Albert Einstein



  8. #8
    maxrio's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    44
    Reputation
    10
    Thanks
    1
    My Mood
    Fine
    Quote Originally Posted by Navorite View Post

    Code:
    void DrawCossHair(UCanvas* pCanvas)
    {
    	Logf("=In CrossHair=\n");
    	FColor Green = MakeColor(0,255,0,255);
    
    	Logf("=Ready Draw2DLine=\n");
    	pCanvas->UCanvas::Draw2DLine(200, 200, 400, 400, Green);//Error
    	Logf("=After Draw2DLine=\n");
    
    //	pCanvas->Draw2DLine(pCanvas->ClipX/2 ,pCanvas->ClipY/2 -10, pCanvas->ClipX/2 ,pCanvas->ClipY/2 +10,Green);// Crashed Here
    	Logf("=End CrossHair=\n");
    }
    Change to :
    Code:
    void DrawCossHair(UCanvas* pCanvas)
    {
    	Logf("=In CrossHair=\n");
    	FColor Green = MakeColor(0,255,0,255);
    
    	Logf("=Ready Draw2DLine=\n");
    	pCanvas->Draw2DLine(200, 200, 400, 400, Green);
    	Logf("=After Draw2DLine=\n");
    
    //	pCanvas->Draw2DLine(pCanvas->ClipX/2 ,pCanvas->ClipY/2 -10, pCanvas->ClipX/2 ,pCanvas->ClipY/2 +10,Green);
    	Logf("=End CrossHair=\n");
    }

    Well, pCanvas->Draw2DLine(200, 200, 400, 400, Green); Still cause game crash,when I try many times.

    I just found that ,pCanvas->Functions all of the functions belong to pCanvas would crash the game, Is the problem of Outdate sdk ?

  9. #9
    Artificial intelligence is no match for natural stupidity
    Premium Member
    Frought's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    In the dark island
    Posts
    3,399
    Reputation
    156
    Thanks
    5,950
    My Mood
    Cool
    Quote Originally Posted by maxrio View Post
    Well, pCanvas->Draw2DLine(200, 200, 400, 400, Green); Still cause game crash,when I try many times.

    I just found that ,pCanvas->Functions all of the functions belong to pCanvas would crash the game, Is the problem of Outdate sdk ?
    You were using the old sdk ? You have to generate another one because after every update for AVA they change PE , GOs and GNs.
    If the facts don't fit the theory, change the facts.
    Learn from yesterday, live for today, hope for tomorrow. The important thing is not to stop questioning.
    Try not to become a man of success, but rather try to become a man of value.
    You have to learn the rules of the game. And then you have to play better than anyone else.

    -Albert Einstein



  10. #10
    maxrio's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    44
    Reputation
    10
    Thanks
    1
    My Mood
    Fine
    Quote Originally Posted by Navorite View Post

    You were using the old sdk ? You have to generate another one because after every update for AVA they change PE , GOs and GNs.
    yes,you are right. I try to generate a new one using The FeckLess sdk generator , I found address of GName .GObject. Processevent with signature.
    but faile to create a new one,the out put file is a empty file foder SDK_HEADERS and a empty log fle UE3SdkGenerator.log.

  11. #11
    maxrio's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Posts
    44
    Reputation
    10
    Thanks
    1
    My Mood
    Fine
    After many days, I finally generate ava sdk using TFL generator, but fail to compile it .too many faults to solve, who can help me ?

  12. #12
    Artificial intelligence is no match for natural stupidity
    Premium Member
    Frought's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    In the dark island
    Posts
    3,399
    Reputation
    156
    Thanks
    5,950
    My Mood
    Cool
    Quote Originally Posted by maxrio View Post
    After many days, I finally generate ava sdk using TFL generator, but fail to compile it .too many faults to solve, who can help me ?
    Solve them manually.
    If the facts don't fit the theory, change the facts.
    Learn from yesterday, live for today, hope for tomorrow. The important thing is not to stop questioning.
    Try not to become a man of success, but rather try to become a man of value.
    You have to learn the rules of the game. And then you have to play better than anyone else.

    -Albert Einstein



  13. The Following User Says Thank You to Frought For This Useful Post:

    muhavich (04-25-2014)

Similar Threads

  1. Game CRash NEED HELP
    By xavierman232 in forum Combat Arms Hacks & Cheats
    Replies: 3
    Last Post: 12-24-2008, 07:44 PM
  2. pic of the game crashing!
    By Spitfire133 in forum Combat Arms Hacks & Cheats
    Replies: 28
    Last Post: 10-29-2008, 08:17 PM
  3. Replies: 4
    Last Post: 10-24-2008, 05:18 PM
  4. Game crashes while finding pointers
    By dragoonleader69 in forum Combat Arms Hacks & Cheats
    Replies: 5
    Last Post: 09-23-2008, 09:44 PM
  5. [HELP REQUEST]Game Crash
    By White Mask in forum WarRock - International Hacks
    Replies: 1
    Last Post: 07-07-2007, 12:33 PM