• Blitz Shadow Player
  • Caius
  • redboot
  • Rules
  • Chain of Command
  • Members
  • Supported Ladders & Games
  • Downloads


Dynamic CS
09-23-2008, 07:22 AM,
#10
RE: Dynamic CS
The process that I am working with is:
1) Scenario designer designs the scenario files, when done (s)he drops the complete .SCN file onto a little app that creates a .DSC file for that scenario using the default values that the designer created.
2) The designer opens the .DSC in Excel (or notepad for that matter) and edits the contents as needed. (S)he then packages the scenario files .SCN .ORG .MAP and .DSC into a .ZIP file for distribution.
[Note: the .DSC file has a format that looks like -
Trees Ground ... Visibility Allied Arty Ammo ... Night ...
0 0 0 ... 20 80 ... 1 ...
1 0 0 ... 20 80 ... 1 ...
2 0 0 ... 20 80 ... 0 ...
3 0 0 ... 10 70 ... 0 ...
4 3 0 ... 6 60 ... 0 ...
5 3 3 ... 4 50 ... 0 ...
...
N ... ]
Thus the scenario starts at night, dawn breaks, snow starts to fall so the trees get snow on them and the visibility falls and finally the ground is snow covered. All the while the allied arty ammo level is falling as the rear areas are given the order to retreat.

The players get a package which comprises an installer that patches the west front.exe, east front.exe and rising sun.exe, the dcs.exe .DSC file processor that does the work, an uninstaller and a sample scenario.

The patch simply calls the DSC processor before calling wf.exe, etc. The DSC processor looks for a .DSC file with the same name as the .ORG file of the scenario being played. If there is one then the DSC processor simply calls the appropriate CS application as usual and the user experience remains as it was. If the processor finds an appropriate .DSC file then it interprets the data for this turn, updates the .BTL or .BTE file (those are the saved battle files, the former for play against the AI, the latter for an email opponent) and then invokes the CS application. In this case the player may notice a slight delay as the CS application launches. If this delay becomes noticeable I will throw up a dialog informing the player of what is going on.

This may be more noticeable in the case of arty ammo level. This is because I will have to check to see if I have processed the file already for this turn, and if not I will have to scan though the file to identify arty that have fired in the beginning of the turn and arty that are low on ammo in order to recalculate their ammo status.

Jonathan
Quote this message in a reply


Messages In This Thread
Dynamic CS - by umbro - 09-20-2008, 04:30 AM
RE: Dynamic CS - by Von Luck - 09-20-2008, 05:34 AM
RE: Dynamic CS - by Jason Petho - 09-20-2008, 06:49 AM
RE: Dynamic CS - by junk2drive - 09-20-2008, 11:39 AM
RE: Dynamic CS - by umbro - 09-20-2008, 01:34 PM
RE: Dynamic CS - by junk2drive - 09-20-2008, 03:13 PM
RE: Dynamic CS - by Huib Versloot - 09-20-2008, 08:27 PM
RE: Dynamic CS - by umbro - 09-22-2008, 02:46 PM
RE: Dynamic CS - by Huib Versloot - 09-23-2008, 03:23 AM
RE: Dynamic CS - by umbro - 09-23-2008, 07:22 AM
RE: Dynamic CS - by junk2drive - 09-23-2008, 10:56 AM
RE: Dynamic CS - by umbro - 09-23-2008, 11:14 AM
RE: Dynamic CS - by junk2drive - 09-30-2008, 11:43 AM
RE: Dynamic CS - by R-TEAM - 10-01-2008, 10:41 AM
RE: Dynamic CS - by umbro - 10-03-2008, 03:44 AM
RE: Dynamic CS - by junk2drive - 12-25-2008, 11:15 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)