Solarus-Games English Forum

Community => Your projects => Topic started by: Dianthus on July 10, 2021, 03:52:30 PM

Title: Minish Cap Maps in Solarus
Post by: Dianthus on July 10, 2021, 03:52:30 PM
I have began making the Minish Cap maps in solarus so they are available as resourses for the community.

Here is my progress on some areas:

Main Town - (like 75% done i guess)
(https://i.imgur.com/vdDysi6.png)

Anyway If anyone wants to help just say so. You can your own area to work on. I am currently working on hyrule fields and minish woods.
Title: Re: Progress on Minish Cap Maps in solarus
Post by: brlmnd on July 14, 2021, 07:08:09 PM
Good job! This will help a lot for ppl looking to make similar games as they can see the original example.

You are awesome!
Title: Re: Progress on Minish Cap Maps in solarus
Post by: Dianthus on July 21, 2021, 04:36:35 PM
Just a picture of my progress on hyrule fields  ;D.

(https://i.imgur.com/q3WEOEt.png)
Title: Re: Minish Cap Maps in Solarus
Post by: Dianthus on July 27, 2021, 08:44:13 AM
Anyone wants to help remaking all of the Minish Cap Maps in Solarus?

If you want you can get your own area to work on. I am currently working on finishing hyrule fields, houses in the main town and Minish Woods.

I dont know to make a Github project, but its what you guys use for group projects right?  ???
Title: Re: Minish Cap Maps in Solarus
Post by: brlmnd on July 27, 2021, 10:05:04 AM
Are you going to release a resource pack for the MC? The last resource pack from the website has not been updated for the last 6 years https://www.solarus-games.org/en/development/resource-packs/the-legend-of-zelda-the-minish-cap
Title: Re: Minish Cap Maps in Solarus
Post by: Dianthus on July 27, 2021, 11:33:46 AM
Think it will be easier to just add to that github file rather than make a new one.

Now i just need push access to upload new files i guess. Is GregoryMcGregerson still active? :)
Title: Re: Minish Cap Maps in Solarus
Post by: brlmnd on July 27, 2021, 12:45:46 PM
From what remember he said in a post that he is no longer working on the project. We can send him a DM.
Title: Re: Minish Cap Maps in Solarus
Post by: brlmnd on July 27, 2021, 12:48:27 PM
I sent him a private message with a link to this thread, hope he will answer soon.

Title: Re: Minish Cap Maps in Solarus
Post by: GregoryMcGregerson on July 27, 2021, 02:35:45 PM
Hello there! Good work on the map!

I am currently working on a Zelda 2 HD pack for Mesen but you are more than welcome to fork the repository and make any changes you wish. I put it up for anyone to use freely or change however they want.

It should have all the tilesets, sound and music in there.

Best of luck to you!
Title: Re: Minish Cap Maps in Solarus
Post by: Dianthus on July 27, 2021, 03:23:48 PM
Oh thx to both of you. I have uploaded my progress on Hyrule town and fields. I have also added some of the missing textures in the hyrule town to the tileset (mostly roof top icons for the shops). I am quite impressed with the amount of work you put into making the Minish Cap resourse pack  :)

Title: Re: Minish Cap Maps in Solarus
Post by: brlmnd on July 27, 2021, 03:28:50 PM
Thanks for the fast reply Gregory!

I have recently used some of your tiles in my map https://www.dropbox.com/s/gxl8crhp9cy4h0u/Overworld.png?dl=0

(the East part with MC design)

You are awesome!
Title: Re: Minish Cap Maps in Solarus
Post by: brlmnd on July 27, 2021, 03:50:45 PM
I love your project Dianthus, can't wait to see it finished. Looks like to make good progress.

You are awesome!
Title: Re: Minish Cap Maps in Solarus
Post by: Dianthus on July 28, 2021, 07:03:17 PM
I ran into a problem. For some reason solarus can no longer run my current version of the hyrule town. The laucher does not use it as start destination (even though it is) and if try to enter the town the game crashes. I dont know what causes it as i have only done tile work.  :-\ Anyone can help?

Here is version my current minish cap resourse pack. The map that crashes is Area 02 - HyruleTown/02_00

https://drive.google.com/file/d/1ERdHNgE1BqIC9QWGZP5rW802ERLZht9a/view?usp=sharing

The crashing didnt exist two days ago.
Title: Re: Minish Cap Maps in Solarus
Post by: Dianthus on July 28, 2021, 09:59:44 PM
Apparently the map works again if i change the name of the safe file in the main.lua to:

    local game = game_manager:create("save2.dat")

So its some bugged out safe file of some sort.

I dont know if this is a permament fix.
Title: Re: Minish Cap Maps in Solarus
Post by: Dianthus on August 03, 2021, 01:10:15 PM
Soon done with Hyrule fields

(https://i.imgur.com/yfZi9TB.png)

I am stuck on what do with the water with animations. I struggle to understand how the animations work when comparing Minish Cap ingame and the tileset. Specifically the water edges next to the dirt/grass walls consist of probably two animations, but they dont match any of the tiles in can find.

And I have no idea how to do that grass and, bushes and small trees for now. They are destructibles i figure, with some programmed droprate of rupees, hearts and stuff which i dont know.
Title: Re: Minish Cap Maps in Solarus
Post by: brlmnd on August 03, 2021, 08:31:47 PM
Awesome work!
Title: Re: Minish Cap Maps in Solarus
Post by: brlmnd on August 03, 2021, 08:45:46 PM
In this archive, I have MC resources, most from the original game. It might help you in the process.

https://www.dropbox.com/s/0utzkxsbzrzj029/MC%20Resources.rar?dl=0
Title: Re: Minish Cap Maps in Solarus
Post by: Dianthus on August 04, 2021, 08:31:45 AM
Thx I am gonna try looking it through :)
Title: Re: Minish Cap Maps in Solarus
Post by: PhoenixII54 on August 04, 2021, 09:22:15 AM
Just a quick warning: big maps can not have more than 65534 elements (tiles and entities) on it (+the base properties, that makes 65535) due to Lua interpreting each entry as a constant (someone had the case on Discord and i had to spit the files into two smaller parts for him to be able to open them again). So be careful, make regular backups (and prefer making muliple smaller maps while still possible).

Otherwise, good luck with your repro, can't wait to see the final result!
Title: Re: Minish Cap Maps in Solarus
Post by: brlmnd on August 04, 2021, 07:37:32 PM
It was me PhoenixII54, do you think the editor will be updated in the next release? To support more elements.
Title: Re: Minish Cap Maps in Solarus
Post by: Dianthus on August 05, 2021, 08:27:22 AM
Making regular backups sound like a good idea. I doubt i will get close to that limit though. Minish Cap maps arent that huge! :)

Hyrule Field
2208/16=138 blocks
2448/16=153 blocks

153*138=21114 blocks

I need to place a few hundred destructibles too. But I still far under that 65534 limit  :D

Btw. I got some bugged out texture in the Castor Wild tileset. Am i the only who having this problem? :/

(https://i.imgur.com/dQabIJK.png)
Title: Re: Minish Cap Maps in Solarus
Post by: PhoenixII54 on August 05, 2021, 11:08:46 PM
The max number of loadable map elements is purely Lua interpreter limit (confirmed by running the big map through Zerobrane), so unless the team writes a manual map loader from scratch (which is unlikely, as there is not a large demand as the time of writing, bsically there are only you and Adrian, as well as the one who wanted to remake Zelda II, though i can't remember how he manages the map(s?), who make "mega maps" ), or Lua gets more constants memory size in its VM (again, unlikely i fear), you'll have to take that hard limit in account.

That said, in your case, the overworld map of Minish cap is small enough to not be an issue, if i refer to your stats, especially since you will have many tiles larger than just 16*16, which inherently reduces the elts count, so... go! Go! GOOOOOO!
Title: Re: Minish Cap Maps in Solarus
Post by: Dianthus on August 14, 2021, 09:27:34 AM
Hi guys.. I am new to coding. I want to add a feature for fullscreen by clicking F11. Its currently not present in Minish Cap Resource Pack. How do i add it in the Lua script? I was looking for the code for it in children of solarus, but cant find it.

Title: Re: Minish Cap Maps in Solarus
Post by: Max on August 19, 2021, 03:51:12 AM
I think Children of Solarus handles that in the main.lua:


-- Event called when the player pressed a keyboard key.
function sol.main:on_key_pressed(key, modifiers)

  local handled = false
  if key == "f5" then
    -- F5: change the video mode.
    sol.video.switch_mode()
    handled = true
  elseif key == "f11" or
    (key == "return" and (modifiers.alt or modifiers.control)) then
    -- F11 or Ctrl + return or Alt + Return: switch fullscreen.
    sol.video.set_fullscreen(not sol.video.is_fullscreen())
    handled = true
  elseif key == "f4" and modifiers.alt then
    -- Alt + F4: stop the program.
    sol.main.exit()
    handled = true
  elseif key == "escape" and sol.main.game == nil then
    -- Escape in title screens: stop the program.
    sol.main.exit()
    handled = true
  end

  return handled
end


The specific bit is (edited a little bit to simplify):

if key == "f11" then
  sol.video.set_fullscreen(not sol.video.is_fullscreen())
end


Basically, this code defines a function called sol.main.on_key_pressed(x). This is a special function- the engine will call this whenever a keyboard key is pressed, and the engine will pass an argument of which key that was (the function I just wrote has the "x" in the parenthesis, that's a variable which will store the key the engine passes along.) I don't know your familiarity with coding, so this might be overexplaining, but.

So then the code has a conditional: if (something) then (do something else) end
So if x == "f11" (as in, if the argument the engine passed, the key pressed, is the f11 key)
then toggle fullscreen.


By the way, just 'cause I noticed nobody had answered you for like 4 days, if you aren't aware of the Solarus discord server, that's a lot more active than the forums. You'll likely get quicker responses there : )
Title: Re: Minish Cap Maps in Solarus
Post by: Max on August 19, 2021, 04:17:19 AM
Oops, sorry to double post, I'm just going through all the unanswered posts on the forum backwards and didn't realize the question about the " bugged out texture in the Castor Wild tileset" was the same topic hahaha

The tilesets in this pack look entirely unfinished and kind unusable in their current state. It looks like someone just overlaid a 16x16 grid, and made everything traversable. There's also tons of "tiles" over the transparent, unused parts of the png. I guess if you're using this though, you probably deleted the tilesets and redid them from the source .png file though?

But if you're asking about the pink, I have a guess for what that is. Because that's the exact shade of pink that everyone used to use back in the RPG Maker 2000 days hahahaha.
Back in those days, RPG Maker didn't read transparency in files. So you'd choose one color to be the "transparent" color, and RPG Maker would treat and tiles that contained that color as if that color was transparent. So you'd need to choose a color that wasn't contained anywhere in the actual tiles, because if you used like white for example, any tiles that were white (snow, highlights, etc) would have "holes" where the white was. Or if you used a shade of green, you'd risk parts of your trees going transparent or something. It might have also been limited to 256 colors? Can't remember. But anyway, basically everyone settled on that shade of pink to be used as the transparent color, since it's basically never used in actual tiles. I'm guessing that was carried on out of habit and used as a placeholder for transparency.

But then looking closer, there's all kinds of weird stuff going on. Some of the tiles have like, a pink overlay, or there's some places where water tiles look to have turned grey somehow. So I think in addition to using the pink for a placeholder, there was also some recoloring mistakes. The tilesets also look like they have a bunch of garbage tiles that were leftover from ripping the graphics from the GBA cart. Like all those little boxes in the Hyrule Town tileset. So these were never cleaned up from the initial ripped graphics, and there could have been some problems during that process that corrupted some of the tiles as well.

TL;DR, I'm guessing that the pink in the tileset was used as a placeholder for transparency, or was left from old Minish Cap rips and wasn't removed. And then it looks like when the tiles were ripped it didn't work perfectly, or there were some mistakes when recoloring. But I don't know how you're using these tilesets anyway because as they are in the repo I just downloaded, they totally need to be redone.

Side note, if you are redoing these or want to and could use help, hit me up. Preferably on the discord server so I'll actually see it haha
Title: Re: Minish Cap Maps in Solarus
Post by: Dianthus on August 21, 2021, 01:14:58 PM
Sry for long response back Max. You wrote alot so i struggled with what to do respond.

No I have not made any new tilesets i just worked directly from what i downloaded and began editting the tiles and added missing ones if neeeded. I hope that is not a problem, i am soon done with hyrule fields and hope i dont want to start over   :o

Thx for the code for fullscreen. I didnt even know that could be in the main file. I havent looked there at all.

I need help though with getting the water animation to work i have no idea how it works based on the tiles in the resourse pack. I can probably fix the pink stuff myself, i can find the tiles through other .png files online and fix it gradually. Interesting reason why its pink, i thought it was just a glitch of some sort  :)

The project have changed abit though. I decided to do a Minish Cap DX project instead, where i add two need dungeons to the game and new areas. Basically i add new areas south of the map.

Here is some of the new areas on the map down south of hyrule:
(https://i.imgur.com/3Jjp4Vp.png)

To the left i add a desert area and dungeon, and down the river i add a waterfall and water dungeon.

So its a much larger project now consisting of remaking old areas and adding new stuff, though i got time. I am using tiles from four swords and hopefully i can get permission from KingMob to use some of his unique tiles and the Echoes of Aurelia guys. This is intended to be my large project i can work in the next 5+ years in the community  :P.
Title: Re: Minish Cap Maps in Solarus
Post by: Max on August 21, 2021, 04:27:46 PM
The new stuff looks good! I'm glad you're already planning a 5+ year timeframe, since this is a very big project indeed : )

So I mean, I certainly won't make you start over and use different tilesets haha, but the "tilesets" in the Minish Cap resource pack were totally unfinished, and I'm guessing they were not meant to be used until someone deleted the "tiles" that were present and made new ones. But if you've made changes and consider them usable to your standards, then go ahead! However, I will say that if the tilesets were set up properly, I would not expect it to take very long to re-create Minish Cap's Hyrule Field. Maybe a couple weeks if you just spend a few evenings on the project?


With the tilesets as they are, I do not see any way to get the water to animate. For one thing, I can't tell if there even are animation frames in these tilesets. Second, to have animated tiles in Solarus tilesets, each frame of the animation needs to be adjacent to the other frames.

For example, in the attached image, the frames for the cliff are next to each other vertically, that's how the animation is laid out. The little wave is animated horizontally.

If you can find all the frames of animation for Minish Cap water, then you'll have to arrange them in rows or columns like this, then set up the animations. You'll have to find all the animation frames yourself (I don't think they're all in the "tilesets" in the resource pack), then arrange them properly, then set up the animations in the tileset editor.


Good luck reaching King Mob! I don't think anyone's ever been able to. As a side note, I don't think we should have his tiles in the tileset, as they're not really the same as using Nintendo tiles, it's weird for Solarus to be providing them on their website (I don't think it was done intentionally).
Title: Re: Minish Cap Maps in Solarus
Post by: Dianthus on August 21, 2021, 04:51:27 PM
Ups, yeah i didnt mean to upload that house tile from KingMob, i was testing stuff on how to do layers and walls on houses. I didnt see I forgot it in the hyrule field tileset. I just tried to remove it, but my pull request dont seem to work now? I cant upload new files  ???

The tiles seemed somewhat useable, but yeah i can see the water animations are totally broken. Gonna try to figure out how it all matches up together, though i cant find anything that resemples an order. Lots of tiles are also missing in the hyrule town all the scultures on top of house where not there.
Title: Re: Minish Cap Maps in Solarus
Post by: Dianthus on July 17, 2022, 05:41:03 PM
Hi guys. Just wanted to post that i am still around and working on the project. I just dont post that often. I am trying to finish minish woods. Still no idea how to do the water. Cant figure out the animations.

(https://i.imgur.com/Qog4e6V.png)
Title: Re: Minish Cap Maps in Solarus
Post by: Max on July 20, 2022, 02:07:09 AM
Looks really cool! Nice work : )

Most people don't post here that often haha, so you're in good company. Almost all Solarus activity is on the discord. Although there's probably some usefulness to having forums, since they work as searchable archives of scripts and stuff that are posted.

I don't think you'll be able to use the tilesets for animated water, if they still are like they were when I last looked at them. You'll probably need to set up new water yourself. Maybe check the Spriter's Resource for tiles? Something I've done at times is looked at Youtube videos of Minish Cap, paused them, and stepped through from by frame (usng the < and > keys) to check each frame of an animation. Maybe you can recreate Minish Cap's tiles that way. Good luck!
Title: Re: Minish Cap Maps in Solarus
Post by: JustAnArtisticPagan on December 18, 2022, 05:22:28 AM
I found some images that seem to show the animation of the water in minish cap:
https://www.purezc.net/Tiles/t1257s1.gif
Title: Re: Minish Cap Maps in Solarus
Post by: Dianthus on July 11, 2023, 06:28:41 PM
Hi just wanted to mention i am still working on it.. Soon done with wind ruins area.

(https://i.imgur.com/5nKWlUs.png)