Best Way to Communicate between Two CC Programs?

For questions about using Classic.

Post » Sat Oct 06, 2012 8:22 pm

What would be the best way to send data between two Construct Classic Programs?

For instance, I want to be running a program and have start another separate program with some variables, then when the second program is done let the first to know.

Just as a note I'm not concerned with the user hacking/cheating the program, if that makes it any easier.

Thanks.
Follow me on Twitter @evgLabs
B
33
S
14
G
4
Posts: 251
Reputation: 4,049

Post » Sun Oct 07, 2012 12:02 am

Hmm, you could do it using the multiplayer plugin: http://www.scirra.com/forum/plugin-network-v03a-update_topic43662.html

But you will need to have it running in XP compatability mode and run as an administrator on anything Windows Vista and up.

Here's a chat mmo I made with it: http://www.scirra.com/forum/pixel-people-online-alpha-02-source_topic43970.html

Have the main application run as the server, then have the client automatically connect to it (connect to localhost to run on the same machine).

Otherwise you can try passing a text file between them, have input.txt fed to the client, which then edits output.txt for the main to read. I think you'll need to write/read them at different times in order to prevent them from accessing the same file at once though.
"Construct 4 lets YOU make advanced games! (maybe)" Construct Classic - Examples Kit
B
86
S
28
G
13
Posts: 2,092
Reputation: 15,009

Post » Mon Oct 08, 2012 2:39 pm

Thanks, both of those sound like a good idea.
Follow me on Twitter @evgLabs
B
33
S
14
G
4
Posts: 251
Reputation: 4,049


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests