Orama-Interactive / Pixelorama

Unleash your creativity with Pixelorama, a powerful and accessible open-source pixel art multitool. Whether you want to create sprites, tiles, animations, or just express yourself in the language of pixel art, this software will realize your pixel-perfect dreams with a vast toolbox of features. Available on Windows, Linux, macOS and the Web!
https://orama-interactive.itch.io/pixelorama
MIT License
6.9k stars 378 forks source link

Can't load nor use palettes in pixelorama and default key bindings missing. #1066

Closed Capital-EX closed 1 month ago

Capital-EX commented 1 month ago

Pixelorama version: Pixelorama v1.0 stable

OS/device including version: Arch Linux

Issue description: When running Pixelorama, the application cannot be started outside it's "root" folder. Attempting to execute ~/bin/Pixelorama-Linux-64bit/Pixeloramam.x86_64 from my home directory results in errors around processing palettes. However, if I cd into ~/bin/Pixelorama-Linux-64bit then run Pixelorama, the issues go away.

The error message just repeatedly says it can't parse PaletteColor:

SCRIPT ERROR: Parse Error: Class "PaletteColor" hides a global script class.
          at: GDScript::reload (res://src/Palette/Palette.gd:25)
SCRIPT ERROR: Parse Error: Could not parse global class "PaletteColor" from "res://src/Palette/PaletteColor.gd".
          at: GDScript::reload (res://src/Palette/Palette.gd:33)
SCRIPT ERROR: Parse Error: Could not parse global class "PaletteColor" from "res://src/Palette/PaletteColor.gd".
          at: GDScript::reload (res://src/Palette/Palette.gd:190)
SCRIPT ERROR: Parse Error: Could not parse global class "PaletteColor" from "res://src/Palette/PaletteColor.gd".
          at: GDScript::reload (res://src/Palette/Palette.gd:238)
SCRIPT ERROR: Parse Error: Could not parse global class "PaletteColor" from "res://src/Palette/PaletteColor.gd".
          at: GDScript::reload (res://src/Palette/Palette.gd:239)
SCRIPT ERROR: Parse Error: Could not parse global class "PaletteColor" from "res://src/Palette/PaletteColor.gd".
          at: GDScript::reload (res://src/Palette/Palette.gd:281)
SCRIPT ERROR: Parse Error: Could not parse global class "PaletteColor" from "res://src/Palette/PaletteColor.gd".
          at: GDScript::reload (res://src/Palette/Palette.gd:281)
SCRIPT ERROR: Parse Error: Could not parse global class "PaletteColor" from "res://src/Palette/PaletteColor.gd".
          at: GDScript::reload (res://src/Palette/Palette.gd:283)
SCRIPT ERROR: Parse Error: Could not parse global class "PaletteColor" from "res://src/Palette/PaletteColor.gd".
          at: GDScript::reload (res://src/Palette/Palette.gd:283)
SCRIPT ERROR: Parse Error: Could not parse global class "PaletteColor" from "res://src/Palette/PaletteColor.gd".
          at: GDScript::reload (res://src/Palette/Palette.gd:285)
SCRIPT ERROR: Parse Error: Could not parse global class "PaletteColor" from "res://src/Palette/PaletteColor.gd".
          at: GDScript::reload (res://src/Palette/Palette.gd:285)
SCRIPT ERROR: Parse Error: Could not parse global class "PaletteColor" from "res://src/Palette/PaletteColor.gd".
          at: GDScript::reload (res://src/Palette/Palette.gd:287)
SCRIPT ERROR: Parse Error: Could not parse global class "PaletteColor" from "res://src/Palette/PaletteColor.gd".
          at: GDScript::reload (res://src/Palette/Palette.gd:287)
SCRIPT ERROR: Parse Error: Could not parse global class "PaletteColor" from "res://src/Palette/PaletteColor.gd".
          at: GDScript::reload (res://src/Palette/Palette.gd:289)
SCRIPT ERROR: Parse Error: Could not parse global class "PaletteColor" from "res://src/Palette/PaletteColor.gd".
          at: GDScript::reload (res://src/Palette/Palette.gd:289)
SCRIPT ERROR: Parse Error: Could not parse global class "PaletteColor" from "res://src/Palette/PaletteColor.gd".
          at: GDScript::reload (res://src/Palette/Palette.gd:291)
SCRIPT ERROR: Parse Error: Could not parse global class "PaletteColor" from "res://src/Palette/PaletteColor.gd".
          at: GDScript::reload (res://src/Palette/Palette.gd:291)
SCRIPT ERROR: Parse Error: Could not parse global class "PaletteColor" from "res://src/Palette/PaletteColor.gd".
          at: GDScript::reload (res://src/Palette/Palette.gd:293)
SCRIPT ERROR: Parse Error: Could not parse global class "PaletteColor" from "res://src/Palette/PaletteColor.gd".
          at: GDScript::reload (res://src/Palette/Palette.gd:293)
SCRIPT ERROR: Parse Error: Class "PaletteColor" hides a global script class.
          at: GDScript::reload (res://src/Palette/Palette.gd:25)
SCRIPT ERROR: Parse Error: Could not parse global class "PaletteColor" from "res://src/Palette/PaletteColor.gd".
          at: GDScript::reload (res://src/Palette/Palette.gd:33)
SCRIPT ERROR: Parse Error: Could not parse global class "PaletteColor" from "res://src/Palette/PaletteColor.gd".
          at: GDScript::reload (res://src/Palette/Palette.gd:190)
SCRIPT ERROR: Parse Error: Could not parse global class "PaletteColor" from "res://src/Palette/PaletteColor.gd".
          at: GDScript::reload (res://src/Palette/Palette.gd:238)
SCRIPT ERROR: Parse Error: Could not parse global class "PaletteColor" from "res://src/Palette/PaletteColor.gd".
          at: GDScript::reload (res://src/Palette/Palette.gd:239)
SCRIPT ERROR: Parse Error: Could not parse global class "PaletteColor" from "res://src/Palette/PaletteColor.gd".
          at: GDScript::reload (res://src/Palette/Palette.gd:281)
SCRIPT ERROR: Parse Error: Could not parse global class "PaletteColor" from "res://src/Palette/PaletteColor.gd".
          at: GDScript::reload (res://src/Palette/Palette.gd:281)

Steps to reproduce:

Capital-EX commented 1 month ago

Renamed issue, because I think this is more than just the pixelorama_data folder. The default keybindings aren't loaded either. I'm not sure what's going on or what's breaking at this point.

OverloadedOrama commented 1 month ago

I cannot replicate on openSUSE Tumbleweed, but the global class error and the default keybinding issue make me think that there is an override.cfg file in the same directory as Pixeloramam.x86_64 that is messing with the project settings. Is there an override.cfg file? Although that wouldn't explain why cd'ing into the root directory makes Pixelorama run fine.

Capital-EX commented 1 month ago

Turns out I had to deleted the old ~/.local/share/pixelorama folder. Apologies for the needless ticket. I didn't think to delete that folder (tho, I did just find out about its existence today). Seems like that fixed all the weird issues.