Forged Alliance Forever Forged Alliance Forever Forums 2015-02-28T15:10:41+02:00 /feed.php?f=45&t=8976 2015-02-28T15:10:41+02:00 2015-02-28T15:10:41+02:00 /viewtopic.php?t=8976&p=94955#p94955 <![CDATA[Re: How to get data out of the game?]]> Statistics: Posted by zeroAPM — 28 Feb 2015, 15:10


]]>
2015-02-27T22:14:59+02:00 2015-02-27T22:14:59+02:00 /viewtopic.php?t=8976&p=94924#p94924 <![CDATA[Re: How to get data out of the game?]]>
zeroAPM wrote:
partytime wrote: and 20x FA licenses.


Can't be easier.
https://www.youtube.com/watch?v=pMhfbLRoGEw


Obviously we don't condone piracy.

Statistics: Posted by Sheeo — 27 Feb 2015, 22:14


]]>
2015-02-27T18:49:09+02:00 2015-02-27T18:49:09+02:00 /viewtopic.php?t=8976&p=94911#p94911 <![CDATA[Re: How to get data out of the game?]]>
partytime wrote:
and 20x FA licenses.


Can't be easier.
https://www.youtube.com/watch?v=pMhfbLRoGEw

Statistics: Posted by zeroAPM — 27 Feb 2015, 18:49


]]>
2015-02-27T03:47:05+02:00 2015-02-27T03:47:05+02:00 /viewtopic.php?t=8976&p=94860#p94860 <![CDATA[Re: How to get data out of the game?]]>
Perhaps though wheneve anyone manually analyzed a game, the special stats could be uploaded to a common server that everyone could search through.

Really though, Sheeo has ideas about putting what you describe into the main game anyway. Basically when the game finishes it would upload stats like how many of each unit were built.

Statistics: Posted by nine2 — 27 Feb 2015, 03:47


]]>
2015-02-26T20:01:25+02:00 2015-02-26T20:01:25+02:00 /viewtopic.php?t=8976&p=94845#p94845 <![CDATA[Re: How to get data out of the game?]]>
This would be useful if one wanted to look for replays where certain stuff happened (eg, filter all games featuring Aeon, filter all games that had UEF T3 Static artillery, filter all replays featuring Rambo SACUs, filter replays featuring Telemazor Cybran ACU and so on).

This would make things quite easier when it comes to analyze replays, though it would be necessary to change the Replay manager, not to mention the large amount of processor time required in order to analyze all replays already in the vault

Statistics: Posted by zeroAPM — 26 Feb 2015, 20:01


]]>
2015-02-20T03:47:56+02:00 2015-02-20T03:47:56+02:00 /viewtopic.php?t=8976&p=94295#p94295 <![CDATA[Re: How to get data out of the game?]]>
Well that sounds like a nice way to do it, may I have the link to the miniserver please?

I had thought about doing this but thought I would have to replicate too many 'real' server functions

Statistics: Posted by nine2 — 20 Feb 2015, 03:47


]]>
2015-02-20T03:29:28+02:00 2015-02-20T03:29:28+02:00 /viewtopic.php?t=8976&p=94294#p94294 <![CDATA[Re: How to get data out of the game?]]>
partytime wrote:
Thanks Domino,

Could you explain how it works?

How do you send data to it?


its quite simple really, you simply use


Code:
GpgNetSend(functionName, data, data, data, whatever, table )


because its using python, the actual function is on the server and it can do whatever you want it to do.

for instance if i use:

Code:
GpgNetSend("WriteSaveData", ScenarioId, FormatData.GetFormattedData( saveData ) )


i format it on the server to write this to a file exactly like this. (which is how i need and want it)

http://pastebin.com/7wrQLUW8

Dave

Statistics: Posted by Domino — 20 Feb 2015, 03:29


]]>
2015-02-20T03:15:19+02:00 2015-02-20T03:15:19+02:00 /viewtopic.php?t=8976&p=94293#p94293 <![CDATA[Re: How to get data out of the game?]]>
Could you explain how it works?

