mirror of
https://github.com/jkdansereau/goldeneye-pc-port.git
synced 2026-10-23 15:52:42 +02:00
52ec6d837ce9e85b7aa4b5627c2092a294996fd9
bgTestRayIntersectionInRoom (bg.c) is the D135 sibling flagged since M-23: an unported N64 GBI parser walking the 16-byte PC room DL with raw ((u8*)gdl)[k] / ((u32*)gdl)[i] 8-byte-Gfx byte/word indexing. It runs on every shot that resolves against background geometry (bgTestBulletHitBackground), so it AVs the first time you shoot a wall or floor in a real playthrough -- invisible to the no-input level sweep. Ported #ifdef PORT (N64 path kept verbatim under #else): - vtxoff / vtxbase / op read through the .dma view, matching the already-ported bgBuildRoomVtxBounds. - G_TRI1 vertex indices from (w1 >> 16/8/0) & 0xff, /10. - the 12 G_TRI4 index nibbles recovered from (u32)gdl->words.w0/.w1, each mapped from the N64 byte/halfword layout (table in the code comment; cross-checked twice). - both texturenum recoveries -> -1: the KSEG0 *(u16*)(w1-8) deref is not valid for the port's converted GDLs (same as D135); texnum only selects the bullet-impact decal/sound, parked with D77. Build: green (ntsc-final). NOT VERIFIED -- a no-input GE_PCDUMP capture never fires a bullet so it never enters this function; needs a firefight into a wall on an idle machine. This session's box was too thrashed to get a clean run (D153 driver-crash-under-load). Committed as WIP so the port work isn't lost; next session: idle-machine wall-shoot test + -level_09 framediff, then mark verified. §F/HANDOFF D154, PORT-LEARNINGS §B (D135 corollary).
Goldeneye 007
About this repository
This is a WIP decompilation of Goldeneye 007!
It builds the following ROMs:
- ge007.u.z64
sha1: abe01e4aeb033b6c0836819f549c791b26cfde83 - ge007.j.z64
sha1: 2a5dade32f7fad6c73c659d2026994632c1b3174 - ge007.e.z64
sha1: 167c3c433dec1f1eb921736f7d53fac8cb45ee31
Note: This repository does not include all assets necessary for compiling the ROMs. A prior copy of the game is required to extract the assets.
Documentation
- Setup Guide: useful information about installing the necessary dependencies and how to use it
- Structure Guide: learn more about the project structure of this repository
- Style Guide: code style conventions if you want to contribute code
Languages
C
92.9%
C++
2.8%
Python
1.8%
Assembly
1.2%
HTML
0.4%
Other
0.7%