News:

Herr Otto Partz says you're all nothing but pipsqueaks!

Main Menu

Geometry height anomaly.

Started by Daniel3D, May 05, 2022, 02:57:59 PM

Previous topic - Next topic

Daniel3D

The new version has a bug.. (Admin edit: this refers to an already replaced version of Zapper's KITT.)

In the new version it crashed. In a cracked stunts.com it crashed to but different.
In stunts_k (neverlock) it loads but missing track elements.. (no start, no hills. I see the windmill floating ahead.)

Very interesting. But I can't research it without my computer. 

Edit: I drove around a bit. (See screenshots)  and it's weird. Track pieces sometimes appeared late, hung elevated, then dropped down again.
Edison once said,
"I have not failed 10,000 times,
I've successfully found 10,000 ways that will not work."
---------
Currently running over 20 separate instances of Stunts
---------
Check out the STUNTS resources on my Mega (globe icon)

Cas

This is very interesting. It looks like a memory corruption problem that's non-fatal if Neverlock is loaded, probably because being it in memory causes Stunts to be loaded somewhere else or to split its memory usage into two regions or to put together two regions that would be split otherwise. It appears that the memory region where tracks are resolved (that is, converted to 3D track elements) gets overwritten by something from the car. We could separately try replacing each of the new files with its corresponding old one to see where the problem lays, although, Zapper, you know what changes you have made and will surely have a better idea of what could be causing this. I don't think this can be exploited in any way, sadly, precisely because it doesn't impact the game the same way depending on what's loaded before it. But the effects are really very curious!
Earth is my country. Science is my religion.

alanrotoi


Zapper

#3
Hello you all,

Something went wrong saving the RES file using the latest version of Stressed. The placement of resources in the file was changed so I remade the mod with the HEX editor.

Thanks for your prompt feedback.

I've replaced the bad released zip with a new one in the recent post link.

Sorry for the inconvenience.

Daniel3D

#4
Quote from: Zapper on May 06, 2022, 02:15:01 AM
Sorry for the inconvenience.
inconvenience?? No. It was amazing.
The most beautiful bug ever.
It was just visual weirdness.
The track was drivable like normal.
Edison once said,
"I have not failed 10,000 times,
I've successfully found 10,000 ways that will not work."
---------
Currently running over 20 separate instances of Stunts
---------
Check out the STUNTS resources on my Mega (globe icon)

Daniel3D

Looking at it again with a lot of switching between camera angles I believe only one value is affected. The height value of the drawn geometry. That is either 0 or 1. That seems to be changing when loading between far and nearby geometry.
Edison once said,
"I have not failed 10,000 times,
I've successfully found 10,000 ways that will not work."
---------
Currently running over 20 separate instances of Stunts
---------
Check out the STUNTS resources on my Mega (globe icon)

Cas

It's true!  Only the height. So those parts where the track is missing and there's only grass, actually the road is there, only it's higher. I hadn't noticed it! XD
Earth is my country. Science is my religion.

alanrotoi

Now the question is how high? Is it possible to build a super elevated road?

Daniel3D

I thought something like that when I was reading the code.
I found a height modifier. But it only accepts 0 and 1 as far as I can tell. Any higher and it crashed. But I never tested with the stunts_k. So maybe it just alternates (odd or even).
I'll make a new topic for it and stop polluting this one.
Edison once said,
"I have not failed 10,000 times,
I've successfully found 10,000 ways that will not work."
---------
Currently running over 20 separate instances of Stunts
---------
Check out the STUNTS resources on my Mega (globe icon)

Daniel3D

@Zapper.
Are you ok with me attaching the corrupted version of your car for those who want to research this?
Edison once said,
"I have not failed 10,000 times,
I've successfully found 10,000 ways that will not work."
---------
Currently running over 20 separate instances of Stunts
---------
Check out the STUNTS resources on my Mega (globe icon)

Zapper

#10
Quote from: Daniel3D on May 06, 2022, 09:47:47 PM
@Zapper.
Are you ok with me attaching the corrupted version of your car for those who want to research this?

Hi @Daniel3D, unfortunately I replace locally the bug version with a corrected one...
I also tried to reproduce the bug, without success.

The file attached, when I post the initial mod version, had the following url:
http://forum.stunts.hu/index.php?action=dlattach;topic=3636.0;attach=9777
...but it's now unavailable.

Do you have the zip file somewhere in browser's transfers folder?

Daniel3D

#11
I have a backup of the car.
I renamed the zip file so it is recognisable.
Edison once said,
"I have not failed 10,000 times,
I've successfully found 10,000 ways that will not work."
---------
Currently running over 20 separate instances of Stunts
---------
Check out the STUNTS resources on my Mega (globe icon)

Daniel3D

#12
Quote from: Zapper on May 06, 2022, 11:36:41 PM
I also tried to reproduce the bug, without success.
Neither can I. It is a curious and interesting case.

It gives insight into the split between graphics engine and collision engine.  At least that is my current view.

Notable observations.
  • Grip seems connected to the model. When the road is moved above you, the car acts as driving on grass.
    Edit: all surfaces are treated as grass.
  •   The hill is still physically there even if not visible.
  • Only ground collision still works. All objects can be driven through.
Edison once said,
"I have not failed 10,000 times,
I've successfully found 10,000 ways that will not work."
---------
Currently running over 20 separate instances of Stunts
---------
Check out the STUNTS resources on my Mega (globe icon)

Cas

Could it be that wall is shifted up for the tiles in which plan is not and vice-versa?  Haven't yet tested that crazy assumption :D
Earth is my country. Science is my religion.