Desperate!

Deckrect
29 Jun 2016, 20:11
Ok, people. i got desperate. I was working on the game i have been building past few weeks and i decided to take a look over the library thing. There was a slide down arrow and i checked what was there. I decided look at the default verbs, to see what it would offer. Nothing special happened. Only the "click save and then reload" yellow bar. After a while, i got tired of that bar, saved the game and reloaded. Now the game does not loads anymore.

Error adding type 'defaultverb' to element 'k4'

Is there a way to recover my previous work or should i restart all the process?

HegemonKhan
29 Jun 2016, 22:41
If you altered the built-in stuff (Filter -> Show Library Elements -> light grey text stuff in the "tree of stuff" -> 'copy' button), then it's going to be difficult, as we got to get from you what you've done, to undo what you've done, for fixing up your game.

if you can (from the GUI~Editor) using this method in this paragraph and did to go into the built-in 'quest/core' library files (quest is very powerful as it is made up by libraries, meaning that you can create your own entire version of a quest engine yourself, if you're a good programmmer) of 'English.aslx' or 'Core.aslx' (both of these provide all of the built-in stuff that you see as the light grey text upon doing the: Filter -> Show Library Elements) and changed (this is worse ~ see first paragraph above) or deleted them (this is not a big deal, as you just have to add them back into your game), we may be able to fix them as already stated.

if you've merely added your own or others libraries (or the other built-in libraries, like the different human language libraries), then we can simply remove them (as long as they don't alter, through their scripting, any of the built-in stuff, and you've saved those changes), via:

GUI~Editor: Advanced -> Included Libraries -> highlight the library you don't want, and hit your [delete/backspace/whatever] key on your keyboard.

In-Code: just delete the corresponding/correct library, which is/are the: <include ref="blah.aslx" />, tags at the very top of your entire game code.

Deckrect
29 Jun 2016, 23:26
I suppose it is something related only to the project i was working on, as other games and other tests are working for edition or playing. However, on the project i was currently working on, the sais error is shown as i try to open the game for editing.

The path i did was: on the tree, i highlighted advanced, then included libraries and then marked core.aslx

On the right panel, i did slide down the filename entry and found the default verbs. Then, i saw it was not showing what i intended to see, an i did click somewhere on the back. And all the cataclysm happened. At least it is not a problem with Quest itself. Just a single game file. This means i can always start over. Of course i had about three weeks of work. But most of this time was studying and testing things. Perhaps i should just star again.

HegemonKhan
30 Jun 2016, 00:37
via using the GUI~Editor, it's forced 'copy' button, protects the quest.exe itself and all of its default/core/human language/built-in files too (so you don't have to download it again), and thus also all your other games too, are fine, but your specific individual game, can be very difficult to fix up (not impossible though), unless there is a file saved somewhere of the/your copied (and altered) default game code that your game uses that you accidentally created via saving it and/or via backing out of it, which we could just replace (or if need be: copy and paste from the unaltered corresponding core files) or delete.

also, we/you can always get into the code of your game file, via simply right clicking on it (the game file itself on your computer) and opening it with a text software (notepad, wordpad, notepad++, Apple: text editor, etc), though if it's online and you can't download it for some reason, Alex will have to get it for you off of his server, and then copy-paste your game code into a new game file, so your work isn't lost (though any work you've done on altering the default stuff, would be lost).

wait for the others, Pixie or Jay or whoever else, as they can help you better than I, in trying to fix up whatever you done.

--------

though, *IT IS A VERY GOOD IDEA/PRACTICE TO ALWAYS HAVE A BACKUP FILE*, to save/protect you/your game/library file, when stuff like this happens...

AND DON'T TRY/EXPERIMENT WITH YOUR IMPORTANT FILES (GAME/LIBRARY FILES)... create a new game, and use that for experiementing, copy-pasting your game code into it (the new game file) if needed to set it up for your testing.

Pertex
30 Jun 2016, 06:39
could you upload your game file here?

The Pixie
30 Jun 2016, 08:30
Deckrect wrote:I suppose it is something related only to the project i was working on, as other games and other tests are working for edition or playing. However, on the project i was currently working on, the sais error is shown as i try to open the game for editing.

The path i did was: on the tree, i highlighted advanced, then included libraries and then marked core.aslx

On the right panel, i did slide down the filename entry and found the default verbs. Then, i saw it was not showing what i intended to see, an i did click somewhere on the back. And all the cataclysm happened. At least it is not a problem with Quest itself. Just a single game file. This means i can always start over. Of course i had about three weeks of work. But most of this time was studying and testing things. Perhaps i should just star again.

I would guess you have replaced the core library with some other library, and Quest cannot copy. Open up the game in a text editor like Notepad. At the top it will look a bit like this:
<!--Saved by Quest 5.6.5783.24153-->
<asl version="550">
<include ref="English.aslx" />
<include ref="Core.aslx" />
<game name="My Game">

The include lines are what are messed up I would guess. If your game is in English, make sure they are the same as above. If not in English, open up a game that does work and copy the include lines from there.

Deckrect
30 Jun 2016, 10:40
Hahahah! That was close!

People, you are the best! I am very glad the game's synopsis already included special thanks for you two and Jay too!

I opened the file on notepad and the opening lines had the Core.aslx replaced by coredefaultverbs.aslx

I just edited and it was done! Everything runs again and is back in place. I guess i did not lost a thing! Actually, apart from rooms and other objects, the only custom items so far are two verbs added and one command added. I was poking around because i wanted to find the game's standard verbs.

Really, really thank you all for the tips and guidance. In special Pixie, for sowing me exactly what to do!

HegemonKhan
30 Jun 2016, 11:50
the two default new game libraries (well for english downloads anyways):

(order, aka vertical order/placement: more up more first - more down more last, MATTERS, as quest is built "up" from the Libraries)

<include ref="English.aslx" />
<include ref="Core.aslx" />

you can find these actual files in the Quest Folder... do NOT mess with these! (as these are the actual files themselves - there's no 'copy' button to protect you from messing them up), otherwise you'll have to re-download quest! Actually the 'core.aslx' File loads/gets all of the many many many 'core' files.

-------

if you just wanted to see all of the default/built-in Verbs (and whatever else):

Filter (lower left corner of the quest screen) -> Show Library Elements -> toggle/check it "on" -> now you can see all them (as the light grey text) in the left side's "tree of stuff"

Deckrect
30 Jun 2016, 16:03
Sir, yes, sir!

Anonynn
30 Jun 2016, 21:59
As HK said, a good habit to get into is making a back-up file.

What I tend to do is whenever I'm done working for the day on "Apocamorphosis" is copy it from my USB drive to my desktop in a "copy" folder for the game.

Also, whenever I go to implement anything new, I always save the game, and then do the new thing on a copy file of the game, so that if I don't like it or an error occurs I have a back-up to draw from!

Just some advice! Hope it helps!