Commit Graph

133 Commits

Author SHA1 Message Date
Torbjörn Andersson
15969fa797 This might allow the multi-OS version to run from CD, though I'm not sure
our game detection agrees with that at the moment.

svn-id: r18851
2005-09-21 10:06:56 +00:00
Eugene Sandulenko
c8a2de6e6e Implement option buttons functionality. This fixes bug #1259518 "ITE: Buttons
in Options Dialog not fully functional"

svn-id: r18738
2005-09-02 20:17:52 +00:00
Torbjörn Andersson
d8a96c3032 Allowed IHNM to use the opSpeak opcode. Aborting that code path early meant
that the instruction wasn't fully read, so the next opcode would be wrong.
This is what caused it to crash.

To keep the game from hanging, I also allowed the engine to call the
_actors->direct() function for IHNM. This allows AM's intro speech to be
played in its entirety.

Since this includes the "hate" speech, I've removed that part from the
hard-coded intro. To get the right music playing, I've enabled the
sfPlayMusic() function for IHNM. This is pure guesswork, though. Once the
scene changes, the wrong music plays again. However, this is scene music,
i.e. not scripted.

It doesn't play the background sound. Looks like _fxTable[] isn't generated
for IHNM. More noticeably, until the scene changes it doesn't show any
graphics apart from the subtitles, which are drawn in the wrong colour and
(I believe) the wrong font.

svn-id: r18712
2005-08-26 12:07:31 +00:00
Eugene Sandulenko
f2c542547d Fix bug #1256381 "ITE: Options menu contains wrong item" and gave symbolic
names to text Ids.

svn-id: r18699
2005-08-16 19:04:51 +00:00
Eugene Sandulenko
8c4494578e Fix bug #1258537 "ITE: Introduction text is black"
svn-id: r18677
2005-08-13 19:41:11 +00:00
Eugene Sandulenko
801bb09bb5 Translate excuse messages and make them work on floppy versions. Earlier
it just crashed there.

svn-id: r18659
2005-08-11 15:28:08 +00:00
Eugene Sandulenko
37f2a10ef6 Rename Actor class members to _members.
svn-id: r18645
2005-08-10 14:53:17 +00:00
Eugene Sandulenko
4ffa61cb42 Partially fix bug #1253079 'ITE: Several errors in the "rocky chasm" scene'.
Argh! why _several_ errors and not one by one?

svn-id: r18633
2005-08-08 08:15:16 +00:00
Eugene Sandulenko
005843e55b o Some cleanup
o Fix warnings
o Implemented IHNM changeChapter()
o WIP for metaResources

svn-id: r18618
2005-08-05 23:14:11 +00:00
Eugene Sandulenko
f63bbb1006 Simulate bootparams.
svn-id: r18611
2005-08-04 10:48:54 +00:00
Eugene Sandulenko
372a483ceb Thread-related IHNM differences.
svn-id: r18602
2005-07-30 14:41:25 +00:00
Eugene Sandulenko
ec4f7d3d7c Whitespaces
svn-id: r18595
2005-07-29 17:58:00 +00:00
Andrew Kurushin
50c2d8954d finally Resource manager rewritten:
-adds patch file support
-global _vm removed

cleanups

svn-id: r18560
2005-07-19 19:05:52 +00:00
Torbjörn Andersson
f65586dd0f German translations for some interface texts, as pointed out by Simon
Sawatzki.

svn-id: r18539
2005-07-13 12:48:35 +00:00
Andrew Kurushin
d944bd7793 implemented per scene actors clipping
so last sequence should look much better (not perfect)

svn-id: r18516
2005-07-08 16:56:03 +00:00
Eugene Sandulenko
57858a8757 Hid most of debug output to deeper levels. We're pretty close to official
launch so it should be invisible to users.

svn-id: r18497
2005-07-05 16:58:36 +00:00
Max Horn
8b1d7b9166 When including files from common/, explicitly use the common/ prefix
svn-id: r18444
2005-06-24 15:23:51 +00:00
Eugene Sandulenko
ecf8da7230 Implement sfPlayLoopedSound, sfFadeMusic and sfPlayVoice.
sfPlayVoice is untested. Please, inform me where you encounter it.

svn-id: r18412
2005-06-19 21:18:00 +00:00
Eugene Sandulenko
8a835899fb Implement game load with '-x' comman-line parameter.
Fix couple valgrind and compiler warnings.

svn-id: r18313
2005-06-02 22:14:57 +00:00
Eugene Sandulenko
0eb4e94116 Almost complete implementation of Puzzle. Now it is possible to solve it
successfully.

Things to do:
 o non-actors speech, it just doesn't get displayed, though generated
 o support for CD voices

