Save Game

Started by Tulk, January 15, 2016, 11:35:24 PM

Previous topic - Next topic
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?

Can you paste the content of your quest.dat file?

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.",
}


January 16, 2016, 08:04:50 PM #3 Last Edit: January 16, 2016, 08:07:31 PM by froggy77
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.



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?

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?

Isn't this related to "data upgrade" since he straightly upgraded a solarus 0.9 to 1.4.5 ?


Oh, silly, I misunderstood the OP.

But yeah, you should send the whole quest through a .zip (or whatever format you prefer.).

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.


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?

January 17, 2016, 04:26:29 PM #14 Last Edit: January 17, 2016, 07:59:48 PM by DevilStrawsz
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? =)