| View previous topic :: View next topic |
| Author |
Message |
Kiian How do I cheat?
Reputation: 0
Joined: 21 Nov 2013 Posts: 2
|
Posted: Mon Dec 09, 2013 10:58 pm Post subject: Simple value syncing across multiple clients? |
|
|
| 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 |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25819 Location: The netherlands
|
Posted: Mon Dec 09, 2013 11:59 pm Post subject: |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25819 Location: The netherlands
|
Posted: Tue Dec 10, 2013 12:00 am Post subject: |
|
|
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 |
|
 |
Kiian How do I cheat?
Reputation: 0
Joined: 21 Nov 2013 Posts: 2
|
Posted: Tue Dec 10, 2013 1:23 am Post subject: |
|
|
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 |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25819 Location: The netherlands
|
Posted: Tue Dec 10, 2013 7:18 am Post subject: |
|
|
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 |
|
 |
|