107 Commits

Author SHA1 Message Date
Johannes Schickel
c23f597f50 KYRA: Cleanup.
svn-id: r52348
2010-08-24 15:48:43 +00:00
Florian Kagerer
9c8b465505 KYRA: FM-Towns audio driver rewrite
- FM-Towns euphony driver completely rewritten based on KYRA FM-Towns and LOOM towns disasm.

- Split all the emu and driver code from sound_towns.cpp into different files to make things a bit less confusing.

- Move the driver code to common space since the exact same euphony driver is used by LOOM which means we could get rid of the outdated and incomplete ym2612 driver/emu implementation (which doesn't even do things like instrument loading, pan position, etc). I haven't tried to add this to the Scumm engine yet, since I am not  familiar with it and my priority was to get the driver finished first. But from the look of disasm it shouldn't be difficult to do.

- Introduce a generic FM-Towns audio interface based on FM-Towns system file disasm which was necessary for the euphony driver rewrite. Every FM-Towns game I have seen so far seems to access the audio hardware via these system functions. This interface implementation will also allow reasonably simple creation of new FM-Towns audio drivers (e.g. this could be used for Kings Quest 5 FM-Towns or others).

- Move the PC98 driver to common space, too, since I have a strong feeling that this driver is also used in the PC98 version of Future Wars

- This also improves KYRA FM-Towns music quality, sound effects accuracy and music fading.

svn-id: r51645
2010-08-02 18:30:25 +00:00
Johannes Schickel
0fe2ba6a0d Some more enforcement of our formatting conventions in KYRA too.
svn-id: r49069
2010-05-17 23:29:44 +00:00
Johannes Schickel
fa84949479 Remove dead code.
svn-id: r46092
2009-11-22 18:17:05 +00:00
Johannes Schickel
d2d3a9a9eb - Store ID map for static resources in kyra.dat instead of hardcoding it in the main KYRA source
- Changed how static resource types are specified
- Rebuilt kyra.dat

svn-id: r46091
2009-11-22 18:16:25 +00:00
Johannes Schickel
d167197a52 Cleanup: remove never used support for builtin static data in StaticResource.
svn-id: r46053
2009-11-21 23:06:22 +00:00
Johannes Schickel
77fda6cf93 Cleanup.
svn-id: r46052
2009-11-21 23:05:25 +00:00
Johannes Schickel
1ba750063c Ooops...
svn-id: r46048
2009-11-21 20:26:55 +00:00
Johannes Schickel
bf5ce985a0 - Got rid of hardcoded filename list for kyra.dat
- Synced static resource definitions between KYRA main codebase and create_kyradat
- Rebuilt kyra.dat

svn-id: r46047
2009-11-21 20:20:24 +00:00
Johannes Schickel
7a8e452f12 Change special palette loading for Kyrandia 1 from kyra.dat to match kyra.dat internals.
svn-id: r46040
2009-11-21 17:05:33 +00:00
Florian Kagerer
1a984d8e7d LOL: add support for pc speaker sfx
svn-id: r45992
2009-11-19 22:17:27 +00:00
Florian Kagerer
9bd5e07d90 KYRA: added kyra 1 pc98 static data to kyra.dat (intro forest sequence is still broken)
svn-id: r45906
2009-11-14 22:51:35 +00:00
Johannes Schickel
51975b50cb Add LoL PC98 credits entries to kyra.dat.
svn-id: r45082
2009-10-14 14:17:15 +00:00
Max Horn
f242266f6d Change a couple places from 'end of namespace' to 'End of namespace', for consistency
svn-id: r44634
2009-10-04 21:26:33 +00:00
Johannes Schickel
eaca55ee50 Some fixes to comply with our coding guidelines.
svn-id: r44624
2009-10-04 17:54:08 +00:00
Florian Kagerer
ad5d918ad5 LOL: update kyra.dat with floppy version data (floppy version still doesn't work, though)
svn-id: r43904
2009-09-02 06:24:01 +00:00
Johannes Schickel
adf1df19c0 Move Amiga SFX tables to kyra.dat.
svn-id: r43793
2009-08-29 07:52:24 +00:00
Johannes Schickel
4afa6d18a4 Implemented support for the "Lore of the Lands" special of Lands of Lore CD.
svn-id: r43349
2009-08-13 15:55:12 +00:00
Florian Kagerer
cbce9e1179 LOL: implemented fireball spell
svn-id: r40813
2009-05-23 18:43:04 +00:00
Florian Kagerer
5076b06bb6 LOL: - implemented Lightning Spell
svn-id: r40776
2009-05-21 22:29:49 +00:00
Florian Kagerer
dd84aaf648 LOL: - added some spell casting (spark, heal, swarm)
- fixed several bugs (not the one in the fighting system though)
- added several opcodes. there shouldn't be any real show stoppers in the draracle cave now.
- simplified wsa code (which required 4 lines of code for displaying a frame)
- added support for wsa animations that don't have a last frame (apparently kyra 2 and 3 don't have this type of wsa file)

svn-id: r40420
2009-05-10 13:40:28 +00:00
Johannes Schickel
9d2e1617a8 More formatting.
svn-id: r40203
2009-04-29 15:48:41 +00:00
Florian Kagerer
ccb64ad81e LOL: - Started implementing the fighting system. The damage inflicted is wrong, however (at least the damage inflicted by the monsters). I'm sowewhat clueless about that bug atm.
- added support for monsters with distance attacks (like those orcs in front of roland's house)
- lots of small bug fixes
- Some startup support for the pc-98 16 color version. The intro will run, but the font drawing/coloring is still wrong.

svn-id: r40144
2009-04-25 13:15:05 +00:00
Florian Kagerer
9638c7ec4b LOL: - added support for magic atlas
- fixed minor palette bug

svn-id: r39818
2009-04-03 21:32:50 +00:00
Florian Kagerer
52726344b7 LOL: - implemented item throwing
svn-id: r39455
2009-03-16 21:20:34 +00:00
Florian Kagerer
dcf32be3f6 LOL: - added some missing animations for the shops
- added support for dropping/picking up items (no throwing yet)

svn-id: r39422
2009-03-15 16:48:20 +00:00
Florian Kagerer
092f2a37e3 LOL: - complete support for the three "special rooms" in the castle
svn-id: r39391
2009-03-14 13:48:12 +00:00
Florian Kagerer
8639e34b41 LOL: - doors can now be opened and closed
- some more work on monster walk code

svn-id: r39166
2009-03-06 22:53:08 +00:00
Johannes Schickel
efd7c2eac9 Ease conditional LoL compiling with build systems not based on the default one.
svn-id: r39125
2009-03-04 11:53:25 +00:00
Johannes Schickel
3a35b5b5f2 - Make Lands of Lore compileable optionally as suggested by _sev. (via ENABLE_LOL define)
- Change default build system to support LoL as a subengine of KYRA. LoL is currently disabled by default.

(- Minor enum name fixes for Lands of Lore code.)

svn-id: r39099
2009-03-04 00:45:34 +00:00
Florian Kagerer
7ea5cefef4 LOL: implemented some monster related code (monsters now get placed in the maze, but they still don't do anything)
svn-id: r39039
2009-03-01 14:45:30 +00:00
Florian Kagerer
8a95f02abf LOL: some work on inventory/item handling
svn-id: r38711
2009-02-21 17:24:50 +00:00
Florian Kagerer
f065524949 LOL:
- implemented some input code
- you can walk around now (not very far though, since doors don't work yet). Keyboard control is still missing
- processButtonList isn't really implemented yet for LOL. I'll still have to check which features are  needed here.

svn-id: r36320
2009-02-14 00:51:07 +00:00
Max Horn
2d866c0483 Renamed Kyra's Resource::getFileStream to createReadStream
svn-id: r36022
2009-01-23 04:57:18 +00:00
Florian Kagerer
44918f5f16 LOL: basic music support and some cleanup
svn-id: r35917
2009-01-18 23:50:31 +00:00
Florian Kagerer
35c8fd4dad LOL: fix some valgrind warnings
svn-id: r35910
2009-01-18 18:20:33 +00:00
Florian Kagerer
ff268e8fd5 LOL: Some drawing code and some opcodes so that the first scene will show up. Playing is not possible. This is still somewhat messy since a lot of stuff hasn't been figured out yet.
svn-id: r35903
2009-01-18 17:04:24 +00:00
Johannes Schickel
e4d2f58417 Cleanup.
svn-id: r35604
2008-12-29 13:59:35 +00:00
Johannes Schickel
7d331b7341 Committed updated version of my patch #2184529 "SearchSet: Get rid of SharedPtr usage".
svn-id: r34837
2008-10-22 17:44:12 +00:00
Johannes Schickel
cd38ddc542 Cleanup.
svn-id: r34831
2008-10-21 11:42:08 +00:00
Johannes Schickel
d89ff31450 Cleanup.
svn-id: r34736
2008-10-03 18:23:57 +00:00
Johannes Schickel
f3469eae94 Check all 'kyra.dat' files in setup paths instead of only the first one found.
svn-id: r34735
2008-10-03 18:18:42 +00:00
Johannes Schickel
6fad6711d9 Changed static resource code to use Streams instead of operating on buffers.
svn-id: r34467
2008-09-09 18:09:46 +00:00
Johannes Schickel
bd10e674a3 Got rid of all Common::File usages in Kyra.
svn-id: r34435
2008-09-07 22:30:34 +00:00
Johannes Schickel
7aaf6139e2 Moved Kyra resource code to a SearchSet/Archive based implementation, this removes dependencies on Common::File.
svn-id: r34428
2008-09-07 21:46:37 +00:00
Johannes Schickel
430977e438 Committed patch #2055831 "KYRA: ResFileEntry parent cache optimization".
svn-id: r34055
2008-08-20 14:30:40 +00:00
Johannes Schickel
3be34f071f Added support for compressed kyra3 audio files.
svn-id: r32516
2008-06-03 18:12:21 +00:00
Johannes Schickel
4ef680abaf - Fixed possible invalid memory access in Resource::loadFileToBuf
- Reworked compressed installer files handling
- Updated HoF installer file code (thanks to _athrxx for that)

svn-id: r32439
2008-05-31 20:48:41 +00:00
Johannes Schickel
6866a4e133 - Cleanup
- Added support for showing kyra.dat error messages in a dialog

svn-id: r32259
2008-05-24 22:44:15 +00:00
Torbjörn Andersson
398f7be356 Fixed errors, a few of the warnings, and added a FIXME comment about possibly
undefined behaviour.

svn-id: r32250
2008-05-24 17:08:35 +00:00