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.


Messages - Diarandor

Pages: [1] 2 3 ... 70
1
Development / Re: New Solarus Guide from scratch i'm creating
« on: April 23, 2019, 01:05:26 pm »
I don't want to be a troll, but I don't see the point. The new website will include official multi-language tutorials quite "soon".

Why don't you create a very short game instead? You would enjoy the process, and learning Lua would help you understand how to use the engine, which in turn would allow you help others in deeper stuff.

2
Bugs & Feature requests / Re: Multiple Entities Sponaneously Broken
« on: April 22, 2019, 02:52:27 pm »
So I don't see the option to add these items to the quest; nor can I import them from another quest. Should I go back to the CoS github and download the entire thing so I can import it from there?

If you took them from CoS it is better to import them, because that will automatically add the author/license metadata. Otherwise, right click on the file at the Quest Tree, then select the option "Add to quest" or something like that.

3
Your scripts / Re: Weather script help.
« on: April 15, 2019, 01:48:47 am »
This comment was written in the above part of my script:
Code: [Select]
-- Snow manager script.
-- Author: Diarandor (Solarus Team).
-- License: GPL v3-or-later.
-- Donations: solarus-games.org, diarandor at gmail dot com.

--[[   Instructions:
To add this script to your game, call from game_manager script:
    require("scripts/weather/snow_manager")
The functions here defined are:
    game:get_snow_mode()
    game:set_snow_mode(snow_mode)
    game:get_world_snow_mode(world)
    game:set_world_snow_mode(world, snow_mode)
snow modes: "snow", "snowstorm", nil (no snow).
Warning: all events registered below with the syntax of the multi_events script
need to be "registered" in the same way in other scripts, if defined, to avoid overriding
previous code. Otherwise, you will get errors and the script will not work as it should.
--]]
I hope that answers your question.

4
Bugs & Feature requests / Re: Multiple Entities Sponaneously Broken
« on: April 12, 2019, 05:42:50 pm »
General remarks:

1) Do not mix these 2 different concepts:
sprites (which  are dat files with metadata) and source images (the image files). In other forums or for other engines, image files are called sprites, but that is not the case with the Solarus API.
2) Do not mix these other 2 concepts:
adding a file (copy-pasting files to the data folder) and adding a resource to the quest (right click with the mouse and select the option to add it, or use the import feature that the others mentioned before).

It may seem annoying for newbies to learn these things, but it is very important when you have a problem and need others to understand you.

5
Game art & music / Re: Original art
« on: April 04, 2019, 09:35:59 pm »
No, it isn't worth it. The nickname can be put in the interface Solarus since it is easy now to add the author(s) and the license in the projects. In the end, in my opinion, it is necessary to cut the images without the licenses and the authors in order to avoid having too big files in the final project.

I agree. If the image is without that label in a project, that is perfectly fine if that is explained in a "license.txt" file, and optionally in the metadata. But if that image is posted, for instance, in a forum, without a "license.txt" or metadata (or something similar) indicating the clearly the license and authors, that would be wrong. I may have done things in the wrong way in the past though, but we all have to try to do things in a good way.

Edit: @froggy77: by the way, i like so much your version of the spider that I think we should include it in CoS. Thanks for sharing your work!

6
Why don't you just keep a function getEnduranceMultiplier() instead of saving the current value? IMO, you don't need to save that value.

7
Bugs & Feature requests / Re: Cut Vines
« on: March 27, 2019, 08:08:50 pm »
Hey, gman. From a cursory glance, it looks like vine:overlaps is a function you're trying to call, but it isn't defined anywhere?
Code: (lua) [Select]
your code [/code=lua]
These tags add lines numbers and syntax highlighting for Lua.

Just to point this out, it is defined here: http://www.solarus-games.org/doc/1.6/lua_api_entity.html#lua_api_entity_overlaps_rectangle

By the way, that "test function" can and should be improved by using a better collision test, like
Code: (lua) [Select]
entity:overlaps(other_entity, "sprite", entity_sprite, other_entity_sprite)and then check if the following condition is true to confirm the collision:
Code: (lua) [Select]
if other_entity == hero and other_entity_sprite == hero:get_sprite("sword") then
  return true
end
These conditions can be changed so that other weapons and enemies can destroy vines too, and customize the effect in any case.

8
Your scripts / Re: Simple Leveling up system
« on: March 07, 2019, 10:51:35 pm »
I recommend to use a linear growth instead of an exponential one. You would need only 26214400 xp to level up from Lv19 to Lv20, heheh.

https://en.m.wikipedia.org/wiki/Wheat_and_chessboard_problem

9
Your projects / Re: Solarus - ZL project
« on: February 25, 2019, 10:33:13 pm »
In my opinion, you should split that image in different files as soon as possible, one file for each license. It is not correct to mix art of incompatible licenses in the same file (proprietary art should go appart). Also, I believe that your CC-BY-SA automatically becomes CC-BY-NC-SA when it appears in the same image as your CC-BY-NC-SA.

10
Game art & music / Re: Original art
« on: January 18, 2019, 01:35:22 pm »
Your version is really awesome. You should put yourself as an author too (separating our names with a comma), instead of just "edited by".

11
Game art & music / Re: Original art
« on: January 07, 2019, 07:41:38 pm »
I'm really used to Gimp for pixel art. Maybe someday I will use Aseprite. ;D
I have the same bug: I tested with "local dir = enemy: get_direction4_to (hero) local" and  with "local dir = sprite: get_direction () ". So I checked in the logs and I did not pay attention to the errors probably related to the fact that I test with "solarus-alttp-pack-master" and not with "children-of-solarus".



Code: [Select]
Info: Simulation started

Error: In on_created: enemies/spiderskull.lua:40: attempt to call method 'set_sprite_damage' (a nil value)

stack traceback:

[C]: in function 'set_sprite_damage'

enemies/spiderskull.lua:40: in function <enemies/spiderskull.lua:28>

Error: In timer callback: enemies/spiderskull.lua:227: attempt to call method 'set_default_behavior_on_hero_shield' (a nil value)

stack traceback:

[C]: in function 'set_default_behavior_on_hero_shield'

enemies/spiderskull.lua:227: in function 'throw_acidball'

enemies/spiderskull.lua:99: in function <enemies/spiderskull.lua:92>

Error: In timer callback: enemies/spiderskull.lua:205: attempt to call method 'allow_hurt_enemies' (a nil value)

stack traceback:

[C]: in function 'allow_hurt_enemies'

enemies/spiderskull.lua:205: in function <enemies/spiderskull.lua:204>

Error: In timer callback: enemies/spiderskull.lua:227: attempt to call method 'set_default_behavior_on_hero_shield' (a nil value)

stack traceback:

[C]: in function 'set_default_behavior_on_hero_shield'

enemies/spiderskull.lua:227: in function 'throw_acidball'

enemies/spiderskull.lua:99: in function <enemies/spiderskull.lua:92>

Error: In timer callback: enemies/spiderskull.lua:205: attempt to call method 'allow_hurt_enemies' (a nil value)

stack traceback:

[C]: in function 'allow_hurt_enemies'

enemies/spiderskull.lua:205: in function <enemies/spiderskull.lua:204>

Error: In on_created: enemies/spiderskull.lua:40: attempt to call method 'set_sprite_damage' (a nil value)

stack traceback:

[C]: in function 'set_sprite_damage'

enemies/spiderskull.lua:40: in function <enemies/spiderskull.lua:28>

Info: Simulation finished

Then there is no such bug. It's just a consequence of the errors you get there because some of those functions are not defined in the scripts of your quest. In any case, there may be some more changes in the enemy scripts of CoS to avoid this type of importing problems, and we have to relocate scripts and sprites in the subfolders of CoS (they should appear in the same way as in the free resource pack).

12
Game art & music / Re: Original art
« on: January 06, 2019, 07:34:29 pm »
I have tested in-game. I saw a bug when the spider throws acid: the animation doesn't always match the direction of the projectile. I don't know if I forgot some scripts.

Otherwise, for the graphic part, a larger body would be more scary, but it is already a good job as usual. I'm doing a 4-color version from your "spiderskull" trying to make it look like a spider like Shelob or Aragog. If it doesn't bother you, I will share the result.

Thanks for notifying about the bug, I will try to reproduce it.

Of course, you can modify it for your purposes. I recommend you to do it in the ".ase" file, which uses layers, so that that info is not lost in your file (you can easily generate pngs from there for the layers you choose). What I would do is to add a new body layer and hide the old one in the aseprite file. Working with layers, although not necessary, is faster and better to share your work with others.

EDIT: it should be fixed now, could you confirm? This is the change:
https://gitlab.com/solarus-games/children-of-solarus/commit/1d6dd0551c62c877b830349e32ff29907e77d7e6

13
Bugs & Feature requests / Re: Some Ideas so I Can Help
« on: January 05, 2019, 09:40:00 am »
About the jumpers, you can open an issue to allow resizing jumpers, so that the jumpers width that you see in the Editor corresponds with their jumping distance of the jumper properties. Also, the jumpers could be shown as semitransparent, to allow seing what is below. Another option is to enlarge the jumper in that way only when the cursor is moved above the jumper. I thought that there was an issue for this, but I cannot find it.

14
Game art & music / Re: Original art
« on: January 04, 2019, 07:37:16 pm »
Those spiders are way too good and I hate them. *shudders*  ;D
Thanks for the feedback! I will keep drawing nasty things... :P

15
Game art & music / Re: Original art
« on: January 03, 2019, 04:27:12 am »
We now have spiders too: https://youtu.be/nrCSjff-4k8

Pages: [1] 2 3 ... 70