Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Tech Support (https://forums.graalonline.com/forums/forumdisplay.php?f=7)
-   -   Weapon is deleting itself after i add it. (https://forums.graalonline.com/forums/showthread.php?t=134259332)

Jiroxys7 05-28-2010 03:07 PM

Weapon is deleting itself after i add it.
 
The other day, I was working on a particular weapon script, but what's weird was, after I finally got it to work the way I wanted to, the weapon seems to just delete itself immediately from the server. I was lucky enough to have made a backup of it on a text file before this happened. Though if i try to delete the faulty weapon and re-add the code, i'll get an error saying the weapon does not exist when i try to open it again.

What would be causing this to happen? I'm kind of afraid to work on my other scripts now x_x

Liberated 05-28-2010 04:32 PM

What server? Testbed? are you sure you put the right file name, it might not even save as a start.

fowlplay4 05-28-2010 06:39 PM

If you have destroy(); in the server-side portion of a WNPC it will delete itself unless you're destroying another object created by putnpc2 or so.

Jiroxys7 05-28-2010 09:49 PM

Quote:

Originally Posted by fowlplay4 (Post 1579160)
If you have destroy(); in the server-side portion of a WNPC it will delete itself unless you're destroying another object created by putnpc2 or so.

:oo: looks like you're right! i wouldntve guessed that a server-side destroy would do that. Thanks :p

fowlplay4 05-28-2010 11:32 PM

Quote:

Originally Posted by Jiroxys7 (Post 1579182)
:oo: looks like you're right! i wouldntve guessed that a server-side destroy would do that. Thanks :p

Logically it should :P I think DB-NPCs are protected from this though.

cbk1994 05-29-2010 03:31 AM

Quote:

Originally Posted by fowlplay4 (Post 1579196)
Logically it should :P I think DB-NPCs are protected from this though.

Sort of. I accidentally deleted most of Testbed's DB NPCs once when trying to clear out a bunch of putnpc2's in the start level. "protectdbnpcs" had accidently been left at "false" instead of "true" :p.

Though, "destroy" should really be disabled for weapons. There's no use for it except for malicious scripters. Especially since Stefan doesn't make daily, weekly, or even monthly backups anymore, a LAT could delete every weapon on the server.

Jiroxys7 05-29-2010 12:26 PM

Quote:

Originally Posted by cbk1994 (Post 1579218)
Sort of. I accidentally deleted most of Testbed's DB NPCs once when trying to clear out a bunch of putnpc2's in the start level. "protectdbnpcs" had accidently been left at "false" instead of "true" :p.

Though, "destroy" should really be disabled for weapons. There's no use for it except for malicious scripters. Especially since Stefan doesn't make daily, weekly, or even monthly backups anymore, a LAT could delete every weapon on the server.

Why cant we just get an RC command that only the owner and/or the manager can use? like /createserverbackup and /restoreserverbackup or something.

WhiteDragon 05-29-2010 12:42 PM

Quote:

Originally Posted by Jiroxys7 (Post 1579240)
Why cant we just get an RC command that only the owner and/or the manager can use? like /createserverbackup and /restoreserverbackup or something.

That would be nice... but still, it makes no sense for daily/weekly/monthly backups to be removed. It is beyond stupid.

cbk1994 05-29-2010 08:13 PM

Quote:

Originally Posted by WhiteDragon (Post 1579241)
That would be nice... but still, it makes no sense for daily/weekly/monthly backups to be removed. It is beyond stupid.

I agree completely. The last backup Stefan has for Era is in mid April. If some malicious scripter or even LAT were to delete all the scripts/levels, we'd be completely ****ed.

Matt 05-29-2010 10:03 PM

Quote:

Originally Posted by cbk1994 (Post 1579282)
I agree completely. The last backup Stefan has for Era is in mid April. If some malicious scripter or even LAT were to delete all the scripts/levels, we'd be completely ****ed.

I agree also, i've been through a similar scenario about 3 times now. Not fun.

Jiroxys7 05-29-2010 10:12 PM

Quote:

Originally Posted by cbk1994 (Post 1579282)
I agree completely. The last backup Stefan has for Era is in mid April. If some malicious scripter or even LAT were to delete all the scripts/levels, we'd be completely ****ed.

Now that we're on the topic, the lack of an easy backup is one of the main reasons why i often find myself afraid to hire anybody.

elite_master 06-03-2010 09:54 PM

We really need some updates, or atleast some concern for us developers :[


All times are GMT +2. The time now is 11:39 PM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.