Jonathan Gray
876fe0ac8a
add readINI stub (a HEv7 op)
...
svn-id: r9894
2003-08-28 15:23:23 +00:00
Travis Howell
9b5eb1137f
Add support for flashlight in v1 maniac by converting older values.
...
Prevent warning about dummy function (Which has no purpose) in zak
svn-id: r9756
2003-08-18 10:46:42 +00:00
Jonathan Gray
413f09eff5
add maniacnes target, rather prelimary so people would be well advised not to add to compatibility at this point
...
svn-id: r9690
2003-08-14 11:40:50 +00:00
Jochen Hoenicke
077b643ea0
Fix recursive calls of object scripts. In V2 for each object two script
...
can be active at the same time: One 253 script and one normal script.
We misuse the recursive flag to mark 253 scripts. When starting a 253
script we stop a script that has recursive flag set and when starting
a normal script we stop the script that doesn't.
svn-id: r9068
2003-07-18 18:55:04 +00:00
Max Horn
b88b7f3389
reduced duplicate code
...
svn-id: r9027
2003-07-14 22:21:11 +00:00
Jochen Hoenicke
177d5d6b11
Compares in V2 are unsigned (at least in Zak).
...
This fixes a problem with the parachute scene in Zak.
svn-id: r9020
2003-07-14 19:57:44 +00:00
Max Horn
d35c57a53f
fixes for cutscenes in V2 games
...
svn-id: r8956
2003-07-12 22:00:59 +00:00
James Brown
00d5c5af89
Add a few more actor debugger subcommands, and correct V2 coordinate translation for
...
o2_(get/set)ActorElevation
svn-id: r8683
2003-07-01 04:20:41 +00:00
Max Horn
d0b2e56194
more camera spliting
...
svn-id: r8121
2003-05-29 23:44:24 +00:00
Max Horn
1db0f749ca
moved camera stuff to own file
...
svn-id: r8099
2003-05-29 12:55:28 +00:00
James Brown
aa919f3508
A few small V2 detection/init changes
...
svn-id: r8085
2003-05-29 08:05:20 +00:00
Max Horn
2b13ad92e4
fixed Zak cashcard
...
svn-id: r7836
2003-05-22 22:42:44 +00:00
Max Horn
a9788c771a
from the MM/Zak scripts, the code etc. it's clear that unk2 is the sentence preposition
...
svn-id: r7827
2003-05-22 14:10:20 +00:00
Max Horn
743d9da78d
evil bug in V2 bitvar code fixed -> no more MM cutscene skip crash
...
svn-id: r7782
2003-05-21 14:25:14 +00:00
Max Horn
e21604663f
added v2 cutscene support (not quite complete; and crashes at some point in maniac because VAR_EGO contains a bogus value); cleanup
...
svn-id: r7781
2003-05-21 14:00:19 +00:00
Max Horn
3e3d6f1360
renamed o2_matrixOps -> o2_setBoxFlags; V2 'objY' fixes; cleanup
...
svn-id: r7739
2003-05-20 16:13:34 +00:00
Jonathan Gray
243bcc74d3
sync local changes, fix pickOneOf
...
svn-id: r7668
2003-05-19 04:29:41 +00:00
Max Horn
657c8ca2e3
more V2 sentence cleanup
...
svn-id: r7631
2003-05-18 12:52:27 +00:00
Max Horn
3576b8e168
yet another V2 sentence fix (now clicking on objects in Zak causes Zak to talk to it - but he gets stuck after some time)
...
svn-id: r7613
2003-05-17 18:42:31 +00:00
James Brown
99b26a5684
Name some vars
...
svn-id: r7597
2003-05-17 06:04:22 +00:00
Jonathan Gray
1f7ebc70d8
add stub for a hev7 op
...
svn-id: r7593
2003-05-17 01:57:54 +00:00
Max Horn
64d9c75c2d
cleanup
...
svn-id: r7583
2003-05-16 22:11:49 +00:00
Max Horn
f495c14d84
opcodes are just one byte
...
svn-id: r7513
2003-05-14 20:37:53 +00:00
Max Horn
feee742268
added opcode 0xf7 (getActorZPlane)
...
svn-id: r7497
2003-05-14 10:16:57 +00:00
Max Horn
79d3863db4
more V2 'char coord' fixes
...
svn-id: r7427
2003-05-11 00:03:03 +00:00
Max Horn
98881c3a6a
init all VAR_* variables to 0xFF; replaced access to _vars in the form _vars[VAR_*] by VARS(VAR_*) which performs a validity checK; renamed _vars to _scummVars to make sure I updated all places; fixed two places where V6 and newer games would access V5 vars (but there are still some left, it seems); checked VAR access for now only generates a warning
...
svn-id: r7393
2003-05-08 15:48:50 +00:00
Max Horn
ac0897515d
unified o?_isEqual, too (but not as nice due to hack)
...
svn-id: r7340
2003-05-05 09:25:07 +00:00
Max Horn
fa0df19a1d
cleanup / reduced code duplication
...
svn-id: r7339
2003-05-05 09:19:15 +00:00
Max Horn
5b08534324
cleanup / fixes
...
svn-id: r7323
2003-05-04 17:39:25 +00:00
Max Horn
a8c180ddf8
cleanup
...
svn-id: r7314
2003-05-04 13:00:41 +00:00
Max Horn
aa74ea1d5c
yet more v2 fixes & cleanup
...
svn-id: r7302
2003-05-04 02:27:22 +00:00
Max Horn
488d5fe351
more v2 fixes; cleanup
...
svn-id: r7301
2003-05-04 02:10:49 +00:00
Max Horn
3b77249ab0
cleanup; got rid of o2_printEgo
...
svn-id: r7300
2003-05-04 01:10:45 +00:00
Max Horn
0ce5658d66
o5_dummy -> o2_dummy (it's not used by the V5 code at all...)
...
svn-id: r7297
2003-05-04 00:29:52 +00:00
James Brown
f51b4387d1
hack around v2 o2_delay problem
...
svn-id: r7284
2003-05-03 15:08:10 +00:00
Max Horn
4ce574f579
cleanup
...
svn-id: r7215
2003-04-30 11:15:11 +00:00
Max Horn
1062e67122
added two missing opcodes (well one is just a stub, but anyway :-)
...
svn-id: r7180
2003-04-28 14:46:55 +00:00
Paweł Kołodziejski
d9c8751168
some fixes to v2 opcodes
...
svn-id: r7153
2003-04-27 11:38:38 +00:00
Paweł Kołodziejski
3d52e4510b
more share code, and fixes
...
svn-id: r7151
2003-04-27 10:05:36 +00:00
Paweł Kołodziejski
33c600dde5
and more share code
...
svn-id: r7150
2003-04-27 09:39:52 +00:00
Paweł Kołodziejski
caf6d74095
put some v2 code into share code
...
svn-id: r7148
2003-04-27 07:52:26 +00:00
Paweł Kołodziejski
5a687ff50f
small fix for v2 opcodes
...
svn-id: r7147
2003-04-27 07:13:03 +00:00
Paweł Kołodziejski
e2f8a6c74c
added more v2 opcodes
...
svn-id: r7145
2003-04-26 20:03:38 +00:00
Paweł Kołodziejski
6bd3454ae5
update for scumm v2
...
svn-id: r7137
2003-04-26 16:37:35 +00:00
James Brown
f996cd5987
Some more V2 fixes for Zak
...
svn-id: r7084
2003-04-23 05:13:26 +00:00
Paweł Kołodziejski
93e28c81ff
added two next v2 opcodes
...
svn-id: r7068
2003-04-21 15:42:55 +00:00
Paweł Kołodziejski
d836216a71
added o2_ifClassOfIs opcode
...
svn-id: r7065
2003-04-21 15:25:29 +00:00
Paweł Kołodziejski
be607289bb
added partialy o2_doSentence opcode
...
svn-id: r7064
2003-04-21 14:59:19 +00:00
James Brown
3fe8f939c6
Another half-assed stub, this time for o2_printEgo
...
svn-id: r7063
2003-04-21 14:50:48 +00:00
Paweł Kołodziejski
835982c60f
More V2 opcode work
...
svn-id: r7060
2003-04-21 14:09:16 +00:00
Paweł Kołodziejski
cd723f9af5
added o2_drawObject opcode
...
svn-id: r7055
2003-04-21 12:31:08 +00:00
Paweł Kołodziejski
65b7241330
added some v2 vars
...
svn-id: r7054
2003-04-21 11:54:27 +00:00
Paweł Kołodziejski
d7deee507a
some changes in v2 variables
...
svn-id: r7052
2003-04-21 10:20:12 +00:00
Paweł Kołodziejski
a80927891c
fixed object flags, it's right shifted half byte
...
svn-id: r7049
2003-04-21 08:50:16 +00:00
Jonathan Gray
5cc5af052f
add readFile stub
...
svn-id: r7048
2003-04-21 00:44:46 +00:00
James Brown
4182b359f9
o2_actorSet stubs
...
svn-id: r7037
2003-04-20 16:59:52 +00:00
James Brown
5f1e964b65
V1/V2 charsets are internal, so we have no load function (yet)
...
svn-id: r7035
2003-04-20 16:37:43 +00:00
Paweł Kołodziejski
4d545953c8
added initial v2 opcode table
...
svn-id: r7030
2003-04-20 16:04:50 +00:00
Max Horn
51b430b088
factored out some common code
...
svn-id: r6974
2003-04-11 20:05:37 +00:00
Paweł Kołodziejski
4cdfd9c2be
added script opcode for dig minigame
...
svn-id: r6834
2003-03-18 20:32:01 +00:00
Max Horn
7ec34ab1a9
refactored some stuff (and made readMAXS virtual, with V2/V3 code having own implementations); cleaned up V6 array shuffle code; made more Scumm member vars/methods protected
...
svn-id: r6751
2003-03-07 21:38:46 +00:00
Paweł Kołodziejski
aa3766018f
updated copyrights headers
...
svn-id: r6726
2003-03-06 21:46:56 +00:00
Paweł Kołodziejski
093428ae9a
and more cleanup
...
svn-id: r6718
2003-03-06 17:58:13 +00:00
Jonathan Gray
401713210b
add stub for opcode 0xE4
...
svn-id: r6671
2003-03-03 10:19:27 +00:00
Jonathan Gray
d2ed6d1ace
add o6_shuffle and stub for o6_localizeArray
...
svn-id: r6629
2003-02-21 00:42:51 +00:00
Jonathan Gray
5c0cfe392b
stub opcode E0 which makes moondemo and fbdemo start yay
...
svn-id: r6624
2003-02-18 23:59:54 +00:00
Max Horn
afbc458b3c
cleanup
...
svn-id: r6621
2003-02-18 01:51:05 +00:00
Jonathan Gray
d5e8f369a2
change getDateTime to be a v6 opcode, and hopefully not break anything
...
svn-id: r6619
2003-02-18 00:13:24 +00:00
Jonathan Gray
c86cc94deb
pickVarRandom stub
...
svn-id: r6618
2003-02-17 21:42:33 +00:00
Jonathan Gray
e909c6b86d
unstub stopTalking as the relevant function stopTalk() already exists in scummvm, add an attempt at findAllObjects that is hopefully not totally wrong, puttmoon now crashes on finding an AKOS block when it is expecting COST, some surgery may be required as all the AKOS stuff seems to be wrapped up in GF_AFTER_V7
...
svn-id: r6614
2003-02-17 10:14:43 +00:00
Jonathan Gray
656bde5aa9
change o6_uknownCD name for o6_stampObject
...
svn-id: r6611
2003-02-16 14:52:25 +00:00
Jonathan Gray
abe76691bc
add stubs for openFile closeFile and deleteFile opcodes
...
svn-id: r6608
2003-02-15 09:39:52 +00:00
Jonathan Gray
db0997e890
add stub for o6_stopTalking
...
svn-id: r6606
2003-02-14 08:12:45 +00:00
James Brown
7a4f4636ee
Theoretically implement O_DRAW_OBJECT - although it doesn't seem to work
...
svn-id: r6560
2003-01-27 06:51:26 +00:00
James Brown
a0b77e7389
LCA03 sync: Modified version of the untrap patch, debugger
...
savegame/loadgame changes, attempts at making the ComI save/load screen
(F1) work. The savegame part of the screen does not work due to a crash,
the load part SHOULD... but something resets the saveload flags before
they are processed (help! :)
svn-id: r6545
2003-01-26 06:17:25 +00:00
Max Horn
37a64f5d12
cleanup; added a hack to avoid crash in the canon scene (at least it works this way for me)
...
svn-id: r6347
2003-01-06 13:41:29 +00:00
Max Horn
82edaeaaf1
unified function names (compared to V8); added some FIXME comments
...
svn-id: r6344
2003-01-06 01:53:38 +00:00
Max Horn
53a8fc24fe
fixed cutscene override in V8; cleanup
...
svn-id: r6316
2003-01-01 17:57:14 +00:00
Max Horn
a03b353dca
implemented o8_getDateTime
...
svn-id: r6295
2002-12-31 17:28:51 +00:00
James Brown
6038bb85be
More CMI opcode work. The Murray scene outside the Voodoo ladys house (-d1 -b201) and the Map (-d1 -b226) now mostly work
...
svn-id: r6281
2002-12-30 17:05:38 +00:00
Max Horn
fc04f73471
implemented V8 verbops fully, based on V6 - this contains some guessing and may contain mistakes. Also added string width opcode
...
svn-id: r6200
2002-12-27 15:32:27 +00:00
Max Horn
8f0af0d2f8
group startScript/Object codes (no code change)
...
svn-id: r6180
2002-12-26 23:24:57 +00:00
Max Horn
ad7fefd34e
map V8 talk opcodes to the right V6 opcodes; however, talking still locks up after the first sentence is uttered (looking into that now); various cleanup; added a guess at VAR_EGO (based on what cmidec says is the 'default_actor')
...
svn-id: r6176
2002-12-26 21:50:13 +00:00
James Brown
f0e31cc23f
Update more CMI opcodes. The first room now starts, although actor text crashes if I try and draw it (Fingolfin?).
...
Object Flags seem to be, suprise, wrong.. as the door to the outside starts open :)
svn-id: r6169
2002-12-26 08:06:33 +00:00
Max Horn
0965c929bc
dummy o8_startVideo implementation
...
svn-id: r6166
2002-12-26 02:18:45 +00:00
Max Horn
a43355a1bf
reuse the old (ugly nasty dreaded) string system for V8, too (by supplying a NUT based CharsetRenderer)
...
svn-id: r6162
2002-12-26 01:47:40 +00:00
Max Horn
447ab20369
cleanup
...
svn-id: r6140
2002-12-25 19:06:31 +00:00
Paweł Kołodziejski
7c7af18bc9
chenged opcode o8_breakHerVar to o6_delayFrames
...
svn-id: r6139
2002-12-25 18:47:46 +00:00
Max Horn
004ea9f8eb
converted heaps of int16 to int for V8 compatibility; fixed defineArray for V8; added some work in o8_kludge2
...
svn-id: r6132
2002-12-25 14:46:39 +00:00
James Brown
bda8d953a8
Clean up the hack. But it's still kinda a hack. Er. :)
...
svn-id: r6130
2002-12-25 14:31:17 +00:00
Max Horn
702de7424c
more opcodes (we see graphics again, albeit only briefly before it crashes)
...
svn-id: r6106
2002-12-25 00:04:12 +00:00
Max Horn
13518c3d36
enabled room & local scripts in V8; some more opcodes
...
svn-id: r6105
2002-12-24 23:26:37 +00:00
Max Horn
2da14e0fa1
more V8 opcodes (mostly rerouting to V6 ones)
...
svn-id: r6088
2002-12-24 00:41:59 +00:00
Max Horn
8380596966
don't let unknown V8 codes pass by (it makes debugging pretty hard)
...
svn-id: r6081
2002-12-23 20:25:47 +00:00
Max Horn
6d0fd3989c
fix jumpTrue/jumpFalse opcodes; slightly better debug output
...
svn-id: r6075
2002-12-23 18:37:56 +00:00
Max Horn
654ed3ff6c
more V8 work
...
svn-id: r6074
2002-12-23 18:30:12 +00:00
Max Horn
b8240b253c
some flesh to the V8 bones
...
svn-id: r6073
2002-12-23 17:21:09 +00:00
Max Horn
f86eaeaff9
more V8 mods; cleanup
...
svn-id: r6070
2002-12-23 15:46:53 +00:00
Max Horn
e192142dac
resolved some arguments with aquadran about how to go on about this :-). Renamed three v6 opcodes
...
svn-id: r6068
2002-12-23 12:50:38 +00:00
Paweł Kołodziejski
034bfddd7e
changed Dword to Uint32, I hope, Filgolfin will be happy :)
...
svn-id: r6067
2002-12-23 09:45:20 +00:00