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

#31
OK, sorry for the pointless post!
#32
Hello, I seem I found a bug with the custom entity. I didn't understand why my custom entity would not walk on ladder and, after many test, I know why. My line was custom_entity:set_can_traverse_ground("ladder", true) but it didn't work. Finally, I had to put custom_entity:set_can_traverse_ground("ladder", false) and now it works. Maybe there is other bugs with this method, (i.e with other entities, why not) but I didn't try.
#33
Development / Re: block between two floor
June 12, 2015, 03:58:45 PM
Thank you, I expected this.
#34
Development / block between two floor
June 12, 2015, 02:32:55 PM
Hello Solarus users,

I was wondering if it was a simple way to make a block fall into a below floor, i.e. the hero push a block in a hole and go to the B1 floor to activate a switch with this block (which just fall from upstairs). Noting that the two floors are on separate maps !

Thanks
#35
Thank you ! I tried everything except comma.... :$
#36
Hi, and thanks for the quick answer !There's a 404 error in your github link, (and anyway I don't know how github works !:p). I was wondering why my game slowed down after the call of the weather function (which is really more important that the part of the code I posted here) and I know why now ! Maybe I should send you the entire script... But I want (or at least try) to find it by myself before ! See you in the dev section !

Sorry but it doesn't work ... Error: Failed to load script 'maps/16': [string "maps/16.lua"]:7: '}' expected (to close '{' at line 5) near 'sol'
Error: In maps/16: attempt to call a string value
#37
Bugs & Feature requests / Surface bug or my bad ?
March 24, 2015, 09:02:41 AM
Hello ! I'm new in the forum, but I know Solarus for a long time. I didn't want to doing some stuff with it before the quest editor was fully operationnal in my opinion, but with the 1.3 version in soon the 1.4, it seems to be the good moment to start it.
Well, I just start two or three weeks ago and for the moment I'm just trying to do some scripting to understand the engine. First of all, I made a night and day cycle and it seems to work. After that, I wanted to do a weather effect with clouds, rain and more, and here is the problem ! I saw in this forum how to show an overlay, but not to make an animation with it. So I coded a script in a map (what I think to be good) but I have an error message and the engine crash after a few moment (2 or 3 minutes or more). I don't know why but the engine crash and I would like to know why !!
Here is the first dialog box message :

Failed to convert software

and the second :

This application has requested the Runtime it in an unusual way. Please contact the application's support team for more information.

I saw that this problem appears only when the surface is animated or moved but not always. Did I do something wrong ?
Here is a shorter and simplified version of what I do (I test it many times and it bug only two times, but it bugged !) :

local map = ...
local Meteo_Pluie_Anim = 1
local Meteo_Etat = "pluie"
local Calque_Pluie = sol.surface.create()

local function Anim()
   Meteo_Pluie_Anim = Meteo_Pluie_Anim + 1
   if Meteo_Pluie_Anim == 4 then Meteo_Pluie_Anim = 1 end   
   Calque_Pluie = sol.surface.create("meteo/"..Meteo_Etat.."_"..Meteo_Pluie_Anim..".png")
end

sol.timer.start(map, 100, function() Anim() return true end)

function map:on_draw(dst_surface)   
   Calque_Pluie:draw(dst_surface)
end

I have other questions, but I will post them in the devlopment section. And sorry for my english...