Apolyton Archive  |  Preserved copy of the Apolyton Civilization Site and its forums as they stood in September 2005. Read-only; nothing here can be posted to or replied to.  |  Forum index |  About this archive |  The 1998–2001 UBB forums
Today on Apolyton WARDELL INTERVIEW PROMO A.C.S. HISTORY CHAPTER 4 GET CIV4 /w FREE PLUS! A.C.S. PHOTO GALLERY GET A.O.M. V1.1
Apolyton Civilization Forums
main| civ2| civ3| civ4| smac| ctp2| ron| moo3| galciv| galciv2| alt| about|
ApolytonPLUS | register | search | faq | new posts | pm (-/-) | upload | members
hall of fame new! | civgroups | civgroups news | interviews | the column | radio | chat | directory | news | store | PLUS
Apolyton Civilization Forums : Powered by vBulletin version 2.0.3 Apolyton Civilization Forums > Miscellaneous > Archive > Scenario League / Civ2-Creation -Archive > Windows 2000 & Batch Files
Show a Printable Version | Email This Page to Someone! | Receive updates to this thread | Report this to Apolyton news!

bottom of page
  
Author
Thread    < Last Thread     Next Thread > Post New Thread     Post A Reply
Kull is offline Kull

King
El Paso, TX USA
Mar 1999
time: 22:13
Question  Old Post 10-10-2000 07:44 Visit Kull<br><a href=/members><img src=/forums/images/lifer-icon.gif border=0></a><BR>'s homepage!
Edit/Delete Message Reply w/Quote
#1 Report this post to a moderator
Windows 2000 & Batch Files Tired of ads?

Just wondering if anyone else has noticed that Scenario Batch files don't work under Windows 2000? Neither does Delevent.exe, which is the REAL problem. One can read the Batch file and manually perform the required text and gif/bmp substitutions, but there's no workaround for Delevent.

Has anyone else encountered (and more importantly, solved) this problem? I suppose one could manually strip out the events with a hex editor, but I shudder to think of hex-editing Second Front eleven times during one game. Gakkk!!

William Keenan is offline William Keenan
Prince
New Jersey, USA, Earth, Sol, Milky Way
Sep 1999
time: 00:13
Unhappy  Old Post 10-10-2000 08:08 Visit William Keenan's homepage!
Edit/Delete Message Reply w/Quote
#2 Report this post to a moderator
Support Apolyton, buy GURPS/ Alpha Centauri

Windows 2000 is, in reality, Windows NT version 5. Unlike Windows 95/98, Windows 2000 has no legacy support. In other words Windows 2000 can not run programs designed for DOS or 16-bit Windows.

Since delevents.exe is a DOS app it can not, nor will it ever, run on Windows 2000. Same goes for batch files. Since Hasbro now owns Microprose there is no hope what-so-ever of a 32-bit version of delevents.

The only way to use the legacy stuff is if you switch back to Windows 98 or to have a duel boot system.

Xin Yu is offline Xin Yu
King
Emeryville, CA, USA
Jan 1970
time: 21:13
Talking  Old Post 10-10-2000 08:55 Visit Xin Yu's homepage!
Edit/Delete Message Reply w/Quote
#3 Report this post to a moderator
Support Apolyton, pre-order Civilization IV

To get around the batch file problem: you can cut and copy the corresponding parts of the batch file and run it.

To get around the delevent problem, open cheat mode and save the file as a scenario.

Allard HS is offline Allard HS
Prince
NL
Jan 1970
time: 06:13
Post  Old Post 10-10-2000 17:00 Visit Allard HS's homepage!
Edit/Delete Message Reply w/Quote
#4 Report this post to a moderator
Support Apolyton, buy Civilization 2

