Results 1 to 7 of 7
  1. #1
    falzarex's Avatar
    Join Date
    Apr 2008
    Gender
    male
    Location
    here
    Posts
    417
    Reputation
    14
    Thanks
    145

    [release]better stride logger than the simple + - value ones :D

    boo
    i wanna announce my return(although i will be going away again in a short time)by releasing this logger(i think some peepz here know abt this)

    What this does is basically get the number of textures loaded and logged and actually the strides/numverts/primcount

    i wont be telling you what to modify(anti-choob protection) to make it work

    variable explanations(hinthint *globals not every one of them are*):
    bool method -- bool to choose to enable chams while logging to find the logged texture on player model
    bool bHave -- bool check to enable the logger output after the value counter has finished logging
    UINT curl=0 -- current logged texture(this will be output)
    UINT curr=0 -- no of textures loaded(a bit fuzzy about this ;p)

    UINT stri[50000];
    UINT vert[50000];
    UINT prim[50000]; -- arrays to hold the values of each param

    char numvertstr[20];
    char stridestr[20];
    char primcountstr[20];
    char currstr[20];
    char curlstr[20]; -- to hold character strings for output

    Main logger code(what this does is to get the number of stride/prim/vert values through looping and break once all the values are logged):
    Code:
    if(CH_stridelogger == 1){
    		bool bHave=false;
    		for(int i=0;i<50000;i++){ if(stri[i]==m_Stride && vert[i]==NumVertices && prim[i]==PrimitiveCount){ bHave=true; break; } }
    		if(!bHave){
    			stri[curr]=m_Stride;
    			vert[curr]=NumVertices;
    			prim[curr]=PrimitiveCount;
    			curr++;
    		}
    
    		if(stri[curl]==m_Stride && vert[curl]==NumVertices && prim[curl]==PrimitiveCount){
    			if(method){ return NULL; }
    			else{ 
    				Device_Interface->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
    				Device_Interface->SetRenderState(D3DRS_ZFUNC,D3DCMP_NEVER);
    				Device_Interface->SetPixelShader(cRed); 
    			}
    		}
    Logging Code:
    Code:
    itoa(vert[curl], numvertstr, 10);
    itoa(stri[curl], stridestr, 10);
    itoa(prim[curl], primcountstr, 10);
    itoa(curr, currstr, 10); -- converts the int datatype to a char datatype
    
    if( GetAsyncKeyState( VK_NUMPAD1 ) & 1 ){ method = !method; }//disable/enable col
    	if( GetAsyncKeyState( VK_SUBTRACT ) & 1 ){ if(curl != 0){ curl--; } }//see next/prev tex
    	if( GetAsyncKeyState( VK_ADD ) & 1 ){ if(curl < curr-1){ curl++; } }//see next/prev tex
    	if( GetAsyncKeyState( VK_NUMPAD9 ) & 1 ){ if(curl != 0){ curl-=100; } }//see next/prev tex 100
    	if( GetAsyncKeyState( VK_NUMPAD6 ) & 1 ){ if(curl < curr-1){ curl+=100; } }//see next/prev tex 100
    	
    	if( GetAsyncKeyState( VK_NUMPAD5 ) & 1 )
    	{
    		add_log("Stride[%d] -> %d" ,curl,stri[curl]); 
    		add_log("NumVertices[%d] -> %d", curl, vert[curl]);
    		add_log("PrimitiveCount[%d] -> %d", curl, prim[curl]);
    		add_log("Number of Textures logged -> %d", curr);
    
    	} -- pretty self explanatory so i wont explain
    NOTE:
    This snippet uses the add_log function from TatniumD3D(creds to Azorbix and gang) so if you dont know how to port it out to ur own source too bad you cant save values to file

    Special thanks to a guy from GD which i forgot for teaching me this better way
    I do not take full credit for this but please credit the original coders of the aforementioned sources and me for modifying it

    as for all the choobs out there (C+P included):
    This code has been protected under VAC! (Valve-Anti-Choob)
    lol to all future releases u can paste this over ^^^^^^^
    Quote Originally Posted by falzarex aka myself
    GTFO FUCKER U DONT BELONG IN THE INTERNETZ WORLD COZ ITS MINE


    This is an epic fail resume
    Hello VBfags.
    A 'member' of the almighty C++ section will soon join you, he is 13 year old, has the IQ and typing skills of a VBfag, so I thought he would fit in here nicely.

    A few reasons why he should be in this section instead of the C++ section:
    1) He has the IQ of a VBfag.
    2) He has no sense of grammer/spelling at all.
    3) He thinks he is pro(like most of the people in here)
    4) He thinks copy pasting is fun(exactly what you guys do)
    5) He loves it up the ass(he will keep you VBfags nice and warm)

  2. #2
    why06's Avatar
    Join Date
    Jul 2009
    Gender
    male
    Location
    IBM
    Posts
    4,304
    Reputation
    170
    Thanks
    2,203
    My Mood
    Flirty
    Single stepping is slow and tedious to say the least.

    "Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."
    - Dwight D. Eisenhower

  3. #3
    falzarex's Avatar
    Join Date
    Apr 2008
    Gender
    male
    Location
    here
    Posts
    417
    Reputation
    14
    Thanks
    145
    Lol try it it's much faster than u think
    Quote Originally Posted by falzarex aka myself
    GTFO FUCKER U DONT BELONG IN THE INTERNETZ WORLD COZ ITS MINE


    This is an epic fail resume
    Hello VBfags.
    A 'member' of the almighty C++ section will soon join you, he is 13 year old, has the IQ and typing skills of a VBfag, so I thought he would fit in here nicely.

    A few reasons why he should be in this section instead of the C++ section:
    1) He has the IQ of a VBfag.
    2) He has no sense of grammer/spelling at all.
    3) He thinks he is pro(like most of the people in here)
    4) He thinks copy pasting is fun(exactly what you guys do)
    5) He loves it up the ass(he will keep you VBfags nice and warm)

  4. #4
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    Method I use is faster:
    min=0
    max=1000000 //change me
    cur = (min+max)/2

    on np+:
    min = cur
    cur = (min+max)/2

    on np-:
    max = cur
    cur = (min+max)/2

    color for textures:
    stride>=min && stride<cur = blue
    stride == cur = green
    stride <= max && stride > cur = red

    when your object is red you hit +, if its blue you hit - and if its green u hit whatever key u want to log it.

    max amount of keypresses to find a stride with this:
    log(n)/log(2) where n is max
    log(10000)/log(2) = 14 steps
    so 14 steps to go through 10000 strides.
    if you wan't 1 million strides:
    log(1000000)/log(2) = 21, 7 more steps for 100 times as many strides
    Ah we-a blaze the fyah, make it bun dem!

  5. #5
    falzarex's Avatar
    Join Date
    Apr 2008
    Gender
    male
    Location
    here
    Posts
    417
    Reputation
    14
    Thanks
    145
    Yeah I saw this before but mine was old code lol
    I wanna move to a game to hack but whcih is good? CA? AVA? bla????
    Quote Originally Posted by falzarex aka myself
    GTFO FUCKER U DONT BELONG IN THE INTERNETZ WORLD COZ ITS MINE


    This is an epic fail resume
    Hello VBfags.
    A 'member' of the almighty C++ section will soon join you, he is 13 year old, has the IQ and typing skills of a VBfag, so I thought he would fit in here nicely.

    A few reasons why he should be in this section instead of the C++ section:
    1) He has the IQ of a VBfag.
    2) He has no sense of grammer/spelling at all.
    3) He thinks he is pro(like most of the people in here)
    4) He thinks copy pasting is fun(exactly what you guys do)
    5) He loves it up the ass(he will keep you VBfags nice and warm)

  6. #6
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    I usually print the current the stride count on the screen so you can see what you're at rather than logging it. Since my computer is slow, minimizing to check the strides is too slow and I wouldn't want to write over the strides I logged before.

  7. #7
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    Quote Originally Posted by PedoWaldo44 View Post
    I usually print the current the stride count on the screen so you can see what you're at rather than logging it. Since my computer is slow, minimizing to check the strides is too slow and I wouldn't want to write over the strides I logged before.
    tsk tsk lil nubbie
    I used to log my stride in C++ format lol, found an old log(I think it was for some shitty zombie game I used to play)
    Code:
         if(m_Stride == 82)
         {
              SetTexture(0, MYSEXYREDCOLOR);
         }
         else if(m_Stride == 85 || m_Stride == 86 || m_Stride == 102 || m_Stride == 104)
         {
              SetTexture(0, MYSEXYBLUECOLOR);
         }
    saved me alot of work retyping the same if's/else's all the time ^^
    Used arrays if I needed to track multiple strides.
    Ah we-a blaze the fyah, make it bun dem!

Similar Threads

  1. Replies: 19
    Last Post: 11-03-2010, 02:58 PM
  2. Better than the FP song
    By Viibez in forum General
    Replies: 5
    Last Post: 10-01-2010, 08:21 PM
  3. [RELEASE] Stride Logger
    By J in forum Combat Arms Hack Coding / Programming / Source Code
    Replies: 47
    Last Post: 08-10-2010, 12:41 AM
  4. MPGH [BETTER than the others] Intro..... STILL
    By Jabuuty671 in forum Combat Arms Discussions
    Replies: 26
    Last Post: 07-16-2010, 09:46 PM
  5. Replies: 10
    Last Post: 06-04-2009, 02:12 PM