Single stepping is slow and tedious to say the least.
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):
Logging Code: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); } }
NOTE: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
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 ^^^^^^^
Originally Posted by falzarex aka myself
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)
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
Lol try it it's much faster than u think
Originally Posted by falzarex aka myself
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)
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!
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????
Originally Posted by falzarex aka myself
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)
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)
saved me alot of work retyping the same if's/else's all the time ^^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); }
Used arrays if I needed to track multiple strides.
Ah we-a blaze the fyah, make it bun dem!