JazzJackrabbit Community Forums

JazzJackrabbit Community Forums (http://www.jazz2online.com/jcf/index.php)
-   General Jazz Jackrabbit Talk (http://www.jazz2online.com/jcf/forumdisplay.php?f=4)
-   -   JJ2 game bug fixing (http://www.jazz2online.com/jcf/showthread.php?t=14407)

Michael Jan 16, 2006 05:52 AM

Who cares it's just a name for a patch. Call it "the bugfixez"

UNKNOWNFILE Jan 16, 2006 02:57 PM

Just a queston: has anyone here been able to hack JJ2's memory so that it's more that normal without crashing?

Bobby aka Dizzy Jan 16, 2006 06:47 PM

What do you mean by "more that normal"?

Black Ninja Jan 16, 2006 07:41 PM

More than normal*

UNKNOWNFILE Jan 17, 2006 05:36 AM

As in more than 9215 KB of reserved memory, possibly increased to 20000 KB.

UNKNOWNFILE Jan 17, 2006 02:12 PM

Browsing through the code, I managed to accidentally uncover the Shareware menu that displays when you exit the shareware version of the game and it shows you all the nice features you can get. Here's a program I made in TMK that will allow you to open that menu in your REGISTERED version:

moo

n00b Jan 17, 2006 02:39 PM

Nifty find UF.
That reminds me, despite the fact it's offtopic, has anyone found a way to rip the textured BG in the Shareware menu? I've always wanted to use it in a level.

Grytolle Jan 17, 2006 03:50 PM

Awesome =D *laughing quietly out loud*

UNKNOWNFILE Jan 18, 2006 08:33 AM

I'm heavily considering releasing the Jazz2 IDB file that is commented where I have found some stuff. Some other functions have been identified. It will be available to anyone who can give me the CRC-32 of Jazz2.exe version 1.23 to prevent stuff from being pirated.

Monolith Jan 18, 2006 09:24 PM

What is an IDB file?

Grytolle Jan 18, 2006 09:40 PM

IDA* maybe ;o

Bobby aka Dizzy Jan 18, 2006 11:36 PM

After a little work I believe that I have made it so the respawn bug is no longer an issue. And as soon as I fix the problem for toasters it'll be all set.

I did however have to do some code injection and I ended up overwriting a few error messages that I've never seen before. I do not know if this was necessary but I'd like to hear alternatives if people know them.

So what are the other major MP gameplay bugs that exist?

Please add on to this list, it's just a start:


  1. CTF Bug (Death on a base and you keep the flag) - does everyone consider this a bug or is it still considered a nuisance? I'd be in favor of removing it if possible but that's my opinion on this one.
  2. CTF Bug (names repeat) - I've heard that if you increase the levelsize by a few numbers that this more or less goes away? I've not tested this myself to confirm it however.
  3. Seeker Holes - it should be possible to fix this with some work.
  4. Red team does not have brackets in team chat
  5. Team chat doesn't work when teams are not default. (this could be difficult to fix depending - I have not looked into it)


    Bugs such as 3hk are too wide of a scope I believe and I would not want to attempt to tackle that.


    Alternate Question: How should a patch that only fixes a number of gameplay issues such as the ones listed above be released? What are your thoughts/opinions?

Grytolle Jan 19, 2006 12:18 AM

Priority:
1. Death on Base
2. Brackets
3. Spammy CTF bug
4. Teamchat as not def
5. Seekholes

Oh, and it must be annoying that toaster has an entire own system för ammocount and stuff like that ;o

EDIT: Too long packets should be ignored... (stops certain crashing that I have troubles trying to filter atm)

White Rabbit Jan 19, 2006 05:20 AM

How about you tell us the bugs you've encountered, Bob? (I know you've already asked me if I ever had them :p).

And I just think all the patches should be put into one JJ2.exe, rather than writing directly into people's current JJ2.exes because that's most hassle-free.

Cpp Jan 19, 2006 02:55 PM

Quote:

Originally Posted by Bobby aka Dizzy
And as soon as I fix the problem for toasters it'll be all set.

1 toaster ammo on jj2 hud counts as 32 in memory ;-)

Quote:

Originally Posted by Grytolle
Too long packets should be ignored... (stops certain crashing that I have troubles trying to filter atm)

Define "too long packets".
UDP traffic usually gives no trouble. It's the TCP traffic that can do harm to jj2 eg causes servers to freeze. If you think long packets should be ignored then I guess nobody would be able to download since the long name crash packets are still shorter than download packets. Both are TCP tho.

UNKNOWNFILE Jan 19, 2006 02:59 PM

Quote:

Originally Posted by Monolith
What is an IDB file?

An IDB is an IDA Pro DataBase file, that consists of the file's disassembled code and functions. I've pointed out a few in my file.

Alberto Jan 19, 2006 05:41 PM

Hey, first of all congrats for your project, I've downloaded it and I've seen you patched some language files, I read in the log that it was a missing string, anyway, I'd be glad to correct all the spelling mistakes in Spanish language file, anything I can do?

UNKNOWNFILE Jan 19, 2006 06:03 PM

Sure, go ahead.

Monolith Jan 19, 2006 09:44 PM

Quote:

Originally Posted by UNKNOWNFILE
An IDB is an IDA Pro DataBase file, that consists of the file's disassembled code and functions. I've pointed out a few in my file.

IDA Pro... a $450 program to fix a few bugs in JJ2?

Grytolle Jan 19, 2006 11:12 PM

Quote:

Originally Posted by Overlord
1 toaster ammo on jj2 hud counts as 32 in memory ;-)


