ikemen-engine / Ikemen-GO

An open-source fighting game engine that supports MUGEN resources.
https://ikemen-engine.github.io
Other
742 stars 126 forks source link

Shader Complication error on Shadow Map Shader #2116

Closed Mustardnote3943 closed 4 days ago

Mustardnote3943 commented 2 weeks ago

Describe the bug

This error seems to be related to an OpenGL extension. My graphics are Intel UHD graphics, which are integrated graphics and are up to date on driver updates. I did a graphics test, and there were no issues, so the issue must be within the game engine's dev build.

To Reproduce

this happened when I updated the Ikemen GO dev build

Expected behavior

launched normally without any issue

Screenshots / Video

here's the error prompt window: image

Engine Version (or source code date)

DEV/NIGHTLY

Operating system

Linux

Extra context or search terms

No response

Eiton commented 2 weeks ago

You can turn off the shadow at the moment under option->video settings->3d model settings. Seems like linux drivers hate geometry shaders on GL 2.1. We plan to make the GL3.2 build available for Linux and Windows after fixing some issues. Hopefully the shadow map shader can be compiled on GL 3.2.

Mustardnote3943 commented 1 week ago

thank you, I can't wait for the GL3.2 build of Ikemen GO. I love game engines.

Mustardnote3943 commented 1 week ago

sorry, I closed it. reopened.

Eiton commented 1 week ago

The newest nightly includes a second executable Ikemen_GO_GL32. Please try it.

Mustardnote3943 commented 1 week ago

when I launched the regular ikemen go, it showed the error but ikemen go ignored the error and continued work as usual. but as of right now, I launched it today and after that error, I got another new error that'll close ikemen go. now for the GL32, it doesn't show the error about the shadow thing but then after that, the same new error that closes ikemen go from the normal version is on gl32 as well. just remembered, that I had this error previously, it happens when I have my Razer Huntsman mini keyboard plugged in. What's strange is when I press a key on the keyboard on ikemen go, it seems to do both actions which is move and select (not the menu button). so basically, I press but ikemen go thinks I'm pressing two buttons that both have a different action. here's the error:

ikemen.log:

runtime error: index out of range [1] with length 1 goroutine 1 [running, locked to thread]: github.com/yuin/gopher-lua.(LState).PCall.func1() /home/runner/go/pkg/mod/github.com/yuin/gopher-lua@v1.1.0/state.go:1988 +0x212 panic({0x985420, 0xc0045873e0}) /opt/hostedtoolcache/go/1.20.14/x64/src/runtime/panic.go:884 +0x213 main.JoystickState(0x1, 0xa) /home/runner/work/Ikemen-GO/Ikemen-GO/src/input.go:224 +0x5ea main.KeyConfig.U(...) /home/runner/work/Ikemen-GO/Ikemen-GO/src/input.go:322 main.(InputReader).LocalInput(0x0?, 0x1) /home/runner/work/Ikemen-GO/Ikemen-GO/src/input.go:466 +0x708 main.(CommandList).Input(0xc00083b200, 0x1, 0x1, 0x0?, 0x0) /home/runner/work/Ikemen-GO/Ikemen-GO/src/input.go:2113 +0x43c main.systemScriptInit.func37(0xc000348430?) /home/runner/work/Ikemen-GO/Ikemen-GO/src/script.go:704 +0xd1 github.com/yuin/gopher-lua.callGFunction(0xc00033c000, 0x0) /home/runner/go/pkg/mod/github.com/yuin/gopher-lua@v1.1.0/vm.go:202 +0x37 github.com/yuin/gopher-lua.init.3.func26(0xc00033c000, 0xc080000?, 0xc00033e000?) /home/runner/go/pkg/mod/github.com/yuin/gopher-lua@v1.1.0/vm.go:821 +0x379 github.com/yuin/gopher-lua.mainLoop(0xc00033c000, 0xc00078f080?) /home/runner/go/pkg/mod/github.com/yuin/gopher-lua@v1.1.0/vm.go:31 +0xfa github.com/yuin/gopher-lua.(LState).callR(0xc00033c000, 0x0, 0xffffffffffffffff, 0xc00031c128?) /home/runner/go/pkg/mod/github.com/yuin/gopher-lua@v1.1.0/state.go:1211 +0x1b4 github.com/yuin/gopher-lua.(LState).Call(...) /home/runner/go/pkg/mod/github.com/yuin/gopher-lua@v1.1.0/state.go:1967 github.com/yuin/gopher-lua.(LState).PCall(0xc00033c000, 0x0, 0xc00078f080?, 0x0) /home/runner/go/pkg/mod/github.com/yuin/gopher-lua@v1.1.0/state.go:2030 +0x145 github.com/yuin/gopher-lua.(*LState).DoFile(0xc00033c000, {0xc000126870?, 0x0?}) /home/runner/go/pkg/mod/github.com/yuin/gopher-lua@v1.1.0/auxlib.go:396 +0x6b main.main() /home/runner/work/Ikemen-GO/Ikemen-GO/src/main.go:106 +0x278

stack traceback: G: in function 'commandInput' external/script/main.lua:115: in function 'f_cmdInput' external/script/main.lua:131: in function 'f_cmdBufReset' external/script/main.lua:3873: in function 'f_frameChange' external/script/main.lua:4094: in function 'f_menuCommonDraw' external/script/main.lua:3164: in function 'loop' external/script/main.lua:4220: in main chunk

Eiton commented 1 week ago

At least the shader compilation error is fixed. This seems to be input device error. Have you plugged in any new input devices, joysticks? Is the previous nightly still working?

Mustardnote3943 commented 5 days ago

This new error only occurs when my keyboard, "Razer Hunter Mini" is plugged in. I can run Ikemen Go, but I have to unplug the keyboard from my laptop.

Eiton commented 5 days ago

It would be better to close this issue and create a new issue about the input device error.