ED DB Edit: an SFC/OP game editor

The EDDBEDIT tool allows you to edit single-player or server saved games for SFC EAW and OP.

If you've got any comments or questions, please send them to NuclearWessels at hotmail.com,

thanks, and enjoy! dave


GETTING STARTED

Where to get it: the current version is located here http://www3.telus.net/NuclearWessels/sfc/downloads/EDDBEDIT.exe

Two big things before you fire it up:

  1. Make a backup of the current db files before you let the editor screw with things (the db files include these four: Sfc2Spd.sds, camp.info, db.info, version.info)

  2. To make sure copies of the current shiplist and fighter list are in the same directory as the editor itself (I know I know, that's sloppy, but lots about this thing is !

When you fire the beastie up, it will ask you which file contains the db -- usually Sfc2Spd.sds unless you've been playing with filenames

It will then give you one of three options:

Whichever option you pick, it will ask for the name of the output file. If it's a report, call it WHATEVERYOULIKE.txt otherwise call it WHATEVERYOULIKE.sds (the new cleaned or edited db)

WALKTHROUGH:

If it blows up in that cycle somewhere, let me know what step you were in and send me a copy of the .sds and .info files and I'll see if there are more bugs dwelling in the editor itself.

EDITING THE DB

OK, so you've put the shiplist/ftrlist in place, backed up the current .sds file, fired up EDDBEDIT, and selected the Edit option.

NOTE: one thing I have noticed, is that bugs are more likely to crop up if you do lots of different changes in a single pass. You're probably better off to do the map changes in one run, the player changes in a second run, etc etc.

You'll see a short blurb of stuff scroll past as it reads through the database:

finished reading prelim data
finished reading campaign data
finished reading initial map data
finished reading political data
xxxxx object specified
Getting objects:
finished with input file

After that, you'll see a short disclaimer telling you not to trust this thing, there is no undo facility if you do something unintentional etc, and reminding you to MAKE BACKUPS BEFORE YOU MESS WITH YOUR DB

===============================================
DISCLAIMER:  blah blah blah blah
===============================================

Finally, you'll get to the main edit menu, where you get to pick what kind of mayhem you intend to perform.

Enter Q to quit
   or P to edit a player's statistics or ship
   or T to edit the political tensions
   or M to edit the map
   or C to edit other campaign data
   or S to edit a ship in the shipyards

Whichever action you pick (except quit), you'll come back to this menu once you've finished it.

I'll go through each of the five editing categories seperately

MAP EDITS

OK, so you'd like to edit the map, so you chose the 'M' option above.

You should get a menu looking something like this:

Enter A to modify ALL hexes simultaneously
   or R to modify a rectangular block of hexes
   or I to modify hexes individually
   or Q to quit

If you select A, the (hopefully self-explanatory) options you get are:

Enter R to reset all current hex DVs to fifty percent of their maximum
   or M to set all Econ values to match the hex DV values
   or D to add a fixed amount to all hexes maximum DVs
   or d to add a fixed amount to all hexes current DVs
   or E to add a fixed amount to all hexes maximum Econ
   or e to add a fixed amount to all hexes current Econ
   or I to initialize all DV and Econ values to EDpresents
   (HW:100, Core:50, SB:40, BATS:25, Colony:20, BS:15, Empire:10, Neutral:5)
   or anything else to quit

If you select R, you will be prompted to enter the x and y (column and row) coordinates for the upper left and lower right corners of the map region you would like to modify.

Once you have entered those, the (hopefully self-explanatory) options you are presented with are:

Enter D to set a specific DV value
   or d to change DVs by a set amount
   or E to change Econ by a set amount
   or H to reset all DVs to half of their maximums
   or R to set a specific empire type
   or C to set a specific cartel type
   or T to set a specific terrain type
   or anything else to quit

If you select S, the substitution options you are given are:

Enter B for bases
   or P for planets
   or T for terrain
   or D for max DV
   or E for econ
   or R for race (empire)
   or C for cartel
   or Q to quit
If you select I, you'll be prompted to enter the row and column number of the hex you with to edit, then the options you get are:
Enter R to set the owning race and cartel (will show the current ones)
   or B to set the type of base (will show the current type)
   or P to set the type of planet (will show the current type)
   or T to set the type of terrain (will show the current type)
   or D to set the maximum DV value (will show the current max)
   or d to set the current DV value (will show the current dv)
   or E to set the maximum economic value (will show the current max)
   or e to set the current economic value (will show the current value)
   or C to cancel

Whichever option you pick, you'll be asked to pick from a set of available choices (e.g. 1 for LP, 2 for Defsat, etc) You'll then be given a choice to either continue editing hexes, or dropping back to the main edit menu.

TENSION EDITS

OK, you want to change the alliances in the campaign, so from the edit choices you chose 'T' to edit the political tensions.

You are now given four choices:

Pick what you want to do:
   P - to edit the tensions between a pair of races
   S - to have a race switch sides 
   T - to change the tension level at which races are treated as allies/neutral/enemies
or Q to quit

Each race has an attitude towards each other race, represented as a value in the range 0 (allies) to 1000 (enemies).

If you selected 'P', to edit relationships between a pair of races:

If you selected 'T' to change the neutral/ally/enemy boundaries:

If you selected "s" to have a race switch sides:

CAMPAIGN EDITS

The Campaign Edits ('C' under the main edit menu) handle things such as the mission list, era dates, number of accounts, etc.

Quite a number of misc. items are handled here, but testing of some of them has been rather spotty.

The options you're given should look something like:

Enter D to modify the difficulty level
   or Y to modify the number of turns per year
   or L to modify the length of a turn
   or E to modify the start dates for eras
   or A to modify the maximum number of accounts
   or P to modify the maximum number of people playing
   or C to modify the campaign name and description
   or V to modify the save game version
   or S to modify the single-player captain name
   or T to modify the single-player trigger mission/prestige
   or R to modify the playable race list
   or M to modify the mission list
   or Q to quit

IIRC, there have been bugs noted in removing missions from the mission list (though adding/changing seems ok), and you can get some funky behaviour if you play with the time (turns) settings too much.

Otherwise, hopefully, the fields are mostly self-explanatory

SHIPYARD EDITS

So you chose 'S' to edit ships currently in the shipyards ...

You are asked to enter the ID number for the specific shipyard vessel you wish to edit.

What ID number you ask? Well, to get it, you'll need to run the report option on the database, then go search through the resulting file. Descriptions of shipyard vessels will begin with (surpise) "Shipyard vessel ", followed by a number that is their ID.

Make sure you enter an integer value, or this will crap out on you for sure, and if it finds a vessel with that ID it will give you a chance to perform all sorts of modifications on it (see the notes below on modifying player ships -- the options will be the same).

PLAYER EDITS

OK, you want to edit either a player's account or their current ship(s), so you chose 'P' on the main edit menu.

First, you need the EXACT name of the player whose account you want to modify (correct spelling, capitalization, etc etc).

Note that the database report option produces a list of all players near the start of the report, giving their correct name on the server.

Once you've gotten the name right, you'll be presented with a set of options:

Enter H to modify the hex the character isin
   or R to modify their race
   or G to modify their glicko
   or P to modify their current prestige
   or L to modify their lifetime prestige
   or E to modify their email address
   or N to modify their name
   or K to modify their rank
   or W to modify the hex to treat as their homeworld location
   or S to end this segment and move to to the player's ships

Hopefully most of those are self-explanatory, with additional choices provided in the followup to your selection of course.

Once you're done with the modifications listed, OR if you want to move straight along to modifying the player's ship(s), select the S option.

You'll get a prompt double-checking whether or not you want to edit their ships (sorry, I know the interface really needs cleaning up), e.g.

Ending character modification, moving on to ship modification

Do you wish to edit the player's ship(s)? (Y or N)

SHIP EDITS

OK, you wanted to edit a player's ship(s), so you've gone through all the song and dance in the player edit section above.

Here you're finally presented with a somewhat length menu of choices:

Enter T to assign a new ship type from the shiplist

or R to repair all ship systems or S to supply full load of parts, marines, t-bombs, drones, and fighters or F to modify the ship fighters

or E to edit ship (non-weapon) systems or D to edit existing ship drone systems

or W to edit existing ship weapon (non-drone) systems

or B to edit ship BPV or C to edit ship EPV (economic bpv) or H to modify ship hull class or N to modify ship name or P to change the player race for the ship or Q to quit editing this ship

If you select T then you'll be prompted to enter the new ship type (e.g. R-BH) and all the appropriate ship data will be rewritten based on whatever the shiplist says that ship type should have.

If you select E, D, or W then you'll be asked to make changes to individual ship systems (e.g. the ship currently has 7 boxes of right warp engine, what would you like to change it to?)

Hopefully most of the alterations are, again, reasonably self-explanatory.

If the player has more than one ship, you'll be taken through this menu once for each ship


NukeDocs SFC resources
Dynaverse.net