home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / wps / games / spl / spl.inf (.txt) < prev    next >
OS/2 Help File  |  1993-08-11  |  12KB  |  272 lines

  1.  
  2. ΓòÉΓòÉΓòÉ 1. Introduction and Copyright ΓòÉΓòÉΓòÉ
  3.  
  4.                             Spellbook Control Program
  5.  
  6.                                      spl.exe
  7.  
  8.                                    Version 1.0
  9.  
  10.                                      8/10/93
  11.  
  12.                      Copyright (C) 1993 John-Marc Chandonia
  13.  
  14. For suggested enhancements and bug reports, please mail 
  15. chandoni@husc8.harvard.edu or write: 
  16.  
  17.                                John-Marc Chandonia
  18.                              7 Divinity Avenue, #121
  19.                               Cambridge, Ma. 02138
  20.  
  21. This is spl, a program for handling spells and spellbooks from various fantasy 
  22. role-playing (FRP) games.  It can handle both mage and priest spells for TSR's 
  23. AD&D (a trademark of TSR, Inc) game, and can easily be expanded to handle other 
  24. systems as well. In addition to possibly being useful to FRP players and GM's, 
  25. the source may be useful to OS/2 2.x programmers learning about containers, 
  26. MLE's, and PM programming in general. 
  27.  
  28. This program is free software; you can redistribute it and/or modify it under 
  29. the terms of the GNU General Public License as published by the Free Software 
  30. Foundation; either version 2 of the License, or (at your option) any later 
  31. version. 
  32.  
  33. This program is distributed in the hope that it will be useful, but WITHOUT ANY 
  34. WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
  35. PARTICULAR PURPOSE.  See the GNU General Public License for more details. 
  36.  
  37. You should have received a copy of the GNU General Public License along with 
  38. this program; if not, write to the Free Software Foundation, Inc., 675 Mass 
  39. Ave, Cambridge, MA 02139, USA. 
  40.  
  41.  
  42. ΓòÉΓòÉΓòÉ 2. Release Notes ΓòÉΓòÉΓòÉ
  43.  
  44. This is the first public release of the program, and therefore probably has 
  45. many more bugs than I know about!  Known bugs are listed in the file bugs.txt. 
  46. If you find any more, please either fix them yourself and send me the patch 
  47. (sure!) or report the bug to the address given above. 
  48.  
  49. I will put all future versions of this program on the OS/2 anonymous ftp site, 
  50. currently ftp-os2.cdrom.com. If you distribute any enhanced versions of this 
  51. program, please do the same.  Also, please comment any changes in the source 
  52. code, and describe them in the file changes.txt. 
  53.  
  54.  
  55. ΓòÉΓòÉΓòÉ 3. Using the program ΓòÉΓòÉΓòÉ
  56.  
  57. This section describes how to install and use the program. 
  58.  
  59.  
  60. ΓòÉΓòÉΓòÉ 3.1. Installation ΓòÉΓòÉΓòÉ
  61.  
  62. Unzip the zip file in some directory.  If you want, create a program object for 
  63. the file spl.exe, If you don't plan to look at the source code, you can delete 
  64. the src directory... this is not needed to run the program. 
  65.  
  66. Check out the file splbook.all, which contains pointers to all spellbooks which 
  67. will comprise the master spell list. Click here for more information. 
  68.  
  69. Also, look at the file splicon.res which contains a mapping of sphell spheres 
  70. and schools to icons. Click here for more information. 
  71.  
  72. You already know how to view the docs; to run the program, just run spl.exe. 
  73.  
  74.  
  75. ΓòÉΓòÉΓòÉ 3.2. Master spell list ΓòÉΓòÉΓòÉ
  76.  
  77. The file splbook.all contains a list of spellbooks which make up the master 
  78. spell list. These spellbooks should contain full spell listings.  This is 
  79. important because other spellbooks are by default saved only as lists of 
  80. titles, which are then looked up in the master spell list as the spells are 
  81. loaded in. 
  82.  
  83. The format of this file is just a list of other files.  To place a comment in 
  84. this list, start the line with a semicolon. 
  85.  
  86.  
  87. ΓòÉΓòÉΓòÉ 3.3. Icon mapping ΓòÉΓòÉΓòÉ
  88.  
  89. The file splicon.def contains a mapping of spell schools and spheres to icons. 
  90.  
  91. Spells in a book are shown with an icon which corresponds to their sphere (if 
  92. given) or school (if no sphere is available).  This file contains a list of 
  93. text strings to look for in the schools and spheres, and a list of icons they 
  94. correspond to.  If a spell matches two or more text strings, the first one 
  95. found is used. 
  96.  
  97. The format of the file is a text string (containing no spaces), then a space, 
  98. then the path name of an icon file to use.  Comments are allowed, as long as 
  99. they begin with a semicolon. 
  100.  
  101.  
  102. ΓòÉΓòÉΓòÉ 3.4. File menu ΓòÉΓòÉΓòÉ
  103.  
  104. From this menu, you can load and save spellbooks, or create new spellbooks. 
  105. Loading a spellbook will create a new window. 
  106.  
  107. Spellbooks can be loaded and saved in two ways.  The menu options "Load 
  108. Spellbook" and "Save Spellbook" only save lists of spells, which are looked up 
  109. in the master list.  The options referring to the "full" spellbook save the 
  110. entire text of spells. 
  111.  
  112.  
  113. ΓòÉΓòÉΓòÉ 3.5. Spell menu ΓòÉΓòÉΓòÉ
  114.  
  115. These options are only available if the book is writeable (i.e. not the master 
  116. spell list).  These options allow you to add new spells (use Drag and Drop 
  117. instead) or delete spells from a book. 
  118.  
  119.  
  120. ΓòÉΓòÉΓòÉ 3.6. Book menu ΓòÉΓòÉΓòÉ
  121.  
  122. These are more detailed descriptions of options under the book menu. 
  123.  
  124.  
  125. ΓòÉΓòÉΓòÉ 3.6.1. Find subset ΓòÉΓòÉΓòÉ
  126.  
  127. This brings up a dialog which allows you to search through the spells in the 
  128. book (window) and bring up a new book (window) which contains the results of 
  129. the search. 
  130.  
  131. Spells can be sorted on several fields, with the results OR'ed or AND'ed 
  132. together depending on the buttons in the lower left corner of the dialog.  Case 
  133. sensitivity is also optional.  Most of the fields just want you to enter text. 
  134.  
  135. The "level" field allows you to enter a number for the spell level, such as "5" 
  136. to select all 5th level spells.  It also allows you to enter things like ">5" 
  137. or "<5" to select all spells higher or lower than a certain level. 
  138.  
  139. The "description" field allows you to enter several lines of text instead of 
  140. only one.  All lines entered are searched for in the spell descriptions, with 
  141. the results OR'ed or AND'ed together according to the button pushed on the 
  142. right. 
  143.  
  144. Searches go faster with case sensitivity enabled.  Also, searches go faster if 
  145. the program doesn't have to search through entire spell descriptions... limit 
  146. using the other fields if possible. 
  147.  
  148.  
  149. ΓòÉΓòÉΓòÉ 3.6.2. Sort spellbook ΓòÉΓòÉΓòÉ
  150.  
  151. This sorts the spellbook, priest spells before mage spells, then in 
  152. alphabetical order. 
  153.  
  154.  
  155. ΓòÉΓòÉΓòÉ 3.6.3. Rename spellbook ΓòÉΓòÉΓòÉ
  156.  
  157. This renames the spellbook... it does not change the actual name of the file 
  158. the spellbook is saved in, only the name which appears at the top of the 
  159. window. 
  160.  
  161.  
  162. ΓòÉΓòÉΓòÉ 3.7. Drag and Drop ΓòÉΓòÉΓòÉ
  163.  
  164. To copy spells between windows (spellbooks), drag them with the right mouse 
  165. button.  You can select several spells with the left button.  Dragging can also 
  166. be used to reposition spells within a window. 
  167.  
  168.  
  169. ΓòÉΓòÉΓòÉ 3.8. Looking at a spell ΓòÉΓòÉΓòÉ
  170.  
  171. To look at one spell in detail, double click on it.  This brings up a window 
  172. which is pretty self-explanatory.  Use ALT-N or ALT-P as a shortcut to go to 
  173. the next or previous spell in the book. 
  174.  
  175. You can copy text from spells onto the clipboard using the usual methods.  You 
  176. can even edit and change spells, although this doesn't work very well and will 
  177. probably require you to go in and fix the saved text file with an editor. 
  178.  
  179. Any file you change and save is saved in the file splbook.chg. 
  180.  
  181.  
  182. ΓòÉΓòÉΓòÉ 4. Source information ΓòÉΓòÉΓòÉ
  183.  
  184. This is information on the source code. 
  185.  
  186.  
  187. ΓòÉΓòÉΓòÉ 4.1. Miscellaneous ΓòÉΓòÉΓòÉ
  188.  
  189. The source is written in C++ for the IBM C++ compiler; it will probably work 
  190. with other compilers, although I haven't tested this.  You need a C++ compiler 
  191. and a resource compiler to compile the dialogs and menus. 
  192.  
  193. The makefile is compatible with GNU's make. 
  194.  
  195. You need an IPF compiler (IPFC) to compile the documentation. 
  196.  
  197.  
  198. ΓòÉΓòÉΓòÉ 4.2. general.cpp ΓòÉΓòÉΓòÉ
  199.  
  200. This file contains some generally useful functions which are called from the 
  201. rest of the code. 
  202.  
  203. There are 3 error functions, "fatal", "error", and "warning", indicating 
  204. various levels of severity.  These are pretty useless in a PM program. 
  205.  
  206. There is a memory allocation function, which is pretty useless for a C++ 
  207. program.  (Just use "new" instead) 
  208.  
  209. There are 2 string functions to capitalize and uncapitalize a string... these 
  210. are rarely found in C libraries, so they're included here.  These actually get 
  211. used in the code. 
  212.  
  213.  
  214. ΓòÉΓòÉΓòÉ 4.3. splbook.cpp, .hpp ΓòÉΓòÉΓòÉ
  215.  
  216. These files contain the C++ classes for handling spells and spellbooks, and 
  217. contain no OS/2-specific or PM-specific information.  Routines for reading and 
  218. writing spells out of files are given. 
  219.  
  220. Note that the classes are set up to allow later addition of psionic disciplines 
  221. as a subclass of the general spell.  This is why the "magespell" class contains 
  222. things like "school" and so forth that you would normally associate with all 
  223. spells. 
  224.  
  225. If you want to change this program to change the format of how spells are read 
  226. in and out (for example to use this program with another FRP system) this is 
  227. the file to change. It is also the most portable to other systems besides OS/2. 
  228.  
  229.  
  230. ΓòÉΓòÉΓòÉ 4.4. spl.cpp, .hpp ΓòÉΓòÉΓòÉ
  231.  
  232. This is the main file that puts up menus and windows, allows direct 
  233. manipulation and so forth... all functions are commented so experienced 
  234. programmers should be able to find their way around. 
  235.  
  236. There is a class called "spellwindow" which is the window that shows a list of 
  237. spells and their icons.  This window uses a container to display the icons.  A 
  238. double-linked list of all active spellwindows is pointed to by the variable 
  239. "first". 
  240.  
  241. There is also a class called "slwindow" (clever, huh?) which shows one 
  242. individual spell when you double-click on it.  This window uses a multi-line 
  243. entry field (MLE) to display the spell.  A linked list of these is pointed to 
  244. by "firstspell". 
  245.  
  246. Naturally, this is really confusing and I'll try to clean things up in a later 
  247. version of the program! 
  248.  
  249.  
  250. ΓòÉΓòÉΓòÉ 5. Planned enhancements ΓòÉΓòÉΓòÉ
  251.  
  252. These are things I plan to add to the program in the future, both in order to 
  253. give it more functionality, and in order to learn more about PM programming 
  254. myself.  If you would like to help me out with any of these, please let me know 
  255. what you're working on. 
  256.  
  257. Better error handling. 
  258.  
  259. On-line help from within the program. 
  260.  
  261. More views of the main container window... text view, details view, and large 
  262. icon view should all be options. 
  263.  
  264. More ways to sort spellbooks. 
  265.  
  266. Allowing users to edit spells in a way that actually works. 
  267.  
  268. More drag and drop stuff... should allow you to drop a text file into a spell 
  269. window and read it in.  Also, should allow you to drag a spell onto the printer 
  270. and print it.  Drag and drop icon assignment would also be cool. 
  271.  
  272.