Ludii Forum
Hiding a Stack - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Questions (https://ludii.games/forums/forumdisplay.php?fid=13)
+--- Forum: About the Ludii Grammar (https://ludii.games/forums/forumdisplay.php?fid=15)
+--- Thread: Hiding a Stack (/showthread.php?tid=1109)



Hiding a Stack - loganf - 07-29-2022

So, every time I attempt to set a stack, or any level of a stack, to hidden I get the following error: java.lang.ArrayIndexOutOfBoundsException. The code compiles correctly, but the Java implementation crashes. This is becoming a persistent issue with many of my games. I'm wondering if there is any workaround for this.


RE: Hiding a Stack - Eric Piette - 08-22-2022

Hi,

Could you send me an example .lud and a trial file too to check this?

Also, I do not think we have games with stack + hidden info (since I disabled the card games in Ludii because that was not enough efficient to describe these games).

So I am interested about any bugs you could found, but I can't guarantee to fix it quickly for the moment.

Regards,
Eric


RE: Hiding a Stack - adamusa - 12-19-2023

(07-29-2022, 03:19 PM)loganf Wrote: So, every time I attempt to set a stack, or any level of a stack, to hidden I get the following error: java.lang.ArrayIndexOutOfBoundsException. The code compiles correctly, but the Java implementation crashes. This is becoming a persistent issue with many of my games. I'm wondering if there is any workaround Suika game for this.
Check the array index: Make sure you are using a valid index when accessing the array. The index must be between 0 and (length of array - 1).


RE: Hiding a Stack - kalylcie - 12-22-2023

(07-29-2022, 03:19 PM)loganf Wrote: So, every time I attempt to set a stack, or any level of a stack, to hidden I get the following geometry dash error: java.lang.ArrayIndexOutOfBoundsException. The code compiles correctly, but the Java implementation crashes. This is becoming a persistent issue with many of my games. I'm wondering if there is any workaround for this.

There might be specific considerations or constraints in the Ludii framework that are affecting the way you're attempting to handle hidden stacks.