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

All Textures showing as Purple and Black #22

Closed
cgaldieri opened this issue Apr 21, 2021 · 15 comments · Fixed by #24
Closed

All Textures showing as Purple and Black #22

cgaldieri opened this issue Apr 21, 2021 · 15 comments · Fixed by #24
Labels
bug Something isn't working

Comments

@cgaldieri
Copy link

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
Copy link
Owner

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.

@MorsGames MorsGames added the bug Something isn't working label Apr 22, 2021
@cgaldieri
Copy link
Author

did you read the bottom part?

@cgaldieri
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

yes, i am

@MorsGames
Copy link
Owner

Try the latest commit and see if that works.

@sgiraudot
Copy link

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
Copy link

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
Copy link
Author

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
Copy link
Owner

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
Copy link
Author

I am to send a pull request, ok?

@cgaldieri
Copy link
Author

The pull request: #23

@cgaldieri
Copy link
Author

This should work! Thanks for all

@cgaldieri
Copy link
Author

cgaldieri commented Apr 24, 2021

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

THANKS FOR ALL

@TotorRuns
Copy link

I have the same issuse on my xubuntu machine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants