Recent posts

#21
Your projects / Re: Ocean's Heart
Last post by Max - November 28, 2023, 03:59:48 PM
Quote from: Wuzzy2 on November 07, 2023, 04:36:17 PM
Wait, so is this game actually proprietary in the end (or has proprietary components)?

Hi Wuzzy! Sorry for the delayed response, I don't check the forums very often, but someone on the Solarus discord was kind enough to bring this to my attention. Yes, Ocean's Heart does have proprietary components. I appreciate your help with beta testing and I'm sorry about this misunderstanding, but it was always going to be a commercial game. I don't think I ever said otherwise, and several posts in this thread are actually regarding how there will be some assets I will freely share.

That said, the Ocean's Heart tiles that I released for free are actually included by default when you download Solarus now. Additionally, I've been working on a much bigger, more extensible, and comprehensive set of code and assets for a few years. It's designed to be used to help someone make a Zelda-like game, whereas Ocean's Heart just _is_ a game and isn't as useful.
You (and anyone else interested) can check out the free Trillium resource package here:
https://gitlab.com/maxmraz/trillium

Generally, the features of Ocean's Heart are all added as systems here, totally rewritten to be much better and more stable. Additionally there's a whole bunch more systems I've written (like a cooking system, lighting effects, entirely new enemies, etc.). I think if you wanted to use anything from Ocean's Heart, Trillium will be much more useful for you.

If there is anything specific in Ocean's Heart that you'd like to use in creating your own game, that isn't already represented in the Trillium resources, let me know!
#22
Development / Question about License and Exa...
Last post by AParticularMaker - November 22, 2023, 01:51:29 AM
Hello, long time lurker first time poster.

I have a question about the code license of the example games on the download page.
I'm currently developing my first game in Solarus and I have a dash function.
Since examples are extremely limited, I copied the dash from YarnTown and modified it heavily.

I would like to develop this game into something commercial to sell on Steam.
From what I've read on this site I think I can do that, but with the GPLv3 license, but I'm 100% sure.
Note if I ever do end publishing this game, I will be more than happy to publish a free demo that anyone can learn from and use in their games.

Thanks
#23
Development / Re: Hero Invisibilty
Last post by PeterB - November 07, 2023, 10:54:16 PM
Yes that is what I would have suggested, i.e. creating a new hero animation in each tunic variant so when using the cape item so you just see a shadow.

You could change the hero's tunic animation to just show an outline and shadow and change it back once a timer ran out if it was powered by magic for example.
#24
Development / Re: How to Change an Entity's ...
Last post by PeterB - November 07, 2023, 10:45:16 PM
Yes it would, as long as you replicate it in all the tunic variants. It can then be called with hero:set_animation(animation, [callback]) from the relevant game, item, map script etc depending on what or where the new animation was called or initiated.

If it is a permanent change then using the hero metatable may be the best way to do it :)
#25
Your projects / Re: Ocean's Heart
Last post by Wuzzy2 - November 07, 2023, 04:36:17 PM
Wait, so is this game actually proprietary in the end (or has proprietary components)? The Solarus games webpage seems to suggest this. See the attached file. Or here: https://solarus-games.org/games/oceans-heart/

If yes, then I am super mad because I helped you beta-test this game for free, assuming this game would be 100% FOSS, no strings attached. But I was NOT willing to contribute anything (not even bug reports) to proprietary software. >:-(

And to add insult to injury, I've just found this game on Steam with 1000+ reviews at a price of ca. 15$ so it looks like it has generated at least 15,000 bucks (before taxes) and I basically gave you free labor while foolishly assuming it would be a non-commercial project. And the actual profit is probably way higher because only a fraction of players leave a review.

So I feel like my labor has been successfully stolen which is just not OK. Even if the game turns out to be 100% FOSS, not revealing upfront it will go commercial is just not OK. I know, I know, commercial software is compatible with FOSS standards, not arguing against that. All I'm saying is that I think if commercial is planned, that should always be upfront, anyhting else just feels scummy. I am a developer myself and I know how valuable beta tests can be to software development.

I still hope at least this proprietary thing is just a misunderstanding (in which case I am only half as mad), so please clarify:

Does this game contain any proprietary/strictly copyrighted files? (For some reason I can't find the source code right now but I could swear I must have seen it before somewhere. It's been many years, after all.)

If Ocean's Heart IS FOSS, then please fix the Solarus games webpage (or ask who ever maintains it to do it). And the webpage should probably also link to the code repository.


And I guess I've learned the hard way to be more careful before contributing anything to random Internet projects. :-(
#26
Development / Problem with trying to overrid...
Last post by lefthandedhero - November 03, 2023, 07:40:29 PM
A while back, I created a custom entity called Follower, who exists to follow the hero. Recently, I created a function entity:swap_sprite() that replaces the Follower's current sprite with the hero's current tunic sprite. Here is that code:

function entity:swap_sprite()
  -- obtain the hero's current sprite:
  repsprite = hero:get_tunic_sprite_id()
  -- replace the current sprite with resprite:
  entity:remove_sprite()
  sprite = entity:create_sprite(repsprite)
end


I then created another function meant to override the game command "item_2"; this function will do multiple things, but right now, it just calls the entity:swap_sprite() function. I intend to store this function in a separate metatable, but right now, it is inside the Follower.lua file. Here's the code:

function game:on_command_pressed(item_2)
  entity:swap_sprite()
return true
end


However, when I try to run the quest, instead of the sprite changing on command, it occurs at the very beginning of the quest, and the hero can no longer use the sword (movement still works). What could be causing this error?


EDIT: To try to figure out what went wrong, I added two lines of code to the swap_sprite() function that changes the hero's current tunic sprite to the follower's sprite (both are using hero tunic sprites of different colours; the hero's sprite is hero/tunic1 and the follower's is hero/tunic3). The modified function is as follows:

function entity:swap_sprite()
  -- obtain the hero's current sprite:
  repsprite = hero:get_tunic_sprite_id()

  -- (For testing) replace hero's sprite with follower's
  local sprite_id = sprite:get_animation_set()
  hero:set_tunic_sprite_id(sprite_id)

  -- replace the current sprite with resprite:
  entity:remove_sprite()
  sprite = entity:create_sprite(repsprite)
end


Now, the two characters swap sprites as intended, but instead of only doing so during the item_2 game command, they do so any time any game command is called: when the hero starts moving, they swap sprites (the hero still starts moving); when the hero changes direction, they swap sprites (the hero still changes direction); When I press "c" for the hero to use their sword, they swap sprites and the sword isn't used; etc.


EDIT: I looked at some default examples of the use of similar events, such as on_key_pressed() and I realized my error; I stated "game:on_command_pressed(item_2)" when I should have stated "game:on_command_pressed(command)" and then stated: if command = "item_2"...
#27
Game art & music / Re: [UPDATE] Absolute Hyrule M...
Last post by Christopho - October 31, 2023, 10:34:50 PM
I eventually found them later, and they can now be found in the ALTTP Resource Pack.
#28
Development / Re: Hero Invisibilty
Last post by Stevespear46 - October 31, 2023, 08:34:14 PM
I was able to get the effect I want with the script below. I created a new tunic dat with sprits that are semi transparent. also had to add a check to my tunic item so if you changed variants while invisible the spirits would update to the new transparent color. I though about going with a new sprite set altogether like a blacked out ninja set or something... maybe in the future.




   local game = item:get_game()
   local map = item:get_map()
   local hero = map:get_hero()

   local tunic_level = game:get_ability("tunic")

    local isInvisible =  game:get_value("hero_invisible")
    if isInvisible == true then
        game:set_value("hero_invisible", false)
        hero:set_tunic_sprite_id("hero/tunic" .. tunic_level)
    else
        game:set_value("hero_invisible", true)
        hero:set_tunic_sprite_id("hero/item/invisibility/tunic" .. tunic_level)
    end
#29
Development / Hero Invisibilty
Last post by Stevespear46 - October 31, 2023, 05:59:20 PM
Hey everyone,

I've looked through the forums and also though the APIs and I'm having trouble with completing a mechanic. I would like to complete the cane of byrna and magic cape. So I've implemented the the items and have been setting the Here entity visibility to false. Unfortunately this also removes the shadow and the player has no idea where the here is. Has anyone implemented this mechanic yet? I thought maybe I could set the sprites alpha to something low and have a mostly transparent Hero. I don't see APIs for that either. Anyone have some ideas?
#30
Game art & music / Re: [UPDATE] Absolute Hyrule M...
Last post by Stevespear46 - October 31, 2023, 05:55:00 PM
Quote from: Christopho on July 31, 2017, 10:46:55 AM
Did anyone download the ALTTP outside sample maps that ffomega made?
Because they were lost and it was a lot of work. I only have two of them (Kakariko Village and Hyrule Castle).
Thanks for you help.

Hey I'm new here. Hoping that someone still has these maps that ffomega made. Would love to to get my hands on them.