View Single Post
  #37  
Old 02-04-2007, 19:53
Caliber Caliber is offline
Banned
 
Join Date: Feb 2007
Location: USA
Posts: 134
Thanks: 0
Thanked 1 Time in 1 Post
Caliber is on a distinguished road
Quote:
Originally Posted by sheep View Post
tippex.. ur certainly right on the isolation part.. its good to use such things that the pc doesnt work with such as input.. but thats usually very hard to find and even harder to cross reference with a specific point in the code, the way i do it is just a small variation on ur explanation whereby i use the ONSCREEN visuals that the computer (like input) never needs or uses.. such a drawing routine for the countdown , computer never SEES anything so will never occupy this code.. but it has 2 advantages, 1.. of course its only you using it so its 1 sided.. and 2.. the drawing code for the countdown HAS to read the value your trying to get rid of IE the build time. Im pretty sure that cali already knows this.. as hes already displayed more advanced techniques in his other trainer.. and c&c 3 was the easiest game ive come across so far for instant build being 1 sided u didnt really have to do TOO much work.. ive come across SOME games that even the computer uses the onscreen values.. what the fuck for i have no idea.. so i would assume that calis trainers DOESNt give instant build to the enemy.. but im gunna dload it tonight and have a look..
thanks for the replies and info here. i tried to look for things that were going on indeed with only the player's units. i tied into the changing percentage that was used to update the timer displayed on the screen while build was completing to capture the unit. thankfully, that same code area was also used for the other updates (not sidebar upgrades). at any rate, it appeared to me that only the player was affected. but hey, i don't have NO-FOG code so i can only watch my own players until i get to the enemies base and then watch them. so i could be wrong. hey it wouldn't be the first time. perhaps my jump in the code to update the money and energy might be used by the computer as well and so if you want to reverse my changes to the .exe, i won't take offense. any feedback you give is appreciated. i can always learn something new.

JFYI- i have several ways of making the invincible units, but testing has shown a need for improvements, but soon i will release invincible units. i have NO IDEA how to even begin with the NO FOG option. everything i have tried has turned up no viable code segment. i wish i knew how you traced that down. i am having alot of trouble with that. also, i cannot seem to find any code that regularly parses only the friendly units (other than when you put the mouse over them, which also can be used for enemy). i was trying to do some sort of global invincible units for friendlies, but there doesn't seem to be any code that i can come across that loops without interaction by the user that only loops through the friendlies. examining the unit structure (at least the structure that holds the health), doesn't seem to show any differences that would be useful to discern friendly from foe. i will say that there must be a second unit structure for each unit that holds the x/y/z but i haven't messed with unit movements. that structure may also hold the player number, ishuman?, team, unit rank, etc. info but i haven't traced it down yet (to be fair i haven't even tried), or perhaps the health and position structures are part of a larger single unit structure that holds alot of stuff. once again, i haven't parsed it out. any enlightenment in this area would be nice, too-

thanks again for taking the time to respond here, sheep-

best,
Cal
Reply With Quote