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 


something like a shared memory block in local networks?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
LastExceed
Expert Cheater
Reputation: 1

Joined: 05 Nov 2014
Posts: 130

PostPosted: Tue Mar 01, 2016 4:55 am    Post subject: something like a shared memory block in local networks? Reply with quote

I am trying to play multiple instances of a game simultaneously by synchronizing character position, camera rotation, keyboard inputs, actions ect with shared memory blocks. (Don't ask me why its just for the lulz)

The obvious problem in here is that this requires alot of CPU/GPU power, which I don't have. Therefore I'd like to do it across the local network (run 1 or 2 instances of the game on each pc and have one master pc to control them all).

Unfortunately I don't know ANYTHING about how to do it or even where to start. I don't even know what to google for.

The best thing would be something that works just like shared memory blocks (or something similar to that), but not only on 1 pc but on a whole local network.

Can anyone tell me how to do it?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue Mar 01, 2016 2:01 pm    Post subject: Reply with quote

One of the better strategies for something like this going cross-network / cross-computer is setting up a client/server style thing.

One computer would be the server that maintains the shared memory block of what is going on. As-in the main system handling the movement and play of the games that the others should mimic. The other computers connect to that server and communicate that shared block between the server and clients.

That way there is only ever 1 block of memory and one central game controlling all the sub-clients.

If you are looking to do this outside of Lua, I'd recommend ZMQ for networking in various languages.
http://zeromq.org/

I have done this exact thing on an MMORPG using ZMQ and it works flawlessly to share things between the server/clients.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
LastExceed
Expert Cheater
Reputation: 1

Joined: 05 Nov 2014
Posts: 130

PostPosted: Tue Mar 01, 2016 3:47 pm    Post subject: Reply with quote

atom0s wrote:
One of the better strategies for something like this going cross-network / cross-computer is setting up a client/server style thing.

One computer would be the server that maintains the shared memory block of what is going on. As-in the main system handling the movement and play of the games that the others should mimic. The other computers connect to that server and communicate that shared block between the server and clients.

That way there is only ever 1 block of memory and one central game controlling all the sub-clients.

If you are looking to do this outside of Lua, I'd recommend ZMQ for networking in various languages.
http://zeromq.org/

I have done this exact thing on an MMORPG using ZMQ and it works flawlessly to share things between the server/clients.


Well I was expecting a client/server setup, the question was rather how to do it since I have absolutely no idea where to even start.

I have trouble finding instructions on how to use ZeroMQ. Can you give me some sample code? (lets say you have 2 CE trainers on different pc's and one of them has a textfield, the other a label and you want to send the text of the "servers" textfield to be shown in the "clients" label). I can learn much faster that way...
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Tue Mar 01, 2016 7:32 pm    Post subject: Reply with quote

If you are looking to do this with Cheat Engine and its trainer/lua engine, than GL lol.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
LastExceed
Expert Cheater
Reputation: 1

Joined: 05 Nov 2014
Posts: 130

PostPosted: Wed Mar 02, 2016 6:00 am    Post subject: Reply with quote

what do you mean with that? Is it any different if I want to do it with CE?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Wed Mar 02, 2016 1:25 pm    Post subject: Reply with quote

LastExceed wrote:
what do you mean with that? Is it any different if I want to do it with CE?


Just more or less restrictive and lacking in what you can use to get the job done easier.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
LastExceed
Expert Cheater
Reputation: 1

Joined: 05 Nov 2014
Posts: 130

PostPosted: Thu Mar 03, 2016 8:20 am    Post subject: Reply with quote

I figured that I'll do it with sockets instead, but thaks anyway.

Btw do you mind telling me on which MMORPG you did it?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Mar 03, 2016 12:59 pm    Post subject: Reply with quote

LastExceed wrote:
I figured that I'll do it with sockets instead, but thaks anyway.

Btw do you mind telling me on which MMORPG you did it?


Final Fantasy XI

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
LastExceed
Expert Cheater
Reputation: 1

Joined: 05 Nov 2014
Posts: 130

PostPosted: Thu Mar 03, 2016 1:12 pm    Post subject: Reply with quote

Is it easy to hack?
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Thu Mar 03, 2016 6:29 pm    Post subject: Reply with quote

LastExceed wrote:
Is it easy to hack?


It's not a game worth looking into if you are looking for something to hack.
The game is over 14 years old and is basically dead.

_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
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