Jump to content
  • 0

[Question] LUA files, oh we love them ~


Mirage

Question


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  217
  • Reputation:   18
  • Joined:  11/20/11
  • Last Seen:  

Well here it is folks, the question that will determine how long my night will be.

Is it possible, to massive convert LUA files -> LUB?

Edited by Mirage
Link to comment
Share on other sites

6 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  26
  • Topics Per Day:  0.01
  • Content Count:  59
  • Reputation:   2
  • Joined:  11/12/11
  • Last Seen:  

yeah ,,, It's possible .. just use LUAC :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  383
  • Reputation:   109
  • Joined:  11/11/11
  • Last Seen:  

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  217
  • Reputation:   18
  • Joined:  11/20/11
  • Last Seen:  

Well...thats one by one. I know that way, I was thinking more of a "all at the same time" converter...

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  67
  • Reputation:   23
  • Joined:  11/14/11
  • Last Seen:  

Copy that luac5.0.2.exe in your "Lua Files" folder

Create a batch file(eg:convert.bat)

Copy paste this to convert.bat and save it...

@echo off

for /f "usebackq tokens=*" %%a in (`dir /b/s/a:d`) do (
for %%l in (%%~nxa\*.lua) do (
luac5.0.2 -o %%~nxa\%%~nl.lub %%l
)
)

for %%l in (*.lua) do (
luac5.0.2 -o %%~nl.lub %%l
)

pause

Run convert.bat :D

  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  12/03/11
  • Last Seen:  

i cant run the convert.bat

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  15
  • Topics Per Day:  0.00
  • Content Count:  217
  • Reputation:   18
  • Joined:  11/20/11
  • Last Seen:  

Sweet thanks. Worked perfectly !

@dapoks Use notepad++ to make the batch converter

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...