I am trying to convert a script to binary representation using string.dump, but I saw that the luaj 3.0.1 representation is different from lua 5.2, has some way of changing this, or turns the luaj 3.0.1 representation into lua 5.2 ?
Code
Globals _G = JsePlatform.standardGlobals();
LuaValue Function = _G.load("return string.dump(function() return 'Test' end),true);");
String Return = Function.call().toString();
Output in Hex
1B 4C 75 61 52 0 0 4 4 4 8 0 19 93 D A 1A A 0 0 0 1 0 0 0 1 0 0 2 0 0 0 3 0 0 0 1 1 0 0 1F 0 80 0 1F 0 0 0 1 4 0 0 0 5 54 65 73 74 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0