Author Topic: Remap of Zelda 1  (Read 2691 times)

Ezka

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Remap of Zelda 1
« on: December 29, 2016, 12:38:13 am »
Hi guys, recently I was interested in actually learning how to use the solarus editor rather than just playing games people made with it. Because of that, I am currently working on remapping all of zelda 1: the over world, dungeons, and secrets. I will only be making it so you can walk around and explore, however I may(small chance) try and turn it into a remake further down the line. I have currently made a tiles for the over world, and mapped around 20 game screens.  I will keep you guys updated and how it goes.

MetalZelda

  • Hero Member
  • *****
  • Posts: 511
    • View Profile
Re: Remap of Zelda 1
« Reply #1 on: December 29, 2016, 02:12:01 am »
The first Zelda isn't so hard to remake, in fact it is more easier to remake the NES Zelda on solarus then remaking ALTTP, but t's a good example to learn how the engine works.

Good luck.

Ezka

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: Remap of Zelda 1
« Reply #2 on: December 29, 2016, 09:35:30 pm »
Alright halfway done with mapping the over world. Also, quick question. Is it possible to move a map into a folder after it has been made? I have tried clicking and dragging but it hasn't been working. It isn't necessary but I like to organize. Thanks!

Diarandor

  • Hero Member
  • *****
  • Posts: 805
  • Cats are cool! (ΦωΦ)
    • View Profile
Re: Remap of Zelda 1
« Reply #3 on: December 29, 2016, 10:10:59 pm »
Try to change the "id" of the map. That's actually the folder location if I am not wrong.

MetalZelda

  • Hero Member
  • *****
  • Posts: 511
    • View Profile
Re: Remap of Zelda 1
« Reply #4 on: December 29, 2016, 10:41:08 pm »
If you plan to organize your maps, in your maps folder, you need to have in the same folder,

map.dat
map.lua (if using a script)

Then declare it in the map editor

Ezka

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: Remap of Zelda 1
« Reply #5 on: December 30, 2016, 07:56:50 pm »
I have completed mapping the over world, and am in the process of linking the maps together and making them all traversable. However I have come across a problem after finishing link's sprite.

In "game_manager.lua", I changed hero:set_tunic_sprite_id from hero:set_tunic_sprite_id("main_heroes/eldran")
to links sprite i made: hero:set_tunic_sprite_id("Link/link").

When running the game, the sprite moves around fine but I can't get links head to touch anything. I think it might be because the original sprite used was 24 by 24, however links is only 16 by 16. If someone could provide some insight that would be nice, thanks!

Ezka

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: Remap of Zelda 1
« Reply #6 on: December 30, 2016, 08:02:11 pm »
Update, I just found out that the whole sprite is off. The sprite can also walk into wall blocks by the same amount it can't touch the other blocks

Diarandor

  • Hero Member
  • *****
  • Posts: 805
  • Cats are cool! (ΦωΦ)
    • View Profile
Re: Remap of Zelda 1
« Reply #7 on: December 30, 2016, 08:18:16 pm »
You have to modify the origin point of your sprites, in the sprites editor; that will shift the images and solve your problem. The best option for the "origin_y" coordinate is usually 13, but I can't confirm in your case.

I quote from the Lua API:
"The origin is the point of synchronization for sprites that have several animations or directions of different sizes, and for entity sprites that are larger than the entity itself."
(see http://www.solarus-games.org/doc/1.5/lua_api_sprite.html#lua_api_sprite_get_origin ).

Ezka

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: Remap of Zelda 1
« Reply #8 on: December 30, 2016, 10:03:49 pm »
Thanks, I was a bit confused at first because the origin was centered. However I had to change it to 8 13 for it to work right.

MetalZelda

  • Hero Member
  • *****
  • Posts: 511
    • View Profile
Re: Remap of Zelda 1
« Reply #9 on: December 31, 2016, 03:46:31 am »
Most of the time the correct origin is the center of the sprite (x), and the knee (y)

ffomega

  • Full Member
  • ***
  • Posts: 212
    • View Profile
    • Solarus Resource & Tutorial Site
Re: Remap of Zelda 1
« Reply #10 on: December 31, 2016, 06:06:51 am »
According to Chris, the default origin of a sprite is usually one half the distance of x, and 3 pixels from the bottom of y.

example:

16 x 16 - origin is 8 x 13
32 x 32 - origin is 16 x 29

etc.
My tilesets page can be found here:
http://absolute-hyrule-tutorials.solarus-games.org/

Ezka

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: Remap of Zelda 1
« Reply #11 on: January 09, 2017, 10:38:11 pm »
So I am currently working on moving the maps I have made into the alttp dev pack so I have more to relate to with christophos tutorials. However I have come across a problem when trying to start the game. I have changed the game:set_starting_location to h8 in initial_game.lua. However when starting the game nothing appears. Any suggestions?

MetalZelda

  • Hero Member
  • *****
  • Posts: 511
    • View Profile
Re: Remap of Zelda 1
« Reply #12 on: January 11, 2017, 12:05:21 am »
Is there any error ? What happen? Are you on a map or black screen ?

Ezka

  • Jr. Member
  • **
  • Posts: 58
    • View Profile
Re: Remap of Zelda 1
« Reply #13 on: January 11, 2017, 12:35:08 am »
Their are two things i have tried since

1) I have kept the normal game manager script from the original alttp. With that, nothing shows up on the game screen when I press play and two error messages show up on console:
Error: Failed to load script 'scripts/game_manager': [string "scripts/game_manager.lua"]:3: '(' expected near ':'
Error: In main: [string "main.lua"]:6: module 'scripts/game_manager' not found:


2) I copied the game maneger script from my original game file over and with that, the solarus logo shows up then disappears on the game screen, and 1 error message appears on console:
Error: In on_finished: [string "scripts/game_manager.lua"]:18: Cannot check savegame: no write directory was specified in quest.dat


Also, with both of the game manager scripts, this warning appears:

Warning: Cannot use quest size 320x240: this quest only supports 256x176 to 256x176. Using 256x176 instead.

I do not understand this however because I have set the minimum and maximum  to 256x176 making the normal size just that.

MetalZelda

  • Hero Member
  • *****
  • Posts: 511
    • View Profile
Re: Remap of Zelda 1
« Reply #14 on: January 11, 2017, 02:30:24 pm »
So, as you might see, there is something in game_manager that interrupt the process

There is a missing thing on the line 3 in your game_manager

and there is no folder set to save your savegame.
To do it, just do the following



If there is nothing, just put whatever you wat