Well, title says it not so good since idk how i name this shit sry.
The lua has images that load from the folder and adding their names intothe table:
for item in io.enumdir(csc.gamepath) do
Everything is working fine when I start New Game. It outputs me all filenames and images set correctly by indexing their path.
But when I load all files on server and start dedicated server. Joined it and i can't see any image.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
csc.hookfunc.spawn = function(id) 	if player(id, 'bot') then return end 	local get_image = csc.ranks[csc.players[id].Rank].ImagePath 	if csc.players[id].RankImage then 		freeimage(csc.players[id].RankImage) 		csc.players[id].RankImage = nil 	end 	csc.players[id].RankImage = image(get_image, 0, 0, 200+id) end addhook('spawn', 'csc.hookfunc.spawn')
Also lua has save/load system and files created successfully on root device on Server, which means it has rights to read or h/e it named..
Maybe this way
for item in io.enumdir(csc.gamepath) dois not that good, Idk i just used to it all time and it worked well for me. Maybe it requires more access?
There is no any lua error:
edited 2×, last 25.06.24 05:51:17 am