ifmapper 1.2.5 → 1.2.6

Sign up to get free protection for your applications and to get access to all the features.
data/IFMapper.gemspec CHANGED
@@ -1,14 +1,19 @@
1
1
  require "rubygems"
2
+ require 'bundler/setup' # Releasy doesn't require that your application uses bundler, but it does make things easier.
3
+ require 'releasy'
4
+
5
+ VERSION = '1.2.6'
2
6
 
3
7
  spec = Gem::Specification.new do |spec|
4
8
  spec.name = "ifmapper"
5
- spec.version = '1.2.5'
9
+ spec.version = VERSION
6
10
  spec.author = "Gonzalo Garramuno"
7
11
  spec.email = 'ggarra13@gmail.com'
8
12
  spec.homepage = 'http://www.rubyforge.org/projects/ifmapper/'
9
13
  spec.summary = 'Interactive Fiction Mapping Tool.'
10
14
  spec.require_path = "lib"
11
- spec.files = ['IFMapper.rbw'] + ['bin/IFMapper'] +
15
+ spec.executables = "IFMapper"
16
+ spec.files = ['IFMapper.rbw'] + ['bin/IFMapper'] +
12
17
  ['IFMapper.gemspec'] +
13
18
  Dir.glob("lib/IFMapper/*.rb") +
14
19
  Dir.glob("lib/IFMapper/locales/*/*.rb") +
data/bin/IFMapper CHANGED
@@ -1,37 +1,36 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
-
4
3
  # cd to install path, so modules are found locally
5
- install_loc = $0.sub(/\/?[^\/]*$/, '')
4
+ install_loc = __FILE__.sub(/\/?[^\/]*$/, '')
5
+ install_loc = __FILE__.sub(/\/bin\/.*$/, '')
6
6
  install_loc = '..' if install_loc == '.' or install_loc == ''
7
+
7
8
  Dir.chdir(install_loc)
8
- $LOAD_PATH << './lib'
9
+ $LOAD_PATH << "./lib"
9
10
  require 'IFMapper/FXMapperWindow'
10
11
 
11
- if __FILE__ == $0
12
- # Make application
13
- application = FXApp.new("IFMapper", "gga")
14
-
15
- # Make window
16
- m = FXMapperWindow.new(application)
17
-
18
- # Create the application windows
19
- application.create
20
-
21
- # Optionally, open a map from command-line
22
- file = FXMapperWindow::default_options['Map']
23
- if file
24
- m.open_file(file)
25
- end
26
-
27
- # Run the application
28
- begin
29
- application.run
30
- rescue => e
31
- m.autosave
32
- $stderr.puts e
33
- $stderr.flush
34
- raise e
35
- end
12
+ # Make application
13
+ application = FXApp.new("IFMapper", "gga")
14
+
15
+ # Make window
16
+ m = FXMapperWindow.new(application)
17
+
18
+ # Create the application windows
19
+ application.create
20
+
21
+ # Optionally, open a map from command-line
22
+ file = FXMapperWindow::default_options['Map']
23
+ if file
24
+ m.open_file(file)
25
+ end
26
+
27
+ # Run the application
28
+ begin
29
+ application.run
30
+ rescue => e
31
+ m.autosave
32
+ $stderr.puts e
33
+ $stderr.flush
34
+ raise e
36
35
  end
37
36
 
data/docs/en/start.html CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  <head>
4
4
  <meta http-equiv="Content-Language" content="es">
5
- <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
5
+ <meta name="generator" content="Bluefish 2.2.2" >
6
6
  <meta name="ProgId" content="FrontPage.Editor.Document">
7
7
  <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
8
8
  <title>Interactive Fiction Mapper</title>
@@ -112,7 +112,8 @@ in the early stages of development of new games (for either Inform6 or TADS3).</
112
112
  <li>Ability to easily move rooms in map with arrow keys</li>
113
113
  <li>Written in a simple and great scripting language (Ruby)</li>
114
114
  <li>Acrobat PDF output</li>
115
- <li>Can read and save IFM files</li>
115
+ <li>Can read and save IFM files</li>
116
+ <li>Can read and save Trizbort maps</li>
116
117
  <li>Can read and save Inform/TADS3 source code files</li>
117
118
  <li>Locking of maps</li>
118
119
  <li>Search for keywords in room names, objects or tasks</li>
@@ -134,21 +135,19 @@ Installer from:<br>
134
135
  http://rubyforge.org/projects/rubyinstaller/</a></p>
135
136
  <p>This installer comes with the latest stable ruby version and also with the
136
137
  latest fxruby.&nbsp; It also comes with rubygems (see rubygems later).</p>
137
- <p>If your platform is Linux or OSX, you may need to compile ruby from source
138
- (note that OSX currently comes with ruby pre-installed, but a pretty old version),
139
- albeit you might want to surf the web or do a search for some binaries first, so
140
- you save yourself the hassle.&nbsp; For details on compiling ruby, see:</p>
141
- <p><a href="http://www.rubygarden.org/ruby?RubyOnMacintosh">
142
- http://www.rubygarden.org/ruby?RubyOnMacintosh</a><br>
143
- <a href="http://www.rubygarden.org/ruby?RubyOnLinux">
144
- http://www.rubygarden.org/ruby?RubyOnLinux</a></p>
145
- <p>After you have ruby up and running, you should then proceed to install fxruby.&nbsp;
138
+ <p>If your platform is Linux or OSX, you may need to obtain ruby from your repositories.</p>
139
+ <p>For example on Ubuntu:</p>
140
+ $ sudo apt-get install ruby
141
+ <p>OSX currently comes with ruby pre-installed, which although it is a tad old will work fine for IFMapper.
142
+ </p>
143
+ <p><br>
144
+ <p>After you have ruby up and running, you should then proceed to install Fox and FXruby.&nbsp;
146
145
  You can do this by first installing rubygems (what I'd recomment) or by not
147
146
  using it.&nbsp; If you want to use rubygems, proceed to the &quot;Using Rubygems&quot;
148
147
  section.</p>
149
148
  <p>FXRuby can be found at:<br>
150
149
  <a href="http://www.fxruby.org">http://www.fxruby.org</a></p>
151
- <p>After you have fxruby installed, you should then be able to install ifmapper.</p>
150
+ <p>After you have fxruby (which requires the Fox toolkit) installed, you should then be able to install ifmapper.</p>
152
151
  <p>&nbsp;</p>
153
152
  <p><b><a name="Installing from a zip file">Installing from a zip file</a></b></p>
154
153
  <p>After you have ruby and fxruby properly installed, download the ifmapper zip
@@ -355,7 +354,8 @@ community.&nbsp; IFMapper can read:<br>
355
354
  - .ifm files (Dave Chapeski's IFM, a popular free Unix mapping/walkthru tool)<br>
356
355
  - .gmp file (GUEmap's maps, a commercial mapping tool for Windows)<br>
357
356
  - .inf files (Inform6 source code files)<br>
358
- - .inform files (Inform7 source code files)<br>
357
+ - .inform files (Inform7 source code files)<br>
358
+ - .trizbort files (Trizbort map files)<br>
359
359
  - .t3m or .t files ( TADS3 makefiles or source code files )</p>
360
360
  <p><br>
361
361
  <b><font size="4"><a name="Locking Maps">Locking Maps</a></font></b><br>
@@ -0,0 +1,517 @@
1
+ <html>
2
+
3
+ <head>
4
+ <meta http-equiv="Content-Language" content="es">
5
+ <meta name="generator" content="Bluefish 2.2.2" >
6
+ <meta name="ProgId" content="FrontPage.Editor.Document">
7
+ <meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
8
+ <title>Interactive Fiction Mapper</title>
9
+ </head>
10
+
11
+ <body>
12
+
13
+ <p align="center"><b><font color="#000080"><u><font size="5">Interactive</font><font size="5">
14
+ Fiction Mapper (IFMapper)<br>
15
+ </font></u><font size="5">by Gonzalo Garramu�o</font></font></b></p>
16
+ <p align="center"><b><u><font size="4" color="#000080">User's</font><font size="4" color="#000080">
17
+ Manual</font></u></b></p>
18
+ <ol>
19
+ <li><a href="#Introduction">Introduction </a>
20
+ <ul>
21
+ <li><a href="#What are Interactive Fiction Games">What are Interactive
22
+ Fiction Games?</a></li>
23
+ <li><a href="#What is IFMapper">What is IFMapper?</a></li>
24
+ <li><a href="#Features of IFMapper">Features of IFMapper</a><br>
25
+ &nbsp;</li>
26
+ </ul>
27
+ </li>
28
+ <li><a href="#Installation">Installation</a><ul>
29
+ <li><a href="#What youll need">What you'll need</a></li>
30
+ <li><a href="#Where to get the stuff">Where to get the stuff</a></li>
31
+ <li><a href="#Installing from a zip file">Installing from a zip file</a></li>
32
+ <li><a href="#Installing or Upgrading using rubygems">Installing or
33
+ Upgrading using rubygems</a><br>
34
+ &nbsp;</li>
35
+ </ul>
36
+ </li>
37
+ <li><a href="#Starting IFMapper">Starting IFMapper</a><br>
38
+ &nbsp;</li>
39
+ <li><a href="#Using IFMapper">Using IFMapper</a><ul>
40
+ <li><a href="#The Interface">The Interface</a></li>
41
+ <li><a href="#Navigation">Navigation</a></li>
42
+ <li><a href="#Creating Locations">Creating Locations</a></li>
43
+ <li><a href="#Creating Connections">Creating Connections</a></li>
44
+ <li><a href="#Deleting Rooms or Connections">Deleting Rooms and Connections</a></li>
45
+ <li><a href="#Complex Connections">Creating Complex Connections</a></li>
46
+ <li><a href="#Moving Rooms in Map">Moving Rooms Around</a></li>
47
+ <li><a href="#Dealing with Multiple Sections">Dealing with Multiple Sections</a></li>
48
+ <li><a href="#Searching">Searching </a></li>
49
+ <li><a href="#Preferences">Preferences </a></li>
50
+ <li><a href="#Saving and Loading Maps">Saving and Loading Maps</a></li>
51
+ <li><a href="#Saving and Loading Maps">Locking Maps</a></li>
52
+ <li><a href="#Mapping Games from Transcripts (Automapping)">Automatically
53
+ Creating Maps from Transcripts (Automapping)</a><ul>
54
+ <li><a href="#How does the automapper distinguish locations">How does
55
+ Automapping work</a></li>
56
+ <li><a href="#Limitations on Automapping">Limitations on Automapping</a><br>
57
+ &nbsp;</li>
58
+ </ul>
59
+ </li>
60
+ </ul>
61
+ </li>
62
+ <li><a href="#Creating a new Inform/TADS3 game">Creating a new game for TADS3
63
+ or Inform</a><br>
64
+ &nbsp;</li>
65
+ <li><a href="#Appendix">Appendix</a><ul>
66
+ <li>
67
+ <a href="#I am new to Interactive Fiction. What games would you recommend">I
68
+ am new to Interactive Fiction.&nbsp; What games would you recommend?</a></li>
69
+ <li><a href="#Contacting the Author">Contacting the Author</a></li>
70
+ </ul>
71
+ </li>
72
+ </ol>
73
+ <p>&nbsp;</p>
74
+ <p><b><font size="5" color="#000080"><a name="Introduction">Introduction</a></font></b></p>
75
+ <p><b><a name="What are Interactive Fiction Games"></a>What are Interactive
76
+ Fiction Games?</b></p>
77
+ <p>These are adventure games, which usually contain little or no graphics but
78
+ use prose to describe locations, events and, hopefully, a good story.&nbsp; The
79
+ first interactive fiction game was created in the late 1970s and was known as
80
+ Adventure (or. Colossal Cave), albeit the genre became widely popular and
81
+ developed most of its conventions with the creation of Infocom in the 1980s.<br>
82
+ If you have never played an interactive fiction game, perhaps the best
83
+ comparison is that they are a grown-up version of &quot;Dungeons and Dragons&quot; or the
84
+ &quot;Choose Your Own Adventure&quot; series of children's books.&nbsp; <br>
85
+ Still, just like any good novel, interactive fiction has evolved into all sorts
86
+ of different styles, genres, and level of interactivity.&nbsp; And you can find
87
+ adventures being developed today in a lot of languages like English, Spanish,
88
+ Italian, German, etc.&nbsp; See the section:&nbsp; &quot;I am new to Interactive
89
+ Fiction.&nbsp; What games would you recommend?&quot;</p>
90
+ <p><b><a name="What is IFMapper"></a>What is IFMapper?</b><br>
91
+ <br>
92
+ IFMapper is a tool for easily mapping these interactive fiction games.&nbsp; As
93
+ these games rely mainly on text descriptions and often use compass directions
94
+ for navigation around the game world, it is relatively easy to get lost.&nbsp;
95
+ In the old days, players would use grid paper to draw their maps, using boxes
96
+ and lines to show each location and its exits.&nbsp; IFMapper is basically, the
97
+ 21st century version of that old practice.<br>
98
+ Albeit IFMapper is mainly a mapping tool, it can also be used as a design tool
99
+ in the early stages of development of new games (for either Inform6 or TADS3).</p>
100
+ <p><b><a name="Features of IFMapper">Features of IFMapper</a></b></p>
101
+ <ul>
102
+ <li>Multiplatform</li>
103
+ <li>Very simple click interface</li>
104
+ <li>Complex paths supported (paths that loop on themselves or connect two
105
+ remote nodes)</li>
106
+ <li>Automatic connection of rooms thru complex paths using an A* algorithm</li>
107
+ <li>Mousewheel support for zooming in/out</li>
108
+ <li>Middle mouse scrolling</li>
109
+ <li>Rooms can have objects and tasks listed</li>
110
+ <li>Automatic numbering of rooms</li>
111
+ <li>Multiple map editing</li>
112
+ <li>Ability to easily move rooms in map with arrow keys</li>
113
+ <li>Written in a simple and great scripting language (Ruby)</li>
114
+ <li>Acrobat PDF output</li>
115
+ <li>Can read and save IFM files</li>
116
+ <li>Can read and save Trizbort maps</li>
117
+ <li>Can read and save Inform/TADS3 source code files</li>
118
+ <li>Locking of maps</li>
119
+ <li>Search for keywords in room names, objects or tasks</li>
120
+ <li>Can automap games from Infocom-like transcripts, even while you play them</li>
121
+ <li>Free<br>
122
+ &nbsp;</li>
123
+ </ul>
124
+ <p><b><font size="5" color="#000080"><a name="Installation">Installation</a></font></b></p>
125
+ <p><b><a name="What youll need">What you'll need</a></b></p>
126
+ <p>In order to use IFMapper, you need to have the Ruby scripting language
127
+ installed and FXRuby.&nbsp; IFMapper was originally developed to run under
128
+ ruby1.8 and FXRuby1.2, but it will probably be compatible with later versions,
129
+ too.<br>
130
+ To print PDF documents, you will also need Austin Ziegler's PDF::Writer module.</p>
131
+ <p><b><a name="Where to get the stuff">Where to get the stuff</a></b></p>
132
+ <p>If your platform is Windows, your best bet is to download the One-Click Ruby
133
+ Installer from:<br>
134
+ <a href="http://rubyforge.org/projects/rubyinstaller/">
135
+ http://rubyforge.org/projects/rubyinstaller/</a></p>
136
+ <p>This installer comes with the latest stable ruby version and also with the
137
+ latest fxruby.&nbsp; It also comes with rubygems (see rubygems later).</p>
138
+ <p>If your platform is Linux or OSX, you may need to obtain ruby from your repositories.</p>
139
+ <p>For example on Ubuntu:</p>
140
+ <br>$ sudo apt-get install ruby</br>
141
+ <p>OSX currently comes with ruby pre-installed, which although it is a tad old will work fine for IFMapper.
142
+ </p>
143
+ <p><br>
144
+ <p>After you have ruby up and running, you should then proceed to install Fox and FXruby.&nbsp;
145
+ You can do this by first installing rubygems (what I'd recomment) or by not
146
+ using it.&nbsp; If you want to use rubygems, proceed to the &quot;Using Rubygems&quot;
147
+ section.</p>
148
+ <p>FXRuby can be found at:<br>
149
+ <a href="http://www.fxruby.org">http://www.fxruby.org</a></p>
150
+ <p>After you have fxruby (which requires the Fox toolkit) installed, you should then be able to install ifmapper.</p>
151
+ <p>&nbsp;</p>
152
+ <p><b><a name="Installing from a zip file">Installing from a zip file</a></b></p>
153
+ <p>After you have ruby and fxruby properly installed, download the ifmapper zip
154
+ file from:</p>
155
+ <p><a href="http://rubyforge.org/projects/ifmapper">
156
+ http://rubyforge.org/projects/ifmapper</a></p>
157
+ <p>Use unzip, winzip or some other zip decompression tool to open the archive.&nbsp;
158
+ All files will be placed inside an IFmapper directory.&nbsp;&nbsp; You should be
159
+ ready to start IFMapper.</p>
160
+ <p>If you want to output PDF files from IFMapper, you will also need to install
161
+ the PDF::Writer library.&nbsp; You can do so using rubygems or by downloading
162
+ the PDF::Writer library from:</p>
163
+ <p><a href="http://rubyforge.org/projects/ruby-pdf/">
164
+ http://rubyforge.org/projects/ruby-pdf/</a></p>
165
+ <p>&nbsp;</p>
166
+ <p><b><a name="Installing or Upgrading using rubygems">Installing or Upgrading
167
+ using rubygems</a></b></p>
168
+ <p>Rubygems is a manager of ruby libraries that should help with automatically
169
+ installing any library dependencies that ifmapper may need.&nbsp; Rubygems comes
170
+ pre-installed with the One-Click Installer for Windows.&nbsp; For other
171
+ platforms, you can obtain it from:</p>
172
+ <p><a href="http://rubyforge.org/projects/rubygems/">
173
+ http://rubyforge.org/projects/rubygems/</a></p>
174
+ <p>Once rubygems is installed, you can then open a windows console or a shell
175
+ window and do:</p>
176
+ <p><font face="Courier New">&gt; gem install -r ifmapper</font></p>
177
+ <p>This will download the latest version of ifmapper, as well as all the
178
+ libraries needed for ifmapper to run (in case they are not installed on your
179
+ system).&nbsp; If you don't have fxruby installed, it will get installed for you.&nbsp;
180
+ On Unix systems, you will probably still need to compile it yourself.</p>
181
+ <p>IFmapper (and other libraries) will then be placed inside your ruby install
182
+ directory, like:<br>
183
+ <font face="Courier New">C:/ruby/lib/ruby/gems/1.8/gems/ifmapper-{VERSION}</font></p>
184
+ <p>&nbsp;</p>
185
+ <p><b><font size="5" color="#000080"><a name="Starting IFMapper">Starting
186
+ IFMapper</a></font></b></p>
187
+ <p>Once installed, you can then run IFMapper by either clicking on the
188
+ IFMapper.rbw file inside the ifmapper directory or, invoking IFMapper.rbw from
189
+ any shell or console.</p>
190
+ <p>Assuming everything is installed properly, you should then see the IFMapper
191
+ window popup with an empty map.</p>
192
+ <p>&nbsp;</p>
193
+ <p><b><font size="5" color="#000080"><a name="Using IFMapper">Using IFMapper</a></font></b></p>
194
+ <p><font size="4"><a name="The Interface">The Interface</a></font></p>
195
+ <p><img border="0" src="../images/IFMapper_main.gif" width="800" height="600"></p>
196
+ <p>The IFMapper interface consists of a menu that allows you to access common
197
+ operations (open/save maps, change settings, etc), a toolbar with a similar
198
+ functionality, and one or more windows displaying a map canvas.</p>
199
+ <p>IFMapper allows you to edit multiple maps simultaneously.<br>
200
+ Each map can have multiple &quot;sections&quot;, so as to keep different parts of the
201
+ games organized. Note that these sections have nothing to do with how printing
202
+ is done and two or more sections could end up being printed <br>
203
+ together in a page or a single section may end up getting split into a multiple
204
+ page document once printed.</p>
205
+ <p>When you start IFMapper for the first time, you should be placed in an empty
206
+ map that shows a grid of where rooms and straight connections can be placed.<br>
207
+ &nbsp;</p>
208
+ <p><font size="4"><b><a name="Navigation">Navigation</a></b></font></p>
209
+ <p>Use your mouse for navigation. If your mouse supports a mousewheel, this can
210
+ be used for zooming in or out of the map easily.<br>
211
+ To pan around the map, use the <b>Middle Mouse Button</b> or, alternatively, <b>
212
+ ALT + Left Mouse Button</b> (These hotkeys mimic the behavior of Maya and 3dmax,
213
+ both popular 3d packages).&nbsp; You can also scroll the map using the
214
+ scrollbars around the canvas.<b><font size="4"><br>
215
+ &nbsp;</font></b></p>
216
+ <p><b><font size="4"><br>
217
+ <a name="Creating Locations">Creating Locations</a><br>
218
+ </font></b>
219
+ <img border="0" src="../images/room_small.gif" align="right" width="342" height="377"><b><font size="4"><br>
220
+ </font></b>You create new Locations or Rooms in the map by just clicking on any
221
+ of those template boxes. The new location will then be given a default name and
222
+ settings ('New Location').<br>
223
+ Each room added will automatically receive a number, based on creation order.<br>
224
+ To modify the name and settings of a location, you can then double click on it
225
+ and a requester will pop up allowing you to do so.<br>
226
+ If you want the requester to pop up as soon as a new room is created, you can
227
+ turn on <b>Map-&gt;Options-&gt;Edit on Creation.</b><br>
228
+ This requester also has options to allow you to mark the room as in darkness and
229
+ to add a list of objects present in the room.<br>
230
+ As you play the game, you can also choose to list the tasks that you need to do
231
+ in the room to progress further (providing you some with a rudimentary walkthru/hint
232
+ functionality).<br>
233
+ This requester can be left open so as to quickly change from room to room.</p>
234
+ <p>Besides using the mouse, you can also use the numeric keypad with Num Lock on
235
+ and use the numbers from <b>1 to 9</b> to create a new room in the appropiate
236
+ direction.<br>
237
+ &nbsp;</p>
238
+ <p>&nbsp;</p>
239
+ <p>&nbsp;</p>
240
+ <p>&nbsp;</p>
241
+ <p><b><font size="4"><br>
242
+ <a name="Creating Connections">Creating Connections</a></font></b></p>
243
+ <p>You can then create connections among rooms by clicking on the non-boxed
244
+ areas of the map. Depending on where exactly you click, a simple connection will
245
+ be made between two rooms.<br>
246
+ <br>
247
+ In its default configuration, you can also click to create a connection on an
248
+ area where no rooms yet exist. IFMapper will then create the missing rooms
249
+ automatically for you, in addition to the connection.<br>
250
+ <br>
251
+ Note that you can change the behavior of how nodes and connections are created
252
+ from the <b>Map-&gt;Options</b> menu:<br>
253
+ <b>Automatic Connection - </b>will create a connection to the previous room for
254
+ each new room you create.<b><br>
255
+ Create on Connection - </b>will allow you to add both the connection and the
256
+ missing rooms when you click on some connection area in the map.<br>
257
+ <img border="0" src="../images/connection.gif" align="right" width="332" height="118"><br>
258
+ Connections can also be modified similarly to rooms, by clicking twice on them.
259
+ The connection requester allows you to specify the connection as a free, door,
260
+ locked or special connection.&nbsp; It also allows you to make the connection
261
+ travel in a single direction or in both directions.&nbsp; Finally, you can also
262
+ add text to the connections to indicate that connection takes you Up/Down or In/Out.</p>
263
+ <p>Changing the connection to<img border="5" src="../images/connection_menu.gif" align="right" width="342" height="241">
264
+ be one way can also be done by just <br>
265
+ clicking on them several times, without opening the requester.<br>
266
+ <br>
267
+ Finally, selecting a connection and using the right mouse button gives&nbsp; you
268
+ access to a context-sensitive menu that allows you to flip the direction of a
269
+ connection or to shift the connection to some other exit in the room.</p>
270
+ <p>&nbsp;</p>
271
+ <p>&nbsp;</p>
272
+ <p>&nbsp;</p>
273
+ <p>&nbsp;</p>
274
+ <p><b><font size="4"><br>
275
+ <a name="Deleting Rooms or Connections">Deleting Rooms or Connections</a></font></b><br>
276
+ <br>
277
+ To remove a room or connection, just select it by clicking on it with<br>
278
+ the left mouse button. Then, press the Delete or Backspace key.<br>
279
+ Note that there is currently no Undo, so deleted nodes or connections<br>
280
+ cannot be restored.<br>
281
+ <br>
282
+ <font size="4"><br>
283
+ <b><a name="Complex Connections">Complex Connections<img border="5" src="../images/complex_connection.gif" align="right" width="338" height="308"></a></b></font><br>
284
+ <br>
285
+ A lot of text adventures have mazes with exits that lead nowhere and exits that
286
+ change direction from one room to the next. We refer to these as complex
287
+ connections.<br>
288
+ To create a complex connection, type the letter <b>'x'</b> or use the <b>Edit-&gt;Add
289
+ Complex Connection </b>menu option. Afterwards, click on the exit next to the
290
+ first room you want to connect and then click on<br>
291
+ the exit of the second room.<br>
292
+ If you want to get out of the add complex connection mode, just hit Esc at any
293
+ time.<br>
294
+ IFMapper will then try to calculate a path along the map to take you from your
295
+ first room to the second one. <br>
296
+ For a complex connection to happen, the path between those nodes has to be
297
+ 'free' of other rooms. IFMapper will also try to avoid inter-crossing
298
+ connections as much as it can, but will still allow them.<br>
299
+ To create exits that just loop onto themselves, you can do a complex connection
300
+ by clicking twice on the same exit or, you can just use<b> CTRL + Left Mouse
301
+ Button </b>without needing to go into the Complex Connection mode.<br>
302
+ <br>
303
+ <b><font size="4"><br>
304
+ <a name="Moving Rooms in Map">Moving Rooms in Map</a></font></b><br>
305
+ <br>
306
+ When building large maps on complex games, you will probably run into the need
307
+ to shift nodes around. To do so, select on the nodes you want to move by <b>CTRL-LMB
308
+ </b>on them, and then use the arrow keys to shift the nodes one grid unit at a
309
+ time.<br>
310
+ You can also use <b>SHIFT-LMB</b> to drag a box around the rooms to select. <br>
311
+ If there are any simple or complex connections, IFMapper will keep recalculating
312
+ those connections on the fly as you move the nodes.<br>
313
+ Note that complex connections can sometimes 'fail'. In those cases, you will see
314
+ the complex connection become taut and tinted red.<br>
315
+ &nbsp;</p>
316
+ <p><b><font size="4"><a name="Dealing with Multiple Sections">Dealing with
317
+ Multiple Sections</a></font></b></p>
318
+ <p>Some adventure games can be rather large and might be split into chapters.&nbsp;
319
+ In those cases, you may want to take advantage of using multiple sections in
320
+ your map.&nbsp; This will keep your map organized and may help you with printing
321
+ them also later on.</p>
322
+ <p>You can create and delete sections from the menu, in <b>Map-&gt;Sections-&gt;Create
323
+ Section</b> and <b>Map-&gt;Sections-&gt;Delete Section.</b></p>
324
+ <p>To move from one section to another, you can use the Arrows located in the
325
+ right section of the toolbar or <b>Map-&gt;Sections-&gt;Next/Previous Section.</b></p>
326
+ <p><br>
327
+ <br>
328
+ <b><font size="4"><a name="Searching">Searching</a></font></b><br>
329
+ <br>
330
+ You can search for words in locations, objects, tasks or descriptions in the
331
+ current section or in the whole map, using regular expressions.<br>
332
+ The search is interactive, a la Emacs, meaning that as you type, the rooms that
333
+ match the search get hilited.<br>
334
+ The number of matches for the map and the section is display in the status bar.<br>
335
+ You can use the Next/Previous button to keep centering your view on each match (and
336
+ automatically moving thru sections if you are matching stuff in the whole map)<br>
337
+ <br>
338
+ <br>
339
+ <b><font size="4"><a name="Preferences">Preferences</a></font></b><br>
340
+ <br>
341
+ IFMapper allows you to change and set preferences on a per map basis (colors,
342
+ editing options, etc). You can also save your preferences so that IFMapper will
343
+ boot with those settings in place for creating new maps.<br>
344
+ <br>
345
+ <br>
346
+ <font size="4"><b><a name="Saving and Loading Maps">Saving and Loading Maps</a></b></font></p>
347
+ <p>To save a map you are editing, you can go to <b>File-&gt;Save</b> or <b>File-&gt;Save
348
+ As</b>.&nbsp; The internal format of IFMapper's maps is the .map format, which
349
+ is binary format.&nbsp; This format saves all your map preferences as well as
350
+ all the connections and descriptions.<br>
351
+ To load a map, you can then use <b>File-&gt;Open</b>.&nbsp; Besides IFMapper's own
352
+ .map format, IFMapper also supports other popular formats within the IF
353
+ community.&nbsp; IFMapper can read:<br>
354
+ - .ifm files (Dave Chapeski's IFM, a popular free Unix mapping/walkthru tool)<br>
355
+ - .gmp file (GUEmap's maps, a commercial mapping tool for Windows)<br>
356
+ - .inf files (Inform6 source code files)<br>
357
+ - .inform files (Inform7 source code files)<br>
358
+ - .trizbort files (Trizbort map files)<br>
359
+ - .t3m or .t files ( TADS3 makefiles or source code files )</p>
360
+ <p><br>
361
+ <b><font size="4"><a name="Locking Maps">Locking Maps</a></font></b><br>
362
+ <br>
363
+ Once you finish an adventure game, you can then lock the map for distribution.<br>
364
+ You can do so by going into <b>Map-&gt;Map Information</b> and click on the Read-Only
365
+ switch and making sure you save the map as .map file (IFMapper's native format).<br>
366
+ Making the map read-only will not allow you to modify the map anymore (and thus
367
+ will prevent accidentally moving or changing room descriptions by<br>
368
+ mistake).<br>
369
+ When reading any IFM file, Read-Only mode is entered automatically, as it is
370
+ assumed these maps were created and finished elsewhere. If you need<br>
371
+ to modify them, just untick the Read-Only switch in the Map Information box
372
+ again.<br>
373
+ <br>
374
+ <b><font size="4"><br>
375
+ <a name="Mapping Games from Transcripts (Automapping)">Mapping Games from
376
+ Transcripts (Automapping)</a><br>
377
+ </font></b><br>
378
+ New to v0.8, the feature of automapping was added. The way automapping works is
379
+ that it will read a transcript or log of your game, and will attempt to parse it
380
+ to generate rooms and connections (even while you are playing it!).<br>
381
+ <br>
382
+ To use automapping, go to your game and start a transcript. Usually this is done
383
+ by doing:</p>
384
+ <p><b>&gt; verbose<br>
385
+ &gt; script</b></p>
386
+ <p>and then specifying the name of the file.<br>
387
+ <br>
388
+ Then, go to IFMapper and go to a map (usually an empty one) and do:<img border="0" src="../images/automap.gif" align="right" width="413" height="428"><br>
389
+ <b>Map-&gt;Automap-&gt;Start</b>. This will pop up a file requester for you to feed
390
+ IFMapper the name of the transcript.<br>
391
+ Then, you will be asked thru a requester to select some options.<br>
392
+ The options include how will the automapper identify locations as being unique.
393
+ The automapper can determine whether you are in a new location by comparing the
394
+ room description (the default) or by comparing just the short name of the room.
395
+ Games that have rooms with the same short names (usually, mazes) will benefit
396
+ from being identified by the room description while games that often change the
397
+ room description on several visits to it might be mapped better using just short
398
+ names.&nbsp; Note that you can also switch from one method to another at any
399
+ time later on.<br>
400
+ Another option allows you to specify what type of transcript you are dealing
401
+ with. Most games use the &quot;Classic&quot; format, albeit some old Infocom games (mainly
402
+ Witness and Moonmist) used a tad different format.<br>
403
+ And voila. Immediately, you should see IFMapper get to work and start creating
404
+ locations and connections. <br>
405
+ If you continue playing your game and the 'script' command is still in operation,
406
+ IFMapper will try to interactively map your game. This works very well for games
407
+ running under WinFrotz, for example, albeit some other interpreters might not
408
+ append text to transcripts as soon as you run a command, leading to a less
409
+ interactive automapping (you'll probably have to type several commands before
410
+ the interpreter will update the transcript file).<br>
411
+ Besides trying to parse for locations and movements, automapper will also try to
412
+ parse for objects in the room, by monitoring your 'get' or 'take' commands and
413
+ remembering where each object was first found, so as to add it to the appropiate
414
+ room.<br>
415
+ Note that, at any point during your mapping, you can pop up the automapper
416
+ properties again to switch from automapping using descriptions to using short
417
+ names.<br>
418
+ <br>
419
+ <br>
420
+ <b><font size="4"><a name="How does the automapper distinguish locations">How
421
+ does the automapper distinguish locations?</a></font></b><br>
422
+ <br>
423
+ As we said before, the automapper will parse all the game text, looking for room
424
+ descriptions.&nbsp; Not just the replies to moving commands.<br>
425
+ This is done so that teleporting commands (such as magical words) or special
426
+ events that take you other places will work.<br>
427
+ Room locations are determined by finding the room's short name: a string of text
428
+ where all of its words of 4 or more letters are capitalized (or where the string
429
+ follows the format specified, in case of Witness/Moonmist format). <br>
430
+ The paragraph following that is assumed to be a room description.<br>
431
+ Depending on your automapper settings, the automapper will give preference to
432
+ the room description or to the room's short name to determine whether a certain
433
+ room has already been visited.<br>
434
+ <br>
435
+ <br>
436
+ <b><font size="4"><a name="Limitations on Automapping">Limitations on
437
+ Automapping</a></font></b><br>
438
+ <br>
439
+ Albeit automapping is very cool and powerful, there are some limitations on it
440
+ you should be aware of.<br>
441
+ First, it only works with games written in English.<br>
442
+ Second, you should try to use automapping with verbose mode. Automapping will
443
+ try to rely on the room description to distinguish one room from the next,
444
+ instead of just the room's short name.<br>
445
+ If your game is in brief or normal mode, automapping could end up getting
446
+ confused about interpreting a previously visited location as a new location, as
447
+ it could interpret an object or a character description as part of the<br>
448
+ room description.<br>
449
+ Even with full verbose mode, automapping may get confused if the&nbsp;
450
+ description changes dramatically (like the demolished house in Hitchhiker's
451
+ Guide to the Galaxy).<br>
452
+ Automapping also may not help much when it comes to mazes, where all their
453
+ descriptions are identical or in cases where exits are chosen at random (Adventure/Colossal
454
+ Cave).<br>
455
+ Some games don't follow the Infocom standard of labelling locations using a
456
+ short capitalized description (for example, FailSafe). These games cannot be
457
+ automapped.<br>
458
+ Finally, the layout algorithm used in the automapper is not exceptional and it
459
+ can lead to maps with intercrossings or with rooms placed too far apart.<br>
460
+ Remember, thou, that you can still help the automapper by manually moving or
461
+ removing rooms at any time if you are interactively automapping a transcript.<br>
462
+ If for some reason the automapper does not detect a room automatically, you can
463
+ also at any time create that room yourself and from then on, the automapper will
464
+ be aware of it.<br>
465
+ <br>
466
+ <b><br>
467
+ <font size="4"><a name="Creating a new Inform/TADS3 game">Creating a new
468
+ Inform/TADS3 game</a></font></b><br>
469
+ <br>
470
+ IFMapper now allows you to also spit out Inform or TADS3 source code for a map.<br>
471
+ This means you can now use IFMapper to easily create the basic skeleton for a
472
+ new game from scratch. <br>
473
+ With IFMapper, you can place your objects, your NPCs and locations with their
474
+ doors/exits in your game.&nbsp; You can also type in your descriptions for each
475
+ location.<br>
476
+ To do this, make sure to activate the display of room descriptions:</p>
477
+ <p><b>Map-&gt;Display-&gt;Location Description</b></p>
478
+ <p>You can then type in all your room descriptions and objects manually and then,
479
+ once your map is finished, use:<b><br>
480
+ <br>
481
+ File-&gt;Export-&gt;Export to Inform<br>
482
+ File-&gt;Export-&gt;Export to TADS3<br>
483
+ </b><br>
484
+ These option will create a set of Inform or TADS3 source files (one per map
485
+ section), which you can then immediately compile and play with.<br>
486
+ Obviously, for a real game, the .inf or .t files you get out of IFMapper are
487
+ just a skeleton, as you will still have to code manually all the logic in your<br>
488
+ game.</p>
489
+ <p>&nbsp;</p>
490
+ <p><b><font size="5" color="#000080"><a name="Appendix">Appendix</a></font></b></p>
491
+ <p><b><font size="4">
492
+ <a name="I am new to Interactive Fiction. What games would you recommend">I am
493
+ new to Interactive Fiction. What games would you recommend?</a></font></b><br>
494
+ <br>
495
+ If you can get a copy of it (Lost Treasures of Infocom or similar), I think
496
+ Wishbringer from Infocom is probably one of the nicest introductory games. <br>
497
+ Its puzzles are not that tricky and are also pretty logical.<br>
498
+ Once you master it, you could then try Planetfall, which has one of the most
499
+ lovable characters in any adventure game.<br>
500
+ Assuming you cannot get hold of those Infocom games, Emily Short's City of
501
+ Secrets is a very nice introductory game and probably one of the most polished
502
+ adventures I have seen.<br>
503
+ Andrew Plotkin's Dreamholder is also somewhat a nice introductory game as the
504
+ game will help you with your commands a little as you begin. Note, however, that
505
+ the game's puzzles are anything but easy. <br>
506
+ <font size="5"><br>
507
+ </font><b><font size="4"><a name="Contacting the Author">Contacting the Author</a></font><br>
508
+ </b><br>
509
+ Currently, I can be reached at:</p>
510
+ <p>ggarra13 AT domain</p>
511
+ <p>(Where &quot;domain&quot; is gmail.com )<br>
512
+ <br>
513
+ &nbsp;</p>
514
+
515
+ </body>
516
+
517
+ </html>
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ifmapper
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 5
10
- version: 1.2.5
9
+ - 6
10
+ version: 1.2.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Gonzalo Garramuno
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2013-09-19 00:00:00 Z
18
+ date: 2013-09-22 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rake-compiler
@@ -67,8 +67,8 @@ dependencies:
67
67
  version_requirements: *id003
68
68
  description: "\tInteractive Fiction Mapping Tool.\n"
69
69
  email: ggarra13@gmail.com
70
- executables: []
71
-
70
+ executables:
71
+ - IFMapper
72
72
  extensions: []
73
73
 
74
74
  extra_rdoc_files:
@@ -76,6 +76,7 @@ extra_rdoc_files:
76
76
  - TODO.txt
77
77
  - docs/en/index.html
78
78
  - docs/en/start.html
79
+ - docs/en/start.html~
79
80
  - docs/es/index.html
80
81
  - docs/es/start.html
81
82
  - docs/es/start.html~
@@ -312,6 +313,7 @@ files:
312
313
  - TODO.txt
313
314
  - docs/en/index.html
314
315
  - docs/en/start.html
316
+ - docs/en/start.html~
315
317
  - docs/es/index.html
316
318
  - docs/es/start.html
317
319
  - docs/es/start.html~