Getting this error during my build -- any advice? ...
# korge
j
Getting this error during my build -- any advice? Doesn't appear to be causing any user-facing issues (yet)
Copy code
> Task :korgeProcessedResourcesJvmMain
java.lang.IllegalStateException: textures:4 > maxTextures:1
	at com.soywiz.korim.atlas.AtlasPacker.packPairs(AtlasPacker.kt:28)
	at com.soywiz.korim.atlas.AtlasPacker.pack(AtlasPacker.kt:20)
	at com.soywiz.korim.atlas.AtlasPacker.pack$default(AtlasPacker.kt:19)
	at com.soywiz.korge.atlas.AtlasResourceProcessor.processInternal$suspendImpl(AtlasResourceProcessor.kt:44)
	at com.soywiz.korge.atlas.AtlasResourceProcessor$processInternal$1.invokeSuspend(AtlasResourceProcessor.kt)
	at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33)
	at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:106)
	at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:274)
	at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:84)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:59)
	at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source)
	at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:38)
	at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source)
	at com.soywiz.korge.resources.ResourceProcessorRunner.run(ResourceProcessorRunner.kt:52)
    ...snip...
d
That seems to be the resource processor that happens at the build stage. Do you have an .atlas file in your resources folder? If so, the content of that file should be the name of a folder containing some image files. Is that the case?
j
Yep! I have two such atlases. One is working fine. After playing with it some more, it seems like this is the error if the images in that folder don't all fit in the same atlas.
What is the max texture size? 2048?