Graal Forums  

Go Back   Graal Forums > Development Forums > Tech Support
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 05-28-2010, 03:07 PM
Jiroxys7 Jiroxys7 is offline
Hazard to Graal
Jiroxys7's Avatar
Join Date: Apr 2009
Posts: 343
Jiroxys7 will become famous soon enough
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
__________________
MY POSTS ARE PRONE TO EDITS!
Reply With Quote
  #2  
Old 05-28-2010, 04:32 PM
Liberated Liberated is offline
not doing alot
Liberated's Avatar
Join Date: Feb 2008
Posts: 1,366
Liberated has a spectacular aura about
What server? Testbed? are you sure you put the right file name, it might not even save as a start.
__________________
Quote:
Originally Posted by Tigairius View Post
I promise when I get rich I'll send you an iPhone. I'll send everyone an iPhone.
Reply With Quote
  #3  
Old 05-28-2010, 06:39 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
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.
__________________
Quote:
Reply With Quote
  #4  
Old 05-28-2010, 09:49 PM
Jiroxys7 Jiroxys7 is offline
Hazard to Graal
Jiroxys7's Avatar
Join Date: Apr 2009
Posts: 343
Jiroxys7 will become famous soon enough
Quote:
Originally Posted by fowlplay4 View Post
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.
looks like you're right! i wouldntve guessed that a server-side destroy would do that. Thanks
__________________
MY POSTS ARE PRONE TO EDITS!
Reply With Quote
  #5  
Old 05-28-2010, 11:32 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Quote:
Originally Posted by Jiroxys7 View Post
looks like you're right! i wouldntve guessed that a server-side destroy would do that. Thanks
Logically it should :P I think DB-NPCs are protected from this though.
__________________
Quote:
Reply With Quote
  #6  
Old 05-29-2010, 03:31 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by fowlplay4 View Post
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" .

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.
__________________
Reply With Quote
  #7  
Old 05-29-2010, 12:26 PM
Jiroxys7 Jiroxys7 is offline
Hazard to Graal
Jiroxys7's Avatar
Join Date: Apr 2009
Posts: 343
Jiroxys7 will become famous soon enough
Quote:
Originally Posted by cbk1994 View Post
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" .

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.
__________________
MY POSTS ARE PRONE TO EDITS!
Reply With Quote
  #8  
Old 05-29-2010, 12:42 PM
WhiteDragon WhiteDragon is offline
Banned
Join Date: Feb 2007
Posts: 1,002
WhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to beholdWhiteDragon is a splendid one to behold
Quote:
Originally Posted by Jiroxys7 View Post
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.
Reply With Quote
  #9  
Old 05-29-2010, 08:13 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by WhiteDragon View Post
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.
__________________
Reply With Quote
  #10  
Old 05-29-2010, 10:03 PM
Matt Matt is offline
iZone Administrator
Matt's Avatar
Join Date: Apr 2005
Location: United States
Posts: 2,690
Matt is a jewel in the roughMatt is a jewel in the rough
Quote:
Originally Posted by cbk1994 View Post
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.
__________________
Need Playerworld or Account support?
GraalOnline/Toonslab Support Center
Reply With Quote
  #11  
Old 05-29-2010, 10:12 PM
Jiroxys7 Jiroxys7 is offline
Hazard to Graal
Jiroxys7's Avatar
Join Date: Apr 2009
Posts: 343
Jiroxys7 will become famous soon enough
Quote:
Originally Posted by cbk1994 View Post
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.
__________________
MY POSTS ARE PRONE TO EDITS!
Reply With Quote
  #12  
Old 06-03-2010, 09:54 PM
elite_master elite_master is offline
Registered User
Join Date: Apr 2007
Posts: 107
elite_master is an unknown quantity at this point
We really need some updates, or atleast some concern for us developers :[
__________________
Warriors act, fools react.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 05:44 PM.


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