Run two replays simultaneously

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

Re: Run two replays simultaneously

Postby tatsu » 20 Jan 2020, 22:16

StormLantern wrote:I presume that FAForever is the Python client?

(this is very cute by the way)

I'm gonna explain it for you.

there are actually two FAF apps (or clients whichever word you prefer)

also FAF and FAForever and Forged Alliance Forever are all accepted names for one and the same thing.

FAF first started out as a Python ( this is Python ) project.

then Downlord ( a faf user ) decided the python codebase was stale and proposed a new client that would this time be coded in Java. (at first the idea was ridiculed then it met with mild success)

For a while the two clients could be chosen from on the FAF website's download page with a quick run down of each's features.

And today the Java (or downlord) client is stock (the only choice) although die-hard fans of the python client stick by it and continue to use it.
User avatar
tatsu
Supreme Commander
 
Posts: 1553
Joined: 02 Jul 2012, 21:26
Has liked: 1952 times
Been liked: 171 times
FAF User Name: tatsu

Re: Run two replays simultaneously

Postby StormLantern » 20 Jan 2020, 22:41

lol okay, so how do I use this python client to do the whole two replay thing? :p

Thanks for the info btw
StormLantern
Crusader
 
Posts: 27
Joined: 15 Feb 2019, 21:57
Has liked: 2 times
Been liked: 3 times
FAF User Name: StormLantern

Re: Run two replays simultaneously

Postby Little Miss Murder » 21 Jan 2020, 09:16

You need a stub executable called FAForever.exe that just takes the passed command line and adds whatever is needed, which in turn then spawns the proper FAForever.exe.

In Linux this is child's play, you just create a bash script.
Little Miss Murder
Avatar-of-War
 
Posts: 229
Joined: 30 Mar 2019, 12:20
Has liked: 132 times
Been liked: 29 times
FAF User Name: Little Miss Murder

Re: Run two replays simultaneously

Postby StormLantern » 21 Jan 2020, 16:21

Ah okay, have no idea what ur talking about, but thanks
StormLantern
Crusader
 
Posts: 27
Joined: 15 Feb 2019, 21:57
Has liked: 2 times
Been liked: 3 times
FAF User Name: StormLantern

Re: Run two replays simultaneously

Postby Little Miss Murder » 22 Jan 2020, 09:32

Well, its an old hacker trick to find out what cmdline params are being passed to an executable that is being launcjed by another. You simply replace the launched executable with a custom exe that prints out the received parameters.

The idea here is to extend this by making your middleware executable act as if it were the original exe; it steals the passed params from DFC, appends/alters whatever else is needed and then launches the proper FAForever.exe with the new set of params.
Little Miss Murder
Avatar-of-War
 
Posts: 229
Joined: 30 Mar 2019, 12:20
Has liked: 132 times
Been liked: 29 times
FAF User Name: Little Miss Murder

Previous

Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest