Page 3 of 5

Re: SWBF2 Chat Colors restored + Crash to Desktop Protection

PostPosted: Sun Aug 12, 2012 5:45 am
by theavengers85
How do you know what values to edit?

I've always wanted to get into hex editing, but I've never been able to figure out how people know what to change.

I know you can replace strings as long as your replacement string is of equal or lesser length. But how did you enable chat colors/fix the crash bug?

Re: SWBF2 Chat Colors restored + Crash to Desktop Protection

PostPosted: Sun Aug 12, 2012 6:37 am
by 11_Panama_
Ancient Chinese secret.

Re: SWBF2 Chat Colors restored + Crash to Desktop Protection

PostPosted: Sun Aug 12, 2012 5:56 pm
by theavengers85
Darn it Panama, that's the response I always get :lol:

How am I supposed to learn anything that way :mrgreen:

Re: SWBF2 Chat Colors restored + Crash to Desktop Protection

PostPosted: Sun Aug 12, 2012 11:57 pm
by Bryant
I don't use a hex-editor to make these edits. I use a disassembler - it allows me to read the assembly. Some of the times I can find the flaws and fix them by recoding a section or by inserting additional code.

For the chat colors, I found the section in the 1.0 version and compared it to the 1.1 version and added in what was missing.

If you're interested, check out olydbg - it's the program I've used to explore the code and test my patches.

Re: SWBF2 Chat Colors restored + Crash to Desktop Protection

PostPosted: Mon Aug 13, 2012 4:59 am
by theavengers85
Ahhh, so that's how. No wonder. I did a hex diff on the files, and didn't get any noticable pattern.

Figured it had to be a disassembler. Though assembly code always scared me.

Thanks Bryant, I'll check it out.

EDIT:
Any tips for learning assembly? Any good resources you know of?

Re: SWBF2 Chat Colors restored + Crash to Desktop Protection

PostPosted: Mon Aug 13, 2012 11:00 am
by FaiL.?
Cypher wrote:Ahhh, so that's how. No wonder. I did a hex diff on the files, and didn't get any noticable pattern.

Figured it had to be a disassembler. Though assembly code always scared me.

Thanks Bryant, I'll check it out.

EDIT:
Any tips for learning assembly? Any good resources you know of?

Hex?

Re: SWBF2 Chat Colors restored + Crash to Desktop Protection

PostPosted: Mon Aug 13, 2012 2:12 pm
by Bryant
Cypher wrote:Any tips for learning assembly? Any good resources you know of?


This is a decent resource http://www.cs.virginia.edu/~evans/cs216 ... structions

In OllyDbg, you can also right-click an instruction and select "Help on Command"

Re: SWBF2 Chat Colors restored + Crash to Desktop Protection

PostPosted: Fri Aug 17, 2012 9:59 pm
by Talon Karrde
So basically, Bryant can read the language of the ancients. :whistling:

Re: SWBF2 Chat Colors restored + Crash to Desktop Protection

PostPosted: Fri Aug 17, 2012 10:11 pm
by Bryant
Talon Karrde wrote:So basically, Bryant can read the language of the ancients. :whistling:


The Sith know many secrets :twisted:

Re: SWBF2 Chat Colors restored + Crash to Desktop Protection

PostPosted: Tue Aug 21, 2012 10:52 pm
by Eyes Only
Bryant wrote:
Talon Karrde wrote:So basically, Bryant can read the language of the ancients. :whistling:


The Sith know many secrets :twisted:

Be careful some of the other admins might think youre an evil hacker out to get swgo... again.