Jump to content
Sign In to follow this  
Ltw

Issue with the Surface Painter Mod

6 posts in this topic Last Reply

Highlighted Posts

Posted:
Last Online:  
 

I'm having a problem with the Surface Painter Mod. Every time I close Cities: Skylines and open it again the painted surfaces are gone and I get an error:

Quote

The Mod C:\Program Files (x86)\Steam\steamapps\workshop\content\255710\689937287 [SurfacePainter.dll] has caused an error [ModException]

 

Details:

System.IndexOutOfRangeException: Array index is out of range.

  at TerrainModify.UpdateAreaImplementation () [0x00000] in <filename unknown>:0

  at TerrainModify.UpdateArea (Int32 minX, Int32 minZ, Int32 maxX, Int32 maxZ, Boolean heights, Boolean surface, Boolean zones) [0x00000] in <filename unknown>:0

  at SurfacePainter.SurfaceManager.UpdateWholeMap () [0x00000] in <filename unknown>:0

  at SurfacePainter.LoadingExtension.OnLevelLoaded (LoadMode mode) [0x00000] in <filename unknown>:0

  at LoadingWrapper.OnLevelLoaded (UpdateMode mode) [0x00000] in <filename unknown>:0

I've searched for this particular issue on Google and Reddit and I got some suggestions. The first suggestion was that there was a terrorform tool that conflicts with this mod, I've turned my terraform-tools off and I still got the same issue. Another suggestion was that the mod itself was broken but since others seem to have less of an issue with that I don't know for sure if waiting for a patch will solve anything. I've turned off the mod for the moment but I would really like to use it so it would be very nice to have a fix for this problem :)

Does anyone know a solution for this problem? It would help a lot!

Share this post


Link to post
Share on other sites
Posted:
Last Online:  
 

Have you tried copying the mod to your local mod folder, and then running the game with --noWorkshop? If issues still persist, it most likely is the mod itself, and if not, it's probably a compatibility issue. I know it's not going to solve your issue right away, but perhaps it may help pinpointing the root cause of it.

Share this post


