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 


Simple value syncing across multiple clients?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Kiian
How do I cheat?
Reputation: 0

Joined: 21 Nov 2013
Posts: 2

PostPosted: Mon Dec 09, 2013 10:58 pm    Post subject: Simple value syncing across multiple clients? Reply with quote

I have a game, where I've successfully mapped out the players X,Y,Z and facing values in a cheat table, along with those values for an NPC. Would it be theoretically possible, for me to send the values of my characters location/information to another client playing the game, and to have that projected onto the locations of the NPC on their client (and vias versa, with his character being projected onto the NPC on my client), establishing a really crude, simple form of multilayer? From what I've read, it doesn't seem to be possible with Lua or CE alone. Can someone point me in the right direction, or recommend a third party application to manage the data-sending for me? (where I can utilize the pointer offsets I found in CE to locate the variables of the players/Npcs?)
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Mon Dec 09, 2013 11:59 pm    Post subject: Reply with quote

Look into the ce lua socket extension.
Then write a script that regularly transmits the position of the player to the other client. The client then reads it out and writes the pointer entries for that npc to the corresponding values

_________________
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
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Tue Dec 10, 2013 12:00 am    Post subject: Reply with quote

Look into the ce lua socket extension.
Then write a script that regularly transmits the position of the player to the other client. The client then reads it out and writes the pointer entries for that npc to the corresponding values

_________________
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
Kiian
How do I cheat?
Reputation: 0

Joined: 21 Nov 2013
Posts: 2

PostPosted: Tue Dec 10, 2013 1:23 am    Post subject: Reply with quote

Thank-you very much Dark Byte!

I've got luasocket running on Cheat-Engine, but I've got next to no knowledge of networking at all. Would I use an FTP connection, where each client writes to its own text-file on a server, and looks for the text-files of other clients containing the X,Y,Z? Wouldn't that create access violations? I can't comprehend how peer-to-peer would work, without a server middleman. Most people don't have static ip's, would a VPN like hamachi be needed?

I don't expect all my queries to be answered in one post or anything, but I'd be eternally grateful if you could point me in the right direction for learning such things, or an example of a similar feat that's been done with luasocket.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 471

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

PostPosted: Tue Dec 10, 2013 7:18 am    Post subject: Reply with quote

Check out google for some luasocket examples. Also read http://w3.impa.br/~diego/software/luasocket/tcp.html and http://w3.impa.br/~diego/software/luasocket/udp.html

(not sure if it is the same version as the one compiled for ce, but it should work the same)
Basically)
I recommend using udp for this as it can work connection less and positions aren't that important

As for ip i recommend something like dyndns, or telling eachother the ip beforehand

_________________
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