Hi,
There seems to be an issue with the wildcard used for client scripts. I guess this is due to a off-by-one error, it only run 3 out of the 4 scripts on the client. Server seems to have no issue with this at all, if it’s a shared script it will print all 4 scripts (on the server, but not the client), thus making me think this is something that only happens on the client.
Setup
Platform: Windows 10
Server artifacts: 1244
Reproduction resource: repro.zip (1.1 KB)
The resource manifest looks a following:
client_script "what/cl_*.lua"
Folder structure:
repro/
what/
cl_script1.lua
cl_script2.lua
cl_script3.lua
cl_script4.lua
__resource.lua
Expected
This should include all files in the folder what
that is prefixed with cl_
. According to my folder structure. Each script basically prints it’s own number (i.e. “cl1” or “cl2”). Expected output in client console would be:
cl1
cl2
cl3
cl4
Actual
What actually happens is that only cl1, cl2 and cl3
gets printed. cl4
is no where to be seen.
In the client log cl4 can’t be found either, log:
[ 29219] Creating script environments for repro
[ 29282] cl1
[ 29282] cl2
[ 29282] cl3
CitizenFX.log.1 (83.3 KB)
Hopefully this can be resolved, instead of me wondering why my script’s aren’t working