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 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: 1723
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: 1723
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: 1723
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
Fred/Channel 4
Exploding Fi../Techn..
Jetboy/Elysium
Bob/Censor Design
Razy/VCC
Menace/Spaceballs
tlr
Guests online: 147
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.043 sec.