Commit Graph
86814 Commits
Author SHA1 Message Date
Eugene Sandulenko 1e07013f7f Fix portability
svn-id: r16608
2005-01-21 23:35:33 +00:00
Andrew Kurushin 899e476f01 now you can try to:
- talk to someone
 - look at something

svn-id: r16607
2005-01-21 23:25:54 +00:00
Eugene Sandulenko e488ddc7c2 Fix cursor shape.
svn-id: r16606
2005-01-21 23:18:32 +00:00
Eugene Sandulenko ebe40f024e Fix compilation
svn-id: r16605
2005-01-21 23:16:38 +00:00
Andrew Kurushin 58ec0f0aad problems solved:
- Allow more than one script work at once
- Proper implementation of address methods

some opcodes may be broken - cause work in progress
todo: rewrite opcodes with new address functionality

svn-id: r16604
2005-01-21 21:55:54 +00:00
Torbjörn Andersson 0228f1645f Use the kITEColor constants for the ITE mouse cursor. Ironically, this is
one case where the original didn't use its own colour constants, so I had
to add a new one, kITEColorLightGrey, for colour 4.

svn-id: r16603
2005-01-20 13:59:12 +00:00
Travis Howell b9356bbe14 Check for negative sound offset.
svn-id: r16602
2005-01-20 12:56:27 +00:00
Torbjörn Andersson ca58bfed3b Fixed bug that I must have introduced during one of my cleanups. The
original code read "LLogic.Logic_up( (*params*65536)+2);".

I don't know where this opcode is actually used, though.

svn-id: r16600
2005-01-20 07:32:37 +00:00
Eugene Sandulenko 6f565c0ad8 Fix type with BrightWhite color
svn-id: r16599
2005-01-19 20:43:12 +00:00
Eugene Sandulenko 001bb7c74e o Made ITEColors enum public in interface.h. Please use them. These colors
stay in each scene except intro and fade-in/fade-outs.
o Implemented status text coloring during work of auxiliary scripts.

svn-id: r16598
2005-01-19 11:29:29 +00:00
Andrew Kurushin 1b5e5981a6 fixed default verb issue
svn-id: r16597
2005-01-19 00:02:25 +00:00
Andrew Kurushin 9353d54f95 implemented Sprite::hitTest
Actors & Objects can be hited

svn-id: r16596
2005-01-18 23:15:41 +00:00
Andrew Kurushin 0ccf59faee partly implemented game objects
svn-id: r16595
2005-01-18 21:13:44 +00:00
Andrew Kurushin b4b2e52df7 another step in verb implementation:
- objectMap responds to mouse move  (but respond script not run well ?)

loadStrings add some special count check
- so all other LUT based resource should implement this technique

svn-id: r16594
2005-01-18 15:01:21 +00:00
Andrew Kurushin c1ce30b0bf - remove ActionMap.h & ActionMap.cpp
svn-id: r16593
2005-01-18 11:59:09 +00:00
Andrew Kurushin 0b4fd4adbf - merged ActionMap and ObjectMap
- remove ActionMap.h & ActionMap.cpp
- ObjectMap names move to Scene::_sceneStrings as in original engine
- fix wrong StringsTable::stringsCount calculation

svn-id: r16592
2005-01-18 11:55:31 +00:00
Eugene Sandulenko c9d0d4c840 Initialize converse properly.
svn-id: r16591
2005-01-18 10:45:36 +00:00
Eugene Sandulenko 4a55622d40 Update SAGA converse items
svn-id: r16590
2005-01-17 23:13:18 +00:00
Eugene Sandulenko a5c87d3620 Now it is possible to lead a conversation with use of keys (1-4).
Things which are missing:
  (a) mouse support due to incomplete interface implementation
  (b) arrows do not pop up by same reason mentioned above
  (c) scrolling does not work
  (d) kReplyOnce flag is missing due to wrong threads memory implementation

svn-id: r16589
2005-01-17 23:11:31 +00:00
Eugene Sandulenko dab894fdd4 First batch of converse implementation in scripts. To see it type
'scene_change 33' in debugger.

svn-id: r16588
2005-01-17 20:17:06 +00:00
Eugene Sandulenko 4cacb8d20c Add another SAGA item
svn-id: r16587
2005-01-17 18:50:34 +00:00
Eugene Sandulenko 5200b8f1fa o Proper implementation of sfPlaySound() which knows about CD<->floppy
difference
o Fix regression in Mac titles where scene LUT wasn't conversed
o Fix sound types in many games. Old Win demo is still wrong.

svn-id: r16586
2005-01-17 18:49:00 +00:00
Torbjörn Andersson 3211739728 Whitespace changes
svn-id: r16585
2005-01-17 14:57:28 +00:00
Torbjörn Andersson eea3c46049 Updated SAGA items.
svn-id: r16584
2005-01-17 14:21:03 +00:00
Torbjörn Andersson 8e93b45efe If the game tries to start a piece of music that happens to be playing
already, let it continue playing rather than restarting it. (I've been
meaning to make this change for some time, but now it appeared on the TODO
list as well. :-)

