Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Failed to load fonts. #125

RetrogisusDEV started this conversation in Bug report
Nov 24, 2024 · 2 comments · 3 replies
Discussion options

Version: 1.3.0
Build date: 2024年07月27日 09:03
OS: Windows 10 (amd64)
JRE: 22.0.2
OpenGL version: 1.1.0 (Microsoft Corporation)
Error: Failed to load fonts.
Stack trace:

java.lang.NullPointerException: Cannot invoke "java.util.Map.toString()" because "clonewith.opsu.I18N.tlMap" is null
	at clonewith.opsu.I18N.getFontmap(I18N.java:95)
	at org.newdawn.slick.UnicodeFont.addLocaleGlyphs(UnicodeFont.java:378)
	at itdelatrisu.opsu.ui.Fonts.loadFont(Fonts.java:104)
	at itdelatrisu.opsu.ui.Fonts.init(Fonts.java:83)
	at itdelatrisu.opsu.Utils.init(Utils.java:136)
	at itdelatrisu.opsu.states.Splash.init(Splash.java:109)
	at org.newdawn.slick.state.StateBasedGame.init(StateBasedGame.java:171)
	at org.newdawn.slick.AppGameContainer.setup(AppGameContainer.java:393)
	at itdelatrisu.opsu.Container.runSetup(Container.java:113)
	at itdelatrisu.opsu.Container.start(Container.java:72)
	at itdelatrisu.opsu.Opsu.main(Opsu.java:190)

I get this error when trying to run OPSU and I don't know what is missing or what is needed, I installed the fonts inside the jar, (although I had a problem with the FFMPEG and Graphics libraries that were not extracted, which I have already solved)

My question: what is the problem?

(Translator of Google xd)

You must be logged in to vote

Replies: 2 comments 3 replies

Comment options

It seems that opsu! cannot read the translation strings correctly. Even I've encountered this a few times...

Currently the I18N implementation is a bit messed up, and I'm trying to fix it. You can use older versions or compile from source code for now.

You must be logged in to vote
1 reply
Comment options

Understood, I'll try it in a bit. The device's language is set to ES_421 (Latin American Spanish), and it seems to only have neutral (global) languages available. It's strange that even when loading the default (English), it gives that error...

Comment options

Now it should be fixed in v1.3.1, have a try!

You must be logged in to vote
2 replies
Comment options

The previous error is gone, but now I'm getting a "Failed to load 'Menu-Background'" error. I'm trying to figure out the cause. Should the skin images be placed in the 'natives' folder or in a separate folder? I'll look through the code now to see if I can solve it through brute force.

Comment options

Are you using the default skin? I found some problems exposed in the log files while running the game. Will look into these.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working /framework Base components

AltStyle によって変換されたページ (->オリジナル) /