Unclaimed World

Unclaimed World

View Stats:
Unclaimed World > Bug Reports > Topic Details
Tsumi May 18, 2014 @ 7:29am
Crash when start a game - Attempted to divide by zero.
Last edited by kubluu; Jun 6, 2014 @ 9:05am
< >
Showing 1-9 of 9 comments
Tsumi May 18, 2014 @ 8:16am 
---------------------------
Fatal error 0.0.0.9
---------------------------
Whoops - fatal error. Press Ctrl-C to copy the contents of this dialog and paste the text into the forums:

Attempted to divide by zero.

at UWGame.ClientSide.Interface.HUD_Windows.HUDEventLog.GetAllData()

at UWGame.ClientSide.Interface.HUD_Windows.HUDEventLog.RefreshFirstPage()

at UWGame.ClientSide.Interface.HUD_Windows.HUDEventLog.Refresh()

at UWGame.ClientSide.Interface.HUD_Windows.HUDWindow.UpdateContent(GameTime elapsed)

at UWGame.ClientSide.Interface.InGameInterface.Update(GameTime gameTime)

at UWGame.ClientSide.Client.Update(GameTime gameTime, Boolean otherScreenHasFocus, Boolean coveredByOtherScreen)

at UWGame.Control.Controller.Update(GameTime gameTime)
---------------------------
OK
---------------------------
kubluu May 22, 2014 @ 7:11am 
This is a known error which occurs in some cases - thankfully, we have a solution. Please do these steps:

1. Find the file Options.xml in Documents/Unclaimed World and open it with Notepad

2. Locate this line close to the bottom of the document:
<LogMessagesPerPage>20</LogMessagesPerPage>
Make sure that it says 20 and not 0. If it says 0 then change it to 20.

3. Also, while you're there, check these lines (at the bottom of the document) and make sure the values look like this in your document:

<ProductionMode>Basic</ProductionMode>
<ShowAllTools>false</ShowAllTools>
<LogMessagesPerPage>20</LogMessagesPerPage>
<TalkLogMessagesToShow>60</TalkLogMessagesToShow>
<MaxAlerts>5</MaxAlerts>
<AlertLifetime>5</AlertLifetime>

4. Save the file

This should make you able to run the game again.

(We still don't know what causes the default values in the document to be set wrong in some cases, but until we solve that, this is a workaround making you able to play the game)
Last edited by Refactored Games; Jun 18, 2014 @ 6:57am
hobohack Jun 5, 2014 @ 4:20pm 
game crashs on start
i get this when it crashs


---------------------------
Fatal error 0.0.0.10
---------------------------
Whoops - fatal error. Press Ctrl-C to copy the contents of this dialog and paste the text into the forums:

Attempted to divide by zero.

at UWGame.ClientSide.Interface.HUD_Windows.HUDEventLog.GetAllData()

at UWGame.ClientSide.Interface.HUD_Windows.HUDEventLog.RefreshFirstPage()

at UWGame.ClientSide.Interface.HUD_Windows.HUDEventLog.Refresh()

at UWGame.ClientSide.Interface.HUD_Windows.HUDWindow.UpdateContent(GameTime elapsed)

at UWGame.ClientSide.Interface.InGameInterface.Update(GameTime gameTime)

at UWGame.ClientSide.Client.Update(GameTime gameTime, Boolean otherScreenHasFocus, Boolean coveredByOtherScreen)

at UWGame.Control.Controller.Update(GameTime gameTime)
---------------------------
OK
---------------------------
can any one help me
kubluu Jun 6, 2014 @ 9:08am 
Originally posted by garykelly712:
game crashs on start
i get this when it crashs
I merged your topic since it is a known error...
kisslove1886 Jun 12, 2014 @ 7:26am 
Fatal error 0.0.0.10
---------------------------
Fatal error 0.0.0.10
---------------------------
Whoops - fatal error. Press Ctrl-C to copy the contents of this dialog and paste the text into the forums:

Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index

at System.ThrowHelper.ThrowArgumentOutOfRangeException()

at UWGame.ClientSide.Interface.EventLogPanel.Log_NewEventAlert(Event newEvent)

at UWGame.ClientSide.Log.Log.AddLogEvent(EventType eventType, Entity concernedEntity, String eventText, Nullable`1 priority)

at UWGame.SimSide.AI.Goals.GoalDoAttack.ProcessWhileActive(GameTime elapsed)

at UWGame.SimSide.AI.Goals.Goal.Process(GameTime elapsed)

at UWGame.SimSide.AI.Goals.CompositeGoal.ProcessSubgoals(GameTime elapsed)

at UWGame.SimSide.AI.Goals.GoalAttack.ProcessWhileActive(GameTime elapsed)

at UWGame.SimSide.AI.Goals.Goal.Process(GameTime elapsed)

at UWGame.SimSide.AI.Goals.CompositeGoal.ProcessSubgoals(GameTime elapsed)

at UWGame.SimSide.AI.Goals.GoalThink.ProcessThink(GameTime elapsed)

at UWGame.SimSide.Entities.Entity.Update(GameTime time)

at UWGame.SimSide.Sim.Update(GameTime gameTime, Boolean otherScreenHasFocus, Boolean coveredByOtherScreen)

at UWGame.Control.Controller.Update(GameTime gameTime)
---------------------------
ОК
---------------------------

running game in windowed mode
win7 x64
kubluu Jun 16, 2014 @ 7:11am 
Thanks. The error seems related to logging a combat message. We will look into it.
kubluu Jun 18, 2014 @ 6:33am 
We have now investigated, and found that this error is caused by the Options.xml file containing invalid values (zeroes). I will merge it with the other thread.
See post #2 for a step-by-step solution.
Last edited by Refactored Games; Jun 18, 2014 @ 6:58am
kisslove1886 Jun 18, 2014 @ 12:41pm 
Thank you! The game is great!!
kubluu Jun 18, 2014 @ 3:12pm 
I have now made an update (in 0.0.0.12) so the invalid options data should be detected at startup. In that case, the default values will be used... and the Options.xml file will be disregarded. This should be a workaround until we can figure out what is going on.

For those who had this problem before, what happens to the Options.xml file when you change options in-game? Are the settings saved correctly..?
< >
Showing 1-9 of 9 comments
Per page: 15 30 50

Unclaimed World > Bug Reports > Topic Details