IroncladGames / tools

Official Modding Tools provided by Ironclad. May be used for Sins of a Solar Empire 2.
https://store.steampowered.com/app/1575940/Sins_of_a_Solar_Empire_II/
34 stars 31 forks source link

Copy/Pasting creates duplicate IDs which corrupt the map #2

Open BlacKcuD opened 2 months ago

BlacKcuD commented 2 months ago

Copy/pasting a whole planet cluster will NOT duplicate their IDs. The map becomes corrupted and doesn't load. This is a serious bug as it the only possible way to recover from it is to manually modify the galaxy_chart.json which is tedious at best depending on map size.

ElDubsNZ commented 2 months ago

Yep, duplicates are created and the parent node of copy and the originals get switched.

republica101 commented 2 months ago

Hey there! This should be resolved in the next release.

jseward commented 2 months ago

@BlacKcuD @ElDubsNZ would you mind confirming this issue is resolved with the latest tools? thanks

Tyrannical commented 2 months ago

I was still having issues with copy and pasting yesterday after getting the latest version of the tool.

BlacKcuD commented 2 months ago

My apologies, I am unavailable at the moment and have no chance to test the changes.

phanteh commented 1 month ago

I have just cloned the repository and run the included solarforge executable; copying a single planet correctly increments the ID, but bulk copying a number of planets / phase lanes causes duplicate IDs. I am unable to save my changes and can't find a way to fix the node ID without manually replacing the node.

republica101 commented 1 month ago

Hey there @phanteh! I'm the dev at Ironclad looking at this issue, would you mind getting in touch with me on Discord or something like this for more info on your issue? Or perhaps describe in detail how your problem can be recreated? Also if you could post your corrupted galaxy_chart file, that'd be helpful too. Thank you!

divyamamgai commented 1 month ago

For me this issue happens when I do the following -

  1. Highlight a selection of nodes.
  2. Press Ctrl + C to copy the selection.
  3. Press Ctrl + V to paste the selection.

The 3rd step creates the node duplication successfully but creates a reference in the original group.

Here is the selection (white circled nodes are selected nodes) and its copy - Screenshot 2024-10-06 185125

You can see the blue line connecting copied nodes and the original group parent node.

Here is the new node tree - Screenshot 2024-10-06 185433

Here is the old node tree - Screenshot 2024-10-06 185442

As you can see the new node tree is referencing the old node children and the old node has new nodes children appended to them.