Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't read gamestate #6

Closed
andy17110 opened this issue Nov 18, 2023 · 11 comments
Closed

Can't read gamestate #6

andy17110 opened this issue Nov 18, 2023 · 11 comments

Comments

@andy17110
Copy link

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

@fircrag
Copy link

fircrag commented Nov 18, 2023

I also faced this problem

@FrancisMDP
Copy link

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
Copy link

Also having this issue

@JohnnyGAB1108
Copy link

JohnnyGAB1108 commented Jan 16, 2024

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
Copy link

Confirm, the app crashes immediately after dropping gamestate file

@WillaGrey
Copy link

The same happens to me.

@PadOpinion
Copy link

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

@JohnnyGAB1108
Copy link

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
Copy link

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

@JohnnyGAB1108
Copy link

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

Nice
Thank you

@Nro001
Copy link
Owner

Nro001 commented Feb 13, 2024

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

#7

@Nro001 Nro001 closed this as completed Feb 13, 2024
@Nro001 Nro001 pinned this issue Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants