"Remote Functions" ?

For bug reports and fixes, installation issues, and new ideas for technical features.

Moderator: SEOW Developers

Post Reply
EJGr.Ost_Chamel
Posts: 56
Joined: Sun 14 Jan 2007 11:37 pm
Location: Germany
Contact:

"Remote Functions" ?

Post by EJGr.Ost_Chamel »

Hi folks,

when I started using SEOW I first ignored the "Remote Functions" tab in the DCS. Now I think, that the described functionality of automatically uploading all mission and log-files, would be a nice feature but I have no idea, what I have to enter in the field "MySQL Server Archive Folder"! :?
Anyone can tell me, what must be written in this field to upload everything to a windows server running MySQL-DBs?

Thx in advance

Chamel
IV/JG7_4Shades
Posts: 2237
Joined: Mon 08 Jan 2007 11:10 pm
Location: Perth, Western Australia

Post by IV/JG7_4Shades »

Hi Chamel, und frohe Weihnachten!

The Remote Functions feature set is a little inscrutable but quite useful. :wink:

There are 3 different tools. I will describe each briefly now.

Tool 1: SE_File_Buffer
This checkbox tells the DCS to copy each .mis file and the resulting log file into the DB SE_File_Buffer table. Simple. This will give your DB a record of the essential played mission files for your campaign. There is no tool set provided with SEOW to interpret, display or modify the contents of the SE_File_Buffer table. If this option is unchecked, the SE_File_Buffer table will remain empty.

Tool 2: MySQL Server Archive Folder
If filled out with a file path, the DCS will copy .mis, .properties and log files into the corresponding path on the MySQL server machine. The path must be a valid path and the MySQL login account MUST support the EXECUTE permission. This is rare for most commercial MySQL servers, as it presents a possible security problem. But if you are running your own MySQL server on your own PC, you should be able to get it to work. The value of this option is that you can easily archive all your files to any folder on the server machine, e.g. a web folder for easy publication.

Tool 3: DCS Web Script URL
This is the potentially most powerful of the three tools. If a valid URL is entered in here, the DCS will send a set of pre-defined SEOW status variables to the URL in HTTP POST format at the end of every Analyze and Build step. The URL functionality is completely arbitrary, so you can write your own web service or script to parse the incoming POST data and do anything you like with it. Possible uses are to synchronize campaign forums with the latest campaign status, build an RSS feed, email commanders saying "Planning now open", or "Planning now closed" etc. In fact, SEOW already comes with such a script inside the MP itself to perform communications with rnzoli's excellent Dynamic Server Coop tool. This script is called MP-CoopManager.php, and it also serves as a reasonably simple example of how to parse the POST data and do something with it in PHP.

Cheers,
4Shades
IV/JG7_4Shades
SEOW Developer

Image
EJGr.Ost_Chamel
Posts: 56
Joined: Sun 14 Jan 2007 11:37 pm
Location: Germany
Contact:

Post by EJGr.Ost_Chamel »

Aaaah, it's soooo easy!? Image
Tool 1 is all I will use for now. But it's good to know, that there are more things that might be useful later on.

One small hint: For me it always looked as if the checkbox for "Tool 1" and the path for "Tool 2" were related forming just one Tool and this prevented me from understanding the options. Maybe it would be better to make a small optical separation between these two elements in a future DCS release?

Greetings + kommt gut in das neue Jahr! ;)

Chamel
Post Reply