I'm having a bit of trouble getting Questnet to load a QSG file of a game in which additional objects have been created. I started off with a whole new piece of code, and the problem occurs when a player has used the "create object <whatever>" command. Save the game from the server, shut it down, load the save game and get a "Runtime error 9; subscript out of range" error. Here's the code, shed a little light on why it's not working if you can.
"QuestNetRC Test"
define game <Release Canidate Test>
asl-version <350>
start <login>
game info <For Test Purposes>
error <badcommand; I don't understand what you typed.>
error <badthing; I could not find what you were referring to.>
error <badplace; You can't go there.>
error <itemunwanted; Your offer has been declined.>
error <defaultuse; I don't understand what you typed.>
error <cantdrop; For some reason you can't drop that.>
error <noitem; I could not find what you were referring to.>
error <badexamine; What is it you would like to examine?>
error <badgo; You can't go there.>
error <baduse; I don't understand what you typed.>
error <badgive; Give to whom?>
error <badtake; You can't pick that up.>
error <baditem; I could not find what you were referring to.>
error <baddrop; You are not holding that.>
error <badpronoun; I could not find what you were referring to.>
error <defaultout; You can't go there.>
server start script
background <black>
foreground <white>
'specifies room appearance
description {
msg <[$objectproperty(#quest.currentroom[userid]#; title)$]>
if ( #quest.formatobjects[userid]# <> ) then msg <$objectproperty(#quest.currentroom[userid]#; look)$ You also see here #quest.formatobjects[userid]#.> else msg <$objectproperty(#quest.currentroom[userid]#; look)$>
if not <#quest.doorways.dirs[userid]#> then msg <Obvious exits: none> else msg <Obvious exits: #quest.doorways.dirs[userid]#>
}
startscript {
}
player startscript {
property <player%userid%; name=$name(player%userid%)$>
background <black>
foreground <white>
panes off
}
command <create object #new-object#> if ( $objectproperty(player%userid%; name)$ <> Admin ) then msg <I don't understand what you typed.|n> else {
create object <#new-object#; #quest.currentroom[userid]#>
}
end define
define room <login>
properties <title=QuestNet RC Test - Login; look=Please use the LOGIN command to get started.|n>
end define
define room <accounts>
define object <admin>
properties <name=The Administrator; usrlvl=5>
end define
end define
Some stuff like the accounts room were in there for other things I wanted to mess around with, they aren't of any importance in this though. I know I haven't used any of the onload or beforesave pieces yet, but a simple object added to room should save right I'm assuming.