goatfungus / NMSSaveEditor

No Man's Sky - Save Editor
1.85k stars 238 forks source link

There was an 'Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException' error when opening save files in 1.13.3 #787

Closed Pd69bq closed 1 year ago

Pd69bq commented 1 year ago

the following error occurs when opening up PS4 save files in version 1.13.3, don't have PC saves and the game, cannot try. theSave Name and Description failed to load and still showing "unknown", only Exosuit tab works, other tabs either failed to load or grayed out.

[DEBUG] Path not found: PlayerStateData.DifficultyState.Settings.InventoryStackLimits.InventoryStackLimitsDifficulty
[DEBUG] Path not found: StackSizeGroup.InventoryStackSizeGroup
[DEBUG] Path not found: PlayerStateData.DifficultyState.Preset.DifficultyPresetType
[STDERR] Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
[STDERR]    at nomanssave.gB.cz(Unknown Source)
[STDERR]    at nomanssave.dm.setSelectedItem(Unknown Source)
[STDERR]    at javax.swing.JComboBox.setSelectedItem(Unknown Source)
[STDERR]    at javax.swing.JComboBox.setSelectedIndex(Unknown Source)
[STDERR]    at nomanssave.dl.a(Unknown Source)
[STDERR]    at nomanssave.Application.k(Unknown Source)
[STDERR]    at nomanssave.Application.e(Unknown Source)
[STDERR]    at nomanssave.Application.a(Unknown Source)
[STDERR]    at nomanssave.D.setSelectedItem(Unknown Source)
[STDERR]    at javax.swing.JComboBox.setSelectedItem(Unknown Source)
[STDERR]    at javax.swing.JComboBox.setSelectedIndex(Unknown Source)
[STDERR]    at javax.swing.plaf.basic.BasicComboPopup$Handler.mouseReleased(Unknown Source)
[STDERR]    at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
[STDERR]    at java.awt.Component.processMouseEvent(Unknown Source)
[STDERR]    at javax.swing.JComponent.processMouseEvent(Unknown Source)
[STDERR]    at javax.swing.plaf.basic.BasicComboPopup$1.processMouseEvent(Unknown Source)
[STDERR]    at java.awt.Component.processEvent(Unknown Source)
[STDERR]    at java.awt.Container.processEvent(Unknown Source)
[STDERR]    at java.awt.Component.dispatchEventImpl(Unknown Source)
[STDERR]    at java.awt.Container.dispatchEventImpl(Unknown Source)
[STDERR]    at java.awt.Component.dispatchEvent(Unknown Source)
[STDERR]    at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
[STDERR]    at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
[STDERR]    at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
[STDERR]    at java.awt.Container.dispatchEventImpl(Unknown Source)
[STDERR]    at java.awt.Window.dispatchEventImpl(Unknown Source)
[STDERR]    at java.awt.Component.dispatchEvent(Unknown Source)
[STDERR]    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
[STDERR]    at java.awt.EventQueue.access$500(Unknown Source)
[STDERR]    at java.awt.EventQueue$3.run(Unknown Source)
[STDERR]    at java.awt.EventQueue$3.run(Unknown Source)
[STDERR]    at java.security.AccessController.doPrivileged(Native Method)
[STDERR]    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
[STDERR]    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
[STDERR]    at java.awt.EventQueue$4.run(Unknown Source)
[STDERR]    at java.awt.EventQueue$4.run(Unknown Source)
[STDERR]    at java.security.AccessController.doPrivileged(Native Method)
[STDERR]    at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
[STDERR]    at java.awt.EventQueue.dispatchEvent(Unknown Source)
[STDERR]    at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
[STDERR]    at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
[STDERR]    at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
[STDERR]    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
[STDERR]    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
[STDERR]    at java.awt.EventDispatchThread.run(Unknown Source)
Screen Shot 2023-04-24 at 1 30 47 PM
goatfungus commented 1 year ago

Can you send a copy of your save file? It's possible that the game is using a different format now.

Devilin-Pixy commented 1 year ago

@goatfungus Here is a PS4 save made post-interceptor (not mine), but was fine to share. PS4Save.zip

Devilin-Pixy commented 1 year ago

Looking at an older save (pre-Fractals) compared to new save, it appears PS4 now uses 'mapping' as well? Never really looked into PS4 saves myself before to be honest

MHO-Gzus commented 1 year ago

Any idea whats going on with this one? I've tried a new saved game file, and reloading ones edited two days ago, they all error, and lock out most of the tabs, just as pictured above.

Devilin-Pixy commented 1 year ago

@MHO-Gzus I am not sure, but I have no doubt it will get sorted soon. It may be useful to include a copy of your saves as well though, just to be sure.

MHO-Gzus commented 1 year ago

This is the saved game i was editing when the NMS editor asked to update/restart, and it reloaded with the error that blanks out the tabs.

savedata07.zip image

MHO-Gzus commented 1 year ago

Java updated! it seems that after the java update is when my issue started. maybe that will help point someone in the right direction. image

goatfungus commented 1 year ago

Looking at an older save (pre-Fractals) compared to new save, it appears PS4 now uses 'mapping' as well? Never really looked into PS4 saves myself before to be honest

This is most likely the issue, so I'm going to add optional mapping to PS4 saves and see if that works.

goatfungus commented 1 year ago

This should now be fixed in version 1.13.4.