Well in the Demo A_admin i press run and it comes up with all the gm options then copy it and put it in my game it gets into the game but then i dont have Gm options please help.
DBZAS_Vegeto ([email protected])
ID:266985
Sep 23 2002, 5:02 pm
|
|
What I suggest you do is use the Admin demo as a 'Template' or reference to make your own admin commands... This will also make it easier to fix/update/change the commands later on not to mention it will be a good learning experience...
As for your problem... make sure that you have a way to add the GM/Admin's verbs in the Login() proc... I cant exactly help you without knowing exactly what demo your using... |
In response to Spoon
|
|
His using A_Admin. I'll check the libary out if I can find it and tell you any likily mistakes you might make.
-DogMan |
In response to Dog Man
|
|
Ok. Most likily problem, youve forgotten to put your key in as the MASTER_KEY.
Posibility 2: Youve put the key in, but youve put it in wrong. Remember, its your exact casesensitive Key. Include all spaces. Posibility 3: Its the libary. Its basically a rip of f S_Admin. It has more features, but S_Admin is probably your best bet anyway. Its Hub aproved, so you know its all working right. -DogMan |
In response to Spoon
|
|
Spoon wrote:
I have the same prob. Well, looking at the library it looks like it might be the following line (Line 972 if you haven't edited the code) causing the problem: if(key == MASTER_KEY|MASTER_KEY2|MASTER_KEY3|MASTER_KEY4|MASTER_KEY5) return 1 For me, it works when you put your key in as the first MASTER_KEY, however none of the others work (MASTER_KEY2-5). So if you have your key in another slot it won't work. I simply added another "|" between them and it worked. Like so: if(key == MASTER_KEY||MASTER_KEY2||MASTER_KEY3||MASTER_KEY4||MASTER_KEY5) return 1 I'm not really sure if it was intended to work this way, however, I always thought the syntax had to be: if(key == MASTER_KEY || key == MASTER_KEY2 || key == MASTER_KEY3 || key == MASTER_KEY4 || key == MASTER_KEY5) return 1 But, anyhow, try either of those. |
In response to Creek
|
|
If you put || between them, as long as 2-5 are not 0, null, or "", it will return true.
|
In response to Dog Man
|
|
Nope my name is in right and everything it doesn't come up with any errors it is just that the gm options dont come up anyway i will try S_admin and i will see if it works
|
In response to DBZAS_Vegeto
|
|
Ohr come off it S_admin doesn't work either
I done everything it said which was to change the to my own and then in my game include that libary well first thing it comes up with no GM options and it comes up with 2 warnings that say loading Icons.dme S_Admin.dm:439:visibility:warning: visibility is being phased out; use invisibility S_Admin.dm:439:src.visibility:warning: visibility is being phased out; use invisibility loading world1.dmp saving Icons.dmb Icons.dmb - 0 errors, 2 warnings (double-click on an error to jump to it) and on that warning line GM_ghostform() set category = "GM" src.density = !density That 1 --> src.visibility = !visibility |
In response to DBZAS_Vegeto
|
|
They're only warnings, not errors. your game will still run. You can change it to invisibility = 1 and invisibility = 0.
|
In response to Garthor
|
|
but the entire thing still doesn't work the GM options don't come up in my game
|
In response to DBZAS_Vegeto
|
|
Then you did something wrong.
|
In response to Garthor
|
|
no i didn't i tried it 3 times
|
In response to DBZAS_Vegeto
|
|
Then you messed up 3 times.
|
In response to DBZAS_Vegeto
|
|
Where can i get S_admin??
-SpOon Eating implement or coder YOU DECIDE! |
In response to Garthor
|
|
the only thing i changed was the master key into my own
the version is probably stuffed |
In response to DBZAS_Vegeto
|
|
DBZAS_Vegeto wrote:
the only thing i changed was the master key into my own How are you adding it to your game? Maybe thats the problem. -DogMan |
------------------------------------------------------------
Well in the Demo A_admin i press run and it comes up with all the gm options then copy it and put it in my game it gets into the game but then i dont have Gm options please help. DBZAS_Vegeto ([email protected]) ------------------------------------------------------------ Well, thats easy. In the A_admin stuff, there'll be a thing that looks like: if(usr.key == "*") usr.verbs += /mob/*/* Where * is a random thing. Change the usr.key == "" to usr.key == "yourbyondkey" Where yourbyondkey is your BYOND key you're using... |
Could any1 help us out???
p.s What demo are you using??
-Spoon
-an implement of eating or a coder..... YOU DECIDE!