Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > CSDb Entries > Release id #216054 : GTUltra V1.0.3
2022-03-29 21:41
spider-j

Registered: Oct 2004
Posts: 444
Release id #216054 : GTUltra V1.0.3

Better take this to discussions to not flood the comments.
Quote:
Can you run it from the win32 folder?

Running the exe through WINE works fine. I'd prefer a native linux build though.
 
... 159 posts hidden. Click here to view all posts....
 
2022-05-13 22:09
Jason Page

Registered: Sep 2015
Posts: 87
Gotcha. Thanks

Laptop battery is dead. Will look at this again tomorrow.
2022-05-13 22:21
Jason Page

Registered: Sep 2015
Posts: 87
Quote: For linux to get to folders there is "./gtpalettes/0_default.gtp".

One last question - just so I understand linux a little better!

Is this path we’re the palettes are currently stored?if the code just referenced “./gtpalettes/“ folder, it would find them?

So far, I’m clear on where the palette is currently trying to load from (cfg location..). But not where it actually is by default.
2022-05-14 09:58
Jason Page

Registered: Sep 2015
Posts: 87
Ignore that question as it’s not relevant to my solution:

1. I’ll add all default palettes to the large data file. So they all load by default at stat-up - just as the single default palette currently does.
2. I’ll modify the code to create a gtpalettes folder if it doesn’t already exist.
3. Users can then place new / saved palettes in this folder, and they will be loaded at start-up after the default palettes.


(Lman has created some excellent skins, which I still need to add as the defaults)
2022-05-14 11:38
tlr

Registered: Sep 2003
Posts: 1714
Quote: Ignore that question as it’s not relevant to my solution:

1. I’ll add all default palettes to the large data file. So they all load by default at stat-up - just as the single default palette currently does.
2. I’ll modify the code to create a gtpalettes folder if it doesn’t already exist.
3. Users can then place new / saved palettes in this folder, and they will be loaded at start-up after the default palettes.


(Lman has created some excellent skins, which I still need to add as the defaults)


Seems like a good solution.

I noticed that the palettes are in a different order than in your example video. If you are not sorting the entries you'll get whatever order the filesystem happens to have. I'm guessing that's what happens.

(answer to question to be ignored: no ./ will always relate to where you are standing when starting the program. If not, eg 'ls .' would list the files where the ls binary is located)
2022-05-14 12:18
Jason Page

Registered: Sep 2015
Posts: 87
For windows at least, it was loading the files in alphabetical order automatically. I hoped that would be the same for Linux too.
For the defaults, it will always be in a specific order now, as I’m c”generating the file name to load in a loop,
2022-05-14 12:22
tlr

Registered: Sep 2003
Posts: 1714
Quote: For windows at least, it was loading the files in alphabetical order automatically. I hoped that would be the same for Linux too.
For the defaults, it will always be in a specific order now, as I’m c”generating the file name to load in a loop,


I don't think POSIX guarantees any specific order for readdir(). For ext4 my guess is that you'll get the files in inode order. For NTFS, not sure. Could be in the order written perhaps?
2022-05-14 12:25
Jason Page

Registered: Sep 2015
Posts: 87
I did wonder if that would be the case.
I Will look at saving the filename of the current palette in the cfg, rather than index.
It can then look through and do a string compare to use the correct palette on start-up
2022-05-14 16:39
theK

Registered: Oct 2020
Posts: 44
Hmm, there seems to be an error in the latest build.
---
gpaletteeditor.c: In function ‘loadPalettes’:
gpaletteeditor.c:782:17: error: too few arguments to function ‘mkdir’
782 | mkdir(paletteFile); // default palette folder didn't exist in config file location. It now does..
| ^~~~~
In file included from goattrk2.h:10,
from gpaletteeditor.c:7:
/usr/include/x86_64-linux-gnu/sys/stat.h:389:12: note: declared here
389 | extern int mkdir (const char *__path, __mode_t __mode)
| ^~~~~
make: *** [<builtin>: gpaletteeditor.o] Error 1

---
2022-05-14 17:44
Jason Page

Registered: Sep 2015
Posts: 87
Grrr..

mkdir for linux requires permission flags too.

I've changed the line for linux to:

mkdir(paletteFile, 0777);


Please try again!
2022-05-14 17:49
theK

Registered: Oct 2020
Posts: 44
But... Am I thinking the wrong way here... Do you really need to create the folder if you make sure it's already there in the .zip with the content?
Previous - 1 | ... | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 - Next
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
Acidchild/Padua
Matt
jmin
Steel/SCS&TRC/G★P
Viti/Hokuto Force
Apollyon/ALD
JEZ
Guests online: 130
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 The Ghost  (9.6)
9 Wonderland XIV  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.8)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Logo Graphicians
1 Sander  (10)
2 Facet  (9.7)
3 Mermaid  (9.4)
4 Pal  (9.4)
5 Shine  (9.3)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.039 sec.