OpenSim Mantis Tracker
| Anonymous | Login | Signup for a new account | 2010-07-31 17:29 PDT |
| Main | My View | View Issues | Change Log | Roadmap | Summary | Docs | My Account |
| Viewing Issue Simple Details [ Jump to Notes ] | [ View Advanced ] [ Issue History ] [ Print ] | ||||||||
| ID | Category | Severity | Reproducibility | Date Submitted | Last Update | ||||
| 0003313 | [opensim] [REGION] Specific OpenSim Module | feature | always | 2009-03-19 12:22 | 2009-05-03 10:55 | ||||
| Reporter | mcortez | View Status | public | ||||||
| Assigned To | |||||||||
| Priority | normal | Resolution | fixed | ||||||
| Status | closed | Product Version | |||||||
| Summary | 0003313: [Patch] Additional features for the Sun module | ||||||||
| Description |
* All parameters are now configurable from console via "Sun" command * Additional osFunctions() for accessing Estate Sun settings, as well as Sun Module Settings * Sun Module can now be configured so that it can be accessed via script chat * Added day light / night time hour scaling -- scales day/night hours in a manor compatible with LL based viewers |
||||||||
| Additional Information | |||||||||
| Tags | No tags attached. | ||||||||
| Git Revision | |||||||||
| SVN Revision | 0 | ||||||||
| Run Mode | Standalone (1 Region) , Standalone (Multiple Regions) , Grid (1 Region per Sim) , Grid (Multiple Regions per Sim) | ||||||||
| Physics Engine | BasicPhysics, PhysicsOfSimplicity, ODE, BulletX, PhysX | ||||||||
| Environment | Mono / Linux32 | ||||||||
| Mono Version | Other | ||||||||
| Attached Files |
|
||||||||
|
|
|||||||||
Notes |
|
|
(0010029) melanie (administrator) 2009-03-19 12:31 |
This patch has two issues. One, multiple set channel commands will cause multiple additions of the hook function, creating multiple calls to the parser and causing chat lag. A single methid can be added to an event multiple times, and will be called that many times. Therefore, duplicate addition of a hander to an event must be guarded against. Two, this is improper use of the console command system. A module wishing to provide a sub-command tree should use ICommandable, a module using add command should add each possible command and need not provide a help screen. This is integrated in the console itself. In it's current form, -1 |
|
(0010031) mcortez (developer) 2009-03-19 14:03 edited on: 2009-03-19 14:05 |
Where is the documentation for "proper use of the console command system" - I did not notice anything on the dev wiki. This introduces at most, 3 console commands {get, set, list} -- the intent was this to be a single command, with three options for parameters, none, one and two. The "system" that the terrain module is using looks extremely inefficient and heavy for what is a relatively simple activity. |
|
(0010034) mcortez (developer) 2009-03-19 14:55 |
Is V.5 of the patch what your looking for in re: to ICommandable? |
|
(0010035) melanie (administrator) 2009-03-19 15:12 |
yes. this should now appear as "sun - sun subcommands" in the help and allow "sun help" to be used via the module commander system Another option would have been to have multipe add command, adding "sun set"and "sun get", which would make them separate main help options. Either way will work. The guard is in there, too, so +1 |
|
(0010036) mcortez (developer) 2009-03-19 15:28 edited on: 2009-03-19 15:33 |
I'm testing, and it doesn't look like doing "sun help" works, I get an invalid command. Do I have to implement the help myself? I thought the whole point of using the ICommandable thing was so that it would do it automatically? -- Nevermind, the proper syntax is "help sun" not "sun help" but there is still issues, because the functions that should be called by sun get and sun set don't seem to be getting called |
|
(0010038) melanie (administrator) 2009-03-19 15:42 |
I didn't check function, just api usage. |
|
(0010041) Ewe Loon (reporter) 2009-03-19 19:42 |
it appears that osGetCurrentSunHour() is returning the time offset by 6 hours, e.g, 0.0 is at sun rise, 6.0 is when the sun it at highest position 12.0 is sunset if this is surposed to be like this please let me know so i can correct my clocks to suit |
|
(0010044) mcortez (developer) 2009-03-20 07:44 |
That is the correct behavior of osGetCurrentSunHour(). The internal representation of the sun's position in Sun Module is based on 0 to 24 for a full day, with 0 being roughly run rise. The estate settings also tracks zero hour as roughly sunrise. The Region sun settings use the range 6 to 30, with 6 being roughly sun-rise,. |
|
(0010052) mcortez (developer) 2009-03-20 15:33 |
V.9 of the patch, enables context help for console but chat capability was removed. |
|
(0010053) svn (developer) 2009-03-20 15:42 |
melanie committed related code in r8829 Thank you, mcortez, for patch to add functionality to the sun module. Fixes Mantis 0003313 see more at - http://opensimulator.org/cgi-bin/viewvc.cgi?view=rev&revision=8829 [^] |
| Mantis 1.1.1[^] Copyright © 2000 - 2008 Mantis Group |