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: 447
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 21:34
theK

Registered: Oct 2020
Posts: 44
Just got back, you guys are hard at work! :-O

Latest build still get "./gtultra
/home/xxx/.goattrk/gtpalettes: No such file or directory"

It goes to the wrong folder. The gtpallets is in the "binary" folder, not the config one.
2022-05-13 21:40
Jason Page

Registered: Sep 2015
Posts: 87
I'm going to change the code so that it looks for gtpalette folder in $HOME/.goattrk/

Please confirm this is correct
2022-05-13 21:58
tlr

Registered: Sep 2003
Posts: 1723
Quote: I'm going to change the code so that it looks for gtpalette folder in $HOME/.goattrk/

Please confirm this is correct


This is what it does now. It sort of makes sense, because it is configuration after all. The issue is that there is no gtpalettes/ folder there when starting up the first time. Either you have the palettes looked up where the binary is, or you write out the initial defaults to $HOME/.goattrk if no gtpalettes exist.

The latter is the nicest IMO.
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: 1723
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: 1723
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
Previous - 1 | ... | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 - 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
Fred/Channel 4
pcollins/Quantum
St0rmfr0nt/Quantum
krissz
Unlock/Padua/Albion
Exploding Fi../Techn..
Shogoon/Elysium/MSL
Courage
Guests online: 130
Top Demos
1 Next Level  (9.8)
2 13:37  (9.7)
3 Mojo  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.6)
6 Comaland 100%  (9.6)
7 Uncensored  (9.6)
8 No Bounds  (9.6)
9 Wonderland XIV  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 Layers  (9.7)
2 It's More Fun to Com..  (9.6)
3 Party Elk 2  (9.6)
4 Cubic Dream  (9.6)
5 Copper Booze  (9.6)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Rainbow Connection  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Daah, Those Acid Pil..  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Booze Design  (9.3)
3 Censor Design  (9.3)
4 Crest  (9.3)
5 Performers  (9.3)
Top Fullscreen Graphicians
1 Carrion  (9.8)
2 Joe  (9.8)
3 Duce  (9.8)
4 Mirage  (9.7)
5 Facet  (9.7)

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