global DIM Themes(15) AS tThemes
Themes(0).fgColor = D3D_RGBA(115,93,61,255) : Themes(0).bgColor = D3D_RGBA(0,0,0,255) : Themes(0).fgLabel = D3D_RGBA(255,255,255,255) : Themes(0).bgLabel = D3D_RGBA(115,93,61,255) : Themes(0).font = 12
Themes(1).fgColor = D3D_RGBA(115,93,61,255) : Themes(1).bgColor = D3D_RGBA(0,0,0,255) : Themes(1).fgLabel = D3D_RGBA(255,255,255,255) : Themes(1).bgLabel = D3D_RGBA(115,93,61,255) : Themes(1).font = 12
Themes(2).fgColor = D3D_RGBA(115,93,61,255) : Themes(2).bgColor = D3D_RGBA(218,205,140,255) : Themes(2).fgLabel = D3D_RGBA(0,0,0,255) : Themes(2).bgLabel = D3D_RGBA(115,93,61,255) : Themes(2).font = 14
Themes(3).fgColor = D3D_RGBA(0,0,0,255) : Themes(3).bgColor = D3D_RGBA(218,205,140,255) : Themes(3).fgLabel = D3D_RGBA(0,0,0,255) : Themes(3).bgLabel = D3D_RGBA(115,93,61,255) : Themes(3).font = 14
Themes(4).fgColor = D3D_RGBA(115,93,61,255) : Themes(4).bgColor = D3D_RGBA(148,118,79,255) : Themes(4).fgLabel = D3D_RGBA(0,0,0,255) : Themes(4).bgLabel = D3D_RGBA(148,118,79,255): Themes(4).font = 14
Themes(5).fgColor = D3D_RGBA(115,93,61,255) : Themes(5).bgColor = D3D_RGBA(0,0,0,255) : Themes(5).fgLabel = D3D_RGBA(115,93,61,255) : Themes(5).bgLabel = D3D_RGBA(0,0,0,255) : Themes(5).font = 16
Themes(6).fgColor = D3D_RGBA(115,93,61,255) : Themes(6).bgColor = D3D_RGBA(0,0,0,255) : Themes(6).fgLabel = D3D_RGBA(115,93,61,255) : Themes(6).bgLabel = D3D_RGBA(0,0,0,255) : Themes(6).font = 14
Themes(7).fgColor = D3D_RGBA(115,93,61,255) : Themes(7).bgColor = D3D_RGBA(148,118,79,255) : Themes(7).fgLabel = D3D_RGBA(148,118,79,255) : Themes(7).bgLabel = D3D_RGBA(0,0,0,255): Themes(7).font = 14
Themes(8).fgColor = D3D_RGBA(255,0,0,255) : Themes(8).bgColor = D3D_RGBA(0,0,0,255) : Themes(8).fgLabel = D3D_RGBA(255,0,0,255) : Themes(8).bgLabel = D3D_RGBA(0,0,0,255): Themes(8).font = 15
Themes(9).fgColor = D3D_RGBA(115,93,61,255) : Themes(9).bgColor = D3D_RGBA(0,0,0,255) : Themes(9).fgLabel = D3D_RGBA(255,255,255,255) : Themes(9).bgLabel = D3D_RGBA(115,93,61,255) : Themes(9).font = 11
Themes(10).fgColor = D3D_RGBA(115,93,61,255) : Themes(10).bgColor = D3D_RGBA(0,0,0,255) : Themes(10).fgLabel = D3D_RGBA(255,255,255,255) : Themes(10).bgLabel = D3D_RGBA(115,93,61,255) : Themes(10).font = 17
Themes(11).fgColor = D3D_RGBA(0,0,0,255) : Themes(11).bgColor = D3D_RGBA(183,154,99,255) : Themes(11).fgLabel = D3D_RGBA(255,255,255,255) : Themes(11).bgLabel = D3D_RGBA(0,0,0,255) : Themes(11).font = 17
Themes(12).fgColor = D3D_RGBA(115,93,61,255) : Themes(12).bgColor = D3D_RGBA(0,0,0,255) : Themes(12).fgLabel = D3D_RGBA(115,93,61,255) : Themes(12).bgLabel = D3D_RGBA(0,0,0,255): Themes(12).font = 15
Themes(13).fgColor = D3D_RGBA(192,0,0,255) : Themes(13).bgColor = D3D_RGBA(192,64,64,255) : Themes(13).fgLabel = D3D_RGBA(0,0,0,255) : Themes(13).bgLabel = D3D_RGBA(148,118,79,255): Themes(13).font = 14
Themes(14).fgColor = D3D_RGBA(0,192,0,255) : Themes(14).bgColor = D3D_RGBA(64,192,64,255) : Themes(14).fgLabel = D3D_RGBA(0,0,0,255) : Themes(14).bgLabel = D3D_RGBA(148,118,79,255): Themes(14).font = 14
Themes(15).fgColor = D3D_RGBA(255,255,255,255) : Themes(15).bgColor = D3D_RGBA(0,0,0,255) : Themes(15).fgLabel = D3D_RGBA(255,255,255,255) : Themes(15).bgLabel = D3D_RGBA(0,0,0,255) : Themes(15).font = 12
Themes(0).fgColor = D3D_RGBA(115,93,61,255) : Themes(0).bgColor = D3D_RGBA(0,0,0,255) : Themes(0).fgLabel = D3D_RGBA(115,93,61,255) : Themes(0).bgLabel = D3D_RGBA(0,0,0,255) : Themes(0).font = 12
This block of code handles GUI themes. By itself, it gives the error. However, when I take it out of my code, I still get the error, meaning there is more than one location. While I look for the others, you can analyze the above.
Edit1:
if sprite exist(CURRENT_CARD.ImageNum) then sprite CURRENT_CARD.ImageNum, CURRENT_CARD.X, CURRENT_CARD.Y, sprite image(CURRENT_CARD.ImageNum)
sprite 1, 0, 0, Avatars(a).LARGE_IMG : size sprite 1, Game_Field_W, Game_Field_H : set sprite alpha 1, 150 : mirror sprite 1
These lines also errors out.
So, in the first 5000 lines, I get these 3 chunks that error out. I will wait to go through the last 9000 in case you find some easy fix