Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Elsword
You last visited: Today at 20:07

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Need a help with [Offline] Elsword (LUA related)

Discussion on Need a help with [Offline] Elsword (LUA related) within the Elsword forum part of the MMORPGs category.

Reply
 
Old   #1
 
GintMRNS245's Avatar
 
elite*gold: 0
Join Date: Jan 2025
Posts: 9
Received Thanks: 0
Need a help with [Offline] Elsword (LUA related)

Noob here! Don't worry, I'm not tooooo slow.
I got through some stuff on my own by reading the old threads here but reached a point where I might need help. Nothing too nefarious, just on the offline client. Easy, right? I'm not sure, I'm struggling with editing the .Lua files. and can use some advice.
  • Nothing too big, just want to know how to get it lua files working without crashing the game. I use EWCryptTool.exe and am able to get the files through ludic (unless it seems to change the lua, which becomes a problem.), but once I recompile it (through) luac and re-encrypt. the file simply just doesn't want to work, or the client simply doesn't recognize it. I don't use Ernilos' ElswordLuaEditor because despite everything I do, it just doesn't seem to work and I'm left with a blank screen
  • So far I'm trying to work on PreTestUnit.lua and RAVEN_FIGHTER.lua in the data003.kom extractions.
  • I'm messing with some very old stuff, so if you know on how to fix this, I'll give you many thanks.

Specifically, I will take a .lua file and bring it to the folder where EWcryption is at then use a Bat file to get to work.

Quote:
EWCryptTool.exe -e RAVEN_FIGHTER.dec RAVEN_FIGHTER.lua
Then I would take the decrypted file and toss it into luadec or luadec.metaworm.site if that doesn't work.

Luadec RAVEN_FIGHTER.dec > RAVEN_FIGHTER.lua

(This will often create an empty Lua file. so I often find myself tossing it in Luadec.metaworm.site since it does 5.1 decompiling then take that to my folder to continue the next step)

Luac works strangely enough and recompiles the decompiled RAVEN_FIGHTER.lua into a RAVEN_FIGHTER.dec.

