-=-
Menu
Tournaments
Profile
Poll
Latest videos
Latest comments
Latest matches
flag CX [07:06] [GpW]flag
flag CX [09:04] [GpW]flag
flag CX [04:08] [GpW]flag
flag CX [14:07] [GpW]flag
flag -t3> [06:04] [GpW]flag
flag CX [14:02] [CDF]flag
flag CX [07:07] [CDF]flag
flag CX [10:05] [CDF]flag
flag [GpW] [10:09] CXflag
flag CC [06:03] CXflag
Latest forum posts
By: Ragnarok, in: A new balance proposal » Improving rules 2019-11-20 19:49
Just thought I'd share my two pieces on what copte...
By: Ragnarok, in: Contest results! [JJnet Level Contest Season 13] » JJ2 related 2019-11-02 04:17
In alphabetical order: 1. Byzantine Blues by...
By: Vivando, in: Contest results! [JJnet Level Contest Season 13] » JJ2 related 2019-11-01 20:11
Feedback! from SJ: FTL Starship: + Fairly ba...
By: Vivando, in: Contest results! [JJnet Level Contest Season 13] » JJ2 related 2019-11-01 20:09
Dear all, the level contest results are finally he...
By: Treylina, in: A new balance proposal » Improving rules 2019-10-22 01:00
Here it is, a long overdue update. Better late tha...
By: Toni, in: What JJ2 level title best describes your sex life? » JJ2 related 2019-09-08 01:11
Underrated Paradise
By: DanZeal, in: Funniest moments! » Forum games 2019-09-07 20:02
[20:00:05] DannyZ[CDF]: Jag var i Finland tidigare...
By: SirEmentaler, in: What JJ2 level title best describes your sex life? » JJ2 related 2019-08-21 20:45
I just wanted to say this topic was inspired by a ...
By: Slaz, in: What JJ2 level title best describes your sex life? » JJ2 related 2019-08-20 14:13
ELEKTREK PYRAMID :dizzy:
By: PurpleJazz, in: What JJ2 level title best describes your sex life? » JJ2 related 2019-08-19 06:44
15 Second Rush
By: Laro24, in: What JJ2 level title best describes your sex life? » JJ2 related 2019-08-10 19:15
Nuclear Afterblast :whistling:
By: Plumbe, in: What JJ2 level title best describes your sex life? » JJ2 related 2019-08-10 16:50
Wicked Wood :flex:
By: [GpW]Urbs, in: What JJ2 level title best describes your sex life? » JJ2 related 2019-08-10 15:59
Jungles Edge :D
By: ThunDer, in: What JJ2 level title best describes your sex life? » JJ2 related 2019-08-10 02:46
Facing Worlds
By: Ragnarok, in: What JJ2 level title best describes your sex life? » JJ2 related 2019-08-09 18:30
Drought :whisper:
By: MasterSven, in: What JJ2 level title best describes your sex life? » JJ2 related 2019-08-09 15:33
There can be only one: Magma P*nis Despair. :carr...
By: Jelly Jam, in: What JJ2 level title best describes your sex life? » JJ2 related 2019-08-09 11:49
This level is Untitled
By: SirEmentaler, in: What JJ2 level title best describes your sex life? » JJ2 related 2019-08-09 07:50
I'd probably have to go with Enter the Chaos but I...
By: Toni, in: Funniest moments! » Forum games 2019-08-08 16:21
Meanwhile in Gauntlet: [16:17:02] Console: >> [...
By: ThunDer, in: Carrots and Ladders » JJ2 related 2019-08-04 15:44
Imo ditch carrots and use apples instead for bette...
By: cooba, in: Carrots and Ladders » JJ2 related 2019-08-03 17:17
Tangential to the topic, but I've always thought t...
By: Ragnarok, in: Carrots and Ladders » JJ2 related 2019-08-03 15:12
Ok SE, here's what I suggest -- You make that l...
By: SirEmentaler, in: Carrots and Ladders » JJ2 related 2019-08-03 04:00
6 regular carrots with 90-second spawn times.
By: Ragnarok, in: All matches page stalls while loading » Site suggestions 2019-08-01 23:06
i'm in full support of this idea
By: Mercuryquake, in: Carrots and Ladders » JJ2 related 2019-08-01 20:45
It depends on several other aspects of the level. ...
By: Mercuryquake, in: All matches page stalls while loading » Site suggestions 2019-08-01 19:37
Trying to load the page for All Matches just stall...
By: Mercuryquake, in: Question for Jelly Jam » Ask Tira 2019-08-01 19:24
Coffee is a drug, actually. Therefore it shouldn't...
By: Jelly Jam, in: Carrots and Ladders » JJ2 related 2019-07-28 05:10
I voted for two full energy carrots, and although ...
By: Antix, in: Carrots and Ladders » JJ2 related 2019-07-28 03:29
Best CTF Party Goodluck proves everything, what a ...
By: Ragnarok, in: Carrots and Ladders » JJ2 related 2019-07-28 02:50
What's your favourite carrot scheme for CTF levels...
By: Jelly Jam, in: Question for Jelly Jam » Ask Tira 2019-07-22 01:56
utter sounds like udder
By: ThunDer, in: Question for Jelly Jam » Ask Tira 2019-07-20 02:31
I am utterly in agreement with all facts above.
By: Ragnarok, in: Question for Jelly Jam » Ask Tira 2019-07-18 19:22
I feel that there are several conclusions I have c...
By: SirEmentaler, in: Question for Jelly Jam » Ask Tira 2019-07-16 04:28
Like I said, these are "conclusions" rather than d...
By: Ragnarok, in: Question for Jelly Jam » Ask Tira 2019-07-15 09:18
from where did you cite such information?
More...!

JJnet's forum

«Latest posts» «Latest threads» «Search» «User CP»

     [prog] Colorpatch - fix jj2+ changing your colors in ctf | [q] 2012-07-05 19:21
wKtKavatar
JJnet user

Posts: 707
121
Ohai everyone, wKtK here proudly presenting you:
Colorpatch version 1.0.0

Download here!

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, freen green 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.

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...



Nostalgia warning, well, at least if you're one of those ppl...
(This post has been helpful to 2 of the forumers.)
Replies
cooba
[si]
avatar
JJnet user
Posts: 323
51
#1 | [q]2012-07-05 19:38
Quote:
this is a plus-only issue
Good work and all but this is wrong


Jazz 2 Online
http://www.jazz2online.com
(This post has been helpful to 1 of the forumers.)
wKtK
avatar

JJnet user
Posts: 707
121
#2 | [q]2012-07-05 19:41
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...


Nostalgia warning, well, at least if you're one of those ppl...
GLaDOS
aEs
avatar
JJnet user
Posts: 123
28
#3 | [q]2012-07-05 19:46
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.
wKtK
avatar

JJnet user
Posts: 707
121
#4 | [q]2012-07-05 20:08
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.


Nostalgia warning, well, at least if you're one of those ppl...
Kyro
CC
avatar
JJnet admin
Posts: 262
26
#5 | [q]2012-07-05 20:52
thank you ;>
wKtK
avatar

JJnet user
Posts: 707
121
#6 | [q]2012-07-05 22:09
Np.

1.23 support will come, but not this week.
In other news, i hate pointers that change on cycling.


Nostalgia warning, well, at least if you're one of those ppl...
GLaDOS
aEs
avatar
JJnet user
Posts: 123
28
#7 | [q]2012-07-09 22:02
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+.
King
CX
avatar
JJnet user
Posts: 222
35
#8 | [q]2012-07-10 15:03
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: ?
[GpW]Urbs
[GpW]
avatar
JJnet user
Posts: 377
54
#9 | [q]2012-07-10 15:28
king SO cool!!! emo
King
CX
avatar
JJnet user
Posts: 222
35
#10 | [q]2012-07-10 18:43
Quote:
-Second button: red if disabled, freen if enabled. click to toggle.


Havent even noticed this untill now. Freen is sucha beautiful color


Player: Air!
Air: ?
wKtK
avatar

JJnet user
Posts: 707
121
#11 | [q]2012-07-10 19:03
Typo fixed emo


Nostalgia warning, well, at least if you're one of those ppl...