10
« on: September 15, 2022, 04:05:03 PM »
When I start AM and try to enter a system for example MAME, AM freezes and I have to close it manually. When I open the last_run.log file I see this error, can you give me a hand to solve? did he do it to you too?
AN ERROR HAS OCCURED [slice out of range]
CALLSTACK
*FUNCTION [firstletter()] H:\Arcade\layouts/Boysroom/layout.nut line [163]
In line 163 I have this syntax
////////////////////////////////////////////////////////////////////////////////
//First Letter//
function firstletter ()
{
local first_char = rstrip(fe.game_info(Info.Title)).slice(0,1);
local expression = regexp("[a-zA-Z]");
if (expression.match(first_char) == true) return first_char
else return "#";
}
//First Letter White//
local surface = fe.add_image( "firstletter/[!firstletter]",10, 1040, 480, 25);
////////////////////////////////////////////////////////////////////////////