LUA files doesn't like "../" on file inputs #428
SDB13
started this conversation in
05 - Modding
Replies: 3 comments 1 reply
-
This is part of the sandbox, and we do not allow escaping the folder in this manner. what are you trying to do that requires folder switching? |
Beta Was this translation helpful? Give feedback.
0 replies
-
There are several ways around this that don't involve using the sandboxed |
Beta Was this translation helpful? Give feedback.
0 replies
-
Yea, I'm try to convert the original DeltaMAX video code to LUA.
Example of the original .ini file:
[BGAnimation]
[Layer1]
File=../1.avi
Type=0
Command=stretchto,0,0,640,480
[Layer2]
File=../1/1.png
Type=0
[Layer3]
File=../2/0.png
Type=0
[Layer4]
File=../3/5.png
Type=0
Atempted convert to .luareturn Def.ActorFrame {
Def.Quad {
Texture="1.avi",
InitCommand=function(self) end,
OnCommand=function(self) self:Center():FullScreen() end
}
Def.Quad {
Texture="../1/1.png",
InitCommand=function(self) self:Center() end
}
Def.Quad {
Texture="../2/0.png",
InitCommand=function(self) self:Center() end
}
Def.Quad {
Texture="../3/5.png",
InitCommand=function(self) self:Center() end
}
}
-----Original Message-----
From: Sudospective ***@***.***>
To: TeamRizu/OutFox ***@***.***>
Cc: SDB13 ***@***.***>; Author ***@***.***>
Sent: Thu, Oct 7, 2021 3:57 pm
Subject: Re: [TeamRizu/OutFox] LUA files doesn't like "../" on file inputs (Discussion #428)
There are several ways around this that don't involve using the sandboxed ../ shorthand. Do you have an example of a user-case that we can help with?—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
OS: Windows 10
CPU: Intel i7-8700K
GPU: Asus Nvidia 1080ti
Storage: Intel SSD 705D
StepMania Version: Project OutFox 5.3 Alpha 4.9.10
Theme: default
When "../" is inputed to change file folder in .lua files, it reads it as part of the file name instead. It should be changing folders instead.
I have trouble finding the logs on this issue because this is not a typical glitch.
Beta Was this translation helpful? Give feedback.
All reactions