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: 450
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 17:50
theK

Registered: Oct 2020
Posts: 44
Yes, in linux the binaries is in the /linux-folder and under there there's the /gtpalettes-folder with six files 0-5.
2022-05-13 18:09
Jason Page

Registered: Sep 2015
Posts: 87
OK... ANOTHER one pushed. Let me know how it goes!

I think the issue was that I had "\\" instead of "/" for file path separator. I've changed it to "/" in gpaletteeditor.c so that hopefully this now picks up all of the palette files
2022-05-13 18:13
theK

Registered: Oct 2020
Posts: 44
Hmm, no. Sorry. :-/ Still no theme change.

Looking to see if I can see what's going wrong? What did you change from 1.1.6?
2022-05-13 18:20
Jason Page

Registered: Sep 2015
Posts: 87
I'm sure it will be failing in the loadPalettes() method.

It checks to see if the gtpalette folder exists, and then gets the files in that folder via readdir, builds a final file path.
This then calls loadPalette(char *paletteName)

this loads the palette file and then calls readPaletteData(paletteMem); - which runs through the loaded data and sets RGB


readPaletteData is also called when loading the default palette - So this bit works. It has to be the file loaded - or how it's failing to find either the gtpalette folder or its contents where the problem is
2022-05-13 18:37
tlr

Registered: Sep 2003
Posts: 1730
This happens:
$ gtultra
Unable to read directory: No such file or directory
$
(regardsless of where I'm standing)
2022-05-13 18:42
Jason Page

Registered: Sep 2015
Posts: 87
So, that's in loadPalettes, as suspected:


createFilename(appFileName, paletteFile, "gtpalettes");

folder = opendir(paletteFile);
if (folder == NULL)
{
jdebug[0] = 0xff;
perror("Unable to read directory");



It works for windows (or at least, for me and Lman!)
maybe for linux, it needs another "\" at the end of "gtpalettes"?
2022-05-13 18:44
tlr

Registered: Sep 2003
Posts: 1730
did a little printf() debugging, appFileName is '/home/tlr/.goattrk/gtultra.cfg' on my system...
2022-05-13 18:49
Jason Page

Registered: Sep 2015
Posts: 87
createFilename looks backwards through that string until it finds a / or \. It then and adds the new filename (or folder) at that point (basically, replacing the gtultra.cfg text with the new string)

Changing the perror to the following show show the folder it's trying to open..

perror(paletteFile);
2022-05-13 18:50
Jason Page

Registered: Sep 2015
Posts: 87
printf does nothing when i'm using windows cmd window to build - which is the reason that debugging this whole thing has been a f**king nightmare!
2022-05-13 18:53
tlr

Registered: Sep 2003
Posts: 1730
Quote: printf does nothing when i'm using windows cmd window to build - which is the reason that debugging this whole thing has been a f**king nightmare!

Yes, windows is usually resisting development activities. :)

But, point being is that appFileName is not used as appFileName, it is used as cfgFileName, hence you will search the palettes relative to where the configuration file is located. Place gtpalettes/ in $HOME/.goattrk/ and it will work using the current code.

EDIT: then it loads them, but switching does seem to work anyway... ?
Previous - 1 | ... | 6 | 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
Didi/Laxity
Nicron
mutetus/Ald ^ Ons
Freddie
Freeze/Blazon
Courage
Bacchus/FairLight
Guests online: 92
Top Demos
1 Next Level  (9.7)
2 Mojo  (9.7)
3 13:37  (9.7)
4 Coma Light 13  (9.7)
5 Edge of Disgrace  (9.7)
6 Aliens in Wonderland  (9.6)
7 Comaland 100%  (9.6)
8 Uncensored  (9.6)
9 No Bounds  (9.6)
10 Wonderland XIV  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Rasterwave  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.6)
6 Rainbow Connection  (9.5)
7 It's More Fun to Com..  (9.5)
8 Dawnfall V1.1  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Birth of a Flower  (9.5)
Top Groups
1 Nostalgia  (9.4)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 SHAPE  (9.3)
Top Webmasters
1 Slaygon  (9.7)
2 Perff  (9.6)
3 Morpheus  (9.5)
4 Sabbi  (9.5)
5 CreaMD  (9.1)

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