Link to post
Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    4 hours ago, Judazzz said:

    Have you tried copying the mod to your local mod folder, and then running the game with --noWorkshop? If issues still persist, it most likely is the mod itself, and if not, it's probably a compatibility issue. I know it's not going to solve your issue right away, but perhaps it may help pinpointing the root cause of it.

    Thanks! I ran Skylines with -noWorkshop on and I had problems with loading mods. When I started Skylines I got the following error:

    Quote

    A Mod caused an error [ModException]

    Details:
    System.Reflection.ReflectionTypeLoadException: The classes in the module cannot be loaded.
      at (wrapper managed-to-native) System.Reflection.Assembly:GetTypes (bool)
      at System.Reflection.Assembly.GetExportedTypes () [0x00000] in <filename unknown>:0
      at ColossalFramework.Plugins.PluginManager+PluginInfo.GetInstances[IUserMod] () [0x00000] in <filename unknown>:0
      at ContentManagerPanel.RefreshPlugins () [0x00000] in <filename unknown>:0

    I couldn't load the mod even though it is in my local folder. The mod showed up in the content-menu but I couldn't check it. Trying to find out the problem I unchecked every mod except for the surfacepaintermod. This time I got this error:

    Quote

    The Mod C:\Program Files (x86)\Steam\steamapps\workshop\content\255710\689937287 [SurfacePainter.dll] has caused an error [ModException]

     

    Details:

    System.IndexOutOfRangeException: Array index is out of range.

      at TerrainModify.ApplyQuad (Quad2 quad, Edges edges, Surface surface) [0x00000] in <filename unknown>:0

      at TerrainModify.ApplyQuad (Vector3 a, Vector3 b, Vector3 c, Vector3 d, Edges edges, Heights heights, Surface surface) [0x00000] in <filename unknown>:0

      at Building.TerrainUpdated (.BuildingInfo info, UInt16 buildingID, Vector3 position, Single angle, Int32 width, Int32 length, Single minX, Single minZ, Single maxX, Single maxZ) [0x00000] in <filename unknown>:0

      at Building.TerrainUpdated (UInt16 buildingID, Single minX, Single minZ, Single maxX, Single maxZ) [0x00000] in <filename unknown>:0

      at BuildingManager.TerrainUpdated (.TerrainArea heightArea, .TerrainArea surfaceArea, .TerrainArea zoneArea) [0x00000] in <filename unknown>:0

      at TerrainManager.Managers_TerrainUpdated (.TerrainArea heightArea, .TerrainArea surfaceArea, .TerrainArea zoneArea) [0x00000] in <filename unknown>:0

      at TerrainModify.UpdateAreaImplementation () [0x00000] in <filename unknown>:0

      at TerrainModify.UpdateArea (Int32 minX, Int32 minZ, Int32 maxX, Int32 maxZ, Boolean heights, Boolean surface, Boolean zones) [0x00000] in <filename unknown>:0

      at SurfacePainter.SurfaceManager.UpdateWholeMap () [0x00000] in <filename unknown>:0

      at SurfacePainter.LoadingExtension.OnLevelLoaded (LoadMode mode) [0x00000] in <filename unknown>:0

      at LoadingWrapper.OnLevelLoaded (UpdateMode mode) [0x00000] in <filename unknown>:0

    The error shows more details and it didn't run at all. Before it ran but didn't save painted surfaces, now it doesn't run at all. This seems weird to me since there aren't any mods to conflict with and the behavior of the mod itself changed negatively.

    Is there a solution for this problem? Or is it best to wait for an update and hope it will be solved then?

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    Based on those snippets it's hard to figure out what may be wrong (those methods are pretty much all Greek to me), but have you checked the Workshop page to see if more people have the same problem (and perhaps have found a fix). Also, if you haven't, it would be good to post your problem in the mod's Workshop Issues topic in any case (try to copy the output to a web service like Github [as a gist], PasteBin or similar online clipboard service instead of directly in the topic).

    I run the mod without problems (at least not of a technical kind - what I would like is smaller brushes and a way to avoid painting over pedestrian paths and buildings), so it's hard to say what exactly goes wrong. I think the best way forward is to report the issue and wait for a fix or update (instead of messing with the mods you use now) - BP picks up on issues really fast and usually delivers a fix quickly.

    • Like 1

    Share this post


    Link to post
    Share on other sites
  • Original Poster
  • Posted:
    Last Online:  
     
    On 1-6-2016 at 11:42 PM, Judazzz said:

    Based on those snippets it's hard to figure out what may be wrong (those methods are pretty much all Greek to me), but have you checked the Workshop page to see if more people have the same problem (and perhaps have found a fix). Also, if you haven't, it would be good to post your problem in the mod's Workshop Issues topic in any case (try to copy the output to a web service like Github [as a gist], PasteBin or similar online clipboard service instead of directly in the topic).

    I run the mod without problems (at least not of a technical kind - what I would like is smaller brushes and a way to avoid painting over pedestrian paths and buildings), so it's hard to say what exactly goes wrong. I think the best way forward is to report the issue and wait for a fix or update (instead of messing with the mods you use now) - BP picks up on issues really fast and usually delivers a fix quickly.

    Posted it! Lets hope there is a solution for this problem. There was also someone else with a similar problem. Thus I'm confident this will lead to a solution for this :)

    Share this post


    Link to post
    Share on other sites
    Posted:
    Last Online:  
     

    I've been receiving a similar problem recently with the mod, stuff is disappearing, but I don't know why.

    Share this post


    Link to post
    Share on other sites

    Sign In or register to comment...

    To comment in reply, you must be a community member

    Sign In  

    Already have an account? Sign in here.

    Sign In Now

    Create an Account  

    Sign up to join our friendly community. It's easy!  

    Register a New Account

    Sign In to follow this  

    ×

    Thank You for the Continued Support!

    Simtropolis depends on donations to fund site maintenance costs.
    Without your support, we just would not be in our 24th year online!  You really help make this a great community. *:thumb:

    But we still need your support to stay online. If you're able to, please consider a donation to help us stay up and running. This helps sustain a platform where we can share our community creations for years to come.

    Make a Donation, Get a Gift!

    Expand your city with the best from the Simtropolis Exchange.
    Make a Donation and get one or all three discs today!

    STEX Collections

    By way of a "Thank You" gift, we'd like to send you our STEX Collector's DVD. It's some of the best buildings, lots, maps and mods collected for you over the years. Check out the STEX Collections for more info.

    Each donation helps keep Simtropolis online, open and free!

    Thank you for reading and enjoy the site!

    More About STEX Collections