Commit Graph
411 Commits
Author SHA1 Message Date
Travis Howell 59703e4a57 HE99+ games store the base name is array 129, which is set on startup.
svn-id: r17444
2005-04-08 00:38:12 +00:00
Travis Howell c11827c219 Split readMAXS between HE versions
svn-id: r17435
2005-04-07 11:43:38 +00:00
Travis Howell 810861fdf5 Move hePalettes allocation to HE99.
svn-id: r17434
2005-04-07 11:15:10 +00:00
Travis Howell 682df447a3 The reverse actor layering only applies to pajama3
svn-id: r17432
2005-04-07 10:54:36 +00:00
Travis Howell 6ced0d698a Add WIP on hePalette.
svn-id: r17431
2005-04-07 10:43:51 +00:00
Eugene Sandulenko 668c889c8e Patch from Quietust
o Remove unused _system variables in player_v2a and player_v3a
o Sound player for MM NES :) Now we're playing chiptunes.

svn-id: r17425
2005-04-07 07:29:19 +00:00
Max Horn 2911c2aeb8 oops
svn-id: r17421
2005-04-06 17:42:39 +00:00
Max Horn 3d5b5f2ad8 Moved createResource, resourceStats, expireResources to ResourceManager
svn-id: r17420
2005-04-06 17:31:35 +00:00
Travis Howell c66e6bb001 This section of startScene only exists in scumm5 onwards.
svn-id: r17409
2005-04-06 05:04:39 +00:00
Travis Howell 840a7ee846 Add correct fix for bug #556496
svn-id: r17406
2005-04-06 02:11:07 +00:00
Travis Howell aeec229615 getScriptSlot() must start from slot 1, required for nukeArrays() in HE games.
svn-id: r17383
2005-04-05 11:06:03 +00:00
Max Horn 0c1f2aa161 Removed GF_SMALL_NAMES
svn-id: r17368
2005-04-04 00:16:58 +00:00
Max Horn 1419f0d5ef Split readResTypeList into a normal and a GF_OLD_BUNDLE version; added comments to many of the GF_ feature flags; removed GF_DRAWOBJ_OTHER_ORDER (it was only use by Sam&Max, I switched that to a direct check for Sam&Max)
svn-id: r17362
2005-04-03 22:10:10 +00:00
Max Horn b507231f71 ScummEngine_v4 used to be a subclass of ScummEngine_v3, now it is the other way around; added a new class ScummEngine_v3old, for GF_OLD_BUNDLE games; took advantage of the new inheritance structure and turned various methods into virtual methods which then are overriden in subclasses
svn-id: r17346
2005-04-03 15:06:08 +00:00
Travis Howell b5f281e9d8 Cleanup
svn-id: r17333
2005-04-02 14:24:43 +00:00
Travis Howell d80f9ccd40 Add support for clipping of wizImages.
Add support for altering wizImages.
Various renames.

svn-id: r17322
2005-04-01 08:51:13 +00:00
Max Horn 3ea3c42242 Extended comment on _CLUT_offs a bit
svn-id: r17315
2005-03-31 23:14:09 +00:00
Max Horn bed1629642 Made findResourceSmall local to resource.cpp; simplified _EPAL_offs (since we don't use it nor save it at this time, this is harmless); added a comment about _CLUT_offs ugliness
svn-id: r17314
2005-03-31 23:11:39 +00:00
Max Horn ac247c9b94 Started to move some resource related code into a new class ResourceManager (hypothetic goal for the future: use ResourceManager in ScummEx)
svn-id: r17311
2005-03-31 21:39:31 +00:00
Eugene Sandulenko f4c50eff95 Switch to headerless PRG data for MM NES for better compatibility.
svn-id: r17302
2005-03-30 23:25:49 +00:00
Eugene Sandulenko 7ae3da082e Support for direct reading from NES ROM:
o extend MemoryReadStream with XOR facility
  o implement MemoryWriteStream
  o _fileHandle now is a reference to BaseScummFile class and is created on the fly
  o implement ScummNESFile class which is basically extract_mm_nes utility
  o update NES MM md5's due to above changes

NOTE: to run MM NES now you need to remove *.LFL files and (probably) rename
ROM to standard conventional name 'Maniac Mansion (XXX).nes'

svn-id: r17300
2005-03-30 21:59:12 +00:00
Eugene Sandulenko dbfeb393aa Patch from Quietust for MM NES
o Fix number of global objects
 o Camera-related differences
 o Proper user states
 o Updated MD5 for new 00.lfl

svn-id: r17268
2005-03-27 21:21:05 +00:00
Max Horn abcf7bf2de Tie the AKOS code into the new costume infrastructure, too
svn-id: r17259
2005-03-27 01:07:22 +00:00
Max Horn 446be21239 Started to overhaul the costume infrastructure a bit, properly separating the NES costume code in the process (sorry if I broke stuff for the NES folks, but I figure it is better to get this done properly now before we have to untangle the mess later)
svn-id: r17257
2005-03-27 00:23:38 +00:00
Max Horn 9a4bc8ce16 Patch #1117443 (Experimental plugin code revision)
svn-id: r17231
2005-03-25 17:55:57 +00:00
Max Horn df129b198c Some more cleanup
svn-id: r17227
2005-03-25 01:59:47 +00:00
Max Horn 47ee0ce884 Moved _roomStrips to class Gdi; put some GFX pre-room init code into the new method Gdi::roomChanged(); some more cleanup
svn-id: r17226
2005-03-25 01:52:20 +00:00
Max Horn c86b18716b Started some cleanup work on class Gdi (in particular, I try to limit that class to GFX decoding only, and moved the screen rendering code out of it)
svn-id: r17225
2005-03-25 01:27:28 +00:00
Max Horn 7ed1c19f6c Cleanup: collect the C64 specific render data into a struct inside class Gdi
svn-id: r17224
2005-03-25 00:56:03 +00:00
Max Horn 980576a4b6 Do not use (non-const) local static variables
svn-id: r17221
2005-03-25 00:37:14 +00:00
Eugene Sandulenko 33952c09cb Correct positioning of inventory and verbs in MM NES.
Started to tackle inventory.

svn-id: r17219
2005-03-24 21:34:35 +00:00
Eugene Sandulenko 2226aa6bc9 Add support for russian spyfox2 and spyfox3
svn-id: r17218
2005-03-24 12:33:53 +00:00
Eugene Sandulenko 9ab0962f6d Lots of MM NES changes from Quietust and me
o Swap palette entries 0x00 and 0x1D in all necessary places. This gets
    rid of gray background
  o added a function NES_loadCostumeSet(int n) in order to do #1 for sprites
  o Widen screen to 256 pixels and center narrow rooms in it
  o Partial fix for subtitle rendering, now at least first line is
    rendered with identation

svn-id: r17212
2005-03-24 03:22:32 +00:00
Travis Howell a72a1ef827 Patch from Quietust:
-update md5 checksums for NES maniac

svn-id: r17204
2005-03-23 05:59:24 +00:00
Eugene Sandulenko 8102efa7a3 Add three new HE sports games. Baseball is most playable now.
Add some unhandled KernelGet/SetFunctions used by new titles.

svn-id: r17198
2005-03-22 20:57:14 +00:00
Travis Howell 097a3a0aac Cleanup
svn-id: r17192
2005-03-22 00:46:48 +00:00
Eugene Sandulenko 0bcb0ac257 Many MM NES fixes/improvements from Quietust:
o Doesn't crash when going upstairs. Now game is playable up to
    the green tentacle
  o Proper subtitles colors
  o Room mask is decoded but doesn't affect sprites yet
  o Inventory draw issues fixed
  o Fix actors position when they're facing right

svn-id: r17191
2005-03-21 23:51:48 +00:00
Eugene Sandulenko d1e46a5420 Implement proper scene transition mode for MM NES.
svn-id: r17189
2005-03-21 00:27:39 +00:00
Travis Howell 91bfb91d77 These VARS are only used in Loom [CD] and scumm5 onwards.
svn-id: r17185
2005-03-19 02:40:42 +00:00
Eugene Sandulenko b4ed62e1ad Some Russian Sam'n'Max releases have files renamed to RAMNMAX. So support
those. Also made file name substitution a general thing so we can
eventually get rid of monkey1 target et al.

svn-id: r17179
2005-03-18 15:10:16 +00:00
Travis Howell 47e9cc1b3a Add string height override for loom
svn-id: r17178
2005-03-18 15:04:37 +00:00
Eugene Sandulenko f86768fee8 Preliminary support for NES charsets. Colors are wrong and we get glitches
caused by too narrow screen. Also text clearing doesn't work.

svn-id: r17164
2005-03-16 03:20:32 +00:00
Eugene Sandulenko 968e900a0f oops
svn-id: r17158
2005-03-15 18:46:35 +00:00
Eugene Sandulenko 088eb28c17 Add md5's of all known MM NES versions.
svn-id: r17157
2005-03-15 18:10:06 +00:00
Eugene Sandulenko 4824af64bb Minor NES-related fixes
o Actors do not leave trails, though background isn't restored since
    that code always uses two buffers and nes isn't. I have to switch it to
    use two
  o Add Swedish version of MM NES
  o Code formatting fixes

svn-id: r17156
2005-03-15 17:56:50 +00:00
Travis Howell 065710ee80 Doesn't apply to NES maniac.
svn-id: r17148
2005-03-15 05:28:20 +00:00
Travis Howell e00d808433 Patch from Quietust:
Fix room scrolling in NES maniac.

svn-id: r17147
2005-03-15 04:24:49 +00:00
Eugene Sandulenko 4e39d96e9d Update MM NES md5 due to changed index file.
svn-id: r17144
2005-03-15 02:49:43 +00:00
Travis Howell 7bb8de561b Off by one.
svn-id: r17138
2005-03-15 01:19:36 +00:00
Eugene Sandulenko ef57db4105 First attempt to draw NES sprites. There are these problems:
o Position is not correct
  o Colors are wrong
  o No animation
  o They're not wiped out correctly, maybe because of first problem

svn-id: r17137
2005-03-14 21:13:35 +00:00