home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-385-Vol-1of3.iso / s / sre0990a.zip / UNPACK.EXE / DOCS / RESOURCE.DOC < prev    next >
Text File  |  1993-01-09  |  22KB  |  468 lines

  1.                        ┌────────────────────────┬──────────────────────────┐
  2. ───────────────────────┤                        │                          │
  3.   ─────────────────────┤   SOLAR REALMS ELITE   │  Resource.DAT Reference  │
  4.     ───────────────────┤                        │                          │
  5.       ─────────────────┼────────────────────────┴──────────────────────────┤
  6.         ───────────────┤                                                   │
  7.           ─────────────┤ * Format of the Resource.DAT file                 │
  8.             ───────────┤                                                   │
  9.               ─────────┤ * Different Resource.DAT files for each node      │
  10.                 ───────┤                                                   │
  11.                   ─────┤ * System settings                                 │
  12.                     ───┤                                                   │
  13.                       ─┤ * Game settings                                   │
  14.                        │                                                   │
  15.                        │ * Menu customization                              │
  16.                        │                                                   │
  17.                        │ * Example color / menu customization              │
  18.                        │                                                   │
  19. ───────────────────────┴───────────────────────────────────────────────────┴─
  20.   FORMAT
  21. ─────────────────────────────────────────────────────────────────────────────
  22.  
  23. The Resource.DAT file has on each line a parameter name on the left and
  24. value(s) on the right.
  25.  
  26. Strings (text) should be enclosed in double quotes.
  27.  
  28. Numbers can be put in decimal or hexadecimal.  To enter a hexadecimal value,
  29. prefix the number with '0x'.  (This is the format used by the C programming
  30. language.)  The number 256 can be entered in hex with 0x100.
  31.  
  32. Boolean values can be entered in many ways:
  33.         TRUE can be any of
  34.                 true  t  1  on  yes
  35.         FALSE can be any of
  36.                 false f  0  off  no
  37.  
  38. You can comment out a line by putting ";" as the first character.  SRE will
  39. ignore all lines that don't make sense to it, but they take up memory unless
  40. you put the ";".
  41.  
  42. You can enter any of the Boolean-values resources on the command line.  For
  43. example, if you want to run with Special Effects ON, you can do any of the
  44. following:
  45.  
  46.         SRE /SpecialEffects
  47.         SRE /SpecialEffects=T
  48.         SRE /SpecialEffects=1
  49.         SRE /SpecialEffects=Y
  50.  
  51. If you wanted to turn them OFF, you can do
  52.  
  53.         SRE /NoSpecialEffects
  54.         SRE /SpecialEffects=F
  55.         SRE /SpecialEffects=0
  56.         SRE /SpecialEffects=N
  57.  
  58. ─────────────────────────────────────────────────────────────────────────────
  59.   MULTIPLE RESOURCE FILES
  60. ─────────────────────────────────────────────────────────────────────────────
  61.  
  62. If you have multiple nodes, you may want to have different settings on each
  63. node.  For example, if you have a high speed node 1 and a low speed node 2,
  64. you can create a RESOURCE.DAT with all the common options, and a RESOURCE.1
  65. for node 1 and RESOURCE.2 for node 2.  Then, in your batch file that runs
  66. SRE, you can tell SRE to read the extra Resource file with:
  67.  
  68.         SRE -n1
  69.  
  70. or
  71.  
  72.         SRE -n2
  73.  
  74. Things that you may want to do are turn OFF special effects on high speed
  75. systems and set the locked baud rate.  If you're bored, you can even define
  76. different color sets for each node!
  77.  
  78. ─────────────────────────────────────────────────────────────────────────────
  79.   SYSTEM SETTINGS
  80. ─────────────────────────────────────────────────────────────────────────────
  81.  
  82. CheckTimeLimit : Boolean = no
  83.    Would you like SRE to read the time limit from the doorfile?  SRE
  84.    expects the value in minutes; if your value is in seconds, SRE will
  85.    give your users 60 times as much time as they should have.  I will
  86.    add an option if there is a demand for it to take the value in
  87.    seconds instead of minutes.  DORINFO1.DEF and DOOR.SYS both give
  88.    time values in minutes.
  89.  
  90. LockBaudRate : Number = none
  91.    You should use this to tell SRE at which speed your modem is locked.
  92.    If you ran the INSTALL program, it has set this value for you.
  93.  
  94. ComN : (port) Number (interrupt level) Number
  95.    You can define Com1 through Com8.  Normally, COM1 through COM4 are
  96.    already defined.  You don't have to mess with this unless your COM
  97.    port isn't the standard port 3F8/2F8/3E8/2E8 with IRQ 3/4/3/4.  Example:
  98.               Com7                    0x3E8 4
  99.  
  100. TimeOut : Number = 300 seconds
  101.    This is the number of seconds to wait before printing the warning
  102.    "30 seconds before timeout!".  30 seconds past the amount you specify
  103.    here, SRE will return to the BBS.
  104.  
  105. ExtendedSwapping : Boolean = no
  106.    If this is 'yes', SRE will attempt to swap to extended memory instead
  107.    of disk.  This or ExpandedSwapping will speed up the game a bit.
  108.  
  109. ExpandedSwapping : Boolean = no
  110.    If this is 'yes', SRE will attempt to swap to expanded memory instead
  111.    of disk.  If both Extended and Expanded options are selected, SRE
  112.    will first try extended, and if that fails, it will try expanded.
  113.  
  114. StatusBar.Game.Name : String = ""
  115.    If you want some sort of name to show up on the status bar, put it
  116.    here.  This is so that if you run many games, you can 'name' each one
  117.    so that you'll know which one is running by looking at the status bar.
  118.    For example, if you're running a contest, you could write "Contest"
  119.    in this string to have the status bar display that the game is a contest
  120.    game.
  121.  
  122. StatusBar.Background : Number = 2
  123.    You can change the status bar background color!  I know that the default
  124.    green looks terrible on many systems; the "Display.VGA" makes it more
  125.    readable, but if you don't want to use that option, you can change it
  126.    here.  The background color can be from 1 to 6.  If you try other numbers,
  127.    there will be unpredictable results!
  128.  
  129. Output.Comma : Boolean = yes
  130.    If 'yes', commas are shown for numbers 5 or more digits long.  If 'no',
  131.    no commas are output.  If you wish, you can specify a one-character
  132.    string as a replacement for the comma.  For example, in many countries,
  133.    the convention is to use a period (".") instead of a comma; to do this,
  134.    you can use:
  135.         Output.Comma                    "."
  136.  
  137. Output.Time.Separator : String = ":"
  138.    Time is usually shown as "hh:mm"; you can change this for your country's
  139.    conventions to any other one-character string.
  140.  
  141. Output.Time.24Hour : Boolean = no
  142.    If you set this to 'yes', times will be shown in 24-hour format instead
  143.    of AM/PM format.
  144.  
  145. Display.VGA : Boolean = no
  146.    If 'yes', SRE will change the colors using the VGA's palette switching
  147.    capabilities.  If you don't want the colors changed, or if you are
  148.    running a multitasking system where the change in colors will affect
  149.    other programs on the screen, leave this off.
  150.  
  151. System.BlankLocalScreen : Boolean = no
  152.    If 'yes', SRE will blank the local screen while a remote user is playing
  153.    the game, so that the sysop won't be able to watch the user play.
  154.  
  155. System.Unregistered : Boolean = no
  156.    If 'yes', it indicates that you do not plan to register this game.
  157.    SRE will no longer display "This game is unregistered" before the
  158.    user returns to the BBS.
  159.  
  160. UserBreak : Boolean = yes
  161.    If 'yes', SRE will allow the user to break out of the program with ^C
  162.    or ^D.  If your users are abusing this feature, you can disable it.
  163.  
  164. System.SaveOften : Boolean = yes
  165.    If 'yes', SRE will save the user's data often.  If 'no', SRE will run
  166.    faster because it won't be saving 20 times a turn.  If you find that
  167.    your users are cheating by hanging up, you may want to turn this on.
  168.  
  169. SpecialEffects : Boolean = on
  170.    For locked baud rates, it's not always good to keep special effects
  171.    (the pause cursor) on, since it might overflow the modem buffer and
  172.    cause sluggish displays for users on at low speed.  You should try
  173.    leaving it on, and if users complain, then turn it off.
  174.  
  175. Display.Video : String = "direct"
  176.    If you set this to "bios", SRE will write to the BIOS instead of to
  177.    the screen.  It makes it "well-behaved" according to DesqView and
  178.    MS-Windows.
  179.  
  180. ANSI : Boolean (or -1) = -1
  181.    The default is -1; if you set 'yes' or 'no', SRE will force ANSI or
  182.    non-ANSI modes.
  183.  
  184. IBMCharacters : Boolean (or -1) = -1
  185.    The default is -1; if you set 'yes' or 'no', SRE will force output
  186.    of IBM characters or output of only the low part of the ASCII set.
  187.    (If you like to experiment, try running with ANSI, but without
  188.    IBMCharacters to see some unusual combinations!)
  189.  
  190. System.Multitasker : Boolean = false
  191.    If you are running a multitasking system, you may want to _try_ this
  192.    option.  I have not tested it too much, but it is supposed to make the
  193.    game give up CPU cycles to DESQview, MS-Windows, or OS/2.  This should
  194.    speed up the system because it won't be sitting in busy loops waiting
  195.    for input.
  196.  
  197.    Be warned!  This option may not do anything for you!!!  Try it and
  198.    watch to see if it messes anything up!
  199.  
  200. Game.Log : String = none  (filename)
  201.    If you want to record the last user's actions, you can define a LOG
  202.    file.  This will write everything the user does into the file you
  203.    specify.  Each time SRE runs, it will overwrite the previous LOG
  204.    file, so if you wish to preserve them all, you can add to your
  205.    batch file:
  206.                         TYPE logfile.LOG >>allusers.LOG
  207.  
  208. Local : Boolean = off
  209.    If this is 'on', SRE will force local play, regardless of the COM
  210.    port specified in the doorfile.
  211.  
  212. ─────────────────────────────────────────────────────────────────────────────
  213.   GAME SETTINGS
  214. ─────────────────────────────────────────────────────────────────────────────
  215.  
  216. Diplomacy : Boolean = on
  217.    If this is 'off', no diplomacy will be allowed.  Remember that diplomacy
  218.    is required for trading, so trading will be effectively disabled as well.
  219.  
  220. Treaty.Neutrality       : Boolean = on
  221. Treaty.FreeTrade        : Boolean = on
  222. Treaty.MinorAlliance    : Boolean = on
  223. Treaty.ArmedDefense     : Boolean = on
  224. Treaty.CruiserDefense   : Boolean = on
  225. Treaty.TotalDefense     : Boolean = on
  226. Treaty.Break            : Boolean = on
  227.    These control which treaty options are allowed.  By default, all of
  228.    them are shown on the menu (they are all 'on').
  229.  
  230. Attacks.Nuclear  : Boolean = yes
  231. Attacks.Chemical : Boolean = yes
  232.    These control (individually) whether nuclear & chemical attacks are
  233.    enabled.  These work ONLY if you are registered.
  234.  
  235. Attacks.Maximum : Number = -1
  236.    This is the number of attacks (other than pirate raids) that a player
  237.    may make in each maintenance interval (usually a day).  -1 is no limit.
  238.  
  239. FoodMarket.Name : String = "the Solar Food Market"
  240.    This is the name of the food market.  It defaults to "the Solar
  241.    Food Market".
  242.  
  243. Messages : Boolean = yes
  244.    If 'no', messages are disabled.
  245.  
  246. Trading : Boolean = yes
  247.    If 'no', trading is disabled.
  248.  
  249. Trade.Expire : Integer = 4
  250.    This is the number of days a trading deal can sit there before being
  251.    sent back to the sender.  This prevents empires from keeping their
  252.    items in a trade deal for a long time, because they don't have to pay
  253.    for maintenance while it's in trading.
  254.  
  255. Scores.File.ANSI : String = "SRESCORES.ANS"
  256. Scores.File.Text : String = "SRESCORES.TXT"
  257.    You can define where to write SRE's score files.  If you set one or both
  258.    to an empty string ( "" ), SRE will not write that score file.
  259.  
  260. DeleteDeadPlayers : Boolean = yes
  261.    If this is 'yes', the maintenance will delete dead and non-active players
  262.    so that your game will not become cluttered with empires.  If you are
  263.    running a tournament, you may wish to set this to 'no' so that players
  264.    that are dead are left on the scores list.
  265.  
  266. InactiveTimeOut : Integer = 10
  267.    This is the number of days for which a player can be inactive before
  268.    getting automatically deleted by SRE.  This prevents the game from
  269.    filling up with players that never play.
  270.  
  271. News.FailedCovertOps : Boolean = true
  272.    If this is 'true', the News Team will report all failed covert operations
  273.    in the News file.  This will allow all players to know who has been
  274.    performing covert ops.  However, it may clutter up your news file, so you
  275.    may want to remove it.
  276.  
  277. News.AttackVictim : Boolean = true
  278.    If this is 'true', the news files will have the name of the person who
  279.    was attacked.  Some sysops do not want this in the news file because
  280.    other players will see that the victim is weak and attack him.  This
  281.    creates the 'vulture syndrome', where all the players attack that empire
  282.    until it collapses.
  283.  
  284. News.PirateRaids : Boolean = false
  285.    If this is 'true', news files will have pirate raids in them.
  286.  
  287. Points.SolarMaster : Number = 5
  288. Points.PlanetMaster : Number = 1
  289. Points.WeaponsMaster : Number = 1
  290.    At the end of each day, the system may pick a "Solar", "Planet", and
  291.    "Weapons" Master.  These are the players with the most score, planets,
  292.    and net worth, respectively.  If you have set up a tournament, the
  293.    player is given points for being a Master for a day.  You can change
  294.    the settings here.  For example, if you wish to base the tournament
  295.    purely on size, you can set the SolarMaster and WeaponsMaster points
  296.    to 0.  At the end of the tournament, the empires are ranked based on
  297.    the number of points they have accumulated.
  298.  
  299. ─────────────────────────────────────────────────────────────────────────────
  300.   MENU CUSTOMIZATION
  301. ─────────────────────────────────────────────────────────────────────────────
  302.  
  303. One new feature of SRE 0.990 is the ability to modify all of the menus!
  304. All of the menu resources have the this format:
  305.  
  306. Menu.«MenuName».Title                        title
  307. Menu.«MenuName».Colors                       (t l b k d c1 c2)
  308. Menu.«MenuName».«Item».Name                  description
  309. Menu.«MenuName».«Item».Colors                (b k d c1 c2)
  310.  
  311. The title and description are strings; the rest are numbers from 1 to 15,
  312. where   t = title
  313.         l = line
  314.         b = brackets
  315.         k = key
  316.         d = description
  317.         c1 = column 1
  318.         c2 = column 2
  319.  
  320. If you set the Menu.«MenuName».Colors, it will be the default color set
  321. for that menu, unless you have defined colors for the menu items, or if
  322. SRE has set colors for an item.  The ordering is:
  323.  
  324.                 SRE's default menu color
  325.                 Your menu color
  326.                 SRE's color for each item [only used on select items]
  327.                 Your color for each item
  328.  
  329. Not all menus have two extra columns; if you define colors for them, they
  330. will be ignored.  If you set the description to "", the menu item will be
  331. accessible but it will not be displayed on the menu.  Some menu items are
  332. invisible, but you can find them below and make them visible by setting
  333. their descriptions to non-empty strings.  (Visit bank and See covert ops)
  334.  
  335. The Menu names and valid item numbers (and actions, where the key pressed
  336. is not the same as the action number) are:
  337.  
  338. System          1 2 3 4 13(Preferences)
  339. Sysop           1 2 3 6 7 10(Empire edit) 11(Player edit) 12(Pirate edit)
  340. Galaxy          1 2 3 4 5 6 7 8 9 10(Join game) 11(Tournament results)
  341. Operations      2 3 4 5 6 7 8 9 10(Advisors) 11(Tax rate) 12(Production)
  342.                 13(Preferences) 14(Instructions) 15(Help) 16(Abdicate)
  343. Preferences     2 3 4 6 7
  344. Production      1 2 3 4 8 9
  345. Diplomacy       1 2 3 4 5 6 7 8 9
  346. Covert          1 2 3 4 5 6 7 8 9 80(Visit bank) 81(See covert ops)
  347. DoubleSpy       1 2 3 80(Visit bank) 99(Quit)
  348. Attack          1(Conventional) 2(Guerilla) 3(Pirate Raid) 4(Spy on Pirates)
  349.                 5(Nuclear) 6(Chemical) 80(Visit bank)
  350. Pirates         1 2 3 4 5 6 7 8 9
  351. PirateSpy       1 2 3 4 5 6 7 8 9 100(Header line)
  352. Buying          1 2 3 4 5 6 7 8 9 100(Header line) 10(Sell) 11(Operations)
  353.                 80(Visit bank) 99(Quit)
  354. Selling         1 2 3 4 6 7 8 9 100(Header line) 10(Buy) 11(Operations)
  355.                 80(Visit bank) 99(Quit)
  356. BuyPlanets      0 1 2 3 4 5 6 7 8 9 (Planets P E T F R O G U S A)
  357. SellPlanets     0 1 2 3 4 5 6 7 8 9 (Planets P E T F R O G U S A)
  358. Trading.Offer   1 2 4 6 7 8 9 100(Header line)
  359. Trading.Demand  1 2 4 6 7 8 9 100(Header line)
  360. Bulletins       [1 through the number of bulletins]
  361. Help            [1 through the number of help topics]
  362.  
  363. The Bulletins and Help menus are special in that
  364.     1   They don't have keys, so the key color and bracket color are
  365.         ignored.
  366.     2   The help topic / bulletin name is column #1, and the number
  367.         is the 'description', so please keep that in mind when
  368.         assigning colors.
  369.  
  370. The Production menu isn't really a menu, but it is displayed as if it
  371. were one, so you can still change the colors.
  372.  
  373. There are over 19 menus and 150 menu items available --- and you can change the
  374. color and text of each one!!!  (Have fun!)
  375.  
  376. ─────────────────────────────────────────────────────────────────────────────
  377.   EXAMPLE OF NEW MENUS
  378. ─────────────────────────────────────────────────────────────────────────────
  379.  
  380. This set of resources will make your SRE game look like BRE!!!
  381.  
  382. ; BRE-Emulator is just a hack right now; in the future, it will
  383. ; be expanded so that you can define your own text substitutions.
  384. ; For example, SRE could be translated to another language by
  385. ; writing text and substitutions that are to be made from English
  386. ; to the other language.
  387. BRE-Emulator                            yes
  388. StatusBar.Background                    1
  389.  
  390. Menu.Galaxy.Title                       "BRE Emulator"
  391. Menu.Galaxy.Colors                      (15 1 1 9 15)
  392. Menu.Galaxy.4.Name                      "Play Game"
  393. Menu.Galaxy.5.Name                      "Empire Status"
  394. Menu.Bulletins.Title                    "List of Bulletins"
  395. Menu.Bulletins.Colors                   (7 1 - - 7 15)
  396. Menu.Diplomacy.Title                    "Diplomacy Menu"
  397. Menu.Diplomacy.Colors                   (15 2 2 10 7)
  398. Menu.Diplomacy.5.Name                   "Tank Defense Plan"
  399. Menu.Diplomacy.7.Name                   "Declaration of War"
  400. Menu.Production.Title                   "Industrial Production"
  401. Menu.Production.Colors                  (15 4 - - 7 14 7)
  402. Menu.Production.1.Name                  "Troops"
  403. Menu.Production.2.Name                  "Jets"
  404. Menu.Production.3.Name                  "Missile Bases"
  405. Menu.Production.4.Name                  "Commanders"
  406. Menu.Production.8.Name                  "Tanks"
  407. Menu.Buying.Title                       "Spending Menu"
  408. Menu.Buying.Colors                      (15 4 4 12 15 14 15)
  409. Menu.Buying.1.Name                      "Troops"
  410. Menu.Buying.2.Name                      "Jets"
  411. Menu.Buying.3.Name                      "Missile Bases"
  412. Menu.Buying.4.Name                      "Commanders"
  413. Menu.Buying.5.Name                      "HeadQuarters"
  414. Menu.Buying.6.Name                      "Regions"
  415. Menu.Buying.8.Name                      "Tanks"
  416. Menu.Buying.10.Name                     "Sell"
  417. Menu.Buying.10.Colors                   (4 12 15 14 15)
  418. Menu.Buying.11.Name                     "System Menu"
  419. Menu.Buying.11.Colors                   (4 12 15 14 15)
  420. Menu.Selling.Title                      "Spending Menu"
  421. Menu.Selling.Colors                     (15 4 4 12 15 14 15)
  422. Menu.Selling.1.Name                     "Troops"
  423. Menu.Selling.2.Name                     "Jets"
  424. Menu.Selling.3.Name                     "Missile Bases"
  425. Menu.Selling.4.Name                     "Commanders"
  426. Menu.Selling.8.Name                     "Tanks"
  427. Menu.Selling.10.Name                    "Sell"
  428. Menu.Selling.10.Colors                  (4 12 15 14 15)
  429. Menu.Selling.11.Name                    "System Menu"
  430. Menu.Selling.11.Colors                  (4 12 15 14 15)
  431. Menu.BuyPlanets.Title                   "Regions"
  432. Menu.BuyPlanets.Colors                  (7 13 5 15 14 15)
  433. Menu.SellPlanets.Title                  "Regions"
  434. Menu.SellPlanets.Colors                 (7 13 5 15 14 15)
  435. Menu.Operations.Title                   "System Menu"
  436. Menu.Operations.Colors                  (15 1 1 9 15)
  437. Menu.Operations.Columns                 1
  438. Menu.Covert.Title                       "Covert Operations"
  439. Menu.Covert.Colors                      (15 3 3 11 15 7)
  440. Menu.Attack.Title                       "Attack Menu"
  441. Menu.Attack.Colors                      (14 6 6 15 7)
  442. Menu.Pirates.Title                      "Select Pirate Team"
  443. Menu.Pirates.Colors                     (15 8 7 15)
  444. Menu.Trading.Offer.Title                "Stuff to Send"
  445. Menu.Trading.Offer.Colors               (7 6 6 14 15 12 15)
  446. Menu.Trading.Offer.1.Name               "Troops"
  447. Menu.Trading.Offer.2.Name               "Jets"
  448. Menu.Trading.Offer.3.Name               "Missile Bases"
  449. Menu.Trading.Offer.4.Name               "Commanders"
  450. Menu.Trading.Offer.8.Name               "Tanks"
  451. Menu.Trading.Demand.Title               "Stuff to Demand"
  452. Menu.Trading.Demand.Colors              (7 6 6 14 15 12)
  453. Menu.Trading.Demand.1.Name              "Troops"
  454. Menu.Trading.Demand.2.Name              "Jets"
  455. Menu.Trading.Demand.3.Name              "Missile Bases"
  456. Menu.Trading.Demand.4.Name              "Commanders"
  457. Menu.Trading.Demand.8.Name              "Tanks"
  458. Scores.Colors.Title                     14
  459. Scores.Colors.Line                      6
  460. Scores.Colors.Key                       15
  461. Scores.Colors.Brackets                  6
  462. Scores.Colors.Col0                      7
  463. Scores.Colors.Col1                      14
  464. Scores.Colors.Col2                      15
  465. Scores.Colors.Col3                      4
  466.  
  467.  
  468.