Jump to content

Calidan

Scallywag
  • Content Count

    2
  • Joined

  • Last visited

Posts posted by Calidan


  1. For me - the new SGE wont 'stick' the img format change to PNG, and I get an error and incomplete export of cell images when I export all or export cellimg's - I'm testing on a 3x3 map and getting random cell's (eg. 1-0,2-0,2-1,2-2 only .. along with tradewind images for the same cells) then SGE crashes with an unhandled exception .. Only 1 instance of SGE is running.

    (sorry if this is wrong place for this)

    See the end of this message for details on invoking 
    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************
    System.AggregateException: One or more errors occurred. ---> System.InvalidOperationException: Object is currently in use elsewhere.
       at System.Drawing.TextureBrush.ResetTransform()
       at ServerGridEditor.MainForm.DrawMap(MainForm mainForm, IDictionary`2 islands, Graphics g, Boolean showLines, Boolean showServerInfo, Boolean showDiscoZoneInfo, Nullable`1 culling, Nullable`1 alphaBackground, Image tile, TextureBrush tileBrush, Decimal tileScale, Int32 translateH, Int32 translateV, Boolean forExport, Boolean bShowPathingGrid, Int32 startX, Int32 startY)
       at ServerGridEditor.MainForm.DrawMapToGraphics(Graphics& g, Boolean cull, Boolean ignoreTranslation, Boolean forExport, Int32 startX, Int32 startY)
       at ServerGridEditor.MainForm.DrawMapToImage(Dictionary`2& tradewindsBuffer, Int32 cellX, Int32 cellY, Single resOverride, Boolean forceResForSingleCell, Boolean tradewindsWorldMap)
       at ServerGridEditor.MainForm.ExportImage(String filePath, Int32 cellX, Int32 cellY, Boolean exportOverrides, Single resOverride, Boolean tradeWindsWorldMap)
       at ServerGridEditor.MainForm.<>c__DisplayClass109_0.<<ExportCellImages>b__0>d.MoveNext()
       --- End of inner exception stack trace ---
       at System.Threading.Tasks.Task.ThrowIfExceptional(Boolean includeTaskCanceledExceptions)
       at System.Threading.Tasks.Task.Wait(Int32 millisecondsTimeout, CancellationToken cancellationToken)
       at ServerGridEditor.MainForm.ExportCellImages(String path)
       at ServerGridEditor.MainForm.cellImagesToolStripMenuItem_Click(Object sender, EventArgs e)
       at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
       at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
       at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
       at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
       at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
       at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
       at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ToolStrip.WndProc(Message& m)
       at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
    ---> (Inner Exception #0) System.InvalidOperationException: Object is currently in use elsewhere.
       at System.Drawing.TextureBrush.ResetTransform()
       at ServerGridEditor.MainForm.DrawMap(MainForm mainForm, IDictionary`2 islands, Graphics g, Boolean showLines, Boolean showServerInfo, Boolean showDiscoZoneInfo, Nullable`1 culling, Nullable`1 alphaBackground, Image tile, TextureBrush tileBrush, Decimal tileScale, Int32 translateH, Int32 translateV, Boolean forExport, Boolean bShowPathingGrid, Int32 startX, Int32 startY)
       at ServerGridEditor.MainForm.DrawMapToGraphics(Graphics& g, Boolean cull, Boolean ignoreTranslation, Boolean forExport, Int32 startX, Int32 startY)
       at ServerGridEditor.MainForm.DrawMapToImage(Dictionary`2& tradewindsBuffer, Int32 cellX, Int32 cellY, Single resOverride, Boolean forceResForSingleCell, Boolean tradewindsWorldMap)
       at ServerGridEditor.MainForm.ExportImage(String filePath, Int32 cellX, Int32 cellY, Boolean exportOverrides, Single resOverride, Boolean tradeWindsWorldMap)
       at ServerGridEditor.MainForm.<>c__DisplayClass109_0.<<ExportCellImages>b__0>d.MoveNext()<---

    ************** Loaded Assemblies **************
    mscorlib
        Assembly Version: 4.0.0.0
        Win32 Version: 4.8.4341.0 built by: NET48REL1LAST_C
        CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll
    ----------------------------------------
    ServerGridEditor
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///F:/AtlasSrv/AtlasTools/ServerGridEditor_5-27-2021/ServerGridEditor.exe
    ----------------------------------------
    System.Windows.Forms
        Assembly Version: 4.0.0.0
        Win32 Version: 4.8.4341.0 built by: NET48REL1LAST_C
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
    ----------------------------------------
    System
        Assembly Version: 4.0.0.0
        Win32 Version: 4.8.4300.0 built by: NET48REL1LAST_C
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll
    ----------------------------------------
    System.Drawing
        Assembly Version: 4.0.0.0
        Win32 Version: 4.8.3752.0 built by: NET48REL1
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
    ----------------------------------------
    AtlasGridDataLibrary
        Assembly Version: 1.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///F:/AtlasSrv/AtlasTools/ServerGridEditor_5-27-2021/ServerGridEditor.exe
    ----------------------------------------
    Newtonsoft.Json
        Assembly Version: 11.0.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///F:/AtlasSrv/AtlasTools/ServerGridEditor_5-27-2021/ServerGridEditor.exe
    ----------------------------------------
    System.Configuration
        Assembly Version: 4.0.0.0
        Win32 Version: 4.8.4190.0 built by: NET48REL1LAST_B
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
    ----------------------------------------
    System.Core
        Assembly Version: 4.0.0.0
        Win32 Version: 4.8.4341.0 built by: NET48REL1LAST_C
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll
    ----------------------------------------
    System.Xml
        Assembly Version: 4.0.0.0
        Win32 Version: 4.8.3752.0 built by: NET48REL1
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll
    ----------------------------------------
    System.Numerics
        Assembly Version: 4.0.0.0
        Win32 Version: 4.8.3752.0 built by: NET48REL1
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Numerics/v4.0_4.0.0.0__b77a5c561934e089/System.Numerics.dll
    ----------------------------------------
    System.Runtime.Serialization
        Assembly Version: 4.0.0.0
        Win32 Version: 4.8.4250.0 built by: NET48REL1LAST_C
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Runtime.Serialization/v4.0_4.0.0.0__b77a5c561934e089/System.Runtime.Serialization.dll
    ----------------------------------------
    System.Data
        Assembly Version: 4.0.0.0
        Win32 Version: 4.8.4270.0 built by: NET48REL1LAST_C
        CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/System.Data/v4.0_4.0.0.0__b77a5c561934e089/System.Data.dll
    ----------------------------------------
    Magick.NET-Q16-AnyCPU
        Assembly Version: 7.9.0.0
        Win32 Version: 1.0.0.0
        CodeBase: file:///F:/AtlasSrv/AtlasTools/ServerGridEditor_5-27-2021/ServerGridEditor.exe
    ----------------------------------------

    ************** JIT Debugging **************
    To enable just-in-time (JIT) debugging, the .config file for this
    application or computer (machine.config) must have the
    jitDebugging value set in the system.windows.forms section.
    The application must also be compiled with debugging
    enabled.

    For example:

    <configuration>
        <system.windows.forms jitDebugging="true" />
    </configuration>

    When JIT debugging is enabled, any unhandled exception
    will be sent to the JIT debugger registered on the computer
    rather than be handled by this dialog box.

    • Haha 1

  2. On 2/19/2019 at 7:49 AM, ZenRowe said:

    Hello everyone.
    I've gotten some questions about overriding creature spawns on islands, so we've added a guide to the devkit site (Though the devkit is not explicitly required)


    You can find it here:
    http://devkit.playatlas.com/en/latest/Guides/OverridingSpawns.html

    Greatly appreciate the Guide, however no matter how I work it I am still unable to get Island Spawn Overrides to take effect and work.

    I am attempting to override the 02_Beaches spawn on an island to only spawn Elephants (as a test). I am wanting to put elephants on a temperate island.  I have checked the Island and it is using this spawn, and have the following setup in the servergrid.json for the island instance.

    Quote

    "spawnerOverrideTemplates": [   

    {
          "Name": "SpawnerElephant",
          "NPCSpawnEntries": "((AnEntryName=\"Elephant\",NPCsToSpawn=(BlueprintGeneratedClass'/Game/Atlas/Creatures/Elephant/Elephant_Character_BP.Elephant_Character_BP_C'),NPCsSpawnOffsets=((X=0.000000,Y=0.000000,Z=0.000000)),NPCsToSpawnPercentageChance=(1.000000),EntryWeight=1.000000))",
          "NPCSpawnLimits": "((NPCClass=BlueprintGeneratedClass'/Game/Atlas/Creatures/Elephant/Elephant_Character_BP.Elephant_Character_BP_C',MaxPercentageOfDesiredNumToAllow=1.000000))",
          "MaxDesiredNumEnemiesMultiplier": 1.2
        }

    ]

    In the 'islandInstances' section I have (for the relevant island)

    Quote

     

    spawnerOverrides": {

                "Blueprint'/Game/Atlas/AtlasCoreBP/SpawnEntries/02_NW_Temperate/CreatureSpawnEntries_02_Beaches.CreatureSpawnEntries_02_Beaches'": "SpawnerElephant"
     }

     

    The blueprint listed above is just the last iteration I have tried - and I suspect it is this that is causing it to not work - however the guide you wrote is a little unclear on this (one image - for the island itself, shows '_BP' .. the other - for island instance as above,  doesnt.

    Some direction, feedback and/or assistance would be greatly appreciated.

    Thanks

×
×
  • Create New...