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 


Help Convert working C# code to Cheat Engine Table Script

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Bit Byte
Advanced Cheater
Reputation: 0

Joined: 28 Nov 2022
Posts: 62

PostPosted: Tue Jul 11, 2023 4:28 am    Post subject: Help Convert working C# code to Cheat Engine Table Script Reply with quote

I am trying to convert some C Sharp code into CE script table. Bear in mind I'm a newbie. I keep getting "you cant post urls" don't know why. So attaching screenshots:

First Img: C Sharp code I have:

Second Img: What I have done so far:


Anyone Please help with corrections to get it to run in CE table as script.



C Sharp.JPG
 Description:
 Filesize:  104.64 KB
 Viewed:  1989 Time(s)

C Sharp.JPG



CE script.jpg
 Description:
 Filesize:  254.35 KB
 Viewed:  1989 Time(s)

CE script.jpg


Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1531

PostPosted: Thu Jul 13, 2023 12:51 am    Post subject: Reply with quote

Does your asm code in the second picture work properly?

Your asm and lua conversions look different.

Maybe it should be like this;


Code:
[ENABLE]
{$lua}
//function ..

{$asm}
[DISABLE]

{$lua}
//function ..

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1069
Location: 0x90

PostPosted: Thu Jul 13, 2023 8:03 am    Post subject: Reply with quote

AylinCE wrote:
Does your asm code in the second picture work properly?

Your asm and lua conversions look different.

Maybe it should be like this;


Code:
[ENABLE]
{$lua}
//function ..

{$asm}
[DISABLE]

{$lua}
//function ..


It was a double-post in two sections. Answered in another section if I recall correctly; however, they now have a working solution.
Back to top
View user's profile Send private message
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