Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sandboxing inconsistency across OSs #3090

Open
rdelian opened this issue Jan 23, 2025 · 0 comments
Open

Sandboxing inconsistency across OSs #3090

rdelian opened this issue Jan 23, 2025 · 0 comments
Labels
bug ScRT: Lua Issues/PRs related to the Lua scripting runtime triage Needs a preliminary assessment to determine the urgency and required action

Comments

@rdelian
Copy link

rdelian commented Jan 23, 2025

What happened?

io.readdir returns the files in a different order across Windows and Linux builds
With no way to control the order as it was with dir/ls

Expected result

Same result on both OSs

Reproduction steps

local files = io.readdir("@Res/stream/")
print(files) -- same result with a for ipairs loop

Importancy

Unknown

Area(s)

ScRT: Lua

Specific version(s)

Server 12508 windows & linux

Additional information

Actual examples

On windows it returns a-Z

[       script:racegm] wr_dezikawa_downhill_ta_L1_FUTO2_001.yvr
[       script:racegm] wr_dezikawa_downhill_ta_L1_FUTO2_002.yvr
[       script:racegm] wr_dezikawa_downhill_ta_L1_FUTO2_003.yvr
[       script:racegm] wr_dezikawa_downhill_ta_L1_FUTO2_004.yvr
[       script:racegm] wr_dezikawa_downhill_ta_L1_FUTO2_005.yvr
[       script:racegm] wr_dezikawa_uphill_ta_L1_FUTO2_001.yvr
[       script:racegm] xr_dezikawa_downhill_ta_L1_FUTO2_004.ytr

On linux? I have no idea

[       script:racegm] wr_dezikawa_downhill_ta_L1_FUTO2_005.yvr
[       script:racegm] wr_dezikawa_downhill_ta_L1_FUTO2_004.yvr
[       script:racegm] wr_dezikawa_uphill_ta_L1_FUTO2_001.yvr
[       script:racegm] wr_dezikawa_downhill_ta_L1_FUTO2_002.yvr
[       script:racegm] xr_dezikawa_downhill_ta_L1_FUTO2_004.ytr
[       script:racegm] wr_dezikawa_downhill_ta_L1_FUTO2_003.yvr
[       script:racegm] wr_dezikawa_downhill_ta_L1_FUTO2_001.yvr

I attached a stat * output for all the files, these have been created on windows and uploaded on bulk to a vps

statall.log

@rdelian rdelian added bug triage Needs a preliminary assessment to determine the urgency and required action labels Jan 23, 2025
@github-actions github-actions bot added the ScRT: Lua Issues/PRs related to the Lua scripting runtime label Jan 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug ScRT: Lua Issues/PRs related to the Lua scripting runtime triage Needs a preliminary assessment to determine the urgency and required action
Projects
None yet
Development

No branches or pull requests

1 participant