1 (edited by stina.flodstrom 2019-08-08 14:18:18)

Topic: Buildr2 crashes when generating buildings

Hey,
I'm generating a map with Buildr2 (2.27) using default settings. Buildr2 crashes when it's about 74% in and the generation process stops. Buildings appear in the map but Real worlds doesn't go on to generate roads after that.

Error message:
Input string was not in a correct format.
  at System.Number.StringToNumber (System.String str, System.Globalization.NumberStyles options, System.Number+NumberBuffer& number, System.Globalization.NumberFormatInfo info, System.Boolean parseDecimal) [0x00057] in <1f0c1ef1ad524c38bbc5536809c46b48>:0

  at System.Number.ParseInt32 (System.String s, System.Globalization.NumberStyles style, System.Globalization.NumberFormatInfo info) [0x00013] in <1f0c1ef1ad524c38bbc5536809c46b48>:0

  at System.Int32.Parse (System.String s) [0x00007] in <1f0c1ef1ad524c38bbc5536809c46b48>:0

  at InfinityCode.RealWorldTerrain.Generators.RealWorldTerrainBuildR2Generator.CreateBuilding (InfinityCode.RealWorldTerrain.RealWorldTerrainContainer globalContainer, InfinityCode.RealWorldTerrain.OSM.RealWorldTerrainOSMWay way) [0x00356] in C:\Depot\Assets\Infinity Code\Real World Terrain\Scripts\Editor\Generators\RealWorldTerrainBuildR2Generator.cs:116

  at InfinityCode.RealWorldTerrain.Generators.RealWorldTerrainBuildR2Generator.Generate (InfinityCode.RealWorldTerrain.RealWorldTerrainContainer globalContainer) [0x001b7] in C:\Depot\Assets\Infinity Code\Real World Terrain\Scripts\Editor\Generators\RealWorldTerrainBuildR2Generator.cs:194

  at InfinityCode.RealWorldTerrain.Phases.RealWorldTerrainGenerateBuildingsPhase.Enter () [0x000db] in C:\Depot\Assets\Infinity Code\Real World Terrain\Scripts\Editor\Phases\RealWorldTerrainGenerateBuildingsPhase.cs:50

  at InfinityCode.RealWorldTerrain.Windows.RealWorldTerrainWindow.Update () [0x00011] in C:\Depot\Assets\Infinity Code\Real World Terrain\Scripts\Editor\Windows\RealWorldTerrainWindow.cs:433
UnityEngine.Debug:LogError(Object)
InfinityCode.RealWorldTerrain.Windows.RealWorldTerrainWindow:Update() (at Assets/Infinity Code/Real World Terrain/Scripts/Editor/Windows/RealWorldTerrainWindow.cs:437)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()

Re: Buildr2 crashes when generating buildings

Hello.

Thank you for the bug report.

It looks like in your area for one of the buildings a tag with the number of floors is corrupted.
I made changes and now the corrupted tags will be ignored.

The new version will be available through the built-in update system in 2-3 hours.
In Asset Store, the new version is likely to be available tomorrow.

Kind Regards,
Infinity Code Team.

Do not know the best way to thank the developer? Rate the asset in Asset Store!

Re: Buildr2 crashes when generating buildings

Great, it works now

Re: Buildr2 crashes when generating buildings

Hi Alex.
I have been update this morning to RWT v 4.5.2.1 and then I get this error when start creating buildings from prfabs in Unity 2019.3.13f1:

NullReferenceException: Object reference not set to an instance of an object.
InfinityCode.RealWorldTerrain.Windows.RealWorldTerrainWindow.StartCapture () (at Assets/Infinity Code/Real World Terrain/Scripts/Editor/Windows/RealWorldTerrainWindow.cs:374)
InfinityCode.RealWorldTerrain.RealWorldTerrainWindowUI.OnIdleGUI () (at Assets/Infinity Code/Real World Terrain/Scripts/Editor/Windows/RealWorldTerrainWindowUI/RealWorldTerrainWindowUI.cs:272)
InfinityCode.RealWorldTerrain.RealWorldTerrainWindowUI.OnGUI () (at Assets/Infinity Code/Real World Terrain/Scripts/Editor/Windows/RealWorldTerrainWindowUI/RealWorldTerrainWindowUI.cs:183)
InfinityCode.RealWorldTerrain.Windows.RealWorldTerrainWindow.OnGUI () (at Assets/Infinity Code/Real World Terrain/Scripts/Editor/Windows/RealWorldTerrainWindow.cs:233)
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>:0)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, System.Reflection.BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at <437ba245d8404784b9fbab9b439ac908>:0)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at <437ba245d8404784b9fbab9b439ac908>:0)
UnityEditor.HostView.Invoke (System.String methodName, System.Object obj) (at <480b5a3bd3214ce5831f6dd8c68fdc55>:0)
UnityEditor.HostView.Invoke (System.String methodName) (at <480b5a3bd3214ce5831f6dd8c68fdc55>:0)
UnityEditor.HostView.InvokeOnGUI (UnityEngine.Rect onGUIPosition, UnityEngine.Rect viewRect) (at <480b5a3bd3214ce5831f6dd8c68fdc55>:0)
UnityEditor.DockArea.DrawView (UnityEngine.Rect viewRect, UnityEngine.Rect dockAreaRect) (at <480b5a3bd3214ce5831f6dd8c68fdc55>:0)
UnityEditor.DockArea.OldOnGUI () (at <480b5a3bd3214ce5831f6dd8c68fdc55>:0)
UnityEngine.UIElements.IMGUIContainer.DoOnGUI (UnityEngine.Event evt, UnityEngine.Matrix4x4 parentTransform, UnityEngine.Rect clippingRect, System.Boolean isComputingLayout, UnityEngine.Rect layoutSize, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, UnityEngine.Matrix4x4 worldTransform, UnityEngine.Rect clippingRect, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Action onGUIHandler, System.Boolean canAffectFocus) (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.IMGUIContainer.HandleIMGUIEvent (UnityEngine.Event e, System.Boolean canAffectFocus) (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.IMGUIContainer.SendEventToIMGUI (UnityEngine.UIElements.EventBase evt, System.Boolean canAffectFocus) (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.IMGUIContainer.HandleEvent (UnityEngine.UIElements.EventBase evt) (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.CallbackEventHandler.HandleEventAtTargetPhase (UnityEngine.UIElements.EventBase evt) (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.MouseCaptureDispatchingStrategy.DispatchEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.EventDispatcher.ApplyDispatchingStrategies (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel, System.Boolean imguiEventIsInitiallyUsed) (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel) (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEventQueue () (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.EventDispatcher.OpenGate () (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.EventDispatcherGate.Dispose () (at <95b42489e2e04430a87c3760aa29fca2>:0)
UnityEngine.UIElements.EventDispatcher.ProcessEvent (UnityEngine.UIElements.EventBase evt, UnityEngine.UIElements.IPanel panel)

Prefabs has box collider and cache has been cleared before.
Any idea?

Re: Buildr2 crashes when generating buildings

Hello.

Your stack trace shows me that you are having some kind of problem with the container.
You removed the root GameObject or RealWorldTerrainContainer from the root GameObject, right?
If so, then you will need to generate the area again, because RWT needs this object.

Kind Regards,
Infinity Code Team.

Do not know the best way to thank the developer? Rate the asset in Asset Store!

Re: Buildr2 crashes when generating buildings

I heve been generating buildingd until the update to RWT v 4.5.2.1. Really don't remember delete nothing. Have changed the name of the container but has been working well until now. I generate a new area and building generation works fine. Renamed the old container and tried to generate bulduing but only appears the floors. ??? Then I change the minimum floors to 2 at least and it work one time as you can see in the game window. Then try to do the same in another terrain in the scene tab and only get the floors again.
I Keep investigating.

7 (edited by quarrytroopers 2020-08-13 12:34:30)

Re: Buildr2 crashes when generating buildings

pic

Post's attachments

Attachment icon Captura de pantalla (29).png 1.75 mb, file has never been downloaded. 

Re: Buildr2 crashes when generating buildings

Please send a screenshot of your settings (including area coordinates) and your building prefab.
I will check it.

Kind Regards,
Infinity Code Team.

Do not know the best way to thank the developer? Rate the asset in Asset Store!

Re: Buildr2 crashes when generating buildings

<Coords tlx="7.27294921875" tly="44.00071783428276" brx="7.5146484375" bry="43.707593504052944"/>

Post's attachments

Attachment icon Captura de pantalla (31).png 1.37 mb, file has never been downloaded. 

Re: Buildr2 crashes when generating buildings

In a new generated area everithing works fine but I spent last two month defining the terrain and can not dispense the old area. There is anyway to regenerate or copy/paste the container code from a new generated area with similar coordenates?

Post's attachments

Attachment icon House3.prefab 3.19 kb, file has never been downloaded. 

Re: Buildr2 crashes when generating buildings

You can use Unity's built-in things - Copy Component / Paste Component Values.
But keep in mind that the container is not the only place where used settings are stored.
Some settings are stored in the Real World Terrain Item (on each terrain), and in the settings of the terrain itself.

Kind Regards,
Infinity Code Team.

Do not know the best way to thank the developer? Rate the asset in Asset Store!

Re: Buildr2 crashes when generating buildings

Thanks Alex. Working on it.