Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Vulpo

#1
Development / Re: Dialog boxes in 1.1
October 18, 2013, 02:58:13 PM
Many thanks both of you for your reply  :)

I watched video 1-5 but did not check video 21, since I did not know (but should have guessed) that it will cover the version changes. But nothing has been reported in my error.txt file, which usually works. Today I just had a lot of work to do for the week-end, but for sure I will try again Sunday !!

PS : Just in case it matters, I compilled solarus from source on Fedora 19 and am using Lua 5.1.4.

edit : I have so much work... I couldn't do it Sunday, I hope I'll have the time this week. When I try again, I'll let you know.
#2
Development / Dialog boxes in 1.1
October 16, 2013, 11:07:48 PM
Hi, I am following the tutorials, but the beginning of the 5th chapter let me quite confuse.

When I try to start a dialog with 'd', I only get a floating text with no frame, and I can not close the dialog, nor have a cursor to make a choice for "question=true" dialogs. And I will stay stuck on this window unless I rework on_dialog_finished(), sol.main:on_key_pressed(key) and create a new "key_pressed_on_dialog(key)" function.
My code without this rework is quite similar to the one in the tuto but adapted for version 1.1. Here is the chunk :

function game_manager.create(file)
--create the game (but not start it)
game = sol.game.load(file)
game:set_starting_location("garden","entrance")

        --menu management
game.on_paused = function()
in_dialog = true
game:start_dialog("pause_menu", function(answer)
                                --it gets stucks even before getting there
if answer==1 then
game:save()
end
game:set_paused(false)
end)
end
end


I did not override on_dialog_started(), but neither did christopho in the tutos and yet he has decent dialog boxes. If this change is due to the migration 1.0 -> 1.1, then it seems to me like a quite hudge work to rebuild the yes/no question dialogs from scratch, and this is only the beginning.

Am I missing something ?