svn-id: r18301
2005-05-31 01:03:13 +00:00
Andrew Kurushin
99b9fc7070 implemented DOS version 1 pixel clipping
game options WIP3

svn-id: r18293
2005-05-29 15:39:35 +00:00
Andrew Kurushin
82b86d495e saveload WIP
svn-id: r18232
2005-05-23 18:53:36 +00:00
Eugene Sandulenko
0ccb1b726b Plug in Puzzle. Now it consists mainly of stubs but neverthless lets skip
the Puzzle and continue game pretending like you completed the Puzzle.

svn-id: r18225
2005-05-23 02:23:34 +00:00
Andrew Kurushin
284ef431e1 fixed loadsave item resource id
partialy fixed protect rat

svn-id: r18174
2005-05-18 18:28:10 +00:00
Max Horn
1a615346ab Moved class SoundMixer to Audio::Mixer (didn't call the namespace 'Sound' because we already have many classes with that name)
svn-id: r18039
2005-05-10 23:48:48 +00:00
Max Horn
b75c969e66 Moved class File and the MD5 stuff to namespace Common
svn-id: r18037
2005-05-10 22:56:25 +00:00
Max Horn
cca744f69a Comply to our coding conventions
svn-id: r17975
2005-05-08 21:49:52 +00:00
Max Horn
da5f819cf9 You can safely delete/free null pointers
svn-id: r17792
2005-04-24 18:26:12 +00:00
Andrew Kurushin
cdede6caa4 implemented inventory
todo: timeout catchup & capital 'U' & 'D' handling

svn-id: r17748
2005-04-22 14:11:04 +00:00
Andrew Kurushin
d52032c75c converse support improved (still has some bugs)
fixed: now protagonist can't be target object
fixed: statusbar color
added: *mouseButtonPressed in SagaEngine

svn-id: r17672
2005-04-18 20:03:14 +00:00
Andrew Kurushin
8ea88c95d6 - fixed tile doors drawing
- right mouse action fixed

svn-id: r17347
2005-04-03 15:32:04 +00:00
Max Horn
9a4bc8ce16 Patch #1117443 (Experimental plugin code revision)
svn-id: r17231
2005-03-25 17:55:57 +00:00
Andrew Kurushin
3025db0d07 - changescene on fair for tents
- some memory deallocation fixup

todo: fix follower stuckiness in tents

svn-id: r17180
2005-03-18 17:11:37 +00:00
Max Horn
0ec193b4be changing AudioDataType -> SoundType, so now the constant names match the name of the data type / the SoundMixer method names
svn-id: r17052
2005-03-09 18:12:54 +00:00
Torbjörn Andersson
ef43877b6b Indentation
svn-id: r17028
2005-03-07 11:49:59 +00:00
Andrew Kurushin
aeaf728dc6 partialy implemented all Iso mode resource loading
todo: loadMulti - may be wrong

svn-id: r16670
2005-01-28 19:25:41 +00:00
Andrew Kurushin
1b5e5981a6 fixed default verb issue
svn-id: r16597
2005-01-19 00:02:25 +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
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
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
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
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
Eugene Sandulenko
ccacf6f82e o Added support for German ITE. There are also Puzzle-related messages
hardcoded, but I'll save that for later :)
o Eliminated all leftovers of previous language loader. If you'll spot another
  one, just remove it silently.

svn-id: r16556
2005-01-14 01:17:34 +00:00
Andrew Kurushin
326dd0c255 - introduced SagaEngine::getTextString (for i18n it should route to corresponding string array)
- first step in verb implementation: proper button draw, keyboard respond 'w','l' &etc
- added comments and some fields to GameDisplayInfo

svn-id: r16554
2005-01-13 22:42:49 +00:00
Andrew Kurushin
244b227b19 - remove game.h & image.h
- all display information of current game goes to SagaEngine
- remove GameFontIds
- hide SagaEngine _gameId,_gameType & etc with methods getGameId(), getGameType()

svn-id: r16545
2005-01-11 21:10:36 +00:00
Max Horn
cffd917165 system.h was being included in tons of places, without any good reason; reduced this (total dependencies on system.h went down from 193 to 85 files)
svn-id: r16527
2005-01-10 22:06:49 +00:00
Andrew Kurushin
31ceb0bb71 - GameModule is gone
- structures renamed
- SagaEngine class gives all current game descriptions
regression : "verb" is broken cause work in  progress

svn-id: r16511
2005-01-09 23:41:22 +00:00
Andrew Kurushin
7a8e1c1efd small fixes:
- actor barrier rects
- unreachable code

svn-id: r16510
2005-01-09 21:36:20 +00:00