PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

How can i add a command line perameter

I want to try running a few bots in pocket quake
Deathmatch.But all these mods seem to need you
to start the game with the command line modifyed.
I cant do this in windows CE.I even went as far
as to hex edit a CE shortcut to add the paramiter
but no luck CE didnt like that one bit .Please
help....
Moose or Chuck · 09 Mar 2001, 13:55 UTC
I've been having the same problem with command line params. Someone help us!
I haven't had much success with any of the startup commands. Once the game is run typing the commands at the console works fine. So, this either means:

(1.) I don't know how jack-diddly-squat about parameters on Windows CE.

(2.) Windows CE doesn't support parameters.

(3.) Dan or Carpediem disabled the startup commands.

Out of those three, the first seems most likely.

As far as using bots, those usually reference a a custom or modified DLL file. Unless the DLL was compiled for Mips, SH3 or ARM, it won't (or shouldn't) work.

So does anyone know where to find the Source code for a Quake Bot?
Moose or Chuck · 09 Mar 2001, 15:31 UTC
LOL. If you used a Bot on a Pocket PC you'll be getting about -20 FPS. Well, you get my point. I'd wonder if the screen would update at all in a 5 second period.
Bots shouldn't affect FPS any more than the monsters in SinglePlayer, or the players in deathmatch.

The game doesn't care if the models are bots, players or monsters- it'll draw them all at the same rate of speed. The general rule here is: the more models, the lower the FPS. But it isn't the "bots" fault.

To run an app with command line parameters, per 999:
To get the command prompt, hold down the Action button and click the clock and hold down for a second or two. On the menu, select "Run"

Also, if you have a robust 3rd party file explorer it may allow you to create shortcuts that contain parameters. If you have access to a CE 2.0 H/PC, or H/PC Pro device, you can create a shortcut on it, then copy it to your Pocket PC. I just can't resist yet another opportunity; if Microsoft's Pocket PC File Explorer weren't so lame, it would allow you to create a shortcut and specify command line parameters.

I added command line support to the last (0.04) version of Pocket Quake. It is totally untested, so let me know if it works or not.

Dan Est
BTW, Windows 95/98/ME/NT/2000 shortcut files are not compatible with Windows CE. They are a totally different format.

Dan East
Dan, I just dont get that, why doesn't Toshipa or intel program in Pentium compatability? it seems that that would double the usefulness of the PPC, and make it a true PPC.
It has more to do with the individual processor achitecture and instruction set, rather than "programming in Pentium compatability".

At the core of the instruction set, Mips ARM and SH3 processors do not maintain compatibility with each other. And they certainly don't share an instruction set with the x86 processors.

It would be cool if PocketPCs were x86 compatible though. We wouldn't even have to port Quake over at all.
Dan, I agree that Microsofts PPC File Explorer is lame. Maybe there's an "easter egg" somewhere to enable an enhanced File Explorer. I wish :)

As far as the command line goes, I have tried many different ways to use the "MAP" startup command to automatically throw me into a game when I start PocketQuake. What I was really trying to do was create an association with the BSP files.

I finally gave up.

I know how to use the command on my laptop- and it works just fine :)
Phat:
The shortcut files are not compatible because Microsoft reinvented that wheel for Windows CE. That is a totally OS-specific issue, and has nothing to do with the hardware.

Dan East
Moose or Chuck · 10 Mar 2001, 07:40 UTC
I believe that running a bot would slow things down, depending on the bot that was used. It has to have intelligent pathfinding routines, entity (player) recognition, common sense (don't jump in lava), and multi-level terrain usage. It would slow things down. (or the bot could just use a mapped waypoint system). Dan, can you shed some light?
thanks for clearing that up... but it seems like a lack o foresigt to have different instruction sets (as randall pointed out). its likelimiting the ability of a budding technology, whats the point? i'd rather have a 66mhz pentium compatable ppc than a 150 mhz incompatable thing.
I've fixed the command line parameters, so it will work with the next release (0.05) due out by Monday night.

Regarding the bots; If you look through the Quake source you won't find any code telling the bad guys how to act. That is all in the wads. Quake contains a custom scripting engine that runs a compiled type of scripting code. It is through that virtual processor that the code is executed that give the bad guys intelligence, including all the things that Moose pointed out (pathfinding, etc). So, since the bot is written in the same scripting language, and since most bad guys already have a decent amount of intelligence, I assume that a bot would not affect FPS unless it was poorly written, or really goes overboard with its "intelligence".

Dan East
Moose or Chuck · 10 Mar 2001, 09:35 UTC
ya, alright. Thanks Dan.
Dr. Phat- my sentiments exactly regarding the processors.

I'd settle for a PocketPC with a 386 processor. Of course a 486 or Pentium would be better, but the entire x86 line are massive power hogs.

Which is why the battery on a laptop accounts for 1\4 the total weight. Not very friendly for a PocketPC environment.

Still, I don't know why a NEW processor couldn't be created with lower power consumption and a true x86 instruction set. Or maybe a Transmeta Crusoe with the x86 instruction set.
see- somebody sees my point!
Okay, a Bot would be friggen cool!

Has anyone looked further into this?  I love playing the normal game, gut the idea of a rocket fight just sounds really tempting.

Okay, for those who REALLY care, I got the ReaperBot working on my Casio. It doesn't slow down my device any more than a monster in SinglePlayer.

On the original Quake the bots were written in QuakeC, so I suppose all bots for quake (as well as mods) should work on PocketPC.

I unpacked all my pack files, so getting this to work was actually very simple: I replaced the original Quake progs.dat file with the Reaperbots progs.dat.

Using the command line would be much better, but I just wanted everyone to know ahead of time that the BOTS WORK! And they're kickin' my ass!