Fast-64 / fast64

Blender based editor for scenes, meshes, and more in first-party N64 games
GNU General Public License v3.0
310 stars 74 forks source link

[SM64] Scrolling Textures are broken #362

Open Retro-Hax opened 4 months ago

Retro-Hax commented 4 months ago

I am unsure since when Scrolling Textures are broken nor why (of it is an issue with my Repo as i am using plain ultrasm64) but basically here is my Blender Settings for Scrolling Textures as well as my Output of the Compiler

EDIT: Create A Level and Gemoetry with a Scrolling Texture and Export the Level while it will say Success the Compiler will have issues!

image

src/game/tile_scroll.c: In function 'shift_s':
src/game/tile_scroll.c:16:25: error: initialization of 'SetTileSize *' from incompatible pointer type 'Gfx *' [-Wincompatible-pointer-types]
   16 |     SetTileSize *tile = dl;
      |                         ^~
src/game/tile_scroll.c: In function 'shift_t':
src/game/tile_scroll.c:23:25: error: initialization of 'SetTileSize *' from incompatible pointer type 'Gfx *' [-Wincompatible-pointer-types]
   23 |     SetTileSize *tile = dl;
      |                         ^~
src/game/tile_scroll.c: In function 'shift_s_down':
src/game/tile_scroll.c:30:25: error: initialization of 'SetTileSize *' from incompatible pointer type 'Gfx *' [-Wincompatible-pointer-types]
   30 |     SetTileSize *tile = dl;
      |                         ^~
src/game/tile_scroll.c: In function 'shift_t_down':
src/game/tile_scroll.c:37:25: error: initialization of 'SetTileSize *' from incompatible pointer type 'Gfx *' [-Wincompatible-pointer-types]
   37 |     SetTileSize *tile = dl;
      |                         ^~
make: *** [Makefile:702: build/us_n64/src/game/tile_scroll.o] Error 1
make: *** Waiting for unfinished jobs....
In file included from ./src/game/texscroll/castle_grounds_texscroll.inc.c:2,
                 from src/game/texscroll.c:16:
./levels/castle_grounds/texscroll.inc.c: In function 'scroll_castle_grounds_dl_Mountain_mesh_layer_1_vtx_3':
./levels/castle_grounds/texscroll.inc.c:12:13: error: implicit declaration of function 'absi' [-Wimplicit-function-declaration]
   12 |         if (absi(currentY) > height) {
      |             ^~~~
./levels/castle_grounds/texscroll.inc.c:13:69: error: implicit declaration of function 'signum_positive' [-Wimplicit-function-declaration]
   13 |                 deltaY -= (int)(absi(currentY) / height) * height * signum_positive(deltaY);
      |                                                                     ^~~~~~~~~~~~~~~
make: *** [Makefile:702: build/us_n64/src/game/texscroll.o] Error 1
Xero64YT commented 1 week ago

Hey, I also have this issue when exporting a level with scrolling textures and compiling. Has anyone found a solution/workaround?