Error: Cannot add object '': Invalid object name

Nukkemestari
03 May 2013, 14:19

Failed to load game

Failed to load game due to the following errors:
* Error: Cannot add object '': Invalid object name



:cry:

Liam315
03 May 2013, 14:26
Open the game file with notepad or another simple text editor.

On the 13th line you will see:
<object name="" />

Delete that line, click save, and it works fine.

Edit: Or download this one -

Nukkemestari
03 May 2013, 14:55
Thank you VERY much! <3

Liam315
03 May 2013, 15:36
You're welcome, happy to help. :)

jaynabonne
03 May 2013, 16:02
Nukkemestari, do you know what you did to make this happen? This is one of those errors that shows up every so often, and it's a definite bug in Quest that is permitting an empty object name, but it's unclear how it's happening, as Quest checks rather well.

Do you know what you did such the unnamed object got created?

(If you're editing the file by hand in Code View, please ignore my question.)

Nukkemestari
03 May 2013, 16:46
I'm sorry, but I have no idea. I was just making new pages or something like that at internet version of Quest.

jaynabonne
03 May 2013, 16:48
Ok, thanks!

Liam315
04 May 2013, 05:19
By coincidence I just had the same problem myself.

I don't remember the sequence of events exactly but it was something along the lines of:

1. I used the undo button to reverse a few steps, I went back one step too far which was the creation of an object. (There may have been an error message pop up at this point, I can't remember but I would ere towards there not being one.)

2. I pressed redo to try a remake the object. I got a pop up error message at this point, although like I said I can't remember if this was the first.

3. Since redo didn't work I created the object again.

4. I can't remember if I tried to do anything else, but Quest flipped out and another error message came up, the "expand tree" button for the functions on the left hand side of the screen disappeared. After this I saved, closed, tried to reopen my game and got the invalid object error. After editing the offending line everything is fine again.

I use the windows desktop version of Quest and I've never had the error before. Don't know if it's relevant, but the object I was creating was named "Window DR" and there are other objects throughout the game also called "Window [initials of room name]".

jaynabonne
04 May 2013, 08:51
That's great, Liam. I actually was able to cause it to happen using the same general idea as yours - undo, then redo, then Quest error on redo, then save. I have logged an issue for this.

Thanks!