[Scummvm-devel] [Scummvm-cvs-logs] SF.net SVN: scummvm:[42841] scummvm/branches/gsoc2009-draci/engines/draci/ game.cpp

Denis Kasak denis.kasak at gmail.com
Mon Jul 27 17:01:52 CEST 2009


On Mon, Jul 27, 2009 at 14:59, Robert Špalek<rspalek at gmail.com> wrote:
> hi Denis,
>
> On Mon, Jul 27, 2009 at 7:34 AM, <dkasak13 at users.sourceforge.net> wrote:
>>
>> Revision: 42841
>>          http://scummvm.svn.sourceforge.net/scummvm/?rev=42841&view=rev
>> Author:   dkasak13
>> Date:     2009-07-27 05:34:22 +0000 (Mon, 27 Jul 2009)
>>
>> Log Message:
>> -----------
>> Enabled running of look/use scripts on left/right mouse button press for
>> testing (Warning: unstable in some places).
>
> this is AWESOME!  I was looking forward to this stage, when it starts
> interacting!

Thank you. The situation should improve even more drastically in the
next few days.

> a few obvious comments, but I cannot help to say them:
> - position the text on the objects instead of [0,0]
> - use a proper color instead of the same one, which looks different in each
> palette
> - implement more GPL commands to make the game really interactive.  for
> example, one very easy one should be changing the shape of the game cursor.
> it should nicely change to left/right arrow when being on the edge of the
> location
> - evaluate mathematical expression on whether the object can be used before
> running the program.  this tells you if you should use the normal game
> cursor or its variant with red borders (= signal that the user can perform
> the action)

All noted and will be handled soon (today probably). :-)

>>
>> +                       // HACK: Test running look and use scripts
>> +                       if (_vm->_mouse->lButtonPressed()) {
>> +                               _vm->_script->run(obj->_program,
>> obj->_look);
>> +                               _vm->_mouse->lButtonSet(false);
>> +                       }
>> +
>> +                       if (_vm->_mouse->rButtonPressed()) {
>> +                               _vm->_script->run(obj->_program,
>> obj->_use);
>> +                               _vm->_mouse->rButtonSet(false);
>> +                       }
>>
> not sure if this has something to do with my architecture, but clicks don't
> work on my iMac.

Hmm, that's strange. Is no clicking working at all? Can you warp the
dragon around by clicking on the floor?

If you can, are you sure that the objects you've clicked on run
commands that are implemented? Currently talking is not yet done so
many things don't react at all as they use the Talk or JustTalk
commands. Please try right-clicking on the "paper on the wall" in the
library room (one left from the starting one). For me, it changes to a
different picture when it is right-clicked.

If this doesn't work, could you please try running:

./scummvm -d6 --debugflags=general

and click on the screen? This will show if the mouse clicks are registered.

If registering the clicks is not a problem, but instead the scripts
don't get run correctly, you could try:

./scummvm -d6 --debugflags=bytecode

to see whether the scripts get executed once you click on an object.

-- 
Denis Kasak




More information about the Scummvm-devel mailing list