Commit Graph

42399 Commits

Author SHA1 Message Date
Walter van Niftrik
ecaab84cb5 SCI: Fixup pathfinding start point when on polygon edge.
We now also fixup the start point when it's on the edge of an obstacle. If the
start point is also on the edge of the screen, the actor is now allowed to
walk through that obstacle to find his way to clear territory. This is based
on observation of SSCI behavior.

svn-id: r54230
2010-11-13 14:46:27 +00:00
Filippos Karapetis
c64a4ce058 TOOLS: Added MSVC10 project files for the create_hugo tool
svn-id: r54229
2010-11-13 13:45:09 +00:00
Filippos Karapetis
325d93d5d8 HUGO: Fixed crash on exit when hugo.dat is not available
svn-id: r54228
2010-11-13 13:41:43 +00:00
Filippos Karapetis
f3ea2315fc SCI: Fixed script bug #3108012 - "Hoyle1: Crash when changing Deal Speed in Hearts"
svn-id: r54226
2010-11-13 13:34:10 +00:00
David Turner
6c78ca4876 HUGO: Close two minor memory leaks.
Destructor added to SoundHandler and added delete for _intro in engine destructor.

svn-id: r54225
2010-11-13 08:08:58 +00:00
Sylvain Dupont
db51fb3386 TOON: Fix free/malloc mismatch
svn-id: r54224
2010-11-13 02:59:46 +00:00
Sylvain Dupont
a373bd4a53 TOON: Fix more memory leaks
Mainly leaks in audio and animations

svn-id: r54223
2010-11-13 02:44:34 +00:00
Sylvain Dupont
420c2c9ff2 TOON: Fixed menu music leak
svn-id: r54222
2010-11-13 01:37:37 +00:00
Sylvain Dupont
698f4c2b45 TOON: Walk animation improved
Smoothing direction changes. Still needs to be polished though.

svn-id: r54221
2010-11-13 01:15:37 +00:00
Matthew Hoops
405fd0b5eb SCI: Update resource types for SCI2.1/3
svn-id: r54220
2010-11-13 00:20:23 +00:00
Sylvain Dupont
8a4cc14b1a TOON: Fix audio crashs and more memory leaks
svn-id: r54219
2010-11-12 22:31:04 +00:00
Arnaud Boutonné
fd82c3783d TOOL+HUGO: Misc modifications
- Fix H1 Dos bug (animations not showing in Hall and after)
- Get rid of _textSchedule and everything related
H1 Dos shoud now be completable (not tested yet)

svn-id: r54218
2010-11-12 18:05:23 +00:00
Filippos Karapetis
103ac9c566 Fixed signed/unsigned warning
svn-id: r54217
2010-11-12 13:05:54 +00:00
Filippos Karapetis
cc403e542d SCI: Don't check for SCI2/SCI2.1 kernel types in SCI3 games.
Patch by lskovlun

svn-id: r54216
2010-11-12 00:01:13 +00:00
Filippos Karapetis
77da22290d SCI: kSave case 0 is actually kSaveGame. Based on a patch by lskovlun
svn-id: r54215
2010-11-11 23:51:43 +00:00
Filippos Karapetis
31719eeb28 SCI2: Make robots return immediately for now, till they're implemented
Based on a patch by lskovlun

svn-id: r54214
2010-11-11 23:48:01 +00:00
Filippos Karapetis
ee85ca0007 SCI: Properly adding SCI3 script patches (a regression of r54211)
svn-id: r54213
2010-11-11 23:46:53 +00:00
Arnaud Boutonné
a0199df818 HUGO: Cleanup, move several functions and variables to the object class
svn-id: r54212
2010-11-11 23:04:04 +00:00
Filippos Karapetis
a65ab98726 SCI: Use the new CSC extension for SCI3 scripts
svn-id: r54211
2010-11-11 19:38:32 +00:00
Filippos Karapetis
8b14137c07 SCI: Some video related changes
- Now playVideo() is used when playing videos from the console (reducing
code duplication)
- Added support for 16bpp scaling in scale2x, so that the 16-bit color
Duck videos are scaled correctly

svn-id: r54210
2010-11-11 19:22:56 +00:00
Johannes Schickel
c624202c39 COMMON: Fix compilation when translation support is disabled (regression from r54207).
svn-id: r54209
2010-11-11 19:20:26 +00:00
Filippos Karapetis
ebee22a934 SCI: Added the "DUK" video folder to the Search manager
The DUK folder contains all of the recently supported Duck videos in
Phantasmagoria 2. play_video works now with the videos of Phantasmagoria
2 :)

svn-id: r54208
2010-11-11 18:42:22 +00:00
Max Horn
bc09acfef1 LASTEXPRESS: Silence potential warnings about extra semicolons
svn-id: r54207
2010-11-11 18:22:55 +00:00
Max Horn
cc61445599 COMMON: Cleanup translation manager code; add FIXME
svn-id: r54206
2010-11-11 18:22:35 +00:00
Matthew Hoops
8e274749ed VIDEO: Add support for DK3 in videos; fix sample rate location
svn-id: r54205
2010-11-11 17:05:33 +00:00
Matthew Hoops
876e38ca92 SOUND: Add DK3 IMA ADPCM decoder for duck videos
svn-id: r54204
2010-11-11 17:04:07 +00:00
Johannes Schickel
cc84c2dcfb LASTEXPRESS: Remove superflous if check in SAFE_DELETE.
svn-id: r54203
2010-11-11 16:44:28 +00:00
Arnaud Boutonné
b0bf67b424 TOOL: Suppress useless strings in textUtil
Also add DOS version for this text array

svn-id: r54202
2010-11-11 15:01:57 +00:00
Julien Templier
521f228ced LASTEXPRESS: Use SAFE_DELETE for class variables
svn-id: r54201
2010-11-11 14:19:44 +00:00
Matthew Hoops
7207d920bc VIDEO: Cleanup AVI audio in preparation for DK3
svn-id: r54200
2010-11-11 13:23:26 +00:00
Walter van Niftrik
97067a75db SCI: Allow paths along the edge of the screen in kAvoidPath.
Paths along the edge of the screen are now taken as a last resort. Fixes
bugs #3047418 and #3059595.

svn-id: r54199
2010-11-11 11:24:12 +00:00
Arnaud Boutonné
84e4c1742a HUGO: Suppress the use of Utils::Error, cleanup
svn-id: r54198
2010-11-11 10:36:10 +00:00
Filippos Karapetis
203ff5e19a SCI: Fixed bug #3104624 - "PQ3: Crash when loading saved game on the highway"
svn-id: r54197
2010-11-11 10:09:57 +00:00
Julien Templier
6711c5a8cf LASTEXPRESS: Fix more memory leaks
- Missing deallocation of queued frames in SceneManager
 - Leaking functor on each call to entity setup functions
 - Add SoundEntry destructor & better Entity cleanup

as reported by digitall

svn-id: r54196
2010-11-11 06:18:23 +00:00
Matthew Hoops
da33617061 SCI: Allow duck videos to be played from the console
svn-id: r54195
2010-11-11 05:18:40 +00:00
Matthew Hoops
5e8e77a814 VIDEO: Add the TrueMotion 1 codec for Phantasmagoria 2
Based on the FFmpeg decoder. Only the 16bpp version has been implemented (and all that should be needed). The videos I have tried work fine with the codec. The audio does not yet play in these videos, but I hope to work on DK3 IMA ADPCM soon.

svn-id: r54194
2010-11-11 04:53:52 +00:00
Julien Templier
3b66e53bbe LASTEXPRESS: Fix some memory leaks
- Reading past the end of file in SaveLoad::init
 - Missing deallocation of cache in SoundManager
 - Missing deallocation of coords in SceneHotspot
 - Missing deallocation of event handlers in LastExpressEngine::setEventHandlers
 - Missing deallocation of InSaveFile in SaveLoad::isSavegameValid
 - Missing deallocation of frames in Menu

as reported by digitall

svn-id: r54193
2010-11-11 03:25:35 +00:00
Matthew Hoops
d1bd2497a5 GRAPHICS: Enforce alphabetical order on the codec objects
svn-id: r54191
2010-11-10 19:18:39 +00:00
Yotam Barnoy
2e9b304d76 PSP: changed renderer to render huge images properly
The PSP HW wasn't able to calculate the proper stretching when given the whole image size on a huge image. This is also a better way to do it because we're not overwriting tiles of the texture.

svn-id: r54190
2010-11-10 16:22:00 +00:00
Matthew Hoops
dc02bd2b4e SCI: Add missing new line
svn-id: r54189
2010-11-10 14:40:23 +00:00
Filippos Karapetis
9d1006c7a3 SCI3: Some changes
- Placed the SCI3 version detection in the proper place
- Some new types of SCI3 MT-32 patches (e.g. in the Lighthouse SCI3 demo) are
ignored, for now

svn-id: r54188
2010-11-10 14:28:45 +00:00
Julien Templier
380121fb55 TOOLS: Remove CXXFLAGS rule from create_project module.mk
svn-id: r54187
2010-11-10 14:06:39 +00:00
Julien Templier
966e3c1305 TOOLS: Fix typo in create_project MSVC9 project file
svn-id: r54186
2010-11-10 09:07:10 +00:00
David Turner
52ecbd4305 TOON: Even more corrections to close memory leaks.
These corrections close a number of leaks in the Toon engine reported by running Valgrind with --leak-check=full option, but a few still remain.

svn-id: r54185
2010-11-10 06:22:18 +00:00
David Turner
7ad677afc8 SWORD25: Added basic debugging console to engine (Command Key Disabled)
Since SWORD25 uses Debug Channels, this allows for the interactive setting of debugflags as well as providing a base for adding further debugging commands.

However, this is not currently usable as the command key code is commented out.
This is due to the event loop which reads keyboard input being buried 2 object layers below the Engine VM object and I am unsure how the engine development team would want this exposed / interfaced.

svn-id: r54184
2010-11-10 04:30:24 +00:00
Johannes Schickel
c9969d2be0 TOOLS: Remove superflous pointer dereference in create_kyradat.
svn-id: r54183
2010-11-10 03:59:43 +00:00
Julien Templier
66b172bb26 TOOLS: Add create_project tool
- Move project providers to their own source files
 - Add support for Code::Blocks
 - Add analysis build configuration for Visual Studio

svn-id: r54182
2010-11-10 03:56:42 +00:00
Julien Templier
d1723ab2ec TOOLS: Remove create_msvc and update readme
svn-id: r54181
2010-11-10 03:46:36 +00:00
Julien Templier
aad7f2e0eb TOOLS: Update batch files for new create_project tool
svn-id: r54180
2010-11-10 03:44:50 +00:00
Matthew Hoops
988d9f3401 SCI: Fix SCI2.1+ fallback detection
Each map has to be mapped with its own specific volume (as opposed to earlier versions that had one map for all volumes); this code was passing the same map pointer for all volumes.

svn-id: r54179
2010-11-10 03:34:08 +00:00