Nro001 / Nro-Galaxy-Editor

As a Type-5 Kardashev being, you are able to move the stars of a mere galaxy and manipulate their waypoints as you please with just a divine click of a button. Purpose: Generates visual map to edit the position of stars and connect or disconnect hyperlanes.
Other
42 stars 2 forks source link

Can't read gamestate #6

Closed andy17110 closed 6 months ago

andy17110 commented 9 months ago

Something happned in patch 3.10 and It can't read new gamestate files. Still works with older saves, not the new ones.

fircrag commented 9 months ago

I also faced this problem

FrancisMDP commented 9 months ago

Me too. The log says:

Godot Engine v3.5.1.stable.official.6fed1ffa3 - https://godotengine.org
OpenGL ES 2.0 Renderer: GeForce MX130/PCIe/SSE2

「Nro's Galaxy Editor」
「Directory」 Exist----------------------------< user://galactic_object/
「Directory」 Exist----------------------------< user://packed/
「Directory」 Exist----------------------------< user://unpacked/
「Directory」 Exist----------------------------< user://parsed/
「Directory」 Cleared--------------------------< user://parsed/
「File」 Read----------------------------------< gamestate
「Parse」 Trimming-----------------------------< user://unpacked/gamestate
「Directory」 Cleared--------------------------< user://galactic_object/
「Parse」 Partitioning-------------------------< user://unpacked/galactic_object
ERROR: Can't take value from empty array.
   at: back (core/array.cpp:160) - Condition "_p->array.size() == 0" is true. Returned: Variant()
DarcyWenn commented 9 months ago

Also having this issue

JohnnyGAB1108 commented 7 months ago

The issue is that astral plains update changed the scripting structure of the save files game state from something like

galactic_object={
      (star ID)={
      }
}

to

galactic_object=
{
      (star ID)=
      {
      }
}

So the the galaxy editor program is looking for the for the old format and needs to be retooled to recognize the new format.

MCGorbachev commented 7 months ago

Confirm, the app crashes immediately after dropping gamestate file

WillaGrey commented 7 months ago

The same happens to me.

PadOpinion commented 6 months ago

As a workaround, replace regex =\n\s*{ with ={. The output doesn't need to be fixed, Stellaris car read both formats.

JohnnyGAB1108 commented 6 months ago

As a workaround, replace regex =\n\s*{ with ={. The output doesn't need to be fixed, Stellaris car read both formats.

How would one do that in Notepad+?

WillaGrey commented 6 months ago

Go to Replace mode (next to search) and check the Regular Expression tick in the bottom left corner.

JohnnyGAB1108 commented 6 months ago

Go to Replace mode (next to search) and check the Regular Expression tick in the bottom left corner.

Nice Thank you

Nro001 commented 6 months ago

I fixed this problem with v1.6 now, thanks for helping others, @PadOpinion!

7