View previous topic :: View next topic |
Author |
Message |
LastExceed Expert Cheater
Reputation: 1
Joined: 05 Nov 2014 Posts: 130
|
Posted: Tue Mar 01, 2016 4:55 am Post subject: something like a shared memory block in local networks? |
|
|
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 |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Tue Mar 01, 2016 2:01 pm Post subject: |
|
|
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 |
|
 |
LastExceed Expert Cheater
Reputation: 1
Joined: 05 Nov 2014 Posts: 130
|
Posted: Tue Mar 01, 2016 3:47 pm Post subject: |
|
|
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 |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Tue Mar 01, 2016 7:32 pm Post subject: |
|
|
If you are looking to do this with Cheat Engine and its trainer/lua engine, than GL lol.
_________________
- Retired. |
|
Back to top |
|
 |
LastExceed Expert Cheater
Reputation: 1
Joined: 05 Nov 2014 Posts: 130
|
Posted: Wed Mar 02, 2016 6:00 am Post subject: |
|
|
what do you mean with that? Is it any different if I want to do it with CE?
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Wed Mar 02, 2016 1:25 pm Post subject: |
|
|
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 |
|
 |
LastExceed Expert Cheater
Reputation: 1
Joined: 05 Nov 2014 Posts: 130
|
Posted: Thu Mar 03, 2016 8:20 am Post subject: |
|
|
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 |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Thu Mar 03, 2016 12:59 pm Post subject: |
|
|
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 |
|
 |
LastExceed Expert Cheater
Reputation: 1
Joined: 05 Nov 2014 Posts: 130
|
Posted: Thu Mar 03, 2016 1:12 pm Post subject: |
|
|
Is it easy to hack?
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Thu Mar 03, 2016 6:29 pm Post subject: |
|
|
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 |
|
 |
|