Oh yeah this batch file is placed in the rom24 directory. You've
probably assumed as much anyway.

                            Dantin

----- Original Message -----
From: "Dantin" <[EMAIL PROTECTED]>
To: "Dale Kingston" <[EMAIL PROTECTED]>; "ROM" <[email protected]>
Sent: Sunday, July 21, 2002 11:58 AM
Subject: Re: Last post


>      With good ole stock ROM and OLC 1.81 and Lopes Color I could run it
as
> a Window in Windows 98se. Create a batch file with simplistic startup
> routine. ie..
>
> @echo off
> cd c:\rom24\area
> rom.exe *port# here*
> exit
>
> or use the one I wrote but the log file part doesn't work:
>
> @echo off
> echo Written by Dextar. 12/14/2001
> echo Based on startup from Furey, Tony and Alander.
> set shutdown=c:\rom24\area\shutdown.txt
> goto port
>
> :port
> echo Change set port under path to specify perminent port#. Set the path +
> port number.
> set port=4200
> goto dir
>
> :dir
> echo Changing to area directory.
> CD c:\rom24\AREA
> goto set
>
> :set
> echo Checking for shutdown.txt if found then the command "shutdown" was
> activated hence no reboot.
> set shutdown=c:\rom24\area\shutdown.txt
> if exist "%shutdown%" goto delete
> goto logfile
>
> :delete
> echo Deleting shutdown.txt so reboot doesn't work if shutdown was
activated.
> del %shutdown%
> goto logfile
>
> :logfile
> echo If you want to have logs in a different directory,
> echo change the 'set logfile' line to reflect the directory name.
> echo Setting INDEX 1-31, and name of log file. Once 31 is reached
> echo all log files are deleted and cycle starts over.
> set index=1
> if exist "%1" == "-e" break
> if exist "c:\rom24\log\1.log" goto 2
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :2
> if exist "c:\rom24\log\2.log" goto 3
> if not exist "c:\rom24\log\2.log"
> set index=2
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :3
> if exist "c:\rom24\log\3.log" goto 4
> if not exist "c:\rom24\log\3.log"
> set index=3
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :4
> if exist "c:\rom24\log\4.log" goto 5
> if not exist "c:\rom24\log\4.log"
> set index=4
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :5
> if exist "c:\rom24\log\5.log" goto 6
> if not exist "c:\rom24\log\5.log"
> set index=5
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :6
> if exist "c:\rom24\log\6.log" goto 7
> if not exist "c:\rom24\log\6.log"
> set index=6
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :7
> if exist "c:\rom24\log\7.log" goto 8
> if not exist "c:\rom24\log\7.log"
> set index=7
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :8
> if exist "c:\rom24\log\8.log" goto 9
> if not exist "c:\rom24\log\8.log"
> set index=8
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :9
> if exist "c:\rom24\log\9.log" goto 10
> if not exist "c:\rom24\log\9.log"
> set index=9
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :10
> if exist "c:\rom24\log\10.log" goto 11
> if not exist "c:\rom24\log\10.log"
> set index=10
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :11
> if exist "c:\rom24\log\11.log" goto 12
> if not exist "c:\rom24\log\11.log"
> set index=11
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :12
> if exist "c:\rom24\log\12.log" goto 13
> if not exist "c:\rom24\log\12.log"
> set index=12
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :13
> if exist "c:\rom24\log\13.log" goto 14
> if not exist "c:\rom24\log\13.log"
> set index=13
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :14
> if exist "c:\rom24\log\14.log" goto 15
> if not exist "c:\rom24\log\14.log"
> set index=14
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :15
> if exist "c:\rom24\log\15.log" goto 16
> if not exist "c:\rom24\log\15.log"
> set index=15
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :16
> if exist "c:\rom24\log\16.log" goto 17
> if not exist "c:\rom24\log\16.log"
> set index=16
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :17
> if exist "c:\rom24\log\17.log" goto 18
> if not exist "c:\rom24\log\17.log"
> set index=17
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :18
> if exist "c:\rom24\log\18.log" goto 19
> if not exist "c:\rom24\log\18.log"
> set index=18
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :19
> if exist "c:\rom24\log\19.log" goto 20
> if not exist "c:\rom24\log\19.log"
> set index=19
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :20
> if exist "c:\rom24\log\20.log" goto 21
> if not exist "c:\rom24\log\20.log"
> set index=20
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :21
> if exist "c:\rom24\log\21.log" goto 22
> if not exist "c:\rom24\log\21.log"
> set index=21
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :22
> if exist "c:\rom24\log\22.log" goto 23
> if not exist "c:\rom24\log\22.log"
> set index=22
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :23
> if exist "c:\rom24\log\23.log" goto 24
> if not exist "c:\rom24\log\23.log"
> set index=23
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :24
> if exist "c:\rom24\log\24.log" goto 25
> if not exist "c:\rom24\log\24.log"
> set index=24
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :25
> if exist "c:\rom24\log\25.log" goto 26
> if not exist "c:\rom24\log\25.log"
> set index=25
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :26
> if exist "c:\rom24\log\26.log" goto 27
> if not exist "c:\rom24\log\26.log"
> set index=26
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :27
> if exist "c:\rom24\log\27.log" goto 28
> if not exist "c:\rom24\log\27.log"
> set index=27
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :28
> if exist "c:\rom24\log\28.log" goto 29
> if not exist "c:\rom24\log\28.log"
> set index=28
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :29
> if exist "c:\rom24\log\29.log" goto 30
> if not exist "c:\rom24\log\29.log"
> set index=29
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :30
> if exist "c:\rom24\log\30.log" goto deletelog
> if not exist "c:\rom24\log\30.log"
> set index=30
> set logfile=c:/rom24/log/%index%.log
> goto run
>
> :deletelog
> cd c:\rom24\log
> copy *.* c:\storage\logbak
> delete *.log
> cd c:\rom24\area
> goto logfile
>
> :run
> echo Running your mud now.
> c:\rom24\AREA\ROM.EXE %port% %logfile%
> echo Checking for shutdown if not present will restart mud.
> if exist "%shutdown%" goto end
> if not exist "%shutdown%" goto pause
>
> :pause
> @echo off
> echo Restart, giving old connections a chance to die (15 seconds).
> echo Pause counter each "." = 5 seconds (using prog called choice.com)
> echo Look at each diffent line to see how many seconds have passed.
> set count_=.
> set target_=...
> :_loop
> echo %count_%
> choice /cb /t:b,5 /n > nul
> set count_=.%count_%
> if not "%count_%"=="%target_%" goto _loop
> goto port
>
> :end
> exit
>
> The only thing is you need a file called choice.com placed in the area
> directory along with your rom.exe. The only files able to be created by
ROM
> is shutdown.txt, bugs, typos I believe. Now with Quickmud bits. I double
> click cygwin, cd c:/rom24/area, type gdb rom.exe, while in gdb window
click
> on console and it gives a prompt <gdb> type run *port # here*. It will run
> with gdb monitoring the .exe. Thats about it.
>
>                                    Dantin
>
> P.S. Sorry for the long post.
>
> ----- Original Message -----
> From: "Dale Kingston" <[EMAIL PROTECTED]>
> To: "Dantin" <[EMAIL PROTECTED]>; "ROM" <[email protected]>
> Sent: Sunday, July 21, 2002 10:37 AM
> Subject: Re: Last post
>
>
> > how do you have cygwin setup cause with mine i have cygwin setup so i
can
> go
> > to my normal dos prompt and use it, with out haveing to go into cygwins
> > little shell thingie.
> >
> > ----- Original Message -----
> > From: "Dantin" <[EMAIL PROTECTED]>
> > To: <[email protected]>
> > Sent: Sunday, July 21, 2002 10:06 AM
> > Subject: Re: Last post
> >
> >
> > >      Well compiling ROM into windows is done through a virtual unix
> > > environment correct? Heres what I do to get this thing going. I
re-wrote
> > the
> > > startup script in a dos batch file. The reboot + shutdown works now as
a
> > > result of this but no clue on how to get the log files working. I have
> to
> > > copy the cygwin1.dll into the area directory. Copy a prog I use in the
> > batch
> > > file for a "sleep" mode called choice.exe. Now for Quickmud I didn't
> have
> > to
> > > mess with srandom or long random because it was allready commented
out.
> > Nor
> > > deal with the adding of #include <crypt.h> into act_info.c and db.c I
> > > believe. I just check those when makefile compiles because it will
whine
> > > about not having crypt properly initialized or something to that
effect.
> I
> > > move -lcrypt to the back part of
> > > rom: $(O_FILES) section, because making through cygwin doesn't
recognize
> > > where its placed by default. Of course I'm just explaining what I
> normally
> > > have to do with a stock rom. Also the removing of the *.o files
doesn't
> > > work. In the C_FLAGS I add -DUnix -DNOCRYPT -DBIT_COMPILE <<<since you
> > have
> > > unlimited bits. Unless this doesn't need to be done. Basically I use
> > > Quickmuds makefile with the C_FLAGS adjustments.
> > >
> > >      I make the appropriate directories ie, player, gods, log. Get
into
> > > cygwin change directory over to mud/src and make. Usually I get a
bunch
> of
> > > errors about else statements and warnings but I went through and put
the
> > > appropriate braces for the else whining and fixed most of the bugs
from
> > the
> > > bugs1.txt and bugs2.txt and darkoths bug txt. No warnings or the like,
> > even
> > > with Unlimited bits. Note: trying to run the mud as a plain old
Windows
> > app
> > > right out of the box with minor changes to C-Flags caused it to crash
> > while
> > > starting up. Always a corrupt stack. Is there any other things I may
do
> to
> > > accomodate the unlimited bits because all those other snippets I
checked
> > > through on quickmud didn't have too much that altered the ROM base as
> much
> > > as Unlimited Bits. I'm not writing to flame this is just a question on
> how
> > > can I keep it stable "without" running it through cygwin's virtual
unix
> > > environment. Thanks for the input so far. Also I did just run gdb
> rom.exe
> > > before because I didn't know about the gdb console.
> > >
> > >                                Dantin
> > >
> > > ----- Original Message -----
> > > From: "Ammaross Danan" <[EMAIL PROTECTED]>
> > > To: <[email protected]>
> > > Sent: Saturday, July 20, 2002 10:29 PM
> > > Subject: RE: Last post
> > >
> > >
> > > > Maybe this needs to be cleared up...
> > > > When you compile the mud in linux and you now have an executable,
you
> > > > can not take that executable and run it in windows, and vise versa.
> > > > (believe it or not, this has to be pointed out sometimes)
> > > > The unlimited bit system has nothing to do with accessing mem
> addresses
> > > > that windows can't hit. Trust me, I should know.
> > > > Last I checked, quickmud w/ unlim bits compiled clean out of the
box.
> > > > >From one of the previous posts, it read like Dantin was typing
> 'rom.exe
> > > > 9000' within gdb... you need to type 'run' and then the arguments
e.g.
> > > > 'run 9000'
> > > >
> > > > > Nobody told me I had to go into console and type what you
suggested
> > > > > before run (port #). The only problem is its not crashing.. Or is
> that
> > > > a
> > > >
> > > > > on windows just to utilize unlimited bits. Why is it that it once
> > > > > compiled it will not run under windows? Well thats my question.
> Thanks
> > > >
> > > > So, you think that you use cygwin to compile the thing, go through
all
> > > > that trouble and then, you can't even use it under windows? Uh
huh...
> > > >
> > > > > program=C:\QUICKMUD\AREA\ROM.EXE cs=017F ds=0187 es=0187 fs=5AAF
> > > >
> > > > Who would want to go through the trouble of moving their exe over to
> the
> > > > area folder every time you made it? Let alone care to... (yes, I
> > > > know...just stick it in the makefile, etc) I just like my exe in the
> src
> > > > folder...keeps things nice and segregated.
> > > >
> > > > Ammaross Danan
> > > >
> > > >
> > > > --
> > > > ROM mailing list
> > > > [email protected]
> > > > http://www.rom.org/cgi-bin/mailman/listinfo/rom
> > > >
> > >
> > >
> > > --
> > > ROM mailing list
> > > [email protected]
> > > http://www.rom.org/cgi-bin/mailman/listinfo/rom
> > >
> >
>
>
> --
> ROM mailing list
> [email protected]
> http://www.rom.org/cgi-bin/mailman/listinfo/rom
>


Reply via email to