-=-
Menu
Tournaments
Profile
Poll
Should the new slope feature be disabled for every map or should we edit only affected maps?
Disabled for every map
bb vote bb bb
3 (50%)
Only affected maps
bb vote bb bb
3 (50%)
Votes: 6
If you want to vote, log in first.

comment

Latest videos
Latest comments
Latest matches
flag -t3> [13:01] RFHflag
flag -t3> [07:02] RFHflag
flag [CDF] [04:03] RFHflag
flag -t3> [08:01] RFHflag
flag [CDF] [12:06] -t3>flag
flag RFH [05:02] -t3>flag
flag -t3> [06:04] RFHflag
flag -t3> [10:09] [CDF]flag
flag RFH [16:06] CCflag
flag [CDF] [04:03] -t3>flag
Latest forum posts
By: Vivando, in: 2023 CTF Level Making Contest » JJ2 related 2023-04-15 19:32
Here's my entry: https://www.jazz2online.com/downl...
By: FawFuL, in: 2023 CTF Level Making Contest » JJ2 related 2023-04-12 18:27
My entry: https://www.jazz2online.com/downloads/92...
By: PurpleJazz, in: 2023 CTF Level Making Contest » JJ2 related 2023-04-03 22:42
Here is my entry: https://www.jazz2online.com/down...
By: Krzysiek, in: 2023 CTF Level Making Contest » JJ2 related 2022-12-14 20:08
December 31st 2023 POG
By: DanZeal, in: 2023 CTF Level Making Contest » JJ2 related 2022-12-14 17:58
;-)
By: Vivando, in: 2023 CTF Level Making Contest » JJ2 related 2022-12-14 15:46
:cake:
By: MasterSven, in: 2023 CTF Level Making Contest » JJ2 related 2022-12-13 22:13
Let us secure the joy of playing JJ2 for the futur...
By: MasterSven, in: Learning battle levels » JJ2 related 2022-12-06 11:14
Its mostly about playing, playing and playing more...
By: koulmnballar, in: Learning battle levels » JJ2 related 2022-10-14 15:50
What makes it so that some players can "know" a ba...
By: koulmnballar, in: =-> How`d the "bomb scene" event become handled differently within the flowchart of plus-evolution? » JJ2 related 2022-08-23 17:02
[b][s]=->[/s][/b] [u]How`d the [b]"[i]bomb scene[/...
By: koulmnballar, in: Jetty Banned From JazzJackrabbit » JJ2 related 2022-08-17 01:25
https://www.youtube.com/watch?v=D-hLh63iuSI ^ thi...
By: dinolabis, in: Jetty Banned From JazzJackrabbit » JJ2 related 2022-08-13 01:42
https://www.pukenukem.com/jety/ This is real ?....
By: koulmnballar, in: What have you done to Clippy?! » Off topic 2022-07-20 19:38
[quote]Web Browsing Advisory[/quote] And in the w...
By: koulmnballar, in: What have you done to Clippy?! » Off topic 2022-07-09 23:29
There used to be a paperclip named Clippy, who liv...
By: DanZeal, in: Royal Families of JJ2 » Off topic 2022-07-05 10:46
[quote="Grytolle"][quote="Anubis"]Grytolle and Lee...
By: Grytolle, in: Royal Families of JJ2 » Off topic 2022-06-29 17:11
[quote="Anubis"]Grytolle and Leen both CC[/quote] ...
By: koulmnballar, in: maps 2 inspire UR lvl(s) » Clan talk 2022-06-24 19:24
^ -- East village is actually the pangaean combo ...
By: Toni, in: maps 2 inspire UR lvl(s) » Clan talk 2022-06-23 22:47
The first image looks like something we already ha...
By: Brinko, in: maps 2 inspire UR lvl(s) » Clan talk 2022-06-14 20:11
australia is sus
By: koulmnballar, in: maps 2 inspire UR lvl(s) » Clan talk 2022-06-14 17:49
*** WARNING: IMAGES IN THIS POST COULD B- RESIZED ...
By: qr-s-PL43, in: -How do Egyptian / 1337speak differ? » Clan talk 2022-06-07 01:43
That`s interesting about the [b]"ch"[/b] and [b]"s...
By: Anubis, in: -How do Egyptian / 1337speak differ? » Clan talk 2022-06-04 09:51
This typography is sometimes used in other languag...
By: qr-s-PL43, in: -How do Egyptian / 1337speak differ? » Clan talk 2022-06-03 00:28
-How do Egyptian / 1337speak differ? FYI (for y...
By: qr-s-PL43, in: « ? should esports be illegal in the confederacy ¿ » » Off topic 2022-06-02 17:17
[u][b]«[/b] ? should esports be illegal in the co...
By: Slaz, in: Pointer cursor won't work in JAZZ1 w/o loading WIN31 » JJ2 related 2022-01-04 09:35
Jazz1 is a DOS program and cannot work windowed in...
By: Ashurna, in: -JJ2 lvls thread? » Clan talk 2021-10-14 21:28
cute: so why dont you go tell the robot manager; u...
By: KILLREADYSCORE, in: A beginner's guide to the game: "Jazz Jackrabbit 2" » Forum games 2021-10-14 04:03
[code] A beginner's guide to the game: "Jazz Jack...
By: KILLREADYSCORE, in: Pointer cursor won't work in JAZZ1 w/o loading WIN31 » JJ2 related 2021-10-12 07:45
[i][s][u][b]Pointer cursor won't work in JAZZ1 w/o...
By: KILLREADYSCORE, in: -JJ2 lvls thread? » Clan talk 2021-10-12 06:35
[i]Aside from the obvious maps that are already in...
By: KILLREADYSCORE, in: [MULTI] Domination map making contest! » JJ2 related 2021-10-12 05:55
Simply renaming the gamemode to ANYTHING other tha...
By: Splat, in: . . . jestes _3C_ M'S' » Off topic 2021-10-11 01:21
. . . jestes _3C_ M'S' [i]The year №№ won ...
By: Splat, in: Tertiary school ideas? » Off topic 2021-10-08 13:25
[u]Tertiary school[/u] ideas? ->During [u]posts...
By: Splat, in: Repeat login verification? » Site suggestions 2021-10-08 06:51
-I notice that on this website, there aren't seem...
By: Splat, in: It's about time to start wraping thingz up » Improving rules 2021-10-07 13:53
-For reference, I.M.O., recent versions of the mod...
By: Vivando, in: [MULTI] Domination map making contest! » JJ2 related 2021-10-06 20:53
Violet's entries are now finally added to the DOM ...
By: stijn, in: It's about time to start wraping thingz up » Improving rules 2021-09-07 14:24
Who would be in this next group? If you know C+...
By: Splat, in: It's about time to start wraping thingz up » Improving rules 2021-09-07 08:30
The curent "plus-team" has had [u]almost[/u]_[u]10...
By: Splat, in: JJ2 ladder clan comparisons » Clan talk 2021-08-06 12:54
I would like to attempt to conduct an upvalueing o...
By: Splat, in: Unoriginal team names should be issued infractions » Clan talk 2021-08-06 12:05
"Unoriginal team names should be issued infraction...
By: Slaz, in: JJ2 ladder clan comparisons » Clan talk 2021-07-07 22:17
CDF is still the sexiest clan. :flex:
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: 333
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: 383
56
#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...