ftp.nice.ch/pub/next/games/board/Risk.0.97.s.tar.gz#/RiskSource0.97/Risk/Help/05_Technical.rtf

This is 05_Technical.rtf in view mode; [Download] [Up]

Risk
Technical Help

This section of the help deals with some technical issues which most people won't be particularly interested in.

Application Defaults

Risk stores default preference information in the NextStep default database.  The following options are capable of being used, though not all of them are necessarily written to the database unless they are changed from their default values.  All default values are stored as strings though some are interpreted as other data types.

countryBorderWidth:  This default is interpreted as a single floating point value.  It is the point size of the the line width used for drawing the country borders.  This option is settable from the Preferences Panel.  It is not saved unless the Set button is pressed.  If not present the default value is "2.0".
countryBorderColors:  This default is interpreted as six comma separated floating point values.  The first three represent the red, green, and blue, components of the color used to draw the country borders when not hilited.  The second three are red, green, and blue for the color used to draw country borders when they are hilited.  If not present the default value is "0.0, 0.0, 0.0, 1.0, 1.0, 1.0".
playerColors:  This default is interpreted as 18 comma separated floating point values.  Taken three at a time they are red, green, and blue components for the default player colors (six sets of three floats).  If not present the default value is "0.9, 0.9, 0.9, 0.8, 0.8, 0.8, 0.66, 0.66, 0.66, 0.33, 0.33, 0.33, 0.15, 0.15, 0.15, 0.0, 0.0, 0.0,".
playerNames:  This default is a comma separated list of six strings.  They are the default names of the players.  If not present the default value is "Dopey, Sneezy, Grumpy, Doc, Bashful, Sleepy".
setupOptions:  This default is a comma separated series of four integers.  They represent which radio button is selected by default for the following options:  InitialCountry Distribution (0=Player's Choose, 1=Random), Initial Army Placement (0= By Ones, 1= By Threes, 2= By Fives), Card Set Redemption (0= 4, 5, 5, 5..., 1= 4, 5, 6, 7..., 2= 4, 6, 8, 10...), and the Fortify Rule (0= the first rule, 1= the second, 2= the third, 3= the fourth).  If not present the default value is "0, 1, 0, 2".

In case you are wondering why so many options are lumped together in some of these defaults, I thought that it would be better to have a handful of defaults instead of dozens even if it meant a little extra decoding for me.  In actuality the parsing is done completely by sscanf, so it's not really that inconvenient.

These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.