-=-
Menu
Tournaments
Profile
Poll
Latest videos
Latest comments
Latest matches
flag CX [13:15] [GpW]flag
flag [CDF] [08:14] -t3>flag
flag [GpW] [11:05] -t3>flag
flag -t3> [08:02] CXflag
flag -t3> [12:09] CXflag
flag -t3> [11:07] CXflag
flag [GpW] [12:06] [CDF]flag
flag [GpW] [12:05] [CDF]flag
flag [GpW] [07:06] -t3>flag
flag CX [07:06] [GpW]flag
Latest forum posts
By: ShadowGPW, in: [NT 2020] News » National Tournament 2020-07-29 18:12
Hup Holland Hup
By: Toni, in: [NT 2020] News » National Tournament 2020-07-25 23:20
National Tournament is OVER! [img]http://jazzjackr...
By: Brinko, in: Wimbledon Duel Rankings » Published Steel Duels cases 2020-07-23 01:27
:carrot:
By: Treylina, in: Ladre Offseazon » Forum games 2020-07-15 01:51
Tetr.io. It's free, with no stupid micro-transacti...
By: ShakerNL, in: Ladre Offseazon » Forum games 2020-07-05 00:48
Wanna play some Mario? https://www.pukenukem.co...
By: Splat, in: Ladre Offseazon » Forum games 2020-06-24 04:51
Haven't[*] played that game before myself. Reminds...
By: i:m, in: Ladre Offseazon » Forum games 2020-06-21 17:56
i recently played this game called 'i am bread' an...
By: i:m, in: Drama over the Ladder (JJ2 fanfic) » Forum games 2020-06-21 17:50
fucking diamondus :D
By: Splat, in: Drama over the Ladder (JJ2 fanfic) » Forum games 2020-06-20 03:28
[quote]Foreword: Thanks to JJnet admins for approv...
By: Splat, in: JJ1 sound effect samples » JJ2 related 2020-06-16 03:09
Hi, I want to post about my samplepack of JJ1 soun...
By: Splat, in: Ladre Offseazon » Forum games 2020-06-12 07:04
Durinğ the ladre offseason, there are some nice g...
By: MaximuS , in: Wimbledon Duel Rankings » Published Steel Duels cases 2020-06-06 23:34
:whip: epic
By: Pariah, in: Wimbledon Duel Rankings » Published Steel Duels cases 2020-06-04 20:50
oh,,, wow, splat ranked #4 ohhh
By: Splat, in: Wimbledon Duel Rankings » Published Steel Duels cases 2020-06-04 05:37
I am here to announce the duel rankings in wimbled...
By: King, in: Funniest moments! » Forum games 2020-05-19 20:40
:(
By: i:m, in: Funniest moments! » Forum games 2020-05-19 20:37
[23:46:21] Jety: pavlo, u wanted wrn's ip? [23:46...
By: i:m, in: Funniest moments! » Forum games 2020-05-19 20:33
[23:07:40] o0o: join cw server when [23:07:41] [S...
By: Toni, in: [NT 2020] News » National Tournament 2020-05-16 16:23
First week of knockout stage is completed! We h...
By: Toni, in: [NT 2020] News » National Tournament 2020-05-12 00:49
Knockout stage games First semifinal game has b...
By: Toni, in: [NT 2020] News » National Tournament 2020-04-18 21:38
National Tournament is OVER! [img]http://jazzjackr...
By: Lahm, in: [NT 2020] National Tournament Starts! » National Tournament 2020-03-29 23:31
RO vetoes: AM and DW
By: Vivando, in: [NT 2020] National Tournament Starts! » National Tournament 2020-03-29 19:42
Added vetoes for team Nordics earlier. I'll announ...
By: Lynx[GpW], in: [NT 2020] National Tournament Starts! » National Tournament 2020-03-28 22:16
Czechoslovakia vetoes: TCS and DW
By: Krzysiek, in: [NT 2020] National Tournament Starts! » National Tournament 2020-03-28 21:19
Poland: DW and AM
By: Toni, in: [NT 2020] National Tournament Starts! » National Tournament 2020-03-28 17:50
Serbia B: Epitome and Stronghold
By: Kyro, in: [NT 2020] National Tournament Starts! » National Tournament 2020-03-28 17:45
Egypt vetoes: Diamondus Warzone & Technodus Cargo ...
By: Kev, in: [NT 2020] National Tournament Starts! » National Tournament 2020-03-28 13:42
Germany vetos: Astro and Daybreak
By: Ragnarok, in: [NT 2020] National Tournament Starts! » National Tournament 2020-03-27 21:46
That's good Urbs! What's the best way to conta...
By: [GpW]Urbs, in: [NT 2020] National Tournament Starts! » National Tournament 2020-03-27 21:33
BTW not sure where to post this, but I guess i cou...
By: MasterSven, in: [NT 2020] National Tournament Starts! » National Tournament 2020-03-27 17:17
Netherlands vetoes: Distopia and Astro.
By: MaximuS , in: [NT 2020] National Tournament Starts! » National Tournament 2020-03-27 14:41
Team Brexit vetoes: none
By: HordY, in: [NT 2020] National Tournament Starts! » National Tournament 2020-03-27 14:01
Serbia A vetoes: DW and TCS.
By: Toni, in: [NT 2020] National Tournament Starts! » National Tournament 2020-03-27 12:55
You can announce your veto maps here before you sc...
By: Laro24, in: [NT 2020] National Tournament Starts! » National Tournament 2020-03-27 01:37
Brexit..? xd rly?
By: MaximuS , in: [NT 2020] National Tournament Starts! » National Tournament 2020-03-26 20:11
Final egy srb
By: Vivando, in: [NT 2020] National Tournament Starts! » National Tournament 2020-03-26 17:12
Group A pog 3:-)
By: Toni, in: [NT 2020] National Tournament Starts! » National Tournament 2020-03-26 15:58
Dear players, Hereby we announce the grand open...
By: Kev, in: [NT 2020] Sign Ups » National Tournament 2020-03-24 15:37
pull some american continent team of splat, empive...
By: HordY, in: [NT 2020] Sign Ups » National Tournament 2020-03-24 10:57
Just a suggestion * As for now we have 11 teams...
By: Ragnarok, in: [NT 2020] Sign Ups » National Tournament 2020-03-23 20:10
For those who are interested in the mappool: - ...
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: 325
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: 266
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: 226
36
#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: 382
54
#9 | [q]2012-07-10 15:28
king SO cool!!! emo
King
CX
avatar
JJnet user
Posts: 226
36
#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...