(Remember what I said about taking the lua out of its directory into the directory where my decryption and decompiles at in? Turns out that it changes the file name within the lua being compiled and decrypted again as I've noticed.

The recompiled RAVEN_FIGHTER.dec's top text:
Quote:
LuaQ   @RAVEN_FIGHTER.lua 4‹8
The original RAVEN_FIGHT.dec's top text.:
Quote:
LuaQ  V @E:\hudson\jobs\ES_JP_SINGLE_CLIENT\workspace\reso urce\Script\Major\RAVEN_FIGHTER.lua 4‹8
I don't know if that plays a key role or not, but I pretty much hit a wall here, and idk if this is the cause of my headaches. I'm not an expert in any of this, and I'm going in this blind, so if someone can lead me in the right direction, I will greatly appreciate it.

I checked the Chinese forums but can't get it to not crash.

(The offline trial version, shouldn't be too different from the standard game at the year of its release. I've seen a handful of people able to get their modding going despite those required changing the lua files. )

problem solved~
GintMRNS245 is offline  
Old 01/28/2025, 12:50   #2
 
MuffinMario's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 895
Received Thanks: 558
From the last line I guess you figured it out, but in the case that you didn't: the steps to modify the LUAs from original KOM to modified KOM in the offline demos is the following:

1. Unpack the KOM file (Any public non restrictive KOM V3 algo 0 extractor, kompack or Kurisutaru's extractor)
2. (For .txt/.lua extensions) XOR the content with xorkey= [0x02,0xAA,0xF8,0xC6, 0xDC,0xAB,0x47,0x26, 0xEF,0xBB,0x00,0x98] (thats what EWCryptTool does)
3. Decompile the LUA file in question (luadec51 -> consider that this is not always accurate and may result in incorrect lua code, making the game crash, it's better if you decompile files one-by-one to see if they work)
4. Modify your LUA file (Text Editor)
5. Compile the LUA file again (luac from a lua51 build), overwriting the extracted .lua's filename
6. XOR the file again (EWCryptTool)
7. Pack the kom folder back (Any public non restrictive KOM V3 algo 0 extractor, kompack or Kurisutaru's extractor)

Remember that none of these steps work past 2014 KOM versions, as methods have changed.
MuffinMario is offline  
Thanks
2 Users
Old 01/29/2025, 17:25   #3
 
GintMRNS245's Avatar
 
elite*gold: 0
Join Date: Jan 2025
Posts: 9
Received Thanks: 0
Quote:
From the last line I guess you figured it out, but in the case that you didn't: the steps to modify the LUAs from original KOM to modified KOM in the offline demos is the following:
I struggled the most with getting the NewSkillTemplet.lua working but I managed to do it entirely manually with unluac (Which was a huge gamble). I checked to see if any of the codes were off for the LUA, like not all of it is decompiled, but I said "fuck it", and used that one instead, recompiled it, and encrypted it. And it worked like a charm. I believe it was the Japanese text being messed up which scared me, but looks like the text, desc, and names seem to retain it's normal functions despite not being decompiled. the other Luac decompiler and the online one I tried gave me a headache.

Quote:
Remember that none of these steps work past 2014 KOM versions, as methods have changed.

I have 2014 client files that have the non-encrypted LUAs in their resource folders. I examine them and try to translate them into readable files for offline clients. I don't exactly dump them in there but use them as a reference for what skills I want to add and edit since they are more neatly organized than the offline TW/JP client.

Even though they mostly come out blank, Ernilos' ElswordLuaEditor can, at times, compile and encrypt the LUA I open; I just have to use an LUA editing software to actually do the editing and paste it in the editor to skip the re-compile and encryption process. Works like a charm.

Before I invest in this area I think it's smart to ask; Does the DirectX files, texture files, and motion files from 2014 and above koms (v3 and v4 and up) work if I install them in the offline kom folder I'm going to compact back into kom? Like replacing older .X files with newer ones?

I did this with the Ogg sound files, and it worked, are those also safe to use?
GintMRNS245 is offline  
Old 01/29/2025, 19:14   #4
 
MuffinMario's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 895
Received Thanks: 558
Quote:
Originally Posted by GintMRNS245 View Post
Before I invest in this area I think it's smart to ask; Does the DirectX files, texture files, and motion files from 2014 and above koms (v3 and v4 and up) work if I install them in the offline kom folder I'm going to compact back into kom? Like replacing older .X files with newer ones?

I did this with the Ogg sound files, and it worked, are those also safe to use?
DirectX files will work, but if the model/motion file relies on KSM format it likely has changed slightly throughout the years, meaning they probably won't work. You can check if its a xof (directx model file) or KSM (kog skin mesh) file by inspecting the first 3 symbols of the file by using a hex editor, like ImHex.
Textures and the like haven't changed too.
MuffinMario is offline  
Old 01/30/2025, 06:48   #5
 
GintMRNS245's Avatar
 
elite*gold: 0
Join Date: Jan 2025
Posts: 9
Received Thanks: 0
Quote:
Originally Posted by MuffinMario View Post
DirectX files will work, but if the model/motion file relies on KSM format it likely has changed slightly throughout the years, meaning they probably won't work. You can check if its a xof (directx model file) or KSM (kog skin mesh) file by inspecting the first 3 symbols of the file by using a hex editor, like ImHex.
Textures and the like haven't changed too.
I'm kinda scratching my head rn, I opened up the LUA for Skillset and Ara's Lua (2014 already translated and decompiled). I see a lot of base.x and .y files for her skill in her respective Kom, but not ALH_SWALLOW_ASSAULT_BASE.Y. It seems even in the official client side, which I extracted her from kom132, 131, and 130 that is actually missing even though it's part of her crucial skill (SWALLOW_ASSAULT is her Flying Kite skill.). I was successful with the changes of Sword Wave but not Triple Geyser and Hypersonic Stab (same Problem)

So are the Lua's and MajorMesh.txt just lying, or am I looking in the wrong direction? I checked the Major Mesh from the the offline version, and it's the same for Triple Geyser, nowhere to be seen.

The file below is from 2014.
Attached Files
File Type: rar Ara_Martial_Artist.rar (4.50 MB, 22 views)
GintMRNS245 is offline  
Old 01/30/2025, 09:21   #6
 
GintMRNS245's Avatar
 
elite*gold: 0
Join Date: Jan 2025
Posts: 9
Received Thanks: 0
Quote:
Originally Posted by MuffinMario View Post
DirectX files will work, but if the model/motion file relies on KSM format it likely has changed slightly throughout the years, meaning they probably won't work. You can check if its a xof (directx model file) or KSM (kog skin mesh) file by inspecting the first 3 symbols of the file by using a hex editor, like ImHex.
Textures and the like haven't changed too.
I can't find some of the dummy boxes of certain skills. and I can't find anything for triple geyser or Flying Kite (Swallow Assault) despite the Major Mesh having their file name listed. Which has been bugging me.
GintMRNS245 is offline  
Old 01/30/2025, 09:56   #7
 
MuffinMario's Avatar
 
elite*gold: 0
Join Date: Apr 2011
Posts: 895
Received Thanks: 558
Quote:
Originally Posted by GintMRNS245 View Post
I can't find some of the dummy boxes of certain skills. and I can't find anything for triple geyser or Flying Kite (Swallow Assault) despite the Major Mesh having their file name listed. Which has been bugging me.
It's very likely that these files are residing in data002 (non-offline versions). I have found Effect_ElSword_FlameGager.x to be in there at least. For old or animation-state-dependant attacks you will not find sufficient LUA data to understand linkage between which state does what effects, which means you'll have to do guess work, or reverse the leak from ages ago
MuffinMario is offline  
Thanks
1 User
Old 01/30/2025, 14:37   #8
 
GintMRNS245's Avatar
 
elite*gold: 0
Join Date: Jan 2025
Posts: 9
Received Thanks: 0
Quote:
Originally Posted by MuffinMario View Post
It's very likely that these files are residing in data002 (non-offline versions). I have found Effect_ElSword_FlameGager.x to be in there at least. For old or animation-state-dependant attacks you will not find sufficient LUA data to understand linkage between which state does what effects, which means you'll have to do guess work, or reverse the leak from ages ago
Thanks, I'll use your Kom extractor to speed through this process since I'm now looking for .x and .y files right now to replace old skills.

EDIT: I do recall string states under a lot of skills. Does this require SQL knowledge?
GintMRNS245 is offline  
Old 01/31/2025, 13:18   #9
 
GintMRNS245's Avatar
 
elite*gold: 0
Join Date: Jan 2025
Posts: 9
Received Thanks: 0
I'll see what I can do
GintMRNS245 is offline  
Old 06/15/2025, 19:26   #10
 
elite*gold: 0
Join Date: Jan 2021
Posts: 2
Received Thanks: 0
Hello, Can I ask if you still have client and server 2014 files ?

Thanks
padidet is offline  
Old 10/15/2025, 14:18   #11
 
elite*gold: 0
Join Date: Oct 2025
Posts: 2
Received Thanks: 0
Quote:
Originally Posted by padidet View Post
Hello, Can I ask if you still have client and server 2014 files ?

Thanks
Go to youtube and Search for Elsword offline Server (PGaming Channel).
duybeo18 is offline  
Old 10/15/2025, 14:22   #12
 
elite*gold: 0
Join Date: Oct 2025
Posts: 2
Received Thanks: 0
Quote:
Originally Posted by padidet View Post
Hello, Can I ask if you still have client and server 2014 files ?

Thanks
Search for Elsword Offline Server on Youtube (PGaming Channel)
duybeo18 is offline  
Reply

Tags
elsword


Similar Threads Similar Threads
hilfe bei lua script/ need help with lua script
10/06/2014 - General Coding - 2 Replies
Hi leute ich versuche ein script in für mein Iphone zu schreiben und könnte ein bisschen hilfe von einem Experten gebrauchen können also wenn jemand was von lua versteht bitte bei mir per pn melden! Hey guys im trying to write a lua script on my iphone and need some help at some points by an expert so if anybody knows lua better than me pls pn me!
[LUA] need help in decrypting / encrypting lua
08/12/2013 - General Coding - 7 Replies
The title pretty much says it all but ill explain a bit more as to what Im in need, basically I have decompiled a script using this website, i've got the code etc but it contains some really werid stuff like etc , I wanted to decrypt the file simply to change some stuff in it, I did so but then I did not know how to encrypt it back so I messaged my friend and he gave me this local code_to_decode = "script to encrypt" local output = "" for i = 1, #code_to_decode do output = output...



All times are GMT +1. The time now is 20:07.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.