Ludii Forum
Problems starting and using Ludii-1.2.2 - Printable Version

+- Ludii Forum (https://ludii.games/forums)
+-- Forum: Problems (https://ludii.games/forums/forumdisplay.php?fid=5)
+--- Forum: Ludii Player Problems (https://ludii.games/forums/forumdisplay.php?fid=6)
+--- Thread: Problems starting and using Ludii-1.2.2 (/showthread.php?tid=637)



Problems starting and using Ludii-1.2.2 - Phil Leduc - 07-08-2021

Problems on first and subsequent executions of Ludii-1.2.2

On my first execution of Ludii 1.2.2, the menu bar was displayed twice at the top of the Ludii window. 

The error_report.txt file is attached. Note that the first line in the file reads
"java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0". See attached error report file.

I am running in Windows 10 on an HP laptop and using Java 8 update 2.71 (build 1.8.0_271_b09).

When I tried to start Ludii-1.2.2.jar again. The window opened properly and Surakarta was displayed and played properly. Feed the Ducks also loaded and ran well.

When I tried to load my game Hermit (which runs in Ludii 1.1.19) I received a "Index 3 out of bounds for length 3" message and the game board vertices were improperly displayed. See attach png file.

There may be two similar problems represented here:
1.  A Ludii 1.2.2 start up problems
2.  A problem with the Hermit code

I hope you can help me with these problems. I really would like to submit Hermit to the Ludii project.

Thanks for your assistance.

P.S. I forgot to attach Hermit.lud. The file is now attached.


RE: Problems starting and using Ludii-1.2.2 - Eric Piette - 07-09-2021

Hi,

The reason is that the All Roletype in (set Score ...) is not implemented. I will modify the code to add it.
However, in the meantime, replace your line (set Score All 0) in the starting rules by

(set Score P1 0)
(set Score P2 0)

And the game will know compile.
If except that, your game is done, keep us aware in order to add it to Ludii :)

Regards,
Eric


RE: Problems starting and using Ludii-1.2.2 - Phil Leduc - 07-09-2021

Thank you, Eric.

Your suggestion worked. Hermit now runs under 1.2.2.  I have made a few text edits and will now submit Hermit.

Phil