peterthepigeon Posted October 12, 2015 Posted October 12, 2015 CreateFile on both files ReadFile on both get offset to code section iterate until through ( *pbOldCodeSection != *pbPatchedCodesection ) notate accordingly simple
peterthepigeon Posted October 12, 2015 Author Posted October 12, 2015 ...what? Context, please? The hackishness of your patched executable versus the clean pristine one to notate all your patches.
Nyerguds Posted October 12, 2015 Posted October 12, 2015 lol. If only I were a computer, and all my problems could be solved with a simple script
FunkyFr3sh Posted October 12, 2015 Posted October 12, 2015 I started to rewrite some of his patches in nasm source files, but it's a pain in the ass and takes ages to port Plan is to jump out and run his code in newly added sections to keep it clean and being able to modify it with ease. I made cdecl -> watcall wrapper to be able to rewrite stuff in C too http://funkyfr3sh.cncnet.org/files/temp/cnc95-v107.exe
peterthepigeon Posted October 12, 2015 Author Posted October 12, 2015 My disasm engine spits out mnemonics and the works. I'm tempted to do likewise for his executable. I'd copy the original code to the new section and set a check(config parsed at startup or new map) to execute original or jump over to the patched or nopped code, then back to the regular execution. Clean, simple and efficient. As for nasm files, meh, I'd just write my own mini assembler
FunkyFr3sh Posted October 12, 2015 Posted October 12, 2015 Not a bad idea, you should join our IRC channel and hang around there Do you know our patching systems? We turn the exe into an object file and compile our own asm/c/c++ to separate object files and afterwards link it all together
SiRaLeX Posted October 18, 2015 Posted October 18, 2015 The only time I've ever really used patches like these is to create cheats. So, what are you guys on about? Do you really need to "patch" your little hearts out? IMHO this should be considered cheating. Now people will think a "patch" cannot be bad. Well, yeah, it can be pretty bad. It usually gives the guy who has the "patch" significant advantages. CreateFile on both files ReadFile on both [...] iterate until through ( *pbOldCodeSection != *pbPatchedCodesection ) A lot of WinAPi and hungarian notation, eh? Typical CnC hacker...
Nyerguds Posted October 19, 2015 Posted October 19, 2015 So, what are you guys on about? Do you really need to "patch" your little hearts out? IMHO this should be considered cheating. I suggest you take a good look at the full change list of the 1.06 patch before you make dumb remarks like that. Start from the bottom. And again you show why we don't let you anywhere near our ladder code.
peterthepigeon Posted October 22, 2015 Author Posted October 22, 2015 The only time I've ever really used patches like these is to create cheats. So, what are you guys on about? Do you really need to "patch" your little hearts out? IMHO this should be considered cheating. Now people will think a "patch" cannot be bad. Well, yeah, it can be pretty bad. It usually gives the guy who has the "patch" significant advantages. CreateFile on both files ReadFile on both [...] iterate until through ( *pbOldCodeSection != *pbPatchedCodesection ) A lot of WinAPi and hungarian notation, eh? Typical CnC hacker... Grow up. I hacked FPS games long before I took a whack at CnC. It's easy to determine whether a patch gives an advantage or not, just have a whitelist. Ergo, what are you talking about.
Kilkakon Posted October 29, 2015 Posted October 29, 2015 If C&C 1.06 is bad, I imagine my mod's worse XD Too many jumps in the unit tables...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now