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 - Yruama

#16
Development / Re: Check Item
December 04, 2014, 06:51:40 PM
I try this :

local map = ...

function map:on_started()
if map:get_game():has_item("lamp") == true then
_13_NPC00:set_enabled(false)
end
end


But i never see my NPC like if i always have the lamp :(

EDIT : I'm just a retard who put a fail line in the code ....
#17
Development / Re: Check Item
December 03, 2014, 02:37:47 PM
I didn't find where is "get_item()" in the documentation.

so i try like you said :

local map = ...

function map:on_started()
if map:get_item("lamp"):get_variant() == 1 then
_13_NPC00:set_enabled(false)
end
end


but it does not work :

ror: In on_started: [string "maps/Map13/13.lua"]:4: attempt to call method 'get_variant' (a nil value)
#18
Development / Check Item
December 03, 2014, 12:00:45 AM
Hi,

I'm sure it's not difficult but i don't find what i want ...

How can i check if the player have a X item ?
For example, a NPC block the path if the player have not the lamp.

Thanks
#19
Bugs & Feature requests / Re: [1.3] Bug SubMenu
November 20, 2014, 12:12:48 PM
Oh i love you :D.

I try to find a solution in yout game, but it's ... hard. You have more files than in your tutorial :D
#20
Bugs & Feature requests / [1.3] Bug SubMenu
November 20, 2014, 01:32:27 AM
Hi,

It's me again ...  :-[

Now i want to create a menu for the items. I Dowload your package : https://www.youtube.com/watch?v=oh6I4yLUQ3E&index=28&list=PLzJ4jb-Y0ufySXw9_E-hJzmzSh-PYCyG2
I modified the file "Game_Manager" like you, but when i start the gamehttp://forum.solarus-games.org/Themes/default/images/bbc/table.gif and i press "D" i have some error :

Error: In on_started: [string "scripts/menus/pause_submenu.lua"]:19: attempt to call field 'get_dialog_font' (a nil value)
Error: In on_draw: [string "scripts/menus/pause_submenu.lua"]:96: attempt to index field 'caption_text_2' (a nil value)


Before doing that, I 've changed a line (in Pause Menu Line 78) :

   local line1, line2 = text:match("([^$]+)\$(.*)") to    local line1, line2 = text:match("([^$]+)$(.*)")
#21
Bugs & Feature requests / Re: [1.3] Bug set_transparency
November 19, 2014, 10:28:39 PM
Thanks, now it works !
#22
Bugs & Feature requests / Re: Linux - Start Quest Editor
November 19, 2014, 08:55:04 PM
It does not work, but i dowload the Editor here :  http://www.solarus-games.org/development/quest-editor/
Now it works  :)
#23
Bugs & Feature requests / [1.3] Bug set_transparency
November 19, 2014, 08:54:12 PM
Hello,

I try to make my HUD, i watch your video on Youtube https://www.youtube.com/watch?v=uhIowwFzd3Q&index=26&list=PLzJ4jb-Y0ufySXw9_E-hJzmzSh-PYCyG2
I take your code, but when i start my game i have an error :
Error: In on_started: [string "scripts/dialog_box.lua"]:64: attempt to call method 'set_transparency_color' (a nil value)


How can i fixe it ?

Merci :D
#24
Bugs & Feature requests / Linux - Start Quest Editor
November 11, 2014, 12:34:41 PM
Hi,

I want to use Solarus on Linux. I clone your Git and i install it. I can start the game "sample_quest" but i don't find where i can start the Quest Editor :(

When i go in "tools" i can see quest_editor. I try to tun it : ./quest_editor but it does not work. :
./quest_editor
Error: Unable to access jarfile editor/target/solarus-editor.jar


Thanks.