VGAP4 Assistant v1.43

by Rick Glover aka Magik

 

The VGAP4 Assistant utility is a simple console application that, when run, will perform a series of tasks against exported CSV files from VGA Planets 4.  Below is a list of those tasks:

This task also creates wings from existing fighters at bases.  High Guard are put onto the wing(s) if there are any at any bases.  There is a limit to the size of wings (10000) in the Master.EXE, so if there are more than this many available then multiple wings will be created.  Remove these wings from the script if they are not wanted.  Look for “Leftovers” in the script.

 

Installation

            To install this program, copy the VGAP4Assistant.EXE and QV4Data.EXE files into your VGA Planets 4 installation folder.  They can be downloaded from Klingon Kommand.  Direct link: here.

 

Execution

            To start the utility, double click on VGAP4Assistant.EXE from the installation folder.  An MS-DOS console will open and close.  The process is then complete.  You should have first prepared the CSV files (see below).  Here is what was done:

 

How To Get The CSV Files

To export CSV files, simply open the VGA Planets 4 client (PLANETS.EXE), select your slot, player, and press Play Saved File as normal.  Once you have the game in view, press the OPT button on the toolbar then press the Make CSV File button.  The CSV files and a descriptive text file are immediately written to your installation folder.  The files are: CSVInfo.txt, Planet.csv, Ship.csv, Base1.csv, Base2.csv, Base3.csv, Base4.csv, and Base.csv.  The Base.csv file is broken up into 4 parts (due to the large amount of data) for you so that it they can open in a spreadsheet program.  The VGAP4Assistant utility will not use the extra 4 Base files, but will use all of the others.  If you are sharing files with friends then make sure to include the CSVInfo.txt file along with the Planet, Base, and Ship CSV files.

 

(Optional) Player Configuration File

You have the option of creating a configuration file to provide VGAP4Assistant with data that is not available in the CSV files.  That data is:

 

To provide this data, create a text file named playerX.cfg where X is your player number in the game.  Put this file in the directory created by VGAP4Assistant for your game.  For example, I would create a text file named player1.cfg and put it in VGAP4Assistant\Greener Recruits_ID48430097 for my Greener Recruits game on Drewhead’s since I am player 1 in that game.  The contents of that file need to be formatted as shown below.  This example shows a 15 player game with various examples.

It is recommended that at a minimum, the [players] area be provided.  The rest of the data is for the “offer suggestions” portion of the code.

 

#

# This file is manually generated by the VGAP4Assistant user.  Use the

# instructions for each heading to provide information to the utility.

#

 

# Instructions: For players, list the race pack number for each player in

# order so that the first race pack number is player 1, the next player 2, etc.

#

# Description: This will provide the utility with information about racial

# special abilities of enemies and allow a host script to be generated

# properly.

[players]

109

802

104

102

803

803

109

111

808

110

810

110

108

808

107

 

# Instructions: For allies, list the player numbers of those you are allied

# with.

#

# Description: This will skip attack and defense suggestions against these

# players' ships and bases.

 

[allies]

7

8

14

15

 

# Instructions: For tax rate, place the tax code according to the chart below.

#

# Chart:

#      Ultra Conservative   1

#      Conservative         2

#      Liberal                    3

#      Complex                    4

#      Enslavement          5

#

# Description: This will provide the utility with information how much income

# you are generated at your bases.

[tax rate]

1

 

# Instructions: For shipyards, list the base ID numbers.

#

# Description: This will generate suggestions to have nearby bases send metals

# to shipyards.

[shipyards]

501

507

514

646

699

 

# Instructions: For front line bases, list the base ID numbers.

#

# Description: This will generate suggestions to have nearby bases with

# repair, fuel, and ordnance to send it to the front line bases.

[front line bases]

1512

1637

 

# Instructions: For training bases, list the base ID numbers.

#

# Description: This will generate suggestions to have colonists, crew, troops,

# high guard and food/contraband sent to provide a proper training facility.

[training bases]

1665

 

# Instructions: Enter the file name of the map that this game is played on.

#

# Description: This will provide information to correct the names of planets

# gathered from the CSV files and to put all planets in that are missing from

# scanned information in the game.

[map]

echo

 

# Instructions: Enter the contraband prices for the current turn of the game.

#

# Description: This will provide information to track the return of investment

# on contraband purchases.  VGAP4Assistant will assume that any new contraband

# in a base that wasn’t on the planet is purchased contraband.

[contraband]

#Illegal Books

2.95

#VR-6x Holochips

9.84

#Stim-Bright Pills

4.94

#Grecken Blood Wine

12.13

#Emotion Chips

8.47

#Handguns

3.49

#Illegal Music CDs

3.06

#Kerria Crystal Artifacts

13.52

#Lerchin Spices

2.29

#Alpha Wave Floggers

5.33

#Vaggen War Hounds

2.23

#Repterrian Psi-Geese

6.87

 

Change Log

9/16/2005        v1.43   Changed planet serial numbers to -1 for those that are imported from the game map.  Fixed the read_game_map routine so that it reads all planets properly.  Changed the directory creation from being an external system() call to an internal _mkdir() call.  This cleaned up some of the messages in the output.  Implemented code to fix the default base names of “Base Sigma ????” to be “Base Sigma 1212” to match the planet that they are on.

9/12/2005        v1.42   Fixed some issues with the comparison data.  Released suggestions to the public.

8/2/2005          v1.41   Fixed some issues with the creation of the Big Bang script.

7/29/2005        v1.4     Added feature to compare previous turn’s data for ships, bases, and planets.

5/30/2005        v1.31   Added support to get race data from v4face2.dll.

5/24/2005        v1.3     Special thanks to Paul Honigmann for making a wrapper to the v4face2.dll file: qv4data.exe.  This allowed me to write code to gather hull information and set the ship crew to maximum (ship crew is not included in the CSVs from Planets4.exe).  A hull table is written to the VGAP4Assistant output folder, which contains the currently scanned hulls in the game you are processing.

5/24/2005        v1.21   A game map file is now written as a text file to the VGAP4Assistant output folder.

5/21/2005        v1.2     Added in the option to allow the user to tell VGAP4Assistant through the playerX.cfg file which map you are using.  This allowed the correction of planet names and adding in missing planets.

5/5/2005          v1.12   “Soil = x” wasn’t documented for host scripts, but was discovered to work by testing.  That is now implemented.

4/29/2005        v1.11   Stand-off range, attack plan, weapon switches, attack vector, and attack enemy settings were not being put into the host scripts properly.  Fixed.

4/29/2005        v1.1     Added creation of “Big Bang” script to put all ships and fighters from bases into the same location in space.

4/28/2005        v1.0     Public release.  Initial version.

 

Known Issues

 

Todo