Also, removing the events by hex-editing is very easy. Just open the file in your editor, search for EVNT (if I'm not mistaken), and delete everything from that point onwards.
Maybe someone could make a program to do that automatically, so that we have a delevents in windows.

Dusty is offline Dusty
Settler

Mar 2000
time: 05:13
Post  Old Post 11-10-2000 09:21
Edit/Delete Message Reply w/Quote
#5 Report this post to a moderator
Support Apolyton, buy Civilization 2

I want to clarify something: at first I thought this thread was saying that Windows NT doesn't support batch files. But this is not true, Windows NT 4.0 supports batch files and delevent.exe. I just verified this myself. However, I can't speak for Windows 2000.

So, can you play classic Civ2 or fantastic worlds on Windows 2000? I believe both have old 16 bit cold, so I suspect that if they work, delevent.exe should work. Does Windows 2000 have a command prompt? If so, I suspect that it should be possible to run batch files from the command prompt. If it's not possible, then maybe I won't upgrade from NT 4. (Man I wish Civ3 will support Linux )



------------------
Dusty

Kull is offline Kull

King
El Paso, TX USA
Mar 1999
time: 22:13
Post  Old Post 12-10-2000 03:01 Visit Kull<br><a href=/members><img src=/forums/images/lifer-icon.gif border=0></a><BR>'s homepage!
Edit/Delete Message Reply w/Quote
#6 Report this post to a moderator
Increase the size of your Attachments

Dusty: Civ2 FW definitely works on Win2000. I did a little more testing, and found something interesting. If you "drag&drop" a file onto delevent, a dos-box opens, you get a blinking cursor, and then the box closes and nothing happens. BUT if you go straight to the command line and type in the action (delevent sf.sav), it works!

Batch files are a different story. Whether you doubleclick them OR run them from the command line, what you get is a box that flashes open, a brief look at the text, and then it closes immediately. My guess is that some command is needed to force the thing to stay open long enough for you to type in a choice.

So it looks like Win2000 isn't fully incompatible, but it's not real civ friendly, either. If anyone can suggest a command which would solve the Batch file-closing problem, let me know and I'll test it out.

Dusty is offline Dusty
Settler

Mar 2000
time: 05:13
Post  Old Post 12-10-2000 09:01
Edit/Delete Message Reply w/Quote
#7 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

Kull, just because the window closes quickly, are you sure the batch file isn't doing what it's supposed to be doing? It might be do what it's supposed to, but not have enough time to print a message out.

If it isn't working, here are some other things that might work.

Try using call or start to run the batch file. IE

"call a.bat"
or
"start a.bat"

Call is used within batch files to call other batch files. Start is used in NT 4.0 to open a batch file in another window (but doesn't close the window under NT 4.0).

If all else fails, try editing the batch file and putting a "pause" at the end. This should make the window stay open until you press a key.

I hope this helps.


------------------
Dusty

Miner is offline Miner
Prince
of London
Jul 1999
time: 05:13
Exclamation  Old Post 15-10-2000 17:04 Visit Miner's homepage!
Edit/Delete Message Reply w/Quote
#8 Report this post to a moderator
Support Apolyton, buy Civilization: The Boardgame

quote:

Originally posted by Kull on 10-11-2000 06:01 PMBatch files are a different story. Whether you doubleclick them OR run them from the command line, what you get is a box that flashes open, a brief look at the text, and then it closes immediately. My guess is that some command is needed to force the thing to stay open long enough for you to type in a choice.


I don't think this is a problem as such. I don't actually own W2K, but my work PC is NT4 (and as correctly pointed out W2K is 'just' NT5).
I have noticed that (on my NT4 PC) if you run a command by going Start>Run then the command does run in a DOS window but closes immediately after execution - but the command has worked - it is just that a modern PC is so quick the command is run and the DOS window closed in a fraction of a second, which is what I believe is happening here.
Try doing Start>Run on a W2K PC and typing command (not a command, just the word command). If you get a DOS window then it does indeed support the old 16bit commands.
Don't forget that NT4 is pure 32bit - when running the DOS box you are not really running DOS as on a W9x but just emulating it. I will be very suprised if W2K does not emulate DOS in the same way.

Miner is offline Miner
Prince
of London
Jul 1999
time: 05:13
Arrow  Old Post 18-10-2000 00:03 Visit Miner's homepage!
Edit/Delete Message Reply w/Quote
#9 Report this post to a moderator
Support Apolyton or Terrorists Win

Kull

I have confirmed with a man in the know (software engineer and W2K deployer) that W2K does have a command prompt and runs all the old commands. There is even a scheduling of batch files (the at command, blatantly swiped off UNIX).
Anything I can do to help??

CapTVK is offline CapTVK
King
Voorburg, the Netherlands, Europe
Jan 1970
time: 05:13
Question  Old Post 19-10-2000 02:32 Visit CapTVK's homepage!
Edit/Delete Message Reply w/Quote
#10 Report this post to a moderator
Got spare money?

I have a question about running a batchfile with user input (menu) in a dosbox under WinNT 4.0. Everytime I try to start the the SF.bat for second front I'm immediately booted out. I can't select anything from the menu!

Is there a special delay command you can use here?

Kull is offline Kull

King
El Paso, TX USA
Mar 1999
time: 22:13
Post  Old Post 19-10-2000 07:43 Visit Kull<br><a href=/members><img src=/forums/images/lifer-icon.gif border=0></a><BR>'s homepage!
Edit/Delete Message Reply w/Quote
#11 Report this post to a moderator
Increase Your PM Length

Thanks to everyone for your responses. It looks like the problem has narrowed down to the situation described by CapTVK: The batch file opens and closes before the user can respond.

It's not a problem for me anymore, since I picked up a new laptop and reverted back to Win98. That also means I can't test any of the suggestions that have been offered. But the ones from Dusty are worth trying, CapTVK. In order, I suggest you try:

1) Open the dosbox, get to the correct directory, and type Start sf.bat

2) If that doesn't work, edit the batch file and put "Pause" at the end. Hopefully that will keep it open until you make your selection.

