You know how JJ2+ changes the color of your gun and feet to your CTF-team's color? Well, this little tool undoes that. It works Only local, so others still see team-based colors on you.
All colors are supported though some may look a little bit different than usual. Ill explain why later in this text. If ppl really need it, I can fix it but it'll require loads of work with almost no gain...
Currently, this program supports only 1.24.
EDIT: Works with non-plus, but unexpected results may occur (nothing dangerous, just garbage colors)
1.23 support on the way...
How to use it:
2 buttons, 1 about thingy.
-First button: red if no jj2 found, green if jj2 found. click to look for jj2 again.
-Second button: red if disabled, freengreen if enabled. click to toggle.
-About thingy: Blue if aEs will lose the season. Click to show this window.
Ok, the technical stuff. Copied from my delphi JJ2 library:
------------------------------------------------------
About extended coloring:
JJ+ has 8 internal 4-byte values, which it uses to re-color rabbits in real-time. Each of the 4 normal colors you can change ingame is represented by 8 bytes, 4 for the inside of the bodypart, and 4 for the outside. these bytes normally take care of the shading on your character, but can be set to anything you like.
When jj+ handles it, the rightmost byte of each 4-byte gets set to the color you want (or color+4 on outlines) and from right to left, 1 is added for each of the remaining 3 bytes.
A short example:
Say, you set your gun to dark blue. That is color 0x20.
The 4 byte value of the inner side of the gun would then be:
0x23,0x22,0x21,0x20
In ctf, plus sets the color of your gun and shoes, (both inner and outer) automatically to match your team. I'll list the base values here, which are the right-most bytes (LSB) of each 4-byte value.
I will add the adresses I found, as well as info on how to use them to J2O wiki (ERE), as soon as someone fixes the broken wiki edit mode there and notifies me about it.
hf jazzing,
~wKtK
PS: Jazz25 is coming along fine, it will just take some time. I hope I can show you something cool before the year is over...
Ohai everyone, wKtK here proudly presenting you:
[size=32]Colorpatch[/size] version 1.0.0
[url=http://lun4rsoft.info/UPLOADS/Programs/Colorpatch/ColorPatch.zip]Download here![/url]
You know how JJ2+ changes the color of your gun and feet to your CTF-team's color? Well, this little tool undoes that. It works [b]Only local[/b], so others still see team-based colors on you.
All colors are supported though some may look a little bit different than usual. Ill explain why later in this text. If ppl really need it, I can fix it but it'll require loads of work with almost no gain...
[color=red]Currently, this program supports only 1.24. [/color]
EDIT: Works with non-plus, but unexpected results may occur (nothing dangerous, just garbage colors)
1.23 support on the way...
[b]How to use it:[/b]
2 buttons, 1 about thingy.
-First button: red if no jj2 found, green if jj2 found. click to look for jj2 again.
-Second button: red if disabled, [s]freen[/s] [b]green[/b] if enabled. click to toggle.
-About thingy: Blue if aEs will lose the season. Click to show this window.
[b]Ok, the technical stuff.[/b] Copied from my delphi JJ2 library:
------------------------------------------------------
About extended coloring:
JJ+ has 8 internal 4-byte values, which it uses to re-color rabbits in real-time. Each of the 4 normal colors you can change ingame is represented by 8 bytes, 4 for the inside of the bodypart, and 4 for the outside. these bytes normally take care of the shading on your character, but can be set to anything you like.
When jj+ handles it, the rightmost byte of each 4-byte gets set to the color you want (or color+4 on outlines) and from right to left, 1 is added for each of the remaining 3 bytes.
A short example:
Say, you set your gun to dark blue. That is color 0x20.
The 4 byte value of the inner side of the gun would then be:
0x23,0x22,0x21,0x20
In ctf, plus sets the color of your gun and shoes, (both inner and outer) automatically to match your team. I'll list the base values here, which are the right-most bytes (LSB) of each 4-byte value.
BLUE:
gun inner: 0x20
gun outer: 0x24 (remember, outline = inner + 4)
shoes inner: 0x20
shoes outer: 0x24
RED:
gun inner: 0x18
gun outer: 0x1C (0x18 + 4)
shoes inner: 0x18
gun outer: 0x1C
------------------------------------------------------
I will add the adresses I found, as well as info on how to use them to J2O wiki (ERE), as soon as someone fixes the broken wiki edit mode there and notifies me about it.
hf jazzing,
~wKtK
PS: Jazz25 is coming along fine, it will just take some time. I hope I can show you something cool before the year is over...
(This post has been helpful to 2 of the forumers.)
Normal jj2 does this as well? hmm, I'll look into it...
EDIT: Yeah, you're right... I'll try to update it today, shouldn't be too hard if plus isn't messing with Jazz' insides...
Hehehe, I actually made this exact change ~1.5 years ago in form of what I called a 'Patchy the pirate' (plus.dll bytecode patch) when I found out that the color changing is done client-side. I also made one of these to prevent the "fake carrot bump" that sometimes pushes you into walls, while leaving fake C detection intact.
The actual implementation was probably a bit different from yours, as I changed the part of the code that modifies the 4-byte color code (the one that goes gun-fur-socks-fur2 for Spaz); this "inner-outer" color thing you wrote about sounds new to me.
Here is the change I made from a reduced excerpt of my program (in crappy VB, yay):
Code:
Dim iFile As Integer
Dim bytData(0 To 2) As Byte
iFile = FreeFile
Open App.Path & "\plus.dll" For Binary As iFile Get iFile, &H3F6C9, bytData
If bytData(0) = &H90 Then
' patched
bytData(0) = &H83
bytData(1) = &H3A
bytData(2) = &H5
Else
' unpatched
Dim i
For i = 0 To 2
bytData(i) = &H90
Next i
End If
Put iFile, &H3F6C9, bytData
Close iFile
(that code tag looks neat [edit: or at least in the preview window it does], but please fix it to allow for indents/tabs [edit: it actually does but does not look like it in the preview])
NINJA EDIT:
While it is true that JJ2 originally does the same thing, it works differently for plus and nonplus:
The Jazz2 server normally sent clients the "teamified" colors of players and forget their original colors, so there's nothing you can do about it client-side.
JJ2+ servers send the clients the original colors of every other player on the server, leaving it up to the client to display players with team fur colors, so it is possible to make said client-side fix.
This should clear things up a bit.
Hehehe, I actually made this exact change ~1.5 years ago in form of what I called a 'Patchy the pirate' (plus.dll bytecode patch) when I found out that the color changing is done client-side. I also made one of these to prevent the "fake carrot bump" that sometimes pushes you into walls, while leaving fake C detection intact.
The actual implementation was probably a bit different from yours, as I changed the part of the code that modifies the 4-byte color code (the one that goes gun-fur-socks-fur2 for Spaz); this "inner-outer" color thing you wrote about sounds new to me.
Here is the change I made from a reduced excerpt of my program (in crappy VB, yay):
[code] Dim iFile As Integer
Dim bytData(0 To 2) As Byte
iFile = FreeFile
Open App.Path & "\plus.dll" For Binary As iFile Get iFile, &H3F6C9, bytData
If bytData(0) = &H90 Then
' patched
bytData(0) = &H83
bytData(1) = &H3A
bytData(2) = &H5
Else
' unpatched
Dim i
For i = 0 To 2
bytData(i) = &H90
Next i
End If
Put iFile, &H3F6C9, bytData
Close iFile[/code]
(that code tag looks neat [edit: or at least in the preview window it does], [s]but please fix it to allow for indents/tabs[/s] [edit: it actually does but does not look like it in the preview])
NINJA EDIT:
While it is true that JJ2 originally does the same thing, it works differently for plus and nonplus:
The Jazz2 server normally sent clients the "teamified" colors of players and forget their original colors, so there's nothing you can do about it client-side.
JJ2+ servers send the clients the original colors of every other player on the server, leaving it up to the client to display players with team fur colors, so it is possible to make said client-side fix.
This should clear things up a bit.
Yes, maybe it is wiser to drop support for non-plus.
Like Sean said, the ones that don't use plus nowadays don't care much about their colors anyway...
I'll still add 1.23 support.
Some people seemed to express interest in the plus.dll patch, so here's a link to the compiled version. <PlusPatchTeamFur.exe>
Use at your own risk, this is almost 2 year old VB code you're dealing with here. Should work with the latest version of JJ2+.
Some people seemed to express interest in the plus.dll patch, so here's a link to the compiled version. [url=http://dl.dropbox.com/u/70075671/PlusPatchTeamFur.exe]<PlusPatchTeamFur.exe>[/url]
Use at your own risk, this is almost 2 year old VB code you're dealing with here. Should work with the latest version of JJ2+.
1.5 years ago i seemd to have been the only one interested in this, kyro seemd to have noticed that i was able to see others complete fur so i guess he wanted sucha patch too. Though this was released long time ago and that it was known. Oh well
Player: Air!
Air: ?
1.5 years ago i seemd to have been the only one interested in this, kyro seemd to have noticed that i was able to see others complete fur so i guess he wanted sucha patch too. Though this was released long time ago and that it was known. Oh well