Define "too long packets".
UDP traffic usually gives no trouble. It's the TCP traffic that can do harm to jj2 eg causes servers to freeze. If you think long packets should be ignored then I guess nobody would be able to download since the long name crash packets are still shorter than download packets. Both are TCP tho.

Oh, (-). Back to that filter instead then. Isn't there a better tool than WPE around?=/

And uh, 32 in hex or in dec?

Cpp Jan 20, 2006 04:17 AM

Quote:

Originally Posted by Monolith
IDA Pro... a $450 program to fix a few bugs in JJ2?

I just downloaded this program out of curiosity and it turns out to be one hell of a debugger and disassembler. Previously I used the infamous W32DASM & HIEW.

Quote:

Originally Posted by Grytolle
And uh, 32 in hex or in dec?

Decimal.
The way jj2 handles toaster ammo is a bit different from the other weapons. Unlike in JJ1 (and JJA if I recall correctly) where one toaster ammo means one shot with the toaster, one JJ2 toaster ammo means 32(dec) ammunition in jj2 memory. When you hold down the fire button, this number will rapidly decrease. I'm not sure how many visible shots this counts as, but from the looks of it I'd say it's far less than 32.

Tik Jan 20, 2006 05:28 AM

I dunno how well recieved this will be since I haven't been keeping up with this thread, I just had a thought on a bug I'd like to see fixed. Actually, I'm not even sure if it's a bug or not, but it has bothered me since I began playing jj2. When you have invinsibility, you lose it when performing an action to some object/enemy (buttstomping, uppercut, etc). I don't doubt it should be a low-priority fix, but it seemed possible. Forgive me if this has already been addressed.

Grytolle Jan 20, 2006 06:00 AM

Ooverlord, if I remember tight it's 360 for a 30 second shield. This would give us 360/30=12. I haven't messed with ammocount for a while now though. And this would of course be why this weapons have other ammo incrase and decrease functions. Let's stop this 8)

I never noticed that Spaztic, but it sure sounds like a bug to me.

Stijn Jan 20, 2006 06:49 AM

Quote:

