![]() |
![]() |
![]() |
![]() |
|
|||||||
![]() |
|
|
Thread Tools | Display Modes |
July 22nd, 2004, 01:10 PM
|
#1 |
|
Commander Keen
Join Date: Jul 2004
Posts: 71
|
Kickstart for Linux Doomsday
Been messing about with Perl::Gtk2, trying to come up with a user-friendly GUI for Linux users. so far i have:
![]() The GUI is all but constructed now, and some of the skeleton code is in place. the biggest problem, however, is I'm not fully certain how the Linux version of Doomsday handles command line parameters - for example, it seems that whilst you have to pass many parameters with -file, you can't pass multiple -file entries. There are other problems with trying to do this, at a code level, mostly to do with case sensitivity - for example, -doom2 searches for "Doom2.wad", but won't detect "doom2.wad" or "DOOM2.WAD". Textures don't seem to load from /usr/local/share/deng/Data/jDoom/Textures, but all the textures from the d2 retexturing project have random case, and either way i'm not sure they're getting loaded. Similarly, -file jDRP.pk3 loads the file successfully (whole load of output about successfully loaded things to stdout) but none of the actual pk3 contents seem to be USED. Conversely, -file d2music.pk3 works fully & properly Is there any documentation yet on how EXACTLY the Linux version of doomsday behaves, especially when it comes to command line parameters? |
|
|
July 22nd, 2004, 01:14 PM
|
#2 |
|
Commander Keen
Join Date: Jul 2004
Posts: 71
|
oh, and I've been loitering in #doomsday on irc.freenode.net if anyone about wants to discuss
|
|
|
July 22nd, 2004, 01:38 PM
|
#3 |
|
Commander Keen
Join Date: Feb 2003
Location: I ham in the land of Oz - oooooo....
Posts: 1,524
|
Hmm, I dont really know about this, but wouldnt you be able to find out more about case sensitivity from the Doomsday source itself? Also, is there a simple explanation anywhere about why things are case sensitive?
As for the JDRP.pk3, my first thought is that you might not be loading the ded file that comes with it, that would explain why the files are loaded and not used anyway. |
|
|
July 22nd, 2004, 01:47 PM
|
#4 |
|
Commander Keen
Join Date: Jul 2004
Posts: 71
|
it's case sensitive because (for example) it tries to load (for example) the file named "Doom2.wad" - quite simply. POSIX (i.e. Linux et al) are case sensitive, Windows is not. Unless you install Windows Services for Unix, in which case GOD knows how it behaves. See line 140ish of Src/jDoom/d_main.c, for example.
the big problem is i can't see a single simple place that the command line arguments are read. perhaps i'm just not poking deeply enough into the source though. |
|
|
July 22nd, 2004, 01:51 PM
|
#5 |
|
Commander Keen
Join Date: Feb 2003
Location: I ham in the land of Oz - oooooo....
Posts: 1,524
|
you could try forcing an alternate texture directory just to test if it works, eg -texdir data/jdoom/alt
Also, I'm guessing that the textures would have to be uppercase since thats how they are in the wad. Theres also a flats issue been resolved recently, where doomsday expects the prefix to be Flat-XXXXXXXX.XXX (let me know if thats correct BTW, since then I can rename all the textures to suit linux users) |
|
|
July 22nd, 2004, 01:56 PM
|
#6 |
|
Commander Keen
Join Date: Jul 2004
Posts: 71
|
i'll have a poke about on sunday, i'm out tomorrow & saturday.
|
|
|
July 22nd, 2004, 02:04 PM
|
#7 |
|
Commander Keen
Join Date: Feb 2003
Location: I ham in the land of Oz - oooooo....
Posts: 1,524
|
Good luck then.
Hey, is that program cross platform by any chance? If you could make it compile in Windows, its likely that it could replace the current kicks (no need to maintain two programs then, right?) |
|
|
July 22nd, 2004, 02:15 PM
|
#8 |
|
Commander Keen
Join Date: Jul 2004
Posts: 71
|
it's perl with gtk2 bindings. running it would probably require both gtk2 for windows and activestate perl installed. that said, i think there are perl -> c compilers, and some apps (e.g. xchat for windows) have all gtk2 libraries statically compiled in, so it _MIGHT_ be possible to do
though i suspect hand-written perl might be more of a chore to anyone who isn't a massochist to maintain compared to visual basic... |
|
|
July 27th, 2004, 02:17 PM
|
#9 |
|
Commander Keen
Join Date: Jul 2004
Posts: 71
|
incase anyone's still interested, 0.04 is the first version with setting load/save behaviour. i need to add a bucket of extra settings (i.e. any checkboxes against a white background are missing at the moment), which includes passing extra pk3's and wad's and def's - but it saves my resolution & color depth, which dll to use, and i can pick game by the (saved) command line append bit (i.e. -doom2)
|
|
|
July 28th, 2004, 03:57 PM
|
#10 |
|
Commander Keen
Join Date: Jul 2004
Posts: 71
|
hm, things have stalled slightly, as i can't see how to pass multiple pk3's at load. if i can crack that, then there's about a fortnight's worth of light coding left to make this functionally equivalent to the windows version.
help on this problem more than welcome! |
|
|
July 28th, 2004, 04:50 PM
|
#11 |
|
Commander Keen
Join Date: Apr 2003
Location: UK
Posts: 4,916
|
On the windows platform when you press PLAY Kickstart outputs a text file which is then read by Doomsday. Kickstart doesn't pass the whole command line to Doomsday, it just tells it which file to read the command line options from.
Maybe having a look at KickStart.out will help. |
|
|
July 28th, 2004, 05:10 PM
|
#12 |
|
Commander Keen
Join Date: Jul 2004
Posts: 71
|
interesting.
|
|
|
July 28th, 2004, 05:35 PM
|
#13 |
|
Commander Keen
Join Date: Jul 2004
Posts: 71
|
hmph, lo and behold, it's as simple as -file pak1 pak2 pak3 pakn. i presume defs will be the same. easy peasy.
anyone have any guesses as to which menu options i can just bin? e.g. does "use windows gdi fonts", i.e. -gdifonts, actually do anything under linux? |
|
|
July 28th, 2004, 06:27 PM
|
#14 |
|
Guest
Posts: n/a
|
good to hear
|
|
July 29th, 2004, 12:18 AM
|
#15 | |
|
Commander Keen
Join Date: Jun 2000
Location: Tampere, Finland
Posts: 329
|
Quote:
|
|
|
|
July 29th, 2004, 02:10 AM
|
#16 |
|
Commander Keen
Join Date: Jul 2004
Posts: 71
|
-noswk?
-csd? -eaxignore? -nopsf? -noeax? -nomixer? the rest look pretty platform-independant to me. |
|
|
July 29th, 2004, 02:22 AM
|
#17 |
|
Guest
Posts: n/a
|
you got anywhere to upload it?
if not i might be able to get it hosted |
|
July 29th, 2004, 02:27 AM
|
#18 |
|
Commander Keen
Join Date: Jul 2004
Posts: 71
|
well in theory i can just port a big [code] block on here for people to copy & paste
|
|
|
July 29th, 2004, 02:43 AM
|
#19 |
|
Commander Keen
Join Date: Jul 2004
Posts: 71
|
here's a taster:
Code:
#!/usr/bin/perl -w use warnings; use strict; use Gtk2 '-init'; use Gtk2::SimpleList; use Gnome2::GConf; use Glib; use constant TRUE => 1; use constant FALSE => 0; my @AboutBox = ( Depends: perl Depends: <perlapi-5.8.4> perl-base Depends: libc6 Depends: libgconf2-4 Depends: libglib2.0-0 Depends: liborbit2 Depends: libglib-perl i'll get a public alpha out when all GLOBAL settings are hooked up to something - i.e. the misc, graphics, and sound tabs. game selection is via command-line entries in the Misc tab, until i get the Game tab fully hooked up (which is just long-winded more than anything). the only Game settings that are connected right now are the about box text, and it will pick the right DLL based on which game you picked. |
|
|
July 29th, 2004, 06:11 AM
|
#20 |
|
Commander Keen
Join Date: May 2004
Location: Belgium
Posts: 176
|
to load defenitions via the command-line u have to use
-def [file.ded] |
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Resolved] Migrating a very nice doomsday with kickstart from windows to linux. | DoctorX | Doomsday | 8 | September 5th, 2006 11:06 PM |
| Kickstart Fatal Errors: Help! | cryptomorph | Doomsday | 4 | August 8th, 2004 06:38 PM |
| Doomsday Kickstart 2 problem | keenrw | Tech Support | 1 | August 4th, 2004 03:59 AM |
| loading external WADs with Doomsday KickStart | Massacher | Tech Support | 4 | May 24th, 2004 08:02 AM |
| How to use Doomsday without Kickstart | Kamex | Doomsday | 2 | April 12th, 2004 10:03 AM |