74 Commits

Author SHA1 Message Date
James Brown
cdec05af03 Implement MUMBLE
svn-id: r6218
2002-12-28 05:00:45 +00:00
Max Horn
ae5b30df3d get rid of getStringLen and use the more powerful resStrLen instead; moved resStrLen from common/ to scumm/, where it belongs; enhanced resStrLen to suport V8; fixed translateText to support embeded vars (in strings I mean) - it may still not be fully correct but at least is better now; rewrote o6_arrayOps to parallel the V8 version - needs testing
svn-id: r6215
2002-12-28 01:57:19 +00:00
Max Horn
319facc9c3 cleanup
svn-id: r6214
2002-12-28 00:45:44 +00:00
Max Horn
18e0ac90f4 SO_ACTOR_SPECIAL_DRAW = shadow_mode! Looks much better this way, too :-)
svn-id: r6210
2002-12-27 20:15:24 +00:00
Max Horn
788fd1e718 like rtRoom, rtRoomScripts should never expire while the room they belong too is loaded; this fixes the crash when picking up the fishing rod
svn-id: r6208
2002-12-27 19:48:30 +00:00
Max Horn
12cd4b36da cleanup
svn-id: r6206
2002-12-27 16:55:22 +00:00
Max Horn
7501d7d32c opcode 0xDD (find verb), used for conversations
svn-id: r6205
2002-12-27 16:52:59 +00:00
Max Horn
21226d1fb0 verb ids can be > 255 in V8; more V8 verbop corrections
svn-id: r6204
2002-12-27 16:49:08 +00:00
Max Horn
ad06190dd9 removing some annoying warnings
svn-id: r6203
2002-12-27 15:41:43 +00:00
Max Horn
7e254e6410 almost all scripts that use o8_getStringWidth pass 1 as first parameter, but a few pass 3. So I assume this is a charset id
svn-id: r6202
2002-12-27 15:38:04 +00:00
Max Horn
a236ff9689 o8_getStringWidth also pops on param
svn-id: r6201
2002-12-27 15:34:26 +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
8049e06258 fixed flobject loading in V8
svn-id: r6198
2002-12-27 14:36:28 +00:00
Max Horn
2367625da4 cleanup
svn-id: r6187
2002-12-27 00:58:21 +00:00
James Brown
fd64fc2b6b Move some things around, to get rid of all these resource/ sprintf's for CMI
svn-id: r6182
2002-12-27 00:11:01 +00:00
James Brown
a8b5549fb5 o8 startScript juggling
svn-id: r6181
2002-12-26 23:42:28 +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
5a9b972efd Fix incorrect opcode (now it at least starts the Verb Widget scripts)
svn-id: r6173
2002-12-26 17:30:48 +00:00
Paweł Kołodziejski
91fbd9a351 added missing return
svn-id: r6171
2002-12-26 12:27:04 +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
James Brown
608812f683 CMI opcode work
svn-id: r6168
2002-12-26 07:33:47 +00:00
James Brown
3ab9233d60 SMUSH playback opcode
svn-id: r6167
2002-12-26 02:26:38 +00:00
Max Horn
0965c929bc dummy o8_startVideo implementation
svn-id: r6166
2002-12-26 02:18:45 +00:00
Max Horn
f89903a244 added intensity roomops
svn-id: r6164
2002-12-26 02:02:46 +00:00
James Brown
a2340214e9 Allow the CMI logo room to run
svn-id: r6163
2002-12-26 01:54:27 +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
48c66ba210 fixed save/load; more restructuring of the charset rendering code
svn-id: r6154
2002-12-26 00:21:19 +00:00
Max Horn
fca9ec09e7 moved CharsetRendere into its own header/source file; changed Scumm::_charset into a pointer, to make it possible to use different implementations of it
svn-id: r6147
2002-12-25 21:04:47 +00:00
Max Horn
9187172fe2 implemented V8 kernel function 'killAllScriptsButMe' - not sure if I did it right, though
svn-id: r6145
2002-12-25 20:29:40 +00:00
Max Horn
aed55eff69 text center mode hack
svn-id: r6144
2002-12-25 20:15:54 +00:00
Max Horn
5c39a82633 two good rules of thumb: don't use typecasts if you don't have to - type cast have a nasty habit of hiding and causing problems. When a method takes a pointer argument, if possible make it const. :-). Cleanup. Fixed font rendering in CMI: you need to call updateDirtyRect() if you modify the screen...
svn-id: r6143
2002-12-25 20:07:09 +00:00
Paweł Kołodziejski
5f5e96e24f added some stuff to lock/unlock object v2
svn-id: r6142
2002-12-25 19:30:59 +00:00
Paweł Kołodziejski
3bab4d4665 added some stuff to lock/unlock object
svn-id: r6141
2002-12-25 19:24:31 +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
Paweł Kołodziejski
eb4d0145ff changes in o8_kludge
svn-id: r6137
2002-12-25 17:10:34 +00:00
Max Horn
75085a6077 breakHereVar takes an argument -> Ctrl-C now works again (skips to the 'Part I' screen)
svn-id: r6135
2002-12-25 15:11:49 +00:00
Max Horn
33cddb4c1c use translateText for V8 print opcodes
svn-id: r6134
2002-12-25 15:04:04 +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
James Brown
c480833be7 Hacky font support - first attempt :)
svn-id: r6127
2002-12-25 13:51:01 +00:00
Max Horn
4a405b497a get rid of warnings that flood my terminal
svn-id: r6122
2002-12-25 12:25:35 +00:00
Max Horn
fef84f3737 renamed Scumm::charset -> Scumm::_charset
svn-id: r6119
2002-12-25 12:01:04 +00:00
James Brown
e1a416c031 Skeleton for hacky font support using Smush's FontRenderer. Doesn't work (uncomment the loadFont line in script_v8 to test).
Aquadran, where are you? :)

svn-id: r6114
2002-12-25 04:30:24 +00:00
Max Horn
1b0963dd76 added (broken) cursor support for V8; enabled bomp drawing
svn-id: r6113
2002-12-25 03:48:27 +00:00
Max Horn
bf41dbdba3 filled in f-kludge stuff, and make it push(0) - now we don't crash anymore
svn-id: r6112
2002-12-25 02:12:12 +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
190685dc69 added a map from object names to object ids
svn-id: r6104
2002-12-24 16:10:31 +00:00