FapFap 13 Report post Posted April 10, 2019 I opened this thread to ask what could be the problem that some GameServer accepts LuaSQL.dll and some doesn't.. Which addresses are edited? "I tested on a Custom GS and on diff Custom One, one works fine other doesn't also it doesn't work on Lucky Files Clean GS.." Quote Share this post Link to post Share on other sites
FapFap 13 Report post Posted April 11, 2019 BUMP. Quote Share this post Link to post Share on other sites
Eviles 179 Report post Posted April 11, 2019 You must inject the .dll into gameserver.exe, otherwise will not work. Idk how to do that... Quote Share this post Link to post Share on other sites
Angelix 374 Report post Posted April 12, 2019 3 hours ago, Satan said: You must inject the .dll into gameserver.exe, otherwise will not work. Idk how to do that... It was done, the console shows it has LuaSQL, yet his GS doesn’t register the function. With another GS it does work fine. I tried helping via TV and couldn’t get it to work. Quote Share this post Link to post Share on other sites
V3ct0r 2,117 Report post Posted April 12, 2019 9 hours ago, Satan said: You must inject the .dll into gameserver.exe, otherwise will not work. Idk how to do that... On 6/25/2016 at 9:44 AM, KONG said: There are multiple ways of injecting a DLL. There is the Codecave method which uses LoadLibrary&GetProcAddress, but you can use programs like: CFF Explorer to eliminate the need to use those methods. These tools requires a "dllexport" method, so in dllmain.cpp the function: __declspec(dllexport) void __cdecl ExportedFunction() {} is present so these tools can inject DLL. And to use the functions via LUA, I will ask @Wrexor to upload his documentation for using the interface because I dont have it. Kudos to Miha for the picture hehe EDIT: I just found this: maybe it'll work I havent tried. but it must be something like this SQL_CONNECT = 'connect' SQL_QUERY = 'query' SQL_FETCH = 'fetch' SQL_HOST = '127.0.0.1,3707' SQL_UID = 'sa' SQL_PWD = 'Y87dc#$98' local connect, handle = LuaSQL(SQL_CONNECT, SQL_HOST, SQL_UID, SQL_PWD) if(connect == 1) then print('Connection Established') local SqlText = "select * from accountserver.dbo.account_login where name = 'admin'" local query, stmt = LuaSQL(SQL_QUERY, handle, SqlText) if(query == 1) then print('Query success, fetching...') local row = LuaSQL(SQL_FETCH, handle, stmt) for i,v in pairs(row) do print(i..'=>'..v) end else print('Query Failed => '..query) end else print('Connection Failed') end QueryAsyn(SQL_HOST, SQL_UID, SQL_PWD, 'UPDATE TradeDB.dbo.AccountInfo SET money = 99 WHERE accName = \'admin\'') 1 Quote Some useful links / Полезные ссылки Tips for making a topic in 'Questions & Help' / Рекомендации по созданию тем в разделе "Помощь" Server Advertising Section Rules / Правила раздела "Реклама серверов" Available e-mail domains for registration / Допустимые e-mail домены для регистрации User groups / Группы пользователей User ranks / Звания пользователей "Broken" pictures on the forum / "Битые" изображения на форуме Beware of scammers! / Осторожно, мошенники! My developments / Мои разработки Mods for client and server / Моды для клиента и сервера PKOdev.NET website for Tales of Pirates Server / PKOdev.NET веб-обвязка для сервера Пиратии I do not provide any help in private messages and outside the forum. Use 'Questions & Help' section please. Thank you for understanding! Я не оказываю какую-либо помощь в личных сообщениях и вне форума. Пожалуйста, используйте раздел "Пиратия: Помощь". Благодарю за понимание! Share this post Link to post Share on other sites
FapFap 13 Report post Posted April 12, 2019 (edited) @V3ct0r We already tried but the Custom GS from you doesn't register the function 20 hours ago, Angelix said: It was done, the console shows it has LuaSQL, yet his GS doesn’t register the function. With another GS it does work fine. I tried helping via TV and couldn’t get it to work. Edited April 12, 2019 by FapFap Quote Share this post Link to post Share on other sites
FapFap 13 Report post Posted April 17, 2019 BUMP Quote Share this post Link to post Share on other sites
FapFap 13 Report post Posted April 20, 2019 BUMP.. Quote Share this post Link to post Share on other sites