New Doom Forums  
Kickstart for Linux Doomsday - New Doom Forums
Go Back   New Doom Forums > Source Ports > Doomsday
Register Blogs FAQ Calendar Mark Forums Read

Reply
 
Thread Tools Display Modes
Old July 22nd, 2004, 01:10 PM   #1
directhex
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?
directhex is offline   Reply With Quote
Old July 22nd, 2004, 01:14 PM   #2
directhex
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
directhex is offline   Reply With Quote
Old July 22nd, 2004, 01:38 PM   #3
Chilvence
Commander Keen
 
Chilvence's Avatar
 
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.
Chilvence is offline   Reply With Quote
Old July 22nd, 2004, 01:47 PM   #4
directhex
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.
directhex is offline   Reply With Quote
Old July 22nd, 2004, 01:51 PM   #5
Chilvence
Commander Keen
 
Chilvence's Avatar
 
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)
Chilvence is offline   Reply With Quote
Old July 22nd, 2004, 01:56 PM   #6
directhex
Commander Keen
 
Join Date: Jul 2004
Posts: 71
i'll have a poke about on sunday, i'm out tomorrow & saturday.
directhex is offline   Reply With Quote
Old July 22nd, 2004, 02:04 PM   #7
Chilvence
Commander Keen
 
Chilvence's Avatar
 
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?)
Chilvence is offline   Reply With Quote
Old July 22nd, 2004, 02:15 PM   #8
directhex
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...
directhex is offline   Reply With Quote
Old July 27th, 2004, 02:17 PM   #9
directhex
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)
directhex is offline   Reply With Quote
Old July 28th, 2004, 03:57 PM   #10
directhex
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!
directhex is offline   Reply With Quote
Old July 28th, 2004, 04:50 PM   #11
DaniJ
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.
DaniJ is offline   Reply With Quote
Old July 28th, 2004, 05:10 PM   #12
directhex
Commander Keen
 
Join Date: Jul 2004
Posts: 71
interesting.
directhex is offline   Reply With Quote
Old July 28th, 2004, 05:35 PM   #13
directhex
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?
directhex is offline   Reply With Quote
Old July 28th, 2004, 06:27 PM   #14
KuriKai
Guest
 
Posts: n/a
good to hear
  Reply With Quote
Old July 29th, 2004, 12:18 AM   #15
skyjake
Commander Keen
 
skyjake's Avatar
 
Join Date: Jun 2000
Location: Tampere, Finland
Posts: 329
Quote:
does "use windows gdi fonts", i.e. -gdifonts, actually do anything under linux?
No, -gdifonts does absolutely nothing on Linux. The fonts are always loaded from the Data/Fonts directory.
skyjake is offline   Reply With Quote
Old July 29th, 2004, 02:10 AM   #16
directhex
Commander Keen
 
Join Date: Jul 2004
Posts: 71
-noswk?

-csd?

-eaxignore?

-nopsf?

-noeax?

-nomixer?

the rest look pretty platform-independant to me.
directhex is offline   Reply With Quote
Old July 29th, 2004, 02:22 AM   #17
KuriKai
Guest
 
Posts: n/a
you got anywhere to upload it?

if not i might be able to get it hosted
  Reply With Quote
Old July 29th, 2004, 02:27 AM   #18
directhex
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
directhex is offline   Reply With Quote
Old July 29th, 2004, 02:43 AM   #19
directhex
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 = (
consider that a warning to install gtk2-perl and gnome2-gconf perl libraries. debian linux users, that's "apt-get install libgtk2-perl libgnome2-gconf-perl". users of other downloady distros, such as gentoo, should find similar packages with "emerge". deadrat users may want to check http://gtk2-perl.sourceforge.net/ for RPM's. my mighty dependancy information suggests the following dependancy information, which is automatically handled with real distributions but may be helpful for those who use RPMs:

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.
directhex is offline   Reply With Quote
Old July 29th, 2004, 06:11 AM   #20
GuntherDW
Commander Keen
 
GuntherDW's Avatar
 
Join Date: May 2004
Location: Belgium
Posts: 176
to load defenitions via the command-line u have to use

-def [file.ded]
GuntherDW is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -7. The time now is 08:42 AM.


Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
NewDoom.com © 2000-2009 Mindless Games & Entertainment. All Rights Reserved.