Decided to upload now. >-<
Following changes in v1.9:
- ★ Added button to allow user to launch osu!/osu!test (left/right click).
☆ Made several changes to make osu!np more efficient.
★ Fixed issue causing update setting to be ignored.
☆ Addressed exception when attempt to connect to FTP fails.
★ Fixed issue causing FTP to overwrite primary output.
☆ FTP will now correctly send offline status when the osu! process is not running.
★ FTP now uses threading to reduce hanging, only map checking should cause hangs for now.
☆ Status messages of FTP will now display on osu!np title to not conflict with other status messages.
★ Changed FTP Upload to additionally support uploading Secondary/Previous outputs.
☆ Added option of whether to group outputs when uploading to FTP, more info on this in the 'FTP Grouping' section.
★ Implemented method for sending status and outputs to a PHP page using POST method, more info on this in the 'POST' section.
Please note: The last few updates have had changes to the settings, so exporting old settings may cause conflicts.
If you experience problems with this, you'll have delete the following folder: C:\Users\Username\AppData\Local\Primpri
I can't really make an explanation for the FTP Grouping and POST just yet, need sleep ;--;
But basically for the FTP side of things:If you choose to output with FTP Group on, then instead of having Primary/Secondary/Previous output to separate files, they'll output to the same group file specified.
Status will always output to its own file.
The 'Key' and 'Value' input fields determine the format of the output to the group file. (Where '[Key]' is 'Primary'/'Secondary'/'Previous' and '[Value]' is the output of the Key)
Text within double braces {{ }} in the Key field will only display before the first Key.
Text within double braces {{ }} in the Value field will only display after the last Value.
[nl] will create a new line.
If you were to output to a basic Key:Value .ini file, you could do this:Set Key field to: '[key]:'
Set Value field to: '[val][nl]'
The output would be:Primary:Value
Secondary:Value
Previous:Value
If you were to output to a PHP file, you could do this:Set Key field to: '{{<?php[nl]}}$[key] = '
Set Value field to: '"[val]";[nl]{{?>}}'
The output would be:<?php
$Primary = "Value";
$Secondary = "Value";
$Previous = "Value";
?>
For the POST side of things:Set the URL to the location of the page receiving the POST requests (
http://host.com/np.php)
Set the Key field to a 'passphrase' of sorts which you'll be able to verify when you check for the requests in PHP.
You can then do things like: if($_POST['key'] == "blah"){ echo($_POST['status']); echo($_POST['primary']); }
All requests are: 'key', 'status', 'primary', 'secondary', 'previous'
They're not all sent with values at all times (Eg. Status updates when osu is opened, but the outputs don't), so you may want to check lengths of each request before doing anything with them.