Songs of Syx

Songs of Syx

Extra Info
Emi  [developer] 20 Jan @ 10:21am
Bug Reports
Explain what happened and paste the crash report from here: %AppData%/songsofsyx/logs
< >
Showing 1-4 of 4 comments
Emi  [developer] 20 Jan @ 10:24am 
For example, I had one issue before releasing for V68 where it'd crash hovering over a citizen and this would point me exactly where I need to find the error:

java.lang.NullPointerException
at view.sett.ui.subject.UIHoverer.hover(UIHoverer.java:152)
at view.sett.ui.subject.UISubjects.hoverInfo(UISubjects.java:35)
at settlement.entity.humanoid.Humanoid.hover(Humanoid.java:316)
at view.sett.ToolDefault.renderHovered(ToolDefault.java:157)
at view.tool.ToolManager.render(ToolManager.java:234)
at view.interrupter.InterManager.render(InterManager.java:87)
at view.main.VIEW.render(VIEW.java:283)
at snake2d.Updater.render(Updater.java:83)
at snake2d.Updater.run(Updater.java:58)
Rohzdear 21 Jan @ 1:26am 
Here. Error Log from when hovering the mouse over seemingly any Tech on the tech tree:

https://files.catbox.moe/1fwf10.txt

|-------------------|
| ERROR LOG |
|-------------------|
java.lang.NullPointerException
at view.ui.tech.Node_Extra.output0(Node_Extra.java:38)
at view.ui.tech.Node_Extra.output(Node_Extra.java:22)
at view.ui.tech.Node.hoverInfoGet(Node.java:365)
at view.ui.tech.Node.hover(Node.java:173)
at snake2d.util.gui.GuiSection.hover(GuiSection.java:121)
at snake2d.util.gui.GuiSection.hover(GuiSection.java:121)
at snake2d.util.gui.GuiSection.hover(GuiSection.java:121)
at snake2d.util.gui.clickable.CLICKABLE$ClickWrap.hover(CLICKABLE.java:401)
at snake2d.util.gui.GuiSection.hover(GuiSection.java:121)
at view.ui.manage.IManager$Inter.hover(IManager.java:166)
at view.interrupter.InterManager.hover(InterManager.java:151)
at view.main.VIEW.hover(VIEW.java:164)
at view.main.VIEW.update(VIEW.java:192)
at snake2d.Updater.update(Updater.java:108)
at snake2d.Updater.run(Updater.java:54)
Time until crash: 16.7568359375

This is for v68. Does this work?
Last edited by Rohzdear; 21 Jan @ 1:28am
Emi  [developer] 21 Jan @ 2:12am 
OK, I can't recreate it without a save file, it seems, but I can at least try to stop it from *crashing* by telling it to return with nothing if these variables would be null.

The error report is telling me it's the second line of this causing the crash:

for (TechCost c : tech.costs) {
PTech t = FACTIONS.player().tech();
int cost = t.costLevelNext(c.amount, tech);
worker_cost += cost;
// For each tech currency: Tech cost / knowledge per worker
j += 1;
}

So I'll try to bypass that if the variables don't exist and upload it in a few minutes. I tried making a new game and looking at the techs, and none of them had an issue, but I updated the mod, so hopefully it'll work for you now.

If it doesn't, send me a save game file so I can recreate the crash.
Rohzdear 21 Jan @ 6:13am 
It seems that the crash stopped after your latest fix.

Not sure if all of the new info is being displayed correctly. Here's a pic of it:
https://files.catbox.moe/2n66da.png

And a save file where the crash used to occur, in case you're still curious:
https://files.catbox.moe/809r4j.save
< >
Showing 1-4 of 4 comments
Per page: 1530 50