Re: [vox-tech] RTCW, sound problem
Yep. To get by this: $ wolfmp $ wolfsp type one or the other to play with one or the other. I guessed that this was caused by the sound resource still being in use when one was quitting and the other was starting before sound resources were freed by the first one quitting. -ME Jonathan Stickel said: Thanks for the few suggestions. I should have mentioned that I had already made sure artsd and esd were not running; that isn't the problem here. I've managed to get RTCW, single player, to work by starting with wolf +set s_initsound 0 Of course, no sound now for the initial multiplayer menu. But when I choose single player, sound gets initiated, and now it works! There must be some bug with that transition from mp to sp... Jonathan Peter Jay Salzman wrote: On Sat 13 Dec 03, 9:25 AM, Jonathan Stickel [EMAIL PROTECTED] said: I've recently decided to give gaming a try in Linux. I managed to get Duke3D working, and it runs great. So next I try Return to Castle Wolfenstein (RTCW). I think I installed it all correctly (only a couple steps), but there is a problem with the sound. It starts in multi-player mode, I think, with a menu screen. Here everything seems fine: sound, graphics, and I can change graphic options. I haven't tried to play multiplayer because I'm not yet interested. The problem is when I choose single-player mode on the menu. When I first tried, I did not have ALSA installed. Single-player would work but without sound (couldn't find /dev/dsp). A google search indicated it might work with ALSA, so I installed ALSA and ALSA-OSS. ALSA seems to work fine with all my other applications, but now when I choose single-player, RTCW hangs with a blank screen and movable mouse cursor. When I go to another terminal and kill wolfsp.x86, I get back my Xterm and see it died at sound initialization. No other info is given. I can't seem to find this particular problem mentioned on the web. Any ideas? Supposedly the linux implementation of RTCW is similar to Quake3. Thanks, Jonathan jon, are you running a sound daemon? enlightenment uses esd. i'm sure gnome and kde have their own sound daemons (i don't use gnome/kde, so i don't know). try killing the sound daemon and see if that helps. if that doesn't work, you can pull out the big guns and try using ltrace to see if you can get any more information about why sound isn't working. if ltrace doesn't give further information, then perhaps strace will. i've solved MANY game related problems using ltrace and strace. use ltrace first -- the output is less copious and easier to go through. pete ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
[vox-tech] XSLT questions
All, Anyone here any good with XSLT? I'm using xsltproc (part of the Gnome libraries) as a command-line XSLT processor. I'm building a web site using XSLT to transform my content files (which are in hand-written XML) into XHTML. This mostly works great, but has a few quirks. Specifically: 1. The processor keeps adding xmlns= attributes to the tags in my result document. I have no idea why it feels the need to add an empty XML namespace. Why might it do this? 2. I am trying to figure out how to do multiple layers of transformation without running xsltproc multiple times. For instance, suppose I want to make my own menu tag that makes a menu on my site. Whenever I see menu, I want to specify that it generates a number of menuitem tags; and I want _those_ to generate specially marked li tags. Using XSLT, I have no problem going from menu to the li tags, but can I do the abstraction in between easily? Thanks. (-: Jonathan. ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
[vox-tech] How do i refer my system with IP and make sure that its accessible from windows(server is running there)
Hi, why I am running a shell program which after setting some variableswith values invokes a java program and pass it some parameters.Few of the parameters requires Input/Output file location. Whichcan be in the same system or a different Linux machine./why I am pasting the shell file I wrote(which ofcourse doesn't work) Unix Shell file=== #!/bin/bash # 192.168.0.115(points to server)# 192.168.0.44 (is this machine) javac -d . com/enigma/client/*.javajavac -d . com/enigma/common/*.java export Host=192.168.0.115 export Port=8080export InputFile=//192.168.0.44/Enigma/input/xml/Chapter30sample.xmlexport OutputPath=//192.168.0.44/outputXML/export programName=Daniel_rajeshexport logoPath=//192.168.0.44/Enigma/input/images/Goodrichlogo.gifexport userType=IPCexport userRev=2 java -DHost=$Host -DPort=$Port com.enigma.client.PETClient -input $InputFile -type $userType -rev $userRev -out $OutputPath -param _3C_BookName $programName -param _3C_UserDef1 $logoPath The above shell file is the replacement for the below DOS batch file(which works) Dos Batch file=== javac -d .\ .\com\enigma\client\*.javajavac -d .\ .\com\enigma\common\*.java set Host=192.168.0.115set Port=8080set InputFile=\\192.168.0.44\Enigma\input\xml\Chapter30sample.xmlset OutputPath=\\192.168.0.44\outputXML\set programName=Daniel_rajeshset logoPath=\\192.168.0.44\Enigma\input\images\Goodrichlogo.gifset userType=IPCset userRev=2 java -DHost=%Host% -DPort=%Port% com.enigma.client.PETClient -input %InputFile% -type %userType% -rev %userRev% -out %OutputPath% -param _3C_BookName %programName% -param _3C_UserDef1 %logoPath% Any solutions hints would be of great help. Have a great day. Karthikeyan B
Re: [vox-tech] How do i refer my system with IP and make sure that its accessible from windows(server is running there)
Just a couple of quick questions. 1. are you changing the ip of your machines? (192.168.0.44) Or are you changing the script on each machine? 2. are you running iptables/ipchains on your linux machine (firewall), that would block network traffic? 3. can you verify that the java program (com.enigma.client.PETClient) is starting? and trying to talk on the network? You can use tcpdump, or tethereal to see network traffic. Mark karthikeyan wrote: Hi, why I am running a shell program which after setting some variables with values invokes a java program and pass it some parameters. Few of the parameters requires Input/Output file location. Which can be in the same system or a different Linux machine. /why I am pasting the shell file I wrote(which ofcourse doesn't work) Unix Shell file === #!/bin/bash # 192.168.0.115(points to server) # 192.168.0.44 (is this machine) javac -d . com/enigma/client/*.java javac -d . com/enigma/common/*.java export Host=192.168.0.115 export Port=8080 export InputFile=//192.168.0.44/Enigma/input/xml/Chapter30sample.xml export OutputPath=//192.168.0.44/outputXML/ export programName=Daniel_rajesh export logoPath=//192.168.0.44/Enigma/input/images/Goodrichlogo.gif export userType=IPC export userRev=2 java -DHost=$Host -DPort=$Port com.enigma.client.PETClient -input $InputFile -type $userType -rev $userRev -out $OutputPath -param _3C_BookName $programName -param _3C_UserDef1 $logoPath The above shell file is the replacement for the below DOS batch file(which works) Dos Batch file === javac -d .\ .\com\enigma\client\*.java javac -d .\ .\com\enigma\common\*.java set Host=192.168.0.115 set Port=8080 set InputFile=\\192.168.0.44\Enigma\input\xml\Chapter30sample.xml set OutputPath=\\192.168.0.44\outputXML\ set programName=Daniel_rajesh set logoPath=\\192.168.0.44\Enigma\input\images\Goodrichlogo.gif set userType=IPC set userRev=2 java -DHost=%Host% -DPort=%Port% com.enigma.client.PETClient -input %InputFile% -type %userType% -rev %userRev% -out %OutputPath% -param _3C_BookName %programName% -param _3C_UserDef1 %logoPath% Any solutions hints would be of great help. Have a great day. Karthikeyan B ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] XSLT questions
On Tue, Dec 16, 2003 at 12:39:58AM -0800, Jonathan McPherson wrote: All, Anyone here any good with XSLT? I'm using xsltproc (part of the Gnome libraries) as a command-line XSLT processor. I'm building a web site using XSLT to transform my content files (which are in hand-written XML) into XHTML. This mostly works great, but has a few quirks. Specifically: 1. The processor keeps adding xmlns= attributes to the tags in my result document. I have no idea why it feels the need to add an empty XML namespace. Why might it do this? That would not make valid XHTML (assuming you're generating XHTML 1.0). Your xsl:stylesheet opening tag should contain something like: xmlns=http://www.w3.org/1999/xhtml; 2. I am trying to figure out how to do multiple layers of transformation without running xsltproc multiple times. For instance, suppose I want to make my own menu tag that makes a menu on my site. Whenever I see menu, I want to specify that it generates a number of menuitem tags; and I want _those_ to generate specially marked li tags. Using XSLT, I have no problem going from menu to the li tags, but can I do the abstraction in between easily? Some processors provide extensions to convert a result fragment into a node set; but you should be able to do the same thing in another way (XSLT is Turing complete, after all). You haven't really given much information on what it is you want to achieve: can you give an example of what you're trying to accomplish? -- Micah J. Cowan [EMAIL PROTECTED] ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] XSLT questions
Micah, That would not make valid XHTML (assuming you're generating XHTML 1.). Your xsl:stylesheet opening tag should contain something like: xmlns=http://www.w3.org/1999/xhtml; It was, in fact, the XHTML validator that made me realize that I had a problem in the first place. I had the xmlns string in the stylesheet earlier, but had removed it for some reason. I put it back and, like magic, I have validating XHTML code. Thanks! Some processors provide extensions to convert a result fragment into a node set; but you should be able to do the same thing in another way (XSLT is Turing complete, after all). You haven't really given much information on what it is you want to achieve: can you give an example of what you're trying to accomplish? Well, it isn't a case in which I can't get the result that I want--it's a case of not being able to do things in the way I want to, so the fact that XHTML is Turing-complete does not guarantee anything. Let's say, for instance, that have an XML tag for a project description... here's a very contrived example: project name=TTP The TTP Project is the only project in our company with a fully recursive acronym. /project And I want to convert that to the following XHTML: hr / img class=sep src=pretty.png alt= / hr / pstrongProject name: TTP/strong/p qThe TTP Project is the only project in our company with a fully recursive acronym./p This is fine, but suppose that I soon realize that the sep image surrounded by two hr / tags is something I use in many places in my stylesheet, and I want to make it a parameterized entity that I can use in many settings, like sepimage src=pretty.png /. I don't know how to do this in XSLT; it seems that I am doomed to repeat the XHTML in each case, since sepimage ... / is not part of the source document. Suppose I change my mind and want all these separator images (both those separating project descriptions and otherwise) to have one hr / rather than two--I'll have to go through my stylesheet and find each place where I used a separator image and fix it. Basically, I want subroutines that I can use to abstract common but parametric elements of my stylesheets, and after going through a number of XSLT tutorials, I still can't find 'em. Thanks for your help! Much appreciated. Jonathan. ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech
Re: [vox-tech] XSLT questions
On Tue, Dec 16, 2003 at 01:46:50PM -0800, Jonathan McPherson wrote: Micah, That would not make valid XHTML (assuming you're generating XHTML 1.). Your xsl:stylesheet opening tag should contain something like: xmlns=http://www.w3.org/1999/xhtml; It was, in fact, the XHTML validator that made me realize that I had a problem in the first place. I had the xmlns string in the stylesheet earlier, but had removed it for some reason. I put it back and, like magic, I have validating XHTML code. Thanks! Some processors provide extensions to convert a result fragment into a node set; but you should be able to do the same thing in another way (XSLT is Turing complete, after all). You haven't really given much information on what it is you want to achieve: can you give an example of what you're trying to accomplish? Well, it isn't a case in which I can't get the result that I want--it's a case of not being able to do things in the way I want to, so the fact that XHTML is Turing-complete does not guarantee anything. Let's say, for instance, that have an XML tag for a project description... here's a very contrived example: project name=TTP The TTP Project is the only project in our company with a fully recursive acronym. /project And I want to convert that to the following XHTML: hr / img class=sep src=pretty.png alt= / hr / pstrongProject name: TTP/strong/p qThe TTP Project is the only project in our company with a fully recursive acronym./p This is fine, but suppose that I soon realize that the sep image surrounded by two hr / tags is something I use in many places in my stylesheet, and I want to make it a parameterized entity that I can use in many settings, like sepimage src=pretty.png /. I don't know how to do this in XSLT; it seems that I am doomed to repeat the XHTML in each case, since sepimage ... / is not part of the source document. Suppose I change my mind and want all these separator images (both those separating project descriptions and otherwise) to have one hr / rather than two--I'll have to go through my stylesheet and find each place where I used a separator image and fix it. Basically, I want subroutines that I can use to abstract common but parametric elements of my stylesheets, and after going through a number of XSLT tutorials, I still can't find 'em. The XSLT equivalent of called subroutines is named templates. You can do something like (untested): xsl:template name=sep-image xsl:param name=src/ hr / img class=sep src={$src} alt= / hr / /xsl:template And then you can invoke it with: xsl:call-template name=sep-image xsl:with-param name=src value=pretty.png/ /xsl:call-template Hope that's what you were looking for. BTW, if you can avoid empty alt attributes, you should probably parameterize that, too, if your source XML format supports something that can be used for it. In my custom DocBook stylesheets, I generate most img/ elements from docbook graphic/ elements; and I use the xreflabel attribute's contents when available; otherwise the contents of the title/ sub-element to graphic/. -- Micah J. Cowan [EMAIL PROTECTED] ___ vox-tech mailing list [EMAIL PROTECTED] http://lists.lugod.org/mailman/listinfo/vox-tech