Commit Graph

145 Commits

Author SHA1 Message Date
Eugene Sandulenko
7f6402ef06 Eliminate ite-demo and ihnm-demo targets as we do in SAGA. Just use plain
ite and ihnm respectively. Sorry, but I had to do it before release, no
autoupgrade as games weren't supported only in developer's version.

Fix bug #1297365 "ITE: Game detection is broken".

Now it distinguishes between DOS CD and Win CD, though it uses platform and
language settings from .ini to do the choice. I.e current games need to be
redetected. Though only these 2 games are affected. I.e. they have exactly
same resource files, just Windows release adds up external patches. These
patches cannot be added to detection as they're stored in subdirectories.

Also I resolved problem between ite-demo-win and ite-demo-linux where latter
is a superset of former. I.e. it has all files which win demo has plus one
additional. And if you try to detect Linux demo it shows you both. Of course
this could be handled by upper solution, but to make sure I count number of
required files for matched versions and remove those which do not have max
number of files. I.e. if 2 games matched and one requires 4 and another one
requires 5 files, then we have 5 files matched which certainly points to
second game not the first.

svn-id: r19074
2005-10-14 04:28:20 +00:00
Eugene Sandulenko
a3d0fcea54 Add language and platform to game description and use that accross the source.
That eliminates GF_LANG_DE and GF_MAC_RESOURCES.

svn-id: r19071
2005-10-14 00:56:52 +00:00
Torbjörn Andersson
e44213c832 Cleanups. Mostly whitespace.
svn-id: r19022
2005-10-11 17:39:31 +00:00
Torbjörn Andersson
18d33dc078 Read IHNM actor and object strings from the resource file. (This does not
keep whichObject() from crashing, but I don't know why.)

svn-id: r18980
2005-10-08 22:09:21 +00:00
Torbjörn Andersson
60b85c5137 Cleanup.
svn-id: r18972
2005-10-08 21:28:14 +00:00
Eugene Sandulenko
528d2b2ca1 Now most artefacts are gone and we're in proper panel mode when running
character selection.

svn-id: r18961
2005-10-08 16:25:18 +00:00
Eugene Sandulenko
cf512d26de Oops. Fix crash introduced by last commit.
svn-id: r18960
2005-10-08 15:35:07 +00:00
Torbjörn Andersson
5f20bf11e6 It should always be possible to interrupt the intro with Escape now. Most
of the job was already done, though. Only the final bit was missing.

svn-id: r18951
2005-10-06 15:56:06 +00:00
Eugene Sandulenko
579478a586 IHNM used only 248 colors for game graphics. Top part of the palette
was read from resources. Switching to this scheme fixes magenta outlines
in subtitles.

svn-id: r18935
2005-10-05 01:31:46 +00:00
Eugene Sandulenko
fde99a029a Cleaner code for sfWaitFramesEsc()
svn-id: r18895
2005-09-28 15:49:20 +00:00
Eugene Sandulenko
05ccf63898 Implement sfWaitFramesEsc()
svn-id: r18894
2005-09-28 15:41:21 +00:00
Torbjörn Andersson
3e99ea96a3 Implemented some trivial IHNM opcodes. I'm not sure if the _ethicsPoints[]
array is large enough though.

These opcodes modify what I assume to be the game state, so that
information needs to be stored in the savegames. Not for ITE, though, so
savegame compatibility is not broken by this. (Not deliberately, at least.)

svn-id: r18885
2005-09-26 07:22:32 +00:00
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