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

#16
I was using the documentation which gave me different instructions, so yours make more sense. Nevertheless, there's still a problem:
Error: Illegal direction 1 for sprite 'npc/traveller_2' in animation 'walking'
Direction 1 is up, correct? I don't know why that would matter since I didn't tell it to move up, and the sprite is capable of displaying all four directions. But the weird thing is, rather than disappearing completely like I normally see happen, he vanishes for about a second and then reappears a few pixels away facing the right and can be spoken to.
#17
Your addition brings forth this new error repeated:
Error: Illegal direction 2 for sprite 'npc/traveller_2' in animation 'walking'
For context, I want a guy to walk back and forth along a river bank and speak when spoken to. Did I put in the wrong direction numbers?
And I'm not going to forgo programming all together, I was just a little frustrated. I know that the game I want to make won't be easy, but I do want it to be made nonetheless. If it doesn't feel like a Zelda game, then it totally defeats the purpose for its existence. At the very least, I am able to take care of most of the rest of the game design.
#18
Actually, I rather feel inclined to just leave it for now, if now remove it completely in the future. I'm still totally new to programming as a whole and Lua more specifically, so if I keep failing I'll just end up frustrated and likely to abandon the project entirely. Every time I try to program something, even if I apparently follow instructions to the letter it just refuses to work for some reason or another.

I'll just carry on with designing the rest of the game. That at least I'm able to do.
#19
Ok, I've done that and now there's a new problem.
local map = ...
local game = map:get_game()

function map:on_started(movement:start(traveller_2))
local movement = sol.movement.create("path")
  movement:set_path{4,4,4,4,4,0,0,0,0,0}
  movement:set_speed(20)
end

function traveller_2:on_interaction()
game:start_dialog ("plains_traveller")

end

function map:on_opening_transition_finished()

end

The error this time is:
Error: Failed to load script 'maps/Plain of Andor/ag20': [string "maps/Plain of Andor/ag20.lua"]:14: ')' expected near ':'
It feels like every time I try to fix a problem, a new one pops up in its place. :\
#20
Sorry I've been quiet the last couple of days, I've been finishing the other maps and toying with boss scripts in the first dungeon. This is the script for AG20 as at writing:
local map = ...
local game = map:get_game()

-- Event called at initialization time, as soon as this map becomes is loaded.
function map:on_started()
local movement = sol.movement.create("path")
  movement:set_path{4,4,4,4,4,0,0,0,0,0}
  movement:set_speed(20)
end

function movement:start(traveller_2)

end
  -- You can initialize the movement and sprites of various
  -- map entities here.

function traveller_2:on_interaction()
game:start_dialog ("plains_traveller")

end

-- Event called after the opening transition effect of the map,
-- that is, when the player takes control of the hero.
function map:on_opening_transition_finished()

end

The error I get is: Error: In maps/Plain of Andor/ag20: [string "maps/Plain of Andor/ag20.lua"]:20: attempt to index global 'movement' (a nil value)
Any thoughts?

I haven't quite updated my GitHub yet, but I'll do so probably tomorrow or soon enough. Soon I'll need to properly work on boss movements and puzzle mechanics. I think I don't want to move into mapping the rest of the game until I have more of the scripting stuff worked out.
#21
I'm not entirely sure I understand what you're saying there.
#22
It certainly isn't high on my priorities list, but I was watching the Movements tutorial last night and got frustrated that I couldn't get it to work myself. I'll probably have to address it at a later date.
#23
Hello all,
I've got an issue with trying to create a walking NPC. There's a guy in AG20 I want to simply walk back and forth by the river, but so far all I've gotten is this error message repeated over and over:
Error: Illegal direction 2 for sprite 'npc/traveller 2' in animation 'walking'
Here is the code:
local map = ...
local game = map:get_game()

function map:on_started()

end

local movement = sol.movement.create("path")
  movement:set_path{4,4,4,4,4,0,0,0,0,0}
  movement:set_speed(20)

movement:start(traveller2)
end

function traveller2:on_interaction()
game:start_dialog ("plains_traveller")

end

function map:on_opening_transition_finished()

end
#24
Out of curiosity, are you able to be enlisted to create a specific track? There's a song I need for my game that isn't from A Link to the Past.
#25
All right, I've amended those maps so hopefully the drowning issue won't occur. I've also put in a bunch of enemies around the Plain so I'm currently testing balance.
#26
I think the problem was that they weren't actually shooting rocks, which was because I'd copied the LUA file from another Solarus project, and as a result the script couldn't find the location of the rocks. So I redirected it. If that's not the issue then I'm not entirely sure what I did, but I can post my script if you need it.
#27
Have you tried watching Christopho's Youtube tutorials? Just learning the mapping will give you a good start on building a game. Also, there are a lot of aspects to making a game, not simply the programming. Are you going to seek help for those aspects as well? Finally, there is BS The Legend of Zelda, which you could probably use as a reference or recycle some of the assets from.
#28
Quote from: PhoenixII54 on May 18, 2018, 02:10:39 PM
in latest commit, tree stomp/cabin behind merchand of map Ogbam/af26 is partially traversable
Fixed.

Quote from: PhoenixII54 on May 18, 2018, 02:10:39 PM
on the other topic
QuoteOne thing I'm debating over is reshaping the river separating the Plain from the rest of the overworld. I did my best to try and replicate how it looked in the original game, but I'm not sure I like how it looks and can potentially interfere with moving between screens. So my thought is to simply make it nice and straight across with few curves whatsoever, but if it stays the way it is then it's no skin off my nose. Anybody who plays it, can you give me your thoughts on it?
Reference map: https://i.imgur.com/6seyD8Qr.jpg

one thing to be aware of is that you could fall in the deep water right after a transition if you make a diagonal near the map border (EDIT (2:36 PM french time): aaand, i just got stuck and drowned), so you whould avoiding it when possible, either by making it straight or by adding some obstacles
Could you provide examples of where it's particularly hazardous? I could probably put in some rocks or something to block it off.

Quote from: PhoenixII54 on May 18, 2018, 02:10:39 PM
Not related, but : i think the Octos are broken/not finished (commit 74fcf05805bf16facff805d5b6ec82ae43858062):

Error: In timer callback: enemies/octorok.lua:57: attempt to call method 'go' (a nil value)
stack traceback:
[C]: in function 'go'
enemies/octorok.lua:57: in function <enemies/octorok.lua:49>

Fixed.
#29
Quote from: PhoenixII54 on May 18, 2018, 01:18:14 PM
Error: Cannot find quest file 'maps/ae24.dat'
Fatal: Failed to load map data file 'maps/ae24.dat'

This was an issue with the transporter in ae23. Fixed.

Quote from: PhoenixII54 on May 18, 2018, 01:18:14 PM
In map Forest of Ogbam/af26
Error: No such dialog: '' when interacting with left shop item, which has no sprite displayed
Like I said before, the merchant isn't really able to sell stuff yet since I'm yet to learn how shops work. As for the spriteless item, I'm not really sure how to make new items from scratch and how to assign a sprite to them. The item in question happens to be the level 2 shield, by the way.

Quote from: PhoenixII54 on May 18, 2018, 01:18:14 PM
In map Forest of Ogbam/ag28 : western telestransporter is not set to map Forest of Ogbam/af28
The actual problem with that one is that it was set to the destination icon rather than just scrolling over. Fixed.

Quote from: PhoenixII54 on May 18, 2018, 01:18:14 PM
In map Forest of Ogbam/ah29 : the witch has no interaction (yet)
That's intentional. The encounter with her is going to be complex, so I'm just leaving her aside for now.

Quote from: PhoenixII54 on May 18, 2018, 01:18:14 PM
(maybe not a bug) In map Plain of Andor/aj24 : the thirsty woman repeats the same dialog even after accepting her quest
Also intentional. There's a lady at aj22 who does the same thing. Both of them are intended to be minor sidequests, which haven't yet been implemented. I was more concerned with ensuring that the yes and no dialog worked properly since I struggled with it at first.

Quote from: PhoenixII54 on May 18, 2018, 01:18:14 PM
Dying after entering/leaving indoors/under_ag32, sends back to 01. Shrine of Earth/ca07 with the following message :
Error: The savegame refers to a non-existing map: 'Forest of Ogbam/ag32'
I find that odd, and don't really know what to do about it. Ideally, you'd start back at the centre of Vision Henge on loading game and death, unless saved inside a dungeon. The only reason that ca07 is where you end up is because it's chronologically first in all the maps.

Quote from: PhoenixII54 on May 18, 2018, 01:18:14 PM
In map Vision Henge/visionhenge6
Fatal: Missing previous surface for scrolling when trying to go south
Another mapping issue. Fixed.

This is really good stuff you're doing here. I super appreciate it!  ;D
#30
Quote from: PhoenixII54 on May 18, 2018, 11:31:07 AM

  • NPC/signs that refer to dialogs that do not exist (yet) and trigger errors (by the way, you should never use spaces in dialog ids)
Error: No such dialog: 'sign.river source'
Error: No such dialog: 'moblin_inn.lady'
Error: No such dialog: 'moblin_inn.traveler'
Error: No such dialog: 'moblin_inn.patron'
Error: No such dialog: 'moblin_inn.innkeeper'
Error: No such dialog: 'sign.moblin inn'
Error: No such dialog: 'sign.forest of ogbam'

  • the exit teletansporter of map 01. Shrine of Earth/ca07 is inaccessible

The Shrine of Earth error is very probably some mapping error I can fix, and since I'll be going over that folder again eventually I'll probably fix it then. As for the dialog, I know they work on my computer so it's most likely a case of me forgetting to update the Language folder on my GitHub. This has now been fixed.