2 Obscure WinQuake fixes
Moderator: InsideQC Admins
22 posts
• Page 2 of 2 • 1, 2
Re: 2 Obscure WinQuake fixes
Do these kind of things crash the id386 asm too?
I ask because some of calculations in C work slightly dfferently if id386 is defined.
Like does the sprite draw Z issue crash the asm code too?
I ask because some of calculations in C work slightly dfferently if id386 is defined.
Like does the sprite draw Z issue crash the asm code too?
The night is young. How else can I annoy the world before sunsrise?
Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
-

Baker - Posts: 3666
- Joined: Tue Mar 14, 2006 5:15 am
Re: 2 Obscure WinQuake fixes
Baker wrote:Do these kind of things crash the id386 asm too?
Yes. I always test my code with the x86 ASM enabled.
But I also test the pure C code when finding such bugs, and Makaqu's model crash bug is in there too.
Baker wrote:Like does the sprite draw Z issue crash the asm code too?
Yes. However, I didn't test this one to see if it happens in pure C.
-

mankrip - Posts: 915
- Joined: Fri Jul 04, 2008 3:02 am
Re: 2 Obscure WinQuake fixes
It also happens in pure C. I believe it has to do with drawing one whole pixel covering the screen, and trying to draw the next but it couldn't find a space for it and has an access violation right there. An alternative way to fix this would be better sprite clipping code that's more aware of screen boundaries
i should not be here
- leileilol
- Posts: 2783
- Joined: Fri Oct 15, 2004 3:23 am
Re: 2 Obscure WinQuake fixes
For me, it is very hard to create the scenario. I have had it exactly once during debugging ever, despite trying to cause the conditions to occur again.qbism wrote:Is there a specific scenario that can duplicate this crash?
There might be a consistent way to cause it, but I am unaware of it.
The night is young. How else can I annoy the world before sunsrise?
Inquisitive minds want to know ! And if they don't -- well like that ever has stopped me before ..
-

Baker - Posts: 3666
- Joined: Tue Mar 14, 2006 5:15 am
Re: 2 Obscure WinQuake fixes
qbism wrote:Is there a specific scenario that can duplicate this crash?
In the previous page:
leileilol wrote:I discovered the crash happening in Quake 1.01 (yes this crash goes way back, errormessage spewing something about surfacecache) after trying a mod that spammed bubbles exactly at the view, where swimming backwards would trigger a crash. I kept reproducing this crash, kept debugging and managed to fix it around 2012 as well (without any knowledge of szo's fix).
Also, much like Hexen II, the mod was also programmed by Mike Gummelt. XD so props to him for coding stuff that triggers obscure engine crashes easily in '96!
-

mankrip - Posts: 915
- Joined: Fri Jul 04, 2008 3:02 am
Re: 2 Obscure WinQuake fixes
Got it. Easiest to duplicate with a stationary sprite. Move back and forth through it slowly. Normally engine will stop rendering the sprite when pixel height is almost full screen but eventually will crash.
-
qbism - Posts: 1236
- Joined: Thu Nov 04, 2004 5:51 am
22 posts
• Page 2 of 2 • 1, 2
Who is online
Users browsing this forum: No registered users and 1 guest