Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user Harvey ! (Registered 2024-11-25) 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: 498
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:31
Jason Page

Registered: Sep 2015
Posts: 87
Should match what was in the video link I posted earlier
2022-05-13 21:34
theK

Registered: Oct 2020
Posts: 46
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: 1787
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: 1787
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: 1787
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?
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
csabanw
Guests online: 76
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Mojo  (9.6)
6 What Is The Matrix 2  (9.6)
7 The Demo Coder  (9.6)
8 Uncensored  (9.6)
9 Wonderland XIV  (9.6)
10 Comaland 100%  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Party Elk 2  (9.6)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.6)
5 Libertongo  (9.5)
6 Rainbow Connection  (9.5)
7 Onscreen 5k  (9.5)
8 Morph  (9.5)
9 Dawnfall V1.1  (9.5)
10 It's More Fun to Com..  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Nostalgia  (9.3)
5 Triad  (9.2)
Top Graphicians
1 Mirage  (9.7)
2 Archmage  (9.7)
3 Mikael  (9.6)
4 Carrion  (9.6)
5 Sulevi  (9.6)

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