Originally Posted by Spaztic
I dunno how well recieved this will be since I haven't been keeping up with this thread, I just had a thought on a bug I'd like to see fixed. Actually, I'm not even sure if it's a bug or not, but it has bothered me since I began playing jj2. When you have invinsibility, you lose it when performing an action to some object/enemy (buttstomping, uppercut, etc). I don't doubt it should be a low-priority fix, but it seemed possible. Forgive me if this has already been addressed.

That's fun, in my experience you actually gain invincibility while buttstomping. It's a trick I commonly use in Single Player levels ;)

cooba Jan 20, 2006 07:06 AM

Quote:

Originally Posted by Stijn
in my experience you actually gain invincibility while buttstomping.

Type JJInv and buttstomp an enemy. The invincibility will be lost.

Cpp Jan 20, 2006 07:47 AM

That happens because you gain a very short invincibility when buttstomping or eating a carrot. Problem is that jj2 will write a fixed value to the invincibility address rather than leave it alone, should the number at the address be greater.

Alberto Jan 20, 2006 11:40 AM

The only way I find to edit .j2s files is by hexediting and not adding more bytes to the file, so I can't add stuff, and many corrections need more, also, Spanish language in Jazz2 is not well done and it's like literally translated from English.

Any other way to edit the .j2s file in a way I can add more?

UNKNOWNFILE Jan 20, 2006 11:51 AM

I have no idea.

Alberto Jan 20, 2006 01:12 PM

What did the others do?

UNKNOWNFILE Jan 20, 2006 03:17 PM

I changed "Battle1" to "Colon1" and added the strings in.

Grytolle Jan 20, 2006 03:55 PM

Why?

UNKNOWNFILE Jan 20, 2006 04:11 PM

The strings weren't needed.

Grytolle Jan 20, 2006 04:32 PM

But why the nameswitch?

Alberto Jan 20, 2006 06:12 PM

I can edit but I can't add, if I try to add or remove a byte in hex the game crashes

Alberto Jan 20, 2006 06:15 PM

Besides, Overlord, your update program asks for the CD, the problem is that the people with the 1.20 version don't have the directory called resources

Monolith Jan 20, 2006 09:00 PM

Quote:

Originally Posted by Alberto
The only way I find to edit .j2s files is by hexediting and not adding more bytes to the file, so I can't add stuff, and many corrections need more, also, Spanish language in Jazz2 is not well done and it's like literally translated from English.

Any other way to edit the .j2s file in a way I can add more?

Sounds like there's either some sort of corruption check (checksum), or fixed offsets somewhere that make it not very editable.

UNKNOWNFILE Jan 20, 2006 09:03 PM

Well I managed to restore the gemring fix which is pretty screwy. I did however manage to come up with the following block of ASM code:

Code:

WOW ASM CODE!!!!!!!!!11
cmp ebx, 00h <--omg crash bug is caused by a register being empty
jnz soandso <--if condition is not met
mov ebx, 01h <--there you go, you sux function you
retn <--returns from process

soandso:
call rotator
retn

And somehow JJ2 takes 3 seconds longer to load serverlists. ;O

UNKNOWNFILE Jan 23, 2006 08:15 AM

.....and it's abandoned.

I'm going to be posting the (unfinished) 1.23.1 patch later on today. The gemring bug has been fixed once more causing the similar glitching seen before. It also takes a few seconds to load the serverlist.

This decision brought to you by my willingness to join the 1.25 council.

UNKNOWNFILE Jan 23, 2006 02:40 PM

Actually, it never will be released. I think it would be better off left internal.

Alberto Jan 23, 2006 02:52 PM

Like you want, but I guess you should release the most stable version you have made until now for the ppl who have updated the game with previous ones, also, you should make a cumulative update that contains all the extra files that were changed, btw, I already fixed my Spanish.j2s


All times are GMT -8. The time now is 10:45 PM.

Powered by vBulletin® Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
JCF © 2001-Infinity Jazz2Online