How do you send data to it?

Statistics: Posted by nine2 — 20 Feb 2015, 03:15


]]>
2015-02-19T23:10:39+02:00 2015-02-19T23:10:39+02:00 /viewtopic.php?t=8976&p=94283#p94283 <![CDATA[Re: How to get data out of the game?]]>
use the miniserver zep made?

i have a copy here that i have modified if you want the server i can send you link..

it lets me write my editor direct into a file, it can be tailored to write anything in any format, its a pyphon server.

Dave

Statistics: Posted by Domino — 19 Feb 2015, 23:10


]]>
2014-12-09T14:10:49+02:00 2014-12-09T14:10:49+02:00 /viewtopic.php?t=8976&p=87573#p87573 <![CDATA[Re: How to get data out of the game?]]>
partytime wrote:
When I view someone elses replay (who didnt use my mod), but I load it with my mod (via my own init file) I can still write to log file.

However simcallbacks wouldn't do anything for me in that scenario (the replay has already been written).

And I'm not sure would gpgnetsend work when viewing a replay?

Thanks for your time


I think it's possible to keep the lobby connection alive during a game, so gpgnetsend would work. But you're right, steps would need to be taken to ensure it doesn't die.

Watching a replay is just like playing a game, except that commands are issue from a special replay commandsource. You can write the replay you get from watching a replay, and then your simcallbacks would appear :)

Statistics: Posted by Sheeo — 09 Dec 2014, 14:10


]]>
2014-12-09T13:44:13+02:00 2014-12-09T13:44:13+02:00 /viewtopic.php?t=8976&p=87568#p87568 <![CDATA[Re: How to get data out of the game?]]>
However simcallbacks wouldn't do anything for me in that scenario (the replay has already been written).

And I'm not sure would gpgnetsend work when viewing a replay?

Thanks for your time

Statistics: Posted by nine2 — 09 Dec 2014, 13:44


]]>
2014-12-09T13:39:11+02:00 2014-12-09T13:39:11+02:00 /viewtopic.php?t=8976&p=87566#p87566 <![CDATA[Re: How to get data out of the game?]]>
partytime wrote:
I want to write a mod that writes game data out somehow. I don't really care how it is done but just want to know how to do it.

I actually want this for fifty reasons but for example - I want to write out number of engies for each team every second. Later I will write an app to process this data.

At the moment I am doing this by writing to the log file but it's pretty bad. I wonder if I could write a gpgnet proxy and just pass all the information backwards and forwards and then sneak in some extra messages from the game that are just for me (and dont get forwarded to real server).

I would love to
- be able to write to a my own file on the disc
- send some data to a my own url
- anything that is more cleaner and faster than writing to log file

Any ideas?

Thank you!


To get the stuff out of the game you either need to write to the log as you're doing (But it's slow), use the gpgnetsend function calls or use the replay. I haven't done much with this myself yet, but since we'd like to get more stats from games anyway, I think it'd be nice to put this in the replay, given that these stats are ones we can use generally anyway.

You can put arbitrary data in the replay using simcallbacks. These are defined in this file: https://github.com/FAForever/fa/blob/de ... lbacks.lua.

Statistics: Posted by Sheeo — 09 Dec 2014, 13:39


]]>
2014-12-09T13:08:15+02:00 2014-12-09T13:08:15+02:00 /viewtopic.php?t=8976&p=87562#p87562 <![CDATA[How to get data out of the game?]]>
I actually want this for fifty reasons but for example - I want to write out number of engies for each team every second. Later I will write an app to process this data.

At the moment I am doing this by writing to the log file but it's pretty bad. I wonder if I could write a gpgnet proxy and just pass all the information backwards and forwards and then sneak in some extra messages from the game that are just for me (and dont get forwarded to real server).

I would love to
- be able to write to a my own file on the disc
- send some data to a my own url
- anything that is more cleaner and faster than writing to log file

Any ideas?

Thank you!

Statistics: Posted by nine2 — 09 Dec 2014, 13:08


]]>