I would suggest a file extension of .pal, for Pallet files.
JoeyH
(Regular)
30 January 2024 20:50
2
Aren’t the palette files XML?
(Also, PAL would confuse me too because I do other things that require a .pal format.)
What about .col? short for colour. After all. PCLX and .VEC files are XML files too.
My reason for saying this, is because I often build larger projects initially in several files. It would make the process simpler if if had sat Robby-3.pclx and Robby-3.col. Sometimes I may have frame images stored as discreet .vec files too.
Palette files do have an extension, it’s .xml (or .gpl or GIMP palettes). If your file does not have an extension, then you must have saved it without one, or it could be hidden by Windows.
1 Like
What I ment, by my contribution was, why can’t we have a file type, that is meaningful to the Pencil2D user?
Such a change would simplify file management, especially if files become misplaced.
MrStevns
(Oliver)
4 February 2024 14:53
6
it sounds like a decent improvement to the project file structure. I’ve created an issue on Github.
opened 02:51PM - 04 Feb 24 UTC
Enhancement
Discussion
### Issue Summary
There's been a small discussion going on, on the [forum](http… s://discuss.pencil2d.org/t/why-dont-pallet-files-have-an-file-extension/7761/4) about our current palette extension which is plain .xml.
The user advocate for a custom file extension like .pal or .col, for ease of file management.
Considering that all our files are .xml but renamed, it could make sense to give our palette its own extension too.
### What should work:
- Backward compatibility with .xml files
- Importing and exporting a palette with the new palette, as well as saving the project.
- Do we still consider the .pcl format legacy? if not, make sure the new palette extension is also used here.
### Changes involved:
- The extension should be added to fileformat.h:
- consider renaming PFF_DEFAULT_PALETTE_EXT to PFF_LEGACY_PALETTE_EXT, so that the new format can be the default and the legacy is .xml
- Update the palette_ext_filter
- Update FileManager::loadPalette(Object* obj) to support both formats.
- Update Object::savePalette to allow saving the palette using the new extension
- Do we need to support saving as .xml too?
system
(system)
Closed
3 March 2024 14:54
7
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.