Runtime Error 10?
GameBoy
06 Dec 2003, 14:33While connecting to the server it says runtime error 10 (this array is fixed or temporarily locked).
Edit: Solved Problem
Edit: Solved Problem
GameBoy
06 Dec 2003, 14:41lol, there was nothing wrong with my code. This is just silly.... Quest doesnt like strings in the status variable block.
Ack, that's something else i have to put on hold now
Ack, that's something else i have to put on hold now

Alex
06 Dec 2003, 17:34Whereabouts did you put your string? Quest is fine with a string in the "display" tag. It doesn't even seem to mind it in the "value" tag (though this WON'T work, as "value" is only read when the game starts, and NO string variables will have initialised by that point).
GameBoy
07 Dec 2003, 00:16by simply having...
I also tried coding a value but that didn't work either.
define variable <name>
type string
scope local
display <Name: !>
end define
I also tried coding a value but that didn't work either.
DShepherd
28 Dec 2005, 07:04I'm getting soo frusterated with this stupid error 10: this array is fixed or temporarily locked!!! SOMEONE ANYONE HELP ME! I'm trying to clone an object whenever the player tries to pick up a rock.
Alex
28 Dec 2005, 10:54Sounds like a Quest bug - I guess you're trying to clone the rock in the take tag for the rock? There may be a workaround for this - if you could send me your ASL file (and let me know how to get to the problem) I'll take a look into it.
paul_one
28 Dec 2005, 17:09How are you trying to clone this object?
What name are you giving the cloned object? - I don't know how/if Quest changes it's name normally.
AFAIK you *CAN* have two objects the same name, so that shouldn't be the problem (but it is a major problem for your game).
Would you pass me the code also, so I may look into it?
What name are you giving the cloned object? - I don't know how/if Quest changes it's name normally.
AFAIK you *CAN* have two objects the same name, so that shouldn't be the problem (but it is a major problem for your game).
Would you pass me the code also, so I may look into it?
xordevoreaux
05 Aug 2007, 19:56I'm also having trouble with cloning using QDK 4.02 getting "this array is fixed or temporarily locked" with a runtime error of 10.
I'm new and reliant on QDK right now, but I've made the program as absolutely simple as I can and it won't even clone the first time (I can see it bombing a second time since I'm not appending a number to the new object, but it shouldn't be bombing the first time the player types "dupe testobject".
In a past attempt, I originally had a numeric variable "uid" which I incremented right before doing the cloning statement, and appended that to the name:
<clone testobject; testobject%uid%, Home>
so I thought I'd try it with just using a totally different name. No go.
Here's the quickie version:
' "Test"
' Created with QDK Lite 4.02 - UNREGISTERED VERSION
!include <stdverbs.lib>
define game <Test>
asl-version <400>
gametype singleplayer
start <Home>
game author <MT>
game info <Created with QDK Lite 4.02 - UNREGISTERED EVALUATION VERSION.>
verb <copy> msg <You can't copy that.>
verb <dupe> msg <You can't dupe that.>
end define
define options
debug on
panes on
end define
define room <Home>
define object <testobject>
take
displaytype <Object>
article <it>
gender <it>
action <dupe> clone <testobject; newtestobject; Home>
end define
end define
I'm new and reliant on QDK right now, but I've made the program as absolutely simple as I can and it won't even clone the first time (I can see it bombing a second time since I'm not appending a number to the new object, but it shouldn't be bombing the first time the player types "dupe testobject".
In a past attempt, I originally had a numeric variable "uid" which I incremented right before doing the cloning statement, and appended that to the name:
<clone testobject; testobject%uid%, Home>
so I thought I'd try it with just using a totally different name. No go.
Here's the quickie version:
' "Test"
' Created with QDK Lite 4.02 - UNREGISTERED VERSION
!include <stdverbs.lib>
define game <Test>
asl-version <400>
gametype singleplayer
start <Home>
game author <MT>
game info <Created with QDK Lite 4.02 - UNREGISTERED EVALUATION VERSION.>
verb <copy> msg <You can't copy that.>
verb <dupe> msg <You can't dupe that.>
end define
define options
debug on
panes on
end define
define room <Home>
define object <testobject>
take
displaytype <Object>
article <it>
gender <it>
action <dupe> clone <testobject; newtestobject; Home>
end define
end define
xordevoreaux
05 Aug 2007, 21:22It looks like cloning wants to happen in a procedure but not from a script fired from an object, but the QDK lets you set one up that way.
Alex
07 Aug 2007, 22:25This sounds like a bug in Quest - I'll take a look into it and fix it for version 4.03.