Please let us know if you have success (or failure) with either method. I'm sure the subject will come up again, and it would be nice to have a solution handy!

Miner: You mentioned running NT 4.0 on your system. Have you had the same problem with Batch files that CapTVK described?
[This message has been edited by Kull (edited October 18, 2000).]

Xin Yu is offline Xin Yu
King
Emeryville, CA, USA
Jan 1970
time: 21:13
Post  Old Post 19-10-2000 11:34 Visit Xin Yu's homepage!
Edit/Delete Message Reply w/Quote
#12 Report this post to a moderator
Full PM-box? Change here!

CapTVK: as my previous post mentioned you can open the batch file, select the corresponding part, and copy it to another file then run it. I have NT too and that's what I do.

Kull is offline Kull

King
El Paso, TX USA
Mar 1999
time: 22:13
Post  Old Post 19-10-2000 12:15 Visit Kull<br><a href=/members><img src=/forums/images/lifer-icon.gif border=0></a><BR>'s homepage!
Edit/Delete Message Reply w/Quote
#13 Report this post to a moderator
Support Apolyton, buy Galactic Civilizations: Deluxe Edition

Xin: I'm kind of slow, so I had NO idea what you were talking about in the original post. But at last the concept has penetrated my thick skull. (it must be D20, H4)

For example, if the batch file offers 4 choices, you would cut out the commands for Part 1 and create a "Part One Batch File". And then create three additional batch files for parts 2 thru 4. Yes, that too would work!

CapTVK is offline CapTVK
King
Voorburg, the Netherlands, Europe
Jan 1970
time: 05:13
Thumbs up  Old Post 20-10-2000 01:16 Visit CapTVK's homepage!
Edit/Delete Message Reply w/Quote
#14 Report this post to a moderator
Support Apolyton buy from Amazon

Making multiple batch files for the different parts of the scenario seems to be the best solution. I had hoped I could use the original SF.bat. But it isn't too much hassle.

Thanks for the advice.

Miner is offline Miner
Prince
of London
Jul 1999
time: 05:13
  Old Post 20-10-2000 01:17 Visit Miner's homepage!
Edit/Delete Message Reply w/Quote
#15 Report this post to a moderator
Support Apolyton, buy Civilization III: Complete

Kull

Unfortunately my NT PC is my work PC no chance of trying it there (no Civ )but I was referring to batch files in general.

Working on it... back later...

  < Last Thread     Next Thread > Post New Thread     Post A Reply
All times are GMT. The time now is 05:13.
Apolyton Time is 00:13.
    top of page
Rate This Thread:
archivepost
Forum Jump:
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is ON
vB code is ON
Smilies are ON
[IMG] code is ON
 




Contact Us - Apolyton Civilization Site - Support Us!

Building a better Apolyton through better information. Click here and take our poll!
Non-US visitors, click here!

Powered by: vBulletin Version 2.0.3
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Page generated in 0.0519 seconds (89.22% PHP - 10.78% MySQL) with 31 queries
Page Loading Time:

Support Apolyton: Amazon USA | Amazon UK | Amazon DE | Amazon FR |
Support Apolyton and get FREE PLUS, Buy from Chips&Bits: Galactic Civilizations | Galactic Civilizations: Deluxe Edition | Call to Power 2 | Civilization: The Boardgame | GURPS/ Alpha Centauri | Alpha Centauri | Civilization IV | Civilization III: Complete |


Front Page | Civilization IV | Civilization III | Civilization II | Call to Power II | Alpha Centauri | Master of Orion III
Rise of Nations | Galactic Civilizations | Galactic Civilizations II | Misc
Alt.Civs | Civ I | C:CtP I | About | News | Directory | Apolyton Store | Forums | Chat | Columns | Interviews | Newsletter
Scenario League | CSC | Clash of Civs | Spanish Site | CtP Maps | Cradle of Civ | WesW's Ctp1/2 Site | Civ3 Haven

apolyton.net | apolyton.com | civilization2.net | civilization3.net | civilization4.net | civilizationiv.info | calltopower.net | galciv.net | galciv2.net | moo3.net