Solarus-Games English Forum

Solarus => Development => Topic started by: aLinktotheDead on July 08, 2015, 11:26:36 AM

Title: Running the quest...?
Post by: aLinktotheDead on July 08, 2015, 11:26:36 AM
Hello, I am a new user of Solarus/Solarus Forums and I am currently working on my first game on Solarus called The Legend of Zelda: Darkest of Times and I need help running it because apparently my map will not open ingame. Please help so I can continue working on my game.
Title: Re: Running the quest...?
Post by: Christopho on July 08, 2015, 11:33:12 AM
Hi,
Did you watch the first video tutorials? http://wiki.solarus-games.org/doku.php?id=video_tutorial
If yes, can you give more details about your problem? Is there an error message or an error.txt file?
Title: Re: Running the quest...?
Post by: aLinktotheDead on July 08, 2015, 11:34:56 AM
Yes, I have watched the tutorial video, but all I know is that it is outdated and literally old, so it probably won't work for me that well, but anyways, I don't have an error.txt file so I know I'm doing something wrong? Whenever I run my quest up, it just cuts to a black screen.
Title: Re: Running the quest...?
Post by: Christopho on July 08, 2015, 11:49:19 AM
Everything in the video tutorials is still relevant, it is just that some files that had to be edited by hand (quest.dat and dialogs) can now also be edited graphically.
Do you have a black screen as soon as you run solarus, or do you see at least the solarus logo?
Title: Re: Running the quest...?
Post by: aLinktotheDead on July 08, 2015, 11:52:07 AM
I do see the Solarus Logo, then it just shows a black screen, nothing else.
Title: Re: Running the quest...?
Post by: Christopho on July 08, 2015, 12:07:23 PM
Ok, then I recommend you to watch the video tutorial part 2 about running your first map. There is nothing outdated in this one.
https://www.youtube.com/watch?v=LALfp7c6rto&list=PLzJ4jb-Y0ufwPrBfO5AQMRfe2kLABQsF0&index=2
Title: Re: Running the quest...?
Post by: aLinktotheDead on July 08, 2015, 12:12:22 PM
You mean I have to edit them by hand in order to get it working? Plus, the quest.dat is totally different from the video!
Also, suddenly message that pops up to the point that it crashes Quest Editor.
(https://s3.imgbomb.com/Zc9mj.png)
Title: Re: Running the quest...?
Post by: Christopho on July 08, 2015, 12:17:45 PM
You have a choice to edit quest.dat:
- You can do it by hand like the video shows.
- Or you can do it from the graphical quest properties editor. To open it, right-click on your quest in the left tree (the root element) and click Edit.

The second option is more straightforward. I recommend to set the title of the window, the write directory for savegames and to keep default values for the rest.
If you have a doubt about the result, don't hesitate to paste your quest.dat here :)
Title: Re: Running the quest...?
Post by: Christopho on July 08, 2015, 12:24:37 PM
Wow, about the runtime error, this looks like a Solarus bug. Can you send me your data directory, so that I can reproduce the crash? I need the exact data that reproduce the crash to be able to fix it.
Title: Re: Running the quest...?
Post by: aLinktotheDead on July 08, 2015, 12:45:00 PM
http://www.mediafire.com/download/3zslgyc680lsyxs/The+Legend+of+Zelda%2C+the+Darkest+of+Hours.zip
This is what you mean, right?
Title: Re: Running the quest...?
Post by: Christopho on July 08, 2015, 01:07:03 PM
There is a black screen simply because your main script does nothing after the solarus logo. You never start a game so nothing happens. See chapter 2 about running your first map.

Also, in the quest properties, the write directory should be a simple name, never a path. For example, loz_darkest_of_hours.
Here is how it works: all games using solarus, and not only yours, store their savegames in a subdirectory of $HOME/.solarus, where $HOME is the home directory of the user (like C:\Users\test1 in your case). This write directory thing is the name of the subdirectory your game wants to use. If you set it to loz_darkest_of_hours, savegames of your game will be stored in C:\Users\test1\.solarus\loz_darkest_of_hours. The only goal of the write directory is to avoid conflicts between different Solarus games installed on the same computer.

The crash was probably because you had backslashes in your write directory. We will fix that.

I hope it helps!
Title: Re: Running the quest...?
Post by: aLinktotheDead on July 09, 2015, 07:04:21 AM
Thanks for da help, I got my game workin' and I'm ready to make a dark Legend of Zelda game!