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 17:48
Jason Page

Registered: Sep 2015
Posts: 87
Nope. That means I’ve broken something. It should pick up the palettes in the gtpalette folder and load them at startup

Can you confirm you’ve got a gtpalette folder with files in it within the same folder as your GTUltra.exe ?
2022-05-13 17:50
theK

Registered: Oct 2020
Posts: 46
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: 46
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: 1787
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: 1787
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!
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
Brataccas/HF
csabanw
Guests online: 75
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 Fullscreen Graphicians
1 Joe  (9.7)
2 Veto  (9.6)
3 Facet  (9.6)
4 The Sarge  (9.6)
5 Carrion  (9.5)

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