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

Issues in version 2.2 #7

Open
niraj-rayalla opened this issue Apr 5, 2022 · 6 comments
Open

Issues in version 2.2 #7

niraj-rayalla opened this issue Apr 5, 2022 · 6 comments

Comments

@niraj-rayalla
Copy link
Contributor

  1. I cannot pull the commit that the Effekseer has been updated to (https://github.com/effekseer/Effekseer/tree/2e9601f372f631dceee731a17a0676777d6eeb29).

  2. I have this exception at run time. For some reason SetTime() in EffekseerManagerCore is not available.

Exception in thread "GL Thread" com.badlogic.gdx.utils.GdxRuntimeException: java.lang.UnsatisfiedLinkError: io.github.srjohnathan.gdx.effekseer.core.GDXJNI.EffekseerManagerCore_SetTime(JLio/github/srjohnathan/gdx/effekseer/core/EffekseerManagerCore;F)V
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.<init>(Lwjgl3Application.java:122)
	at ...
Caused by: java.lang.UnsatisfiedLinkError: io.github.srjohnathan.gdx.effekseer.core.GDXJNI.EffekseerManagerCore_SetTime(JLio/github/srjohnathan/gdx/effekseer/core/EffekseerManagerCore;F)V
	at io.github.srjohnathan.gdx.effekseer.core.GDXJNI.EffekseerManagerCore_SetTime(Native Method)
	at io.github.srjohnathan.gdx.effekseer.core.EffekseerManagerCore.SetTime(EffekseerManagerCore.java:236)
	at io.github.srjohnathan.gdx.effekseer.wrapped.EffekseerManager.draw(EffekseerManager.java:351)
	...
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Window.update(Lwjgl3Window.java:403)
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.loop(Lwjgl3Application.java:143)
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.<init>(Lwjgl3Application.java:116)
	... 1 more
@SrJohnathan
Copy link
Owner

SrJohnathan commented Apr 6, 2022 via email

@niraj-rayalla
Copy link
Contributor Author

niraj-rayalla commented Apr 6, 2022

Oh my bad. I forgot to add the following block of code in the readme.
You are probably getting that issue because you haven't added the loaders to your AssetManager instance.

Add this to your AssetManager instance before calling EffekseerParticle.syncLoad() or EffekseerParticle.asyncLoad()

assetManager.setLoader(EffekseerParticleSubAssetLoader.Result.class, null, new EffekseerParticleSubAssetLoader(fileHandleResolver));
assetManager.setLoader(EffekseerParticleAssetLoader.Result.class, null, new EffekseerParticleAssetLoader(fileHandleResolver));

I'll add it to the readme.

@niraj-rayalla
Copy link
Contributor Author

Updated the readme in niraj-rayalla@012ec4d

@niraj-rayalla
Copy link
Contributor Author

I seem to have this issue in 2.2.2:

Exception in thread "GL Thread" com.badlogic.gdx.utils.GdxRuntimeException: java.lang.UnsatisfiedLinkError: io.github.srjohnathan.gdx.effekseer.core.GDXJNI.EffekseerBackendCore_InitializeAsOpenGL()Z
	at com.badlogic.gdx.backends.lwjgl3.Lwjgl3Application.<init>(Lwjgl3Application.java:122)
Caused by: java.lang.UnsatisfiedLinkError: io.github.srjohnathan.gdx.effekseer.core.GDXJNI.EffekseerBackendCore_InitializeAsOpenGL()Z
	at io.github.srjohnathan.gdx.effekseer.core.GDXJNI.EffekseerBackendCore_InitializeAsOpenGL(Native Method)
	at io.github.srjohnathan.gdx.effekseer.core.EffekseerBackendCore.InitializeAsOpenGL(EffekseerBackendCore.java:44)
	at io.github.srjohnathan.gdx.effekseer.wrapped.EffekseerManager.<init>(EffekseerManager.java:75)

@SrJohnathan
Copy link
Owner

SrJohnathan commented May 8, 2022 via email

@niraj-rayalla
Copy link
Contributor Author

I emailed you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants