Elven Island
Elven Island
Anyone have a waypoint file for the quests in elven island by chance?
Re: Elven Island
Well, I tried to make a WP for elven island, using the 0 option to insert code as I went along. Unfortunately after about 10 quests createpath crashed with "Macro text too long", so now the WP is gone, and I can't redo the quest recording... so.. can we have createpath autosave the file after each WP?
Re: Elven Island
I suggest you don't try to do 10 quests in a row. Break it up into smaller parts and then merge them together later. Also, to avoid that error, leave adding long complex code until after you save the file. Just add a comment to let yourself know where to insert the code later.
Although I am a bit interested in the idea of auto saving your progress. There are many situations in which you could loose your work and it would be nice to be able to recover the work already done. This would require either asking for the file name first or saving to a temporary file that gets renamed or copied later to the new name. I'll think about it and see how difficult it would be.
Although I am a bit interested in the idea of auto saving your progress. There are many situations in which you could loose your work and it would be nice to be able to recover the work already done. This would require either asking for the file name first or saving to a temporary file that gets renamed or copied later to the new name. I'll think about it and see how difficult it would be.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Elven Island
Yea just open a temp file, "Createpathautosave.xml", at each WP save just write to file and flush. 
Essentially like logging to a file, at each waypoint press.
Essentially like logging to a file, at each waypoint press.
Re: Elven Island
I was thinking of writing each line. The 'saveWaypoint' function is already set up to write each line in the table one at a time. I thought I could change it to writing only one line then, each time a line is saved to the table it saves it instead by calling that function.
I was a bit worried about how long it takes for it to open a file, write to it and then close but I just tested it. It's very fast.
I was a bit worried about how long it takes for it to open a file, write to it and then close but I just tested it. It's very fast.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan
Re: Elven Island
Ok, this took me longer than expected because I couldn't get the numbering working properly.
Anyway it's working now. It's based on the RC version which fixed the numbering in the file. I made the extra effort and made it so it saves the waypoint each time you press the waypoint or harvest buttons, instead of after every line. I did this because, in another version I did for my own needs, I managed to add a button for adding a waypoint tag and I wanted to leave open the possibility of adding it to this version too. And for me to be able to do that you would need to add the tag before saving the waypoint.
I named the temporary file "_recoveryfile.lua". When it saves it, it actually just renames it. If the renaming fails it will print an error message and ask you to try again.
Let me know what you think.
Anyway it's working now. It's based on the RC version which fixed the numbering in the file. I made the extra effort and made it so it saves the waypoint each time you press the waypoint or harvest buttons, instead of after every line. I did this because, in another version I did for my own needs, I managed to add a button for adding a waypoint tag and I wanted to leave open the possibility of adding it to this version too. And for me to be able to do that you would need to add the tag before saving the waypoint.
I named the temporary file "_recoveryfile.lua". When it saves it, it actually just renames it. If the renaming fails it will print an error message and ask you to try again.
Let me know what you think.
- Attachments
-
- createpathnew.lua
- (14.31 KiB) Downloaded 122 times
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:- “They say hard work never hurt anybody, but I figure, why take the chance.”
- Ronald Reagan