svn-id: r16583
2005-01-17 14:19:17 +00:00
Eugene Sandulenko 9a31154db3 Add new SAGA issues.
svn-id: r16582
2005-01-17 13:01:50 +00:00
Torbjörn Andersson 46a8dd060f Updated Broken Sword 2 items.
svn-id: r16581
2005-01-17 10:59:37 +00:00
Torbjörn Andersson 0b461c8506 Updated copyright header, as discussed on the mailing list.
svn-id: r16580
2005-01-17 10:57:15 +00:00
Torbjörn Andersson f8865304bd Initialize a few variables to fix Valgrind warnings. (I'm hoping they were
the reason the ITE intro crashed for me.) I still get read warnings in
Sprite::decodeRLEBuffer() though.

Also added a couple of hacks to keep the IHNM intro alive. Once we support
IHNM actors, we'll be able to remove them.

svn-id: r16579
2005-01-17 07:21:08 +00:00
Max Horn d6ea15bf1f PocketPC issues were fixed on the 0.7.x branch, but which... ?
svn-id: r16578
2005-01-16 23:45:10 +00:00
Andrew Kurushin 9d1f2b670e -small pathfind fix
-pathfind speedup

svn-id: r16576
2005-01-16 20:30:57 +00:00
Andrew Kurushin a230f60694 - some fix to previous
svn-id: r16575
2005-01-16 19:43:28 +00:00
Andrew Kurushin f9b4b2cd99 actors entry list implemented
test: in ITE type "scene_change 130" at console

svn-id: r16574
2005-01-16 19:06:04 +00:00
Torbjörn Andersson bf827cde1d Some more untested opcode fixes. (By the way, I was wrong the other day:
The first IHNM script does not use random branching after all.)

svn-id: r16573
2005-01-16 17:07:27 +00:00
Torbjörn Andersson eb2bffd185 sfPlayMusic() takes two parameters in IHNM. Since our current
implementation is only right for ITE, disable it for IHNM for now.

svn-id: r16572
2005-01-16 17:06:40 +00:00
Torbjörn Andersson 34565795e8 Slowed down actor movement a bit.
svn-id: r16571
2005-01-16 16:10:06 +00:00
Max Horn 608cfc0149 Fix for bug #1098872 (FTDEMO: Memoryleak in SMUSH player)
svn-id: r16570
2005-01-16 13:34:43 +00:00
Max Horn d541535ab6 Cosmetic change, avoiding a hypothetical threading problem, see bug #1098864
svn-id: r16569
2005-01-16 13:32:48 +00:00
Andrew Kurushin fe424ed5ae - added partial scene change by actor's walking (todo:entrance should be supported)
svn-id: r16568
2005-01-15 23:46:43 +00:00
Max Horn aa9debccec Forgot to commit this
svn-id: r16567
2005-01-15 23:08:12 +00:00
Max Horn 541076d8db Added a convenience class 'Mutex'
svn-id: r16566
2005-01-15 22:41:23 +00:00
Max Horn 2d2cef23a0 Not needed anymore
svn-id: r16565
2005-01-15 21:44:26 +00:00
Max Horn fcad363886 Get rid of the ConstString class
svn-id: r16564
2005-01-15 21:42:59 +00:00
Max Horn f7c14e04d2 Fix up/down arrows
svn-id: r16563
2005-01-15 21:33:56 +00:00
Andrew Kurushin 2f20dd57c2 some work in progress on verb stuff:
- many structers and fields renamed to proper names
- added missing functions

svn-id: r16562
2005-01-15 20:12:49 +00:00
Torbjörn Andersson 139f57a29d Use the same hard-coded cursor image and colours as the original ITE
interpreter. Supposedly these colours will stay fairly constant throughout
the game, in which case we no longer need to repaint it with the "best
white" colour every time the palette changes.

svn-id: r16561
2005-01-15 13:41:57 +00:00
Torbjörn Andersson 96d5a1c88d I've changed getTextString() slightly so that if the translated string is
NULL it'll use the English string instead. It seems unnecessary to store
the same string twice, even if it's possible that the compiler is smart
enough to eliminate the duplicates.

Either way it doesn't make much difference now, but we may want to add the
intro strings to the getTextString() mechanism eventually. In that case
most of the credits would be duplicates, for instance.

svn-id: r16560
2005-01-14 11:22:45 +00:00
Torbjörn Andersson b56f4fd2f6 Removed the unused i_cvar_name field from INTRO_DIALOGUE.
svn-id: r16559
2005-01-14 11:05:12 +00:00
Torbjörn Andersson e38b689078 Fixed the "random branch" opcode, I hope. I haven't tested it. The first
IHNM script seems to use it, but doesn't get that far because it terminates
on an unknown script function.

svn-id: r16558
2005-01-14 10:10:23 +00:00
Torbjörn Andersson 4870ab61f2 Added helper function to queue the ITE intro dialogue.
svn-id: r16557
2005-01-14 08:02:17 +00:00