MorsGames / sm64plus

A fork of sm64-port that focuses on QoL improvements and customizability.
https://mfgg.net/index.php?act=resdb&param=02&c=2&id=38190
456 stars 33 forks source link

All Textures showing as Purple and Black #22

Closed cgaldieri closed 3 years ago

cgaldieri commented 3 years ago

I am having trouble trying to play the port, just see this: sm64plus-bug sm64plus-bug2 sm64plus-bug3 sm64plus-bug4 I don't know why this happens, the textures are still in the folders, i tried to use the FAQ but don't worked, i viewed the log, nothing about textures missing, im using linux mint 20.1, anyone can help?

MorsGames commented 3 years ago

Once again, the FAQ addresses this issue and offers a workaround. It will be fixed in the next version.

Maybe I shouldn't have closed the other issue until the issue was actually fixed so I'll leave this one open.

cgaldieri commented 3 years ago

did you read the bottom part?

cgaldieri commented 3 years ago

Because i already tried the FAQ, but here's the problems:

It's a windows directory, not a linux directory (because i use linux mint 20.1) And even when i try to delete the gfx folder, still doesn't work.

I think it is my computer.

MorsGames commented 3 years ago

Oh sorry, I didn't see the Linux Mint part.

Are you on the dev branch? Either way, I'll look into it more later today.

cgaldieri commented 3 years ago

yes, i am

MorsGames commented 3 years ago

Try the latest commit and see if that works.

sgiraudot commented 3 years ago

Hi, I'm using Linux Mint too, I have the same problem, I've tried with the latest commits of the dev branch and it did not fix it.

ioncorimenia commented 3 years ago

My printf was literally including the text \x00 instead of an actual NUL. This fixed it for me.

diff --git a/Makefile b/Makefile
index f053527..f1255b7 100644
--- a/Makefile
+++ b/Makefile
@@ -602,11 +602,11 @@ $(BUILD_DIR)/%.ci4: %.ci4.png
 else

 $(BUILD_DIR)/%: %.png
-   printf "%s%b" "$(patsubst %.png,%,$^)" '\x00' > $@
+   printf "%s%b" "$(patsubst %.png,%,$^)" > $@

 $(BUILD_DIR)/%.inc.c: $(BUILD_DIR)/% %.png
    hexdump -v -e '1/1 "0x%X,"' $< > $@
-   echo >> $@
+   printf '0x00\n' >> $@

 endif
cgaldieri commented 3 years ago

so... what i need to do, i need to change the part of the line: - printf "%s%b" "$(patsubst %.png,%,$^)" '\x00' > $@ ⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀^⠀⠀⠀⠀⠀ from \x00 to \NUL?

MorsGames commented 3 years ago

My printf was literally including the text \x00 instead of an actual NUL. This fixed it for me.

diff --git a/Makefile b/Makefile
index f053527..f1255b7 100644
--- a/Makefile
+++ b/Makefile
@@ -602,11 +602,11 @@ $(BUILD_DIR)/%.ci4: %.ci4.png
 else

 $(BUILD_DIR)/%: %.png
- printf "%s%b" "$(patsubst %.png,%,$^)" '\x00' > $@
+ printf "%s%b" "$(patsubst %.png,%,$^)" > $@

 $(BUILD_DIR)/%.inc.c: $(BUILD_DIR)/% %.png
  hexdump -v -e '1/1 "0x%X,"' $< > $@
- echo >> $@
+ printf '0x00\n' >> $@

 endif

You can send a pull request and I will check when I get the time. Weirdly it works just fine on Manjaro so I didn't think that there would be issues on other distros.

cgaldieri commented 3 years ago

I am to send a pull request, ok?

cgaldieri commented 3 years ago

The pull request: https://github.com/MorsGames/sm64plus/pull/23

cgaldieri commented 3 years ago

This should work! Thanks for all

cgaldieri commented 3 years ago

MORS, the @ioncorimenia maked a pull request, so this issue is closed

THANKS FOR ALL

TotorRuns commented 3 years ago

I have the same issuse on my xubuntu machine