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.",
}
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.
Yes, Froggy77 should be right.
Not work =/
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 ?
What do you mean?
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.
Here the dropbox link:
https://www.dropbox.com/s/orur97kum0twbzl/data.rar?dl=0
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?
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? =)
You should re-download the Quest Editor / solarus executable and re-delete the folder in /user/.solarus
@DevilStrawsz:
- What is your operating system?
- Where comes from your 'data' directory? I guess it comes from an english tutorial but which one?
- Original version of Solarus : ? In your first post, you wrote "This quest is made for Solarus 0.9 but you are running Solarus 1.4.5", so I guess it was a 0.9.
- I tested your project and I also have this message loading your project: 'Error: Error in string data file: [string "text/strings.dat"]:10: attempt to call global 'dialog' (a nil value)'.
I think you made something wrong converting your project. When I open the 'data/languages/en/text/strings.dat' file of your project, the content is not correct, because according to me, it should not contain "Dialogs show when the hero obtains a treasure". I deleted the content of this file and I had no more error in the console.
- There is also a problem with the game_manager:create("save1.dat") but I don't know why :(
There is no error in the console.
I said you to rename your directory named '$HOME/.solarus/tuto_quest_en' into '$HOME/.solarus/tuto_quest_en_old'
(or for Windows, '%UserProfile%\.solarus\tuto_quest_en' into '%UserProfile%\.solarus\tuto_quest_en_old' ),
not 'write_dir = "tuto_quest_en" into 'write_dir = "tuto_quest_en_old".
OK now it does not matter, when we started your quest, a 'tuto_quest_en_old' is created in our '$HOME/.solarus/.
- I think you have a useless subdirectory named 'data' in your directory named 'data'. In other words, another project without maps in your project. Delete this directory will not solve your problem, but it will be cleaner.
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?
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 ...
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.
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?