|
#21
|
||||
|
||||
|
No, I see the directory IS created in the right place. The issue might lie in me using the already there file operations with just a change in file-path, I'm probably messing something up there and I've stared myself blind at the code, I think I'll find it much easier after sleeping on it.
The only thing I added was: lfs.mkdir("Backup"); Since i'm already working within the correct root folder it is created where I want it. As I said, the problem is probably in my strings holding the paths for other parts of the code, probably mixed them up somewhere. I'll fix it tomorrow. Bye for now.
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it! Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it. Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^ |
|
|
|||
|
|
|
#22
|
|||
|
|||
|
i have changed source code to better suit mine needs to:
Quote:
EDIT.: Nevermind this post i was reacting to post 10 posts before
Last edited by delirius; 08-23-2011 at 04:55 PM. |
|
#23
|
|||
|
|||
|
I guess the c thing is closed. It's working in the ADK but closed on the player.
Quote:
Last edited by Kalle Kula; 08-23-2011 at 05:16 PM. |
|
#24
|
||||
|
||||
|
Quote:
__________________
Tools: Playlist Manager , Document to RSS , Notepad++ Instellisense Games/Apps: Asteroids, ZenFrame, Graphing Calculator, Pingus X-Fi2, Boxwars, SkiFree, Jezzball |
|
#25
|
||||
|
||||
|
Quote:
How would I go about makign the directory in another folder? Right now it only has the backup-app's folder's path, but when I try to use lfs.chdir(path) I get an "invalid Argument" error, I must have the wrong syntax of my path... But not even giving it 'c:\\Creative\\ZEN X-Fi2\\Applications\\' .. Apeopex.UserButtons[Index].Caption as a path worked... This is what I do now to create it, but I get Invalid Argument error: Code:
local BackupFolder = '..\\' .. Apeopex.UserButtons[Index].Caption .. '\\Backup'
print("creating: " .. BackupFolder)
local Folder, Error = lfs.mkdir(BackupFolder) --Create backup directory
if Folder == nil then
print(Error)
else
print("Succes at creating directory")
end;
I fixed it, I changed the way I stored the path like this: Code:
local BackupFolder = string.gsub('..\\' .. Apeopex.UserButtons[Index].Caption .. '\\Backup',string.char(13),"")
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it! Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it. Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^ Last edited by Habhome; 08-24-2011 at 02:48 PM. |
|
#26
|
||||
|
||||
|
Here is my modified version of the LUAC.
This one compiles the original file, keeping its name. It backs up the files in a folder named "Backup" inside of the application's own folder. Never overwrites a backup if one exists already, instead it names it with the ending (1), (2)... Disclaimer: I am not the creator of the original code, I have just modified it to adhere to user-feedback. This is not yet tested with multiple .LUA files in a project, but it should work just as well as the original software. Before you try it for the first time, make a manual backup just to be sure!
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it! Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it. Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^ Last edited by jbob182; 08-24-2011 at 03:08 PM. |
|
#27
|
||||
|
||||
|
I will run a test on Pingus with this version and edit this post to say how well it works.
--------------------------------------------------------------------------------------- I ran it and it works perefectly on multiple files, HOWEVER it will not find much deeper files such as Pingus X-Fi2\data\campaign\Tutorial Island\Tutorial Island.lua Use the lfs search option for dirs, and then search each dir for .lua
__________________
Tools: Playlist Manager , Document to RSS , Notepad++ Instellisense Games/Apps: Asteroids, ZenFrame, Graphing Calculator, Pingus X-Fi2, Boxwars, SkiFree, Jezzball Last edited by jbob182; 08-24-2011 at 03:13 PM. |
|
#28
|
||||
|
||||
|
Quote:
__________________
"If you are good enough at English to apologize, then there is no need to." - A good friend of mine Discovered something about the X-Fi2 you think others may not know? Post it here so others can learn about it! Have a question about X-Fi2 apps? Consult the FAQ before creating a thread about it. Like my work? Tell your friends. Don't like it? Tell me so I can improve. ^.^ |
![]() |
«
Previous Thread
|
Next Thread
»
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
All times are GMT -5. The time now is 09:09 AM.












Linear Mode
