Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SM64] Scrolling Textures are broken #362

Open
Retro-Hax opened this issue Jun 13, 2024 · 1 comment
Open

[SM64] Scrolling Textures are broken #362

Retro-Hax opened this issue Jun 13, 2024 · 1 comment
Labels
sm64 Has to do with the Super Mario 64 side

Comments

@Retro-Hax
Copy link

Retro-Hax commented Jun 13, 2024

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
@Retro-Hax Retro-Hax changed the title Scrolling Textures are broken [SM64] Scrolling Textures are broken Jun 14, 2024
@Dragorn421 Dragorn421 added the sm64 Has to do with the Super Mario 64 side label Aug 22, 2024
@Xero64YT
Copy link

Xero64YT commented Oct 12, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sm64 Has to do with the Super Mario 64 side
Projects
None yet
Development

No branches or pull requests

3 participants