
As discussed here:
viewtopic.php?f=21&t=17094
I wrote an info & statistics out-stream/exporter for the engine, which is now merged into master.
It is disabled by default, so it will not waste any performance, as most will probably not use it.
Currently available spring-settings with default values are:
Code: Select all
OscStatsSenderEnabled=0
OscStatsSenderDestinationAddress=127.0.0.1
OscStatsSenderDestinationPort=6447
SCons and CMake are set up to build it as a static lib, and link it into spring(.exe) (as it is done with streflop). oscpack has no external dependencies.
what is available:
- engine internal stuff to export stats through OSC (in git master)
rts/lib/oscpack/*
rts/Game/OSCStatsSender.cpp/.h - OscStatsSendFaker: (very ugly code) a small C++ test app (Linux only), that can send the same messages that spring sends, but with randomly generated data
- SpringOSCInspector: (very ugly code, not supplied :D) a small Java GUI that can be connected to the spring OSC output, to see it as 2D Line graphs (see attached screenshots)
- a sample implementation of a dynamics calculation "transponder" (for example in Java oir in C with LUA); calculates the dynamics of the game into values that can be used more directly to generate music; for example: ammountOfAction, currentWinLooseChance
possibly of use, utilities that dump all incoming OSC messages to stdout:
Windows OSC dump utility (binary):
http://luvtechno.net/d/1980/02/open_sou ... rol_3.html
Linux OSC dump utility (source code)
http://megaui.net/fukuchi/works/oscsend/index.en.html