![]() |
The Access violation
What kind of different things cause access violations in levels?
While I'm trying to host one level, nothing's wrong in it, but it gives access violation after the rabbit has stopped blinking. |
Access violations are normally caused when jj2 tries to read/write to a part of memory where it is not allowed to do so. Most of the time this is the fault of a bad pointer, which is the result of "bad" jj2 coding and lack of error checking. The only thing I can currently think of, which results in an AV is when you place a trigger/scenery event on a flipped animating tile, but there are definitely more. If that level is the only place where the AV occurs then its probably a matter of level design itself. Otherwise there can be something wrong with your jj2, likely your animation library.
|
Access Violation, although it's outdated and poorly written...
|
Same happens to me with his level file. Save & Run works normally though. It's only crasing when hosting.
|
Quote:
|
Garr.. When playing single player, if i warp once, then again, i get an access violation. The problem started with only lori, then moved to jazz, and now spaz.
I have been messing around in anims.j2a and the results are ----v i only messed with those and don't see how the warp could be broken. Please help... EDIT: replaced the anims.j2a, it still doesn't work... :( If this matters to andybody... WIN: Jazz Jackrabbit 2 has caused an access violation at address 0046D033h by attempting to "read" from address 00000000h from jazz2.log Also noticing that if i jump on a certain place, iget an access vio too.. pic of access vio: http://kolakcc.ath.cx/access%20vio.bmp Quote:
|
Just make sure you get another Jazz2.log and it might actually work!
Unfortunatly its not that easy. =P |
Quote:
0046D033 MOV CX,WORD PTR DS:[EDX+EAX*2] This is a read instruction, which confirms my suspicion that AV is caused by a bad pointer. As stated in your error message, EDX+EAX*2 must be resulting in a 0. The question is what causes it, but I fear I cannot answer that just yet. I'll see if I can find something interesting. |
Well if you manage to capture the error screen with all the registers, that'd be nice.
|
been there done that,
|
The registers you posted don't tell much on what's going on as some of them get XOR-ed out. The symptoms become apparent in this function (it's 1.23), but the source of the problem could be much harder to find. I can only guess what the problem is, since I can't reproduce it.
Code:
0046DBB0 MOV EAX,ECX |
Okay, so where did you get the JJ2 source?
|
That isn't really the JJ2 source, that is just the asm (machine code) that makes up jazz2.exe itself.
|
Quote:
[IMG]http://i92.photobucket.com/albums/l30/drmooismyname/intel-inside-idiot-outside.jpg[/IMG] |
LOL I expected at least a *sigh* reply, but that second image was funnier ;p
He just talked like he had the source ;p "Oh I haven't got it commented but it's this and that line which does that so it must be something with this and that" See? ;p |
Quote:
Sooo.... how do i fix the problem..? RAWR: Can't host anymore T_T [IMG]http://kolakcc.ath.cx/access%20vio2.bmp[/IMG] EDIT: Just a note... this is all TSF.. |
Quote:
Quote:
|
Just noticed that it only happens on 1 level...
1: start in SP 2: text 3: Trigger zone 4: p-up get 5: warp 6: save point 7: warp 8: AV |
Could you please specify the level (file)name and where to get it?
|
(link)
|
Okay, I feel guilty for helping you out... because I hate hotels. But here's your problem. As I said, if it happens in a single level it's probably a matter of bad level design... which it is. Apparently you have some flipped tiles with certain events on them that are not supposed to be there. Remember! Scenery events on flipped tiles... bad idea.
[IMG]http://img385.imageshack.us/img385/8092/bugjx4.th.jpg[/IMG] |
Quote:
|
But this didn't solve Chaos's problem.
|
Quote:
|
Chaos, come here and post your level.
|
xdddd
|
Okay, that was undoubtedly chaos posing. But he didn't post the level.
|
While we're talking about AVs, does anybody actually know why JJ2 gets an access violation when playing .it files?
|
It can be because of the size of the file, or because of some of the effects the module uses.
|
It must be those effects that the galaxy mod system can't play. JJ2 needs a new module player!
|
JJ2 needs a lot new stuff IMHO
|
Well, here's a big problem:
Until about two months ago, I played JJ2 tsf (The Secret Files) and EVERY thing was FINE. I played the game with no problems at all. Since October 2014, I didn't play it anymore, even once until today. I tried to run the game today. But this time, the game didn't even start, and I see this message right on the spot: Quote:
Anybody knows what is this error and how do I get it fixed??? Thx for any help! |
Hmm, I can't make up what is causing the access violation from this (maybe there are people on this forum who can). But make sure to try things like starting the game as administrator, or check if you aren't missing any files in your JJ2 folder. And if all of that doesn't work I'm thinking of re-installing the game, but since I'm no expert in acces violations I would consider trying out the other things and waiting for replies since the solution might be way simpler :P Good luck!
|
Quote:
Anyway, I'll wait for more suggestions and see where it goes.. btw, the game seemed to be running perfectly when I restarted my PC and boot it into safe mode. I could play the game as anytime as before. And still, after I reboot the PC into the regular state, I tried to run the game once again and it seems that this error actually never gone. :! It doesn't bother me if I play it on safe mode, but the only problem is that on safe mode I don't have sound. Also, it's uncomfortable for me to do the other stuff I need on the PC while on safe mode and other features that I need are disabled such as browsing the internet. |
Show us contents of jazz2.log from after a crash.
|
Quote:
Quote:
|
You should download and install JJ2+, open Jazz2+.exe, and see if it fixes that AV for you.
http://www.moddb.com/mods/jazz-jackr...h-2013-release |
Quote:
Quote:
Quote:
And well, what is left for me to do...? |
Wrong exe, it's plusifier.exe, not plus.exe. I know, plus.exe is terribly named.
Remember to transfer all contents into the corresponding jj2 folder and extract it out of the zip. Though I have a feeling you have the LK avalon version. |
Quote:
|
| All times are GMT -8. The time now is 07:48 AM. |
Powered by vBulletin® Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
JCF © 2001-Infinity Jazz2Online