Jump to content
  • 0

Lua Files Problem


Lord Ganja

Question


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

Hello, I just want to ask if the accessoryid.lub, accname.lub, jobname.lub, npcidentity.lub files

should be placed inside the folder luafiles514/lua files/datainfo.

I'm using 2012-04-10 client.

Btw, the accessoryid.lub, accname.lub, jobname.lub, npcidentity.lub files contains my custom items and npcs.

The problem is whenever I merged my lub files which contains the customs inside the folder luafiles514/lua files/datainfo,

I always got an error whenever I run my client 2012-04-10, which says:

buf: bad header in precompiled chunk

Any ideas how to fix this?

Thanks in advance!

Edited by Lord Ganja
Link to comment
Share on other sites

10 answers to this question

Recommended Posts


  • Group:  Members
  • Topic Count:  43
  • Topics Per Day:  0.01
  • Content Count:  815
  • Reputation:   86
  • Joined:  10/26/12
  • Last Seen:  

yes you have to put luafiles514 > lua files >

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

then why is it that I got that error?

But when I put the lua files inside the folder data/lua files/datainfo, that error doesn't appear.

The thing is, when I put it inside the data/lua files/datainfo, the korean language in skill name and skill descrptions appears.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

all of them belongs to luafiles514/lua files/datainfo/

Have a nice day!

*PS: I use LUA files (even the client is 2012-04-10) and I don't bother with lub files. Therefore, I got no need to recompile the files and I got no problems~ :D

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

Is there a program which can Compile the Lua files into Lub? Which is compatible for the luafiles514.

Maybe my problem occurs because of the program I used to Compile lua into lub.

I used the Compile Gui.exe and luac5.0.2.

Is there a Compile Gui.exe compatible with luac.5.1.4?

I tried using Notepad ++ and Sublime Text 2 but the files can't be saved as lub file.

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  22
  • Topics Per Day:  0.00
  • Content Count:  1479
  • Reputation:   172
  • Joined:  12/14/11
  • Last Seen:  

Heard that you can make it to lub files by simply naming your file to: filename.lub and save as: all types (*.*)

Have a nice day!

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  141
  • Topics Per Day:  0.03
  • Content Count:  444
  • Reputation:   22
  • Joined:  06/18/12
  • Last Seen:  

O damn! So that's how it is. hahahaha

Thanks for that Winz! Now it worked :)

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  39
  • Reputation:   0
  • Joined:  02/09/13
  • Last Seen:  

aerhhhmm... sir i got the same problem.. everytime i compile the lua to lub i always get the the header error (>.<) sir may i ask how did u do it? XD i mean how did u fix it?

Edited by lkoichirol
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  3
  • Topics Per Day:  0.00
  • Content Count:  16
  • Reputation:   4
  • Joined:  04/05/12
  • Last Seen:  

IkoichiroI: He changed the name of accname.lua and accessoryid.lua to accname.lub and accessoryid.lub

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  4
  • Topics Per Day:  0.00
  • Content Count:  10
  • Reputation:   0
  • Joined:  02/11/13
  • Last Seen:  

aerhhhmm... sir i got the same problem.. everytime i compile the lua to lub i always get the the header error (>.<) sir may i ask how did u do it? XD i mean how did u fix it?

 

wow!!!!!!!!!

 

so why no use a simple txt?

i'm developer and understant than if have a source to be compiled, is to any exec run with compiled file, no source file.

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...