• Do not use Works in Progress as a way of avoiding the releases system! Works in Progress can be used for sharing early betas and for getting suggestions for improvement. Releases of finished content are not allowed in this forum! If you would like to submit a finished addon, click here for instructions on how to do so.

Can't work LumpMod on Windows XP command line.

Status
Not open for further replies.

SRB2-Playah

Ne'er-Do-Anythin'
(Want to ignore the details? Skip to "Anyway, on to the problem".)
For christmas, I got a new computer. A nice one at that. It's got a big green neon light on it. The glow's nice, but looking directly at it kills my eyes. X_X. But the glow's nice.
Along with it came Windows XP. So, no more crashing on Windows ME.
On a not-related-to-the-problem note, I also got a new keyboard. It glows purple. But, it's a soft purple. Now, I can see my keys. Problem is, the keys are placed in diffrent spots, and shrinked. So, I oftenly be pushing the wrong keys. But, it's got volume control built in, Which I love.

Anyway, on to the problem.
Windows XP has a program by the name of 'command.com'. It seems to be diffrent from Windows ME's MS-DOS. (I can't tell if they're both diffrent programs altogether, or just diffrent versions of the same thing.) It's in the same style, but appearently works diffrent. So, I can't work LumpMod. r_r
Anybody who uses Windows XP, and is familiar with it's command line program, Help me out here!
 
I just use the "cd" command to switch to my SRB2 directory(>cd C:\blah\blah\blah) where I keep LumpMod. Then: lumpmod wadfile.wad ...
 
cmd.exe is the fancy 32-bit NT command line, command.com is MS-DOS. You want to use cmd.exe.
 
Why go through the trouble of coding a launcher when you could write a bunch of batch files for your common tasks? Not quite as user-friendly, but it's simpler to do. But if you really want to, go ahead. I understand a lot of people don't like command lines for some reason. I guess I'm just a jaded old man. =/

Another neat trick is to make a shortcut to cmd.exe with the target path as your SRB2 directory. It starts a command line already there, so you don't need to navigate to it with cd. So if you can't bother yourself with batch files, that saves a lot of valuable time.

And some useless trivia, Windows NT's cmd.exe can be thought of (in simple terms) as an "emulator" of sorts that you can run DOS applications in, thus why it doesn't run some DOS programs properly or at all. Simple utilities like Lumpmod, however, usually run without a hitch.
 
Tets said:
I guess I'm just a jaded old man. =/
I love it when I find new ways I can relate to people.

Just to nitpick, LumpMod is actually a Windows, not DOS, program. Yes, Windows programs can run in Command Prompts; the technical term for those that do is "console programs."

That's why LumpMod can handle long filenames. If it was a DOS program, it'd probably run fine, except you would have to enter mywadfile.wad as "MYWADF~1.WAD".
 
Tets said:
Another neat trick is to make a shortcut to cmd.exe with the target path as your SRB2 directory. It starts a command line already there, so you don't need to navigate to it with cd. So if you can't bother yourself with batch files, that saves a lot of valuable time.
Or, you could download Microsoft's PowerToys which comes with the ability to right-click ANY folder and get an "open command window here" option. A lot less shortcuts, too.
 
You can also do that with a simple registry edit. You don't need any "Powertoys". A majority of the things Microsoft's Powertoys do can be done with simple registry edits. Finally, you can't right click while you're IN the folder and get that option, you need to navigate up to the parent directory and right click on the folder there. Makes it very inefficient, thus why I simply use a shortcut to the command prompt. You can do it in a matter of seconds and you don't need to download anything.
 
Put a shortcut in "Send To" titled "Command Line".
Right click on any folder or file, and click Send To, then Command Line.

Coding a launcher for olde Lumpy wouldn't be too hard. Not in Visual Basic or Flash, anyway. But, if I use Flash, I'd have to put all of my SRB2 stuff in a folder named 'fscommand'.

Better yet, create a "Send To" LumpMod... uh, that wouldn't work... Hmmm...
 
hotdog003 said:
Coding a launcher for olde Lumpy wouldn't be too hard. Not in Visual Basic or Flash, anyway. But, if I use Flash, I'd have to put all of my SRB2 stuff in a folder named 'fscommand'.
I made a batch file that I use. It can do all the commands and all, but I can't seem to get flags right and don't want to bother (so you ALWAYS have to add a lump after something and thus can't add a new lump to the beginning. and stuff.)
Here's the code for it if you care (which you probably don't):
Code:
@echo off

rem -- Variable setting
set wad=
:begin
set action=
set var1=
set var2=
set var3=
set var4=
set var5=
set var6=
set var7=
set more=
set zen=
set map=

rem -- Variable filling
:fill
if '%wad%'=='' set /p wad="Wad name:"
lumpmod %wad%.wad list
echo Actions: add addsect delete delsect extract rename update
set /p action="Action to take:"

if '%action%'=='add' (
 set /p var7="File name to add:"
 set /p var5="Final lump name:"
rem set /p var1="Flags (-b, -n):"
 set /p var3="Lump to add after:"
 set var1=-a%var1%
 set var2= 
 set var4= 
 set var6= 
)

if '%action%'=='addsect' (
 set /p var1="Section to add:"
)

if '%action%'=='delete' (
 set /p var1="Lump to delete:"
)

if '%action%'=='delsect' (
 set /p var1="Section to delete:"
)

if '%action%'=='extract' (
 set /p var1="Lump to extract:"
 set /p var3="File to extract to:"
 set var2= 
)

if '%action%'=='rename' (
 set /p var1="Lump to rename:"
 set /p var3="Lump to rename to:"
 set var2= 
)

if '%action%'=='update' (
 set /p var1="Lump to update:"
 set /p var3="File to update from:"
 set var2= 
)

rem -- Processing
if '%action%'=='' goto fill
echo %wad%.wad %action% %var1%%var2%%var3%%var4%%var5%%var6%%var7%
pause
lumpmod %wad%.wad %action% %var1%%var2%%var3%%var4%%var5%%var6%%var7%
pause
cls
set /p more="Do more lump modding? (y or n)"
rem -- change this line to go to testing in SRB2 if you want to complete this thing.
if not '%more%'=='y' goto end
cls
goto begin

rem -- Testing in Srb2 -- Under construction, completely skipped for now.
cls
set /p test="Test the wad in Srb2? (y or n)"
if not '%test%'=='y' goto end
set /p zen="Zennode? (y or n)"
if '%zen%'=='y' set zen=yes
set /p map="Map number:"
test %wad% %zen% %1 %2 %3 %4 %5 %6 %7 %8 %9 -opengl -server -warp %map%

:end
cls
exit
It MUST be in the SRB2 folder along with the wad and lumpmod.
 
Status
Not open for further replies.

Who is viewing this thread (Total: 1, Members: 0, Guests: 1)

Back
Top