CIV$ (CIV dollar sign) version 08.01 140717

Dack

Terra Form
Moderator
Joined
Nov 26, 2003
Messages
534
Location
civ dos 474.05
It has been a number of years since I posted a new version.
One of the features that may desirable is the quick start of CIV/Dos.

CIV$ consists of three files
CIV$.EXE
CC.bat
RunCIV.bat


CIV/DOS normality resides in C:\MPS\CIV, I assume that where you have it.
CIV$.EXE and CC.bat must be copied in to the directory / folder the CIV.EXE runs from.
RunCIV.bat should be copied to C:\MPS. It is a two line bat file that you may have to modify.


Code:
cd C:\Program Files\DOSBox-0.73
dosbox -c "mount c c:\mps\civ" -c "c:" -c "cc.bat"

The first line sets the directory to the location of DOSBox. I’m currently using version 0.73. Adjust appropriately.

The second line should remain unaltered if you have CIV/Dos in its traditional location.

The basic design of CIV$ allows the user to switch back and forth from CIV$ to CIV.

CIV$ has three exit point WIN, CIVand DOS.
1. WIN exits DOSBox
2. CIV starts CIV/Dos
3. DOS exits CIV$ into the DOSBox environment.


When you exit CIV/dos, CIV$ will start, this loop continues until you exit CIV$ via the WIN or DOS commands. (When in the DOSBox environment the command CC will return you to CIV$)


July 31, 2014 update CIV$802files.zip
 

Attachments

  • CIV$2014files.zip
    653.7 KB · Views: 402
  • CIV$802files.zip
    653.7 KB · Views: 372
One of the features of this version is the ability to answer the three CIV questions automatically.

The first three questions can be pre answered. So there is no need to answer them each time you play. On my ancient machine the first screen you see is (in four seconds or so)

1) VGA (256 color)
2) MCGA (256 color)
3) EGA (16 color)
4) Tandy 1000 (16 color)

1) No sounds please
2) IBM sounds
3) Tandy sounds
4) AdLib/Sound Blaster
5) Roland MT-32 MIDI board
6) Custom sound driver

1. Mouse and Keyboard
2. Keyboard only

The default is 111. To make your own selection do the following:

On the first page left mouse click on one of the countries.
Click on Misc
On the miscellaneous page click on First Screen button
A yellow box will open up type the 3 digits that corresponds to your choice and hit return. There after when you start CIV these will be the answers to the questions.
 

Attachments

  • xjj2.png
    xjj2.png
    1.9 KB · Views: 296
  • xjj3.png
    xjj3.png
    1.8 KB · Views: 237
Barbarians – making them a non entity

They can controlled by turning off their active bit in the SVE file (offset hex C). Unfortunately they are still spawned by huts and the random actions of CIV/dos. With this they enter the world in a red dwarf stasis state where they are present but don’t move. This can be compensated for by using CIV$, after disabling them with the Barbarians are ON/OFF button you can periodically enter CIV$ and remove them.

The one downside to all of this is that the game cannot end with the barbarians being inactive. So before you finish off that last city you must reactivate the barbarians.

To turn the barbarians ON/OFF
On the miscellaneous page look for the Barbarians are ON/OFF button. Click it to the appropriate setting.

or



To remove the Barbarians units click the Remove button on the first page.
 

Attachments

  • z1.png
    z1.png
    1.7 KB · Views: 1,492
  • z2.png
    z2.png
    1 KB · Views: 1,440
  • z3.png
    z3.png
    1 KB · Views: 1,421
Amazing program! Can I suggest one improvement? Make keyboard shortcuts so you can start civ without using the mouse? That would be great. Thanks.
 
Make keyboard shortcuts so you can start civ without using the mouse?

My first thought was why would one need this as CIV$ in a mouse driven program.
My second thought was how hard would this be.

Apparently four lines of code, F12 will now start CIV.

An undocumented function that I use for testing F11 will produce a text file of the current CIV$ screen C:\mps\CIV\CV$0002.TXT. The files are numbered from 0000 to 9999. The files are best view in notepad with font Terminal. Changes in CIV$802files.zip in first post.



Spoiler :
Code:
>CIV$ C:\mps\civ\                                              ver 08.01 140717 
far mem=180080 stack=2310 expanded mem=14752<===  IDE Mode  ===>                
                                                                                
file date/time     year       People       Leader        Turn   amount          
 30Jul14 20:36  0  1120 AD  English     15               262      419           
 20Jul14  7:05  1  1772 AD  English     11               361     2972           
 20Jul14  6:38  2  1772 AD  English     11               361     3187           
 20Jul14  9:52  3  1772 AD  English     11               361     3187           
 30Jul14  9:37  4  3000 BCE English     15                50      155           
 30Jul14 10:32  5  1220 BCE English     15               139      227           
 30Jul14 15:12  6  1000 BCE English     15               150      197           
 30Jul14 20:00  7     1 AD  English     15               200       74           
 30Jul14 20:24  8  1000 AD  English     15               250      504           
 27Jul14  6:33  9  1500 AD  English     14               300      182           
                                                                                
                                                                                
                                                                                
          People        Amount      Civ Advance Bits     Total   Cities/Units   
       0  Barbarians        0    0000 0000 0000 0000 0000   0                   
       1  Romans         2262    3FFF F75F 3417 0028 0000  36                   
       2  Zulus             3    00A2 8607 0003 0000 0000  11                   
       3  Germans         436    0285 0247 3400 0000 0000  12                   
       4  Aztecs          633    03E7 C74F 3401 4020 0000  24                   
       5  Chinese        1939    33F7 F747 3403 0028 0000  29                   
 You-> 6  English         419    3FB7 F7DF 3416 0023 0000  35                   
       7  Indians          38    02A3 8607 0403 0020 0000  15                   
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
                                                                                
      ÛÛÛÛÛ                  ÛÛÛÛÛÛÛÛÛÛÛÛÛÛ                     ÛÛÛÛÛ  ÛÛÛÛÛÛÛ
 
Thanks, I like to reload often so having a shortcut to start civ saves a great deal of time.

I frequently like to reload, as well. Here's a copy of my civ.bat I use in DOSBox:

Code:
@echo off
cd \civ
stuffkey 141Lc#13
civ.exe
cd \
stuffkey is a DOS freeware program (as shown by running it with "stuffkey /!") that emulates pressing keys. The "141" (one-four-one) portion bypasses the opening choices (same as pressing "1" for VGA, "4" for AdLib/Sound Blaster, and "1" for Mouse and Keyboard, the "L" goes to the load game screen, "c" chooses the drive of your saved games, and "#13" is the code for pressing the enter key. Makes fast restarts painless.

You can find stuffkey within OzWoz Utilities (direct download). The OzWoz page and author links listed there are dead (useless redirects), but the software itself is free to be used and redistributed. I've also attached it to this post in case the aforementioned links die.
 

Attachments

  • STUFFKEY.zip
    10.3 KB · Views: 172
Top Bottom