Commit Graph

93 Commits

Author SHA1 Message Date
Arnaud Boutonné
4a94eba80a TOON: Add mapping for upper 'ç' and for plenking, both used in french version
svn-id: r55057
2010-12-28 21:19:31 +00:00
Sylvain Dupont
ab01c8e5fc TOON: Fixed memory corruption in several rooms
Some mask line drawings were writing outside the buffer.

svn-id: r55055
2010-12-28 13:13:55 +00:00
Sylvain Dupont
bccf4606c9 TOON: Removed useless confusing code in conversation process part
svn-id: r55054
2010-12-28 13:11:17 +00:00
Sylvain Dupont
1b8678d5de TOON: Path finding bug fixes
Allows Flux to walk close to Drew if really needed to prevent total path block.
Prevents path finding if the character is out of the screen

svn-id: r55051
2010-12-27 21:56:52 +00:00
Sylvain Dupont
f9409fc7d5 TOON: Fixed Bug #3124527 with Dungeon freeze
Bug #3089974: "TOON: Game freezes in act 2 when thrown to the prison"

Wrong pointer increment in conversation process code.

svn-id: r55047
2010-12-26 20:14:04 +00:00
Sylvain Dupont
63e58baae1 TOON: Fix problem when exiting the king cave
svn-id: r55042
2010-12-26 14:32:38 +00:00
Matthew Hoops
375f32fbe9 VIDEO: Make VideoDecoder::decodeNextFrame() return a const Surface pointer
svn-id: r54927
2010-12-16 01:35:13 +00:00
Max Horn
6edc86a19b DEBUG: Let GUI::Debugger::preEnter and postEnter (un)pause the engine
svn-id: r54815
2010-12-07 18:54:21 +00:00
Torbjörn Andersson
6b8a3dba70 TOON: Attempt to fix crash when Bricabrac puts on his glasses
This was a regression in r54223, and it's the most direct fix I can
think of. The problem seems to be that sys_Cmd_Remove_Scene_Anim()
clears the character's _animationInstance while character::playAnim()
is waiting "for the character to be ready".

My fix was to treat _animationInstance NULL as another sign that the
wait is over, but maybe the real fix is for sys_Cmd_Remove_Scene_Anim()
to do more than just clear the variable, e.g. stop the script or
something like that?

svn-id: r54549
2010-11-28 20:53:57 +00:00
Max Horn
2180b2d6b5 COMMON: Split common/stream.h into several headers
svn-id: r54385
2010-11-19 17:03:07 +00:00
Max Horn
a72de47d5d COMMON: Cleanup EventRecorder
svn-id: r54355
2010-11-19 00:38:17 +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
Sylvain Dupont
8a4cc14b1a TOON: Fix audio crashs and more memory leaks
svn-id: r54219
2010-11-12 22:31:04 +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
a74b8ad67f TOON: 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 significant number still remain.

svn-id: r54176
2010-11-09 23:57:56 +00:00
David Turner
5d30eeea95 TOON: Further 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 significant number still remain.

svn-id: r54136
2010-11-08 03:14:32 +00:00
Johannes Schickel
170b21c2ce TOON: Fix mismatching new/delete[] on _hotspots.
svn-id: r54130
2010-11-07 21:25:32 +00:00
Johannes Schickel
7c66cae3de TOON: Cleanup.
svn-id: r54129
2010-11-07 21:22:16 +00:00
Johannes Schickel
efc2808926 TOON: Fix debug console by implementing getDebugger.
svn-id: r54128
2010-11-07 21:21:55 +00:00
David Turner
4acad22d6e TOON: Corrections to close some memory leaks.
These corrections close a number of leaks in the Toon engine reported by running Valgrind with --leak-check=full option.

svn-id: r54127
2010-11-07 21:08:46 +00:00
David Turner
279a760c5a TOON: Added basic debugging console to engine
Since Toon uses Debug Channels, this allows for the interactive setting of debugflags as well as providing a base for adding further debugging commands.
However, the hotkey for this is currently disabled as it causes a segfault. Not sure why.

svn-id: r54123
2010-11-07 17:18:59 +00:00
Max Horn
18d40017e8 ENGINES: Unify code layout of all ADParams instances
svn-id: r54105
2010-11-07 01:01:18 +00:00
Sylvain Dupont
1e59b9dd2c TOON: Fix sound effect archive destroy
Variable not initialized. Crashed when no sound effects were present in the room
(Bug fixed thanks to Thomas)

svn-id: r54076
2010-11-04 22:12:16 +00:00
Sylvain Dupont
9a704e51c1 TOON: Fix ambient audio destroy in chapter 2
(Thanks to Thomas)

svn-id: r54075
2010-11-04 22:06:22 +00:00
Max Horn
a7248a0601 ENGINES: Replace many printfs by warning/debug/debugN
svn-id: r54031
2010-11-01 21:37:47 +00:00
Max Horn
9a350f4398 ENGINES: Get rid of some (f)printfs
svn-id: r54011
2010-11-01 16:04:47 +00:00
Max Horn
e27b05ef35 COMMON: Rename String::printf() to String::format()
This is a first step towards getting rid of all uses of regular printf,
fprintf, vprintf, vfprintf, puts, fputs, etc. in our codebase.

The name format() reflects the purpose of the function, and parallels
String.format() in Java, boost::format, and others.

svn-id: r54004
2010-11-01 16:02:28 +00:00
Sylvain Dupont
ecd3e29fe0 TOON: Stops all Sfx/voice when exiting a room
Caused crashs when exiting when a sfx or voice was still playing
Bug found by Thomas

svn-id: r53928
2010-10-29 22:00:31 +00:00
Sylvain Dupont
ec08328f0c TOON: Fixed some animation glitches for small sprites
Fixed problems when the uncompressed is smaller than compressed size
Bug fix sent by Thomas
It also fixes Bug fix #3086004 : "TOON: Lights above WACME doors incorrect"

svn-id: r53908
2010-10-28 21:39:46 +00:00
Sylvain Dupont
fc1e70eb01 TOON: Fix SetMousePos wrong position
When the game was in a close up, cmd_Set_Mouse_Pos was setting
a out-of-window mouse position.

svn-id: r53866
2010-10-26 22:26:13 +00:00
Sylvain Dupont
66da19552e TOON: Implement cmd_Set_Anim_Scale_Size
Used to rescale the knight animation when the knight 
is moved around the room in Chapter 2

svn-id: r53865
2010-10-26 22:18:14 +00:00
Sylvain Dupont
c509752da1 TOON: Fixed some Z-order issues for animations
Happened when the flag 0x20 was set in Init_Scene_Anim
It says to use the background layer system

svn-id: r53836
2010-10-25 22:41:34 +00:00
Sylvain Dupont
7ab1e368e8 TOON: Implemented Ambient SFX
For example used in arcade playing sounds, lullaby music,
toilet game win sound effects...

svn-id: r53834
2010-10-25 22:15:47 +00:00
Sylvain Dupont
3fb739f90a TOON: Fix conversation freeze in the beginning of chapter 2
A missing talk animation was started

svn-id: r53723
2010-10-22 23:35:56 +00:00
Sylvain Dupont
4b98404d7b TOON: Close correctly sound packs
svn-id: r53720
2010-10-22 23:29:52 +00:00
Sylvain Dupont
9cbb0d5579 TOON: More talk animation fixes
There was a conflict between the idle animation and the talk animation
in some cases (showing the chain anim & idle anim in the arcade)

svn-id: r53713
2010-10-22 21:42:48 +00:00
Sylvain Dupont
63862026bc TOON: Fix for a small typo in talking state
svn-id: r53710
2010-10-22 21:21:57 +00:00
Sylvain Dupont
66e3815963 TOON: Fixed Bug #3089974 and #3086015
Bug #3089974: "TOON: Two Drews when exiting King's bedroom"
Bug #3086015: "TOON: Woof doesn't idle correctly"

Most talking animation bugs are fixed with this.
The mouse is now hidden when entering a room.

svn-id: r53706
2010-10-22 20:53:25 +00:00
Sylvain Dupont
4d28de5623 TOON: Prevent quick load/save when it's not currently possible
svn-id: r53550
2010-10-16 22:07:09 +00:00
Sylvain Dupont
40d38fcc0d TOON: Added most of the remaining Advanced Engine Features
Loading/Saving during runtime, Advanced Pausing,
Load savestate via launcher, RTL

svn-id: r53549
2010-10-16 21:58:33 +00:00
Sylvain Dupont
748e00f1cf TOON: Implemented the 4 different mute modes for sound/text
As specified in the hotkeys screen (music,dialog,sound,text on/off)
Sounds are still played but with a volume = 0 (for timing issues)

svn-id: r53545
2010-10-16 19:27:11 +00:00
Sylvain Dupont
49fc73e3be TOON: Fix bugs #3085967 and #3085969 about guards dance
Bug #3085969: "TOON: Missing dialogue for Palace guards dance"
Bug #3085969: "TOON: Missing dialogue for Palace Guards sequence"

svn-id: r53543
2010-10-16 17:06:10 +00:00
Sylvain Dupont
de1b17fb99 TOON: Fix inventory autoclose when the click is too long
svn-id: r53542
2010-10-16 15:55:11 +00:00
Sylvain Dupont
291f39044f TOON: Removed useless debug printf
svn-id: r53541
2010-10-16 15:49:48 +00:00
Sylvain Dupont
fff2066872 TOON: Fixed bug #3085999 with bad mouse button behavior
Bug #3085999: TOON: "Exiting inventory screen loop"
Now the events are fired on mouse down instead of on mouse up.

svn-id: r53540
2010-10-16 15:44:50 +00:00
Sylvain Dupont
7b50c2e3c3 TOON: Fixed Bug #3086564 with freezing conversation
Bug #3086564: "TOON: Conversation freeze"
There was an error in hardcoded conversation flag function
Fixed also all endianess problems in conversations

svn-id: r53539
2010-10-16 15:14:09 +00:00
Sylvain Dupont
2c2ca3e353 TOON: Fixed bug #3086000 there was no magnifier effect
Bug #3086000: "TOON: Magnifying glass cursor drawn incorrectly"
Zoom magnifier postprocess fx has been implemented

svn-id: r53529
2010-10-16 00:17:19 +00:00