Solarus-Games English Forum

Solarus => Development => Topic started by: Tulk on January 15, 2016, 11:35:24 PM

Title: Save Game
Post by: Tulk on January 15, 2016, 11:35:24 PM
Good night bros! Need Help on an issue.
When I put the file directory in 'write_dir:' an error occurs.

On Quest Editor:
Quest terminated unexpectedly: The Solarus Write Directory is already set.

On .exe:
This quest is made for Solarus 0.9 but you are running Solarus 1.4.5

How can I fix these errors? Someone Help me?
Title: Re: Save Game
Post by: Christopho on January 16, 2016, 01:07:01 AM
Can you paste the content of your quest.dat file?
Title: Re: Save Game
Post by: Tulk on January 16, 2016, 02:06:25 AM
Yes!

quest{
  -- Format of your quest data files. You should not change this unless you
  -- know what you are doing.
  solarus_version = "1.4",

  -- Directory where your quest will write its savegames and setting files.
  -- It will be a subdirectory of '$HOME/.solarus/', automatically created by
  -- the engine. Its name should identify your quest, to avoid confusion with
  -- other Solarus quests that might also be installed on the user's machine.
  -- You must define it before you can use savegames or setting files.
  -- Uncomment the line below and set its value to the name of that directory:
   write_dir = "tuto_quest_en",

  -- Title of the window. You should probably put the title of your game here.
  title_bar = "A game made with Solarus.",
}

Title: Re: Save Game
Post by: froggy77 on January 16, 2016, 08:04:50 PM
I think you wrote the solution
Quote from: DevilStrawsz on January 15, 2016, 11:35:24 PM
(...)
The Solarus Write Directory is already set.
(...)
Quote from: DevilStrawsz on January 16, 2016, 02:06:25 AM
  -- Directory where your quest will write its savegames and setting files.
  -- It will be a subdirectory of '$HOME/.solarus/', automatically created by
  -- the engine. Its name should identify your quest, to avoid confusion with
  -- other Solarus quests that might also be installed on the user's machine.
  -- You must define it before you can use savegames or setting files.
  -- Uncomment the line below and set its value to the name of that directory:
   write_dir = "tuto_quest_en",

In the directory $HOME/.solarus/ or  %UserProfile%\.solarus (for Windows),
it may be that there is an existing subdirectory named "tuto_quest_en".
Just rename it into, for example, "tuto_quest_en_old" and restart the Quest Editor to update the version.
Title: Re: Save Game
Post by: MetalZelda on January 16, 2016, 09:31:07 PM
Yes, Froggy77 should be right.
Title: Re: Save Game
Post by: Tulk on January 16, 2016, 09:47:52 PM
Not work =/
Title: Re: Save Game
Post by: Christopho on January 16, 2016, 10:11:38 PM
Your quest.dat looks correct. I don't understand why you would have these errors. Are you sure that you run the correct quest?
Can you send us your whole quest (a zip with the whole data directory), so that we can see if we reproduce the problem?
Title: Re: Save Game
Post by: Tulk on January 16, 2016, 11:38:47 PM
Yes. I'm using the newest version of Quest Editor: 1.4.5.
I can send the data directory.. =)
Can be a .RaR archive?

----

Is not working to send here. Maybe be better send to e-mail?
Title: Re: Save Game
Post by: MetalZelda on January 17, 2016, 12:23:56 AM
Isn't this related to "data upgrade" since he straightly upgraded a solarus 0.9 to 1.4.5 ?
Title: Re: Save Game
Post by: Tulk on January 17, 2016, 12:54:30 AM
What do you mean?
Title: Re: Save Game
Post by: MetalZelda on January 17, 2016, 01:58:49 AM
Oh, silly, I misunderstood the OP.

But yeah, you should send the whole quest through a .zip (or whatever format you prefer.).
Title: Re: Save Game
Post by: Christopho on January 17, 2016, 11:56:21 AM
A zip is okay. I don't know the size of your project but maybe you need to host it on dropbox or google drive.
Something is wrong either in the project or in the solarus engine, and i really don't understand why with the error messages you get and with your quest.dat.
Title: Re: Save Game
Post by: Tulk on January 17, 2016, 02:22:34 PM
Here the dropbox link:

https://www.dropbox.com/s/orur97kum0twbzl/data.rar?dl=0
Title: Re: Save Game
Post by: Christopho on January 17, 2016, 02:55:22 PM
I am able to run your quest with both solarus_run and Solarus Quest Editor, there is no problem. Except an error in strings.dat but the game runs fine.
Are you sure you are running the correct quest?
Title: Re: Save Game
Post by: Tulk on January 17, 2016, 04:26:29 PM
Yes. I don't know why the game not saved. '0'
Can you test by set directory folder "write_dir:" to save the game and see the bug? Pls? Or put directory C:\ on "write_dir:" to see what happened. Please? =)
Title: Re: Save Game
Post by: MetalZelda on January 17, 2016, 05:52:58 PM
You should re-download the Quest Editor / solarus executable and re-delete the folder in /user/.solarus
Title: Re: Save Game
Post by: froggy77 on January 17, 2016, 08:15:09 PM
@DevilStrawsz:
Title: Re: Save Game
Post by: Tulk on January 17, 2016, 09:48:24 PM
Windows 7 - 32 bit.
Data Directory of the http://wiki.solarus-games.org/doku.php?id=video_tutorial ... I did not understand this part
Original Versus? What? Isn't free? I did download the newest version.
Now I see the Save! But, how can I put the folder of .solarus into Solarus of Desktop to work? I wanted that save game work on directory of Desktop\Solarus, not .Solarus. Has do?
Title: Re: Save Game
Post by: MetalZelda on January 17, 2016, 10:55:28 PM
No, you don't need to move the .solarus folder.
Open this folder and delete all folders that has any relation to your project.
Re-open the Quest Editor

If that doesn't fix the thing then this is really weird ...
Title: Re: Save Game
Post by: Christopho on January 17, 2016, 10:57:15 PM
write_dir should be set to a simple name like "tuto_quest_en", and should not have special characters like '\'.
In your quest.dat, there is no problem.
Title: Re: Save Game
Post by: Tulk on January 17, 2016, 11:27:47 PM
Thanks for Help!
Now I wanted to know some things. When I save the game, the player always starts on front of the house door. How do I start the player from where saved?
Second, when I enter somewhere (house, cave, dungeon, etc) and leave out of these place, the chests, grasses, etc isn't used as. Need to open again, or destroy it. How do I have counted as used?