Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


CE7.0 source luaconf.h has some bugs

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
gfetgkh
Newbie cheater
Reputation: 0

Joined: 06 Apr 2018
Posts: 22

PostPosted: Mon Dec 30, 2019 8:25 pm    Post subject: CE7.0 source luaconf.h has some bugs Reply with quote

CE7.0 cannot load DLL of installation directory.

It has some bug.
.\Cheat Engine\lua53\lua53\src\luaconf.h
line174:
Code:
LUA_CDIR"loadall.dll;" ".\\?.dll" \
LUA_CDIR"?53.dll;" ".\\?53.dll"


line187:
Code:
LUA_CDIR"?.so;" LUA_CDIR"loadall.so;" "./?.so" \
LUA_CDIR"lib?53.so;" "./lib?53.so"


Should be changed to:
Code:
LUA_CDIR"loadall.dll;" ".\\?.dll;" \
LUA_CDIR"?53.dll;" ".\\?53.dll"

LUA_CDIR"?.so;" LUA_CDIR"loadall.so;" "./?.so;" \
LUA_CDIR"lib?53.so;" "./lib?53.so"


Last edited by gfetgkh on Thu Jan 02, 2020 12:52 am; edited 1 time in total
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25821
Location: The netherlands

PostPosted: Tue Dec 31, 2019 2:07 am    Post subject: Reply with quote

you can also adjust package.cpath at runtime

by default ce loads lua dlls from clibs32 and clibs64 as having those dlls in the base will either screw up the 32 or 64 bit ce

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
gfetgkh
Newbie cheater
Reputation: 0

Joined: 06 Apr 2018
Posts: 22

PostPosted: Tue Dec 31, 2019 2:26 pm    Post subject: Reply with quote

Dark Byte wrote:
you can also adjust package.cpath at runtime

by default ce loads lua dlls from clibs32 and clibs64 as having those dlls in the base will either screw up the 32 or 64 bit ce


There is no such directory clibs32 or clibs64 in the relative path after compilation. My DLL is in tablefile. How to create a directory and release the DLL file through code? I don't want to create from something like OS. Execute ('mkdir ') because it has annoying console windows. Shellexecute can't wait for the process to return. It can cause subsequent code loading DLL errors!
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

Joined: 09 May 2003
Posts: 25821
Location: The netherlands

PostPosted: Tue Dec 31, 2019 4:04 pm    Post subject: Reply with quote

ExecuteCodeLocalEx with CreateDirectoryA

anyhow
Code:

package.cpath = package.cpath .. ";"..getCheatEngineDir()...'\\?.dll';

works as well

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites