Commit graph

53 commits

Author SHA1 Message Date
Johannes Schickel
a10097eaa4 Commited patches 1394374 and 1394374 with minor changes.
Thanks to clemmy for that.

svn-id: r19870
2005-12-31 15:41:37 +00:00
Johannes Schickel
d1622557d9 Implemented:
- cmd_pauseTicks
 - cmd_setLogicPage
 - cmd_fatPrint
 - cmd_playWinterScrollSequence
Also implemented functionallity of the other three jewels of the amulet.

svn-id: r19847
2005-12-29 22:18:40 +00:00
Johannes Schickel
f7b4985126 Implemented:
- cmd_magicInMouseItem
 - cmd_poisonDeathNow
 - cmd_poisonBrandonAndRemaps
 - cmd_playFluteAnimation
Also implemented healing function for brandon. And implemented poison death
sequence.

svn-id: r19841
2005-12-28 21:34:40 +00:00
Johannes Schickel
3385ce8617 Fixed bug with input handling and implemented: cmd_getBirthstoneGem.
svn-id: r19834
2005-12-26 17:31:42 +00:00
Johannes Schickel
515b69ddb8 Started to implement button handling (atm only the inventory works)
Also implemented following opcodes:
 - cmd_waitForConfirmationMouseClick
 - cmd_drawItemShapeIntoScene
 - cmd_setFireberryGlowPalette
 - cmd_findBrightestFireberry
 - cmd_sceneToDirection
 - cmd_createAmuletJewel
 - cmd_getCharactersMovementDelay
 - cmd_setNoDrawShapesFlag
 - cmd_checkClickOnNPC
 - cmd_getFoyerItem
 - cmd_setFoyerItem
 - cmd_passiveProtection
 - cmd_fillRect
Fixed bugs in some opcodes (mostly wrong debug calls)
Also changed debuglevel of all sprite functions to level 6 (from 5).

svn-id: r19831
2005-12-24 18:00:35 +00:00
Johannes Schickel
268d05955f Implemented cmd_magicOutMouseItem and also extended enterNewScene
and initSceneScreen.

svn-id: r19830
2005-12-23 17:49:14 +00:00
Johannes Schickel
22033482b0 Small bugfixes with enterNewScene and cmd_pauseSeconds.
Implemented opcode: cmd_setSceneFile

svn-id: r19829
2005-12-22 19:31:38 +00:00
Johannes Schickel
c36104ac0c Completed implementation of processItemDrop
also changed implementation of itemDropDown a bit.
Implemented new opcodes:
 - cmd_fadeSpecialPalette
 - cmd_setCustomPaletteRange

svn-id: r19828
2005-12-22 18:14:52 +00:00
Johannes Schickel
d468c48bda Fixed bug with an endless loop while clicking on herman after giving him the saw.
svn-id: r19827
2005-12-22 01:49:59 +00:00
Johannes Schickel
d43294e7d4 Fixed another gfx bug, this time sprite related, in the temple.
svn-id: r19816
2005-12-20 14:06:47 +00:00
Johannes Schickel
df493c63c4 Implemented cmd_makeAmuletAppear.
svn-id: r19815
2005-12-20 12:42:22 +00:00
Johannes Schickel
f241049961 Fixes gfx bug in the temple and the cave, also corrected
the encodeShape and drawShape function for CD version.

svn-id: r19814
2005-12-20 10:58:07 +00:00
Johannes Schickel
5e8b2637fc Implemented cmd_setScaleMode and changed some old debug calls with debug
level 9 to debug level 3.

svn-id: r19799
2005-12-14 17:56:12 +00:00
Johannes Schickel
5517880300 Fixed a bug with transcendScenes in CD version there the old file
is still loaded then.
Also implemented:
cmd_changeCharactersXAndY
cmd_setCharactersLocation
cmd_setCharactersCurrentFrame

svn-id: r19790
2005-12-13 13:27:58 +00:00
Johannes Schickel
e1492f3ba5 Fixed displaying of brynns note for cd version.
svn-id: r19786
2005-12-12 20:30:23 +00:00
Johannes Schickel
38c3df4393 Implemented drawing of Brynns note.
svn-id: r19774
2005-12-10 19:02:56 +00:00
Oystein Eftevaag
d6e9396166 Implemented basic saving and loading. Use Ctrl+(0-9) to save, and
Alt+(0-9) to load. Also extended the FastMode functionality to cover
the main game, hit Ctrl-F to speed animations and chats. Set '.' to skip
Brandon's chats, removed a redundant showMouse() and hideMouse() pair,
and simplified some screen updating code.

svn-id: r19773
2005-12-10 17:51:40 +00:00
Johannes Schickel
7b556aaafe Implemented cmd_bkgdScrollSceneAndMasksRight.
svn-id: r19772
2005-12-10 15:52:38 +00:00
Johannes Schickel
fe80cf4f99 Changed use of setTimerCountdown to new implemented setTimerDelay.
svn-id: r19771
2005-12-09 23:48:52 +00:00
Johannes Schickel
b57f036975 Fixed bug with wrongly used shapes of items in a room.
Also implemented usage of NPC.EMC in the input function.
And implemented following opcodes:
 - cmd_getCharactersLocation
 - cmd_setBrandonStatusBit
 - cmd_queryScenePhasingFlag
 - cmd_resetScenePhasingFlag
 - cmd_setScenePhasingFlag
 - cmd_phaseInSameScene
 - cmd_popMobileNPCIntoScene
 - cmd_setCharactersMovementDelay
 - cmd_queryBrandonStatusBit
And a fix for the pathfinder and various other functions
using the character positions values so they are now able to handle
negative positions.

svn-id: r19769
2005-12-09 23:02:16 +00:00
Johannes Schickel
b90e114f2c Implemented item dropping into a scene and renamed unkItemFunction to processItemDrop.
svn-id: r19765
2005-12-09 19:49:47 +00:00
Johannes Schickel
69114bb80d Finished item pick up code.
Changed writing of stack access in the script functions.
Also fixed typo with cmdPoisonBrandonAndRemaps.

svn-id: r19764
2005-12-09 17:36:57 +00:00
Johannes Schickel
1fc81a08fa Commited patch # 1376551 (debug console, text fade, misc). Thanks to vinterstum.
svn-id: r19763
2005-12-09 14:52:31 +00:00
Johannes Schickel
bce163c3cb Fixed bug with item drawing.
Added support for item placing. (not user input controlled)

svn-id: r19761
2005-12-08 17:19:18 +00:00
Johannes Schickel
ee69f9317d Added voices for cd version in the game.
Also increased RESFILE_VERSION for the new kyra.dat for the cd version.

svn-id: r19717
2005-11-27 10:02:23 +00:00
Travis Howell
5a62f79bd0 More string fixes for CD version, due to stack order differences.
svn-id: r19715
2005-11-27 05:49:35 +00:00
Travis Howell
a1333d3fb9 Fix characters talking in CD version, stack order is different.
svn-id: r19714
2005-11-27 05:24:35 +00:00
Johannes Schickel
46d02cd9de Implemented cmd_runSceneAnimUntilDone and cmd_displayWSAFrameOnHidPage.
Also fixed cursor hotspot position.

svn-id: r19707
2005-11-27 00:12:07 +00:00
Johannes Schickel
6bf4affaa4 Fixed bug that findSubPath did not update the saved facing.
svn-id: r19704
2005-11-26 16:37:20 +00:00
Johannes Schickel
5eb3e11b46 Implemented basic input handling and fixed mask drawing.
svn-id: r19657
2005-11-18 23:55:31 +00:00
Johannes Schickel
e0aef914fd Fixed a bug with the sprite loader and various things related to
the scene switching code. Now the intro works correctly with a minor graphics glitch.

svn-id: r19588
2005-11-13 19:35:01 +00:00
Johannes Schickel
1f77077524 Commited patch #1354117. Thanks to vinterstum.
svn-id: r19560
2005-11-11 22:17:06 +00:00
Johannes Schickel
7276061b35 Fixed cmd_blockInWalkableRegion and findSubPatch.
svn-id: r19551
2005-11-10 21:42:42 +00:00
Johannes Schickel
f26322d2be Fixed preserveAllBackgrounds and implemented:
cmd_changeCharactersFacing + cmd_popBrandonIntoScene
and extended prepDrawAllObjects so that it could draw talking animations.
Also removed a few useless comments.

svn-id: r19550
2005-11-10 18:58:44 +00:00
Johannes Schickel
dd4e750640 Commited patch #1350510 with some little changes. Thanks to vinterstum.
svn-id: r19548
2005-11-10 14:08:50 +00:00
Johannes Schickel
510eba8227 - fixed setCharactersPosition
- fixed loadCharacterShapes
- fixed anim shape drawing
- corrected some tables
- added debug drawing for the pathfinder (still a bit buggy)
- gets a small script scene to work with some graphics glitches
- corrected some drawShape drawing functions
- started to implement cmd_walkPlayerToPoint and the needed functions

svn-id: r19539
2005-11-09 22:26:12 +00:00
Johannes Schickel
c3ef43fd6b Implemented the pathfinder and applied patch # 1342902.
Also added debug printouts to some functions.

svn-id: r19386
2005-11-01 14:19:50 +00:00
Johannes Schickel
50cc43ba58 Implemented some basic opcodes, and basic character drawing, also
started to change a bit of the sprite code (thanks to vinterstum for his work)
It is still WIP code and breaks CD version, since all the used tables have to
be located in one cd version binary.

svn-id: r19361
2005-10-29 18:37:40 +00:00
Eugene Sandulenko
b36677af71 Update FSF address. Eek. Actually that took place on May 1, 2005
svn-id: r19142
2005-10-18 01:30:26 +00:00
Paweł Kołodziejski
1af9aad8ef compiler warned about useless negative operation. i hope it's ok after change
svn-id: r19107
2005-10-16 10:29:10 +00:00
Johannes Schickel
ce2e9ab9d8 Rewrite of the script interpretation class:
- Now only one instance is needed for many scripts
	- Fixed a few command procs, but lacks opcode caller
	  implementation

svn-id: r19064
2005-10-13 18:05:04 +00:00
Gregory Montoir
24265fd3dd some WIP code to start introduction (with glitches) in Kyrandia 1 :
- the decoders have been rewritten due to crashes I encountered with the previous ones in Compression::
- the wsa code loader for v1 have been rewritten too, to handle the same flags as the original
- some cleanup
- this has only been tested with the floppy version

svn-id: r18704
2005-08-19 22:12:09 +00:00
Eugene Sandulenko
6b4484472b Remove trailing whitespaces.
svn-id: r18604
2005-07-30 21:11:48 +00:00
Torbjörn Andersson
35cb8fb875 For consistency, specify directory when including files.
svn-id: r18447
2005-06-24 16:01:42 +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
Max Horn
9c0f422d0b Ensure the kyra legal headers match the rest of ScummVM
svn-id: r16504
2005-01-09 16:06:29 +00:00
Max Horn
47280d9433 Updated copyright
svn-id: r16398
2005-01-01 16:09:25 +00:00
Eugene Sandulenko
ddda67753e Patch #1066256. Mostly indentation fixes and some debug messages removed.
svn-id: r15811
2004-11-14 20:11:22 +00:00
James Brown
1f7ccd0293 Bring kyra up-to-date with patch 1051358
svn-id: r15786
2004-11-11 13:37:35 +00:00
Gregory Montoir
c50560a488 Clean up a bit the script stuff. In particular, resized the command pointers array, as it seems that none of kyrandia games have more than 0x13 command opcodes (checked kyra2 and kyra3).
svn-id: r15782
2004-11-10 18:45:32 +00:00