AvantTeam / ProjectUnityPublic

A public, stripped down workspace of the Project Unity mod, a mega-collaboration Mindustry mod. Not intended to be played yet; this is purely for code publicity and healthy competition reasons.
GNU General Public License v3.0
174 stars 29 forks source link

Pit Shader crashes on mobile #33

Closed SMOLKEYS closed 2 years ago

SMOLKEYS commented 2 years ago

Below is the error log:

Mindustry has crashed. How unfortunate.
Version: pre-alpha build 135
OS: Linux xnull (aarch64)
Java Version: 0
Mods: adc:12.0, calculus:1.0, dev-mode:2.3.2, hackustry:4, newconsole:1.41, test-utils:35, testers:0.25, time-control:0.2, ui-lib:2.16.6, unit-factory:2.4.2, unity:0.1, yellow-java:0.5

> IllegalArgument: 'Failed to compile shader: Fragment shader:
0:73: S0001: Type mismatch in arithmetic operation between 'float' and 'int''
Shader.<init>: 119
Shader.<init>: 124
UnityShaders$ModSurfaceShader.<init>: 94
UnityShaders$PitShader.<init>: 141
UnityShaders.load: 24
-$$Lambda$cqeWWcz-HLQYkgIIZ0u-NAF_rRA.run: 0
AndroidGraphics.onDrawFrame: 364
GLSurfaceView$GLThread.guardedRun: 1571
GLSurfaceView$GLThread.run: 1270

It appears on mobile glsl is in strict mode and doesn't allow int-float operations without explicit conversion.

LixieWulf commented 2 years ago

android sucks ass at shaders, whether this can be fixed remains to be seen

d689 commented 2 years ago

patience

Hot-Sausage07 commented 2 years ago

shaders

Xeloboyo commented 2 years ago

Tentatively closing it. Reopen it if it still persists.

Xeloboyo commented 2 years ago

Welp

Xeloboyo commented 2 years ago

Fixed apparently

MEEPofFaith commented 2 years ago

:clap: