Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terrain generator #170

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

greythane
Copy link

Addition of inbuilt terrain generation code. Operates on the currently selected region.
Adds command

terrain generate [ smoothing ]

- Flatland (current default), Mainland (terrain generated to edge of region), Island (terrain surrounded by water)
< min height> - required minimum & maximum land heights
[smoothing] - options (default 2) - number of smoothing passes to perform

Update gitignore to provide for side by side development using the main
Hg repo as well as additional debug stuff
No code changes
* Aurora.ScriptEngine.AuroraDotNetEngine.APIs - LSL_Types.cs - class
LSL_Types
  Add (float) type casting to '==' and 'Equals' overides
 *Remove OS compile IFDEF to include the == and != overrides when
compiling on the Mac

* namespace Aurora.Services.SQLServices.GridService -  private struct
NeighborLocation
  Add GetHashCode overide to satisfy compiler warning and prevent
incorrect a == b or a != b comparisons
* namespace Aurora.Modules.Caps - public class RenderMaterials -
RenderMaterialsPostCap()
    Remove comparison of te.DefaultTexture.MaterialID == null as it
should always be assigned at creation (debug only)
* Aurora.Modules.WorldMap - class AuroraWorldMapModule - private void
GetMapBlocks()
  Correct if..else.. logic when dealing with the item.mapblocks types
Correct loading of terrain files when using multiple regions

* Aurora.Modules.Terrain - TerrainModule.cs
    Harden LoadFile and SaveFile procedures to avoid complete crash on
an unexpected error

 * Aurora.Modules.World.Startup.SimulationData.FileLoaders -
TarRegionLoader.cs - class TarRegionDataLoader
    Correct console error message header on exception  (trivial but...
:) )
    Added additional console info during loading of backup file

* Aurora.Modules.Terrain - TerrainModule.cs
    Finalise updates to load terrain into the correct scene
* Aurora.Services.SQLServices.GridService - GridService.cs
    Add region size to info details
    Correct region URI details
* Aurora.Framework.Services - IGridservice.cs
    Add RegionURI to return region instance uri
* Aurora.Region - SceneManager.cs
    Add currently selected region name to console prompt

* Aurora.Modules.Terrain - TerrainModule.cs
    Update procedures to load terrain into the correct scene as selected

* Aurora.Framework.Sceneinfo - TerrainChannel.cs
    Correct problem when creating/loading a terrainchannel if the
source image is not the same as the region size.

Update runprebuild to use the mono/net4.5 spec (compatible with mono V
3.2.3)
Implementation of terrain generation functionality to assist creation
of new regions

Additional commands : terrain generate <Flatland/Mainland/Island> <Min
height> <Max height> [smoothing]
@greythane
Copy link
Author

Bummer.. I do use a config that puts everything outside the bin dir but I must have missed something here … :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants