RemoteAdmin:admin save heightmap
From OpenSimulator
(Difference between revisions)
(Created page with "'''admin_save_heightmap''' remotely allows to save a hight maps of regions to file. === Enabling admin_save_heightmap === If not all functions are enabled, use admin_save_heigh...") |
JeffKelley (Talk | contribs) m (→PHP: Fixed broken Google Code link, replacing with internal page) |
||
(11 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | '''admin_save_heightmap''' remotely allows to save a hight | + | '''admin_save_heightmap''' remotely allows to save a hight map of the regions to file. |
Line 18: | Line 18: | ||
! Values | ! Values | ||
|- | |- | ||
− | | '' | + | | ''region_name'' |
− | | region | + | | Name of the region, optionaly use ''region_id'' |
| | | | ||
|- | |- | ||
Line 26: | Line 26: | ||
| | | | ||
|} | |} | ||
− | |||
=== Optional Parameters === | === Optional Parameters === | ||
− | + | These parameters are optional | |
− | + | {| cellspacing="0" cellpadding="4" border="1" | |
+ | |- | ||
+ | ! parameter | ||
+ | ! Description | ||
+ | ! Values | ||
+ | |- | ||
+ | | ''region_id'' | ||
+ | | region uuid of the region. | ||
+ | | | ||
+ | |} | ||
== Returned Parameters == | == Returned Parameters == | ||
Line 46: | Line 54: | ||
| true | | true | ||
|} | |} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== Notes == | == Notes == | ||
− | *''accepted'' is an returned parameter, probably used prior to ''success'' | + | * ''accepted'' is an returned parameter, probably used prior to ''success'' |
== Example == | == Example == | ||
=== PHP === | === PHP === | ||
+ | This example needs the RemoteAdmin PHP Class file available [[RemoteAdmin:RemoteAdmin_Class|here]]. | ||
+ | |||
<source lang="php"> | <source lang="php"> | ||
<?php | <?php | ||
Line 69: | Line 72: | ||
// Invoke admin_save_heightmap (multiple parameters) | // Invoke admin_save_heightmap (multiple parameters) | ||
− | $parameters = array(' | + | $parameters = array('region_id' => '000000-0000-0000-0000-00000000', 'filename' => 'my_terrain.raw'); |
$myRemoteAdmin->SendCommand('admin_save_heightmap', $parameters); | $myRemoteAdmin->SendCommand('admin_save_heightmap', $parameters); | ||
?> | ?> | ||
</source> | </source> | ||
− | [[Category: | + | |
+ | |||
+ | [[Category:RemoteAdmin]] | ||
+ | [[Category:RemoteAdmin Commands]] |
Latest revision as of 11:37, 16 March 2021
admin_save_heightmap remotely allows to save a hight map of the regions to file.
Contents |
[edit] Enabling admin_save_heightmap
If not all functions are enabled, use admin_save_heightmap to enable the function in the [RemoteAdmin] section
enabled_methods = admin_save_heightmap,...
[edit] Parameters
[edit] Required Parameters
These parameters are required
parameter | Description | Values |
---|---|---|
region_name | Name of the region, optionaly use region_id | |
filename | save height map as file name |
[edit] Optional Parameters
These parameters are optional
parameter | Description | Values |
---|---|---|
region_id | region uuid of the region. |
[edit] Returned Parameters
[edit] Returned Parameters
These parameters are returned by Remote Admin
parameter | Description | Values |
---|---|---|
success | true when successfull | true |
[edit] Notes
- accepted is an returned parameter, probably used prior to success
[edit] Example
[edit] PHP
This example needs the RemoteAdmin PHP Class file available here.
<?php // Including the RemoteAdmin PHP class. include('RemoteAdmin.php'); // Instantiate the class with parameters identical to the Python example above $myRemoteAdmin = new RemoteAdmin('127.0.0.1', 9000, 'secret'); // Invoke admin_save_heightmap (multiple parameters) $parameters = array('region_id' => '000000-0000-0000-0000-00000000', 'filename' => 'my_terrain.raw'); $myRemoteAdmin->SendCommand('admin_save_heightmap', $parameters); ?>