Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-14-2005, 05:50 PM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
NPC backup feature for RC

While backing up levels, ganis and graphics on rc is easy
with the upload/download drag and drop window,
there is no easy way to back up your weapon npcs,
database npcs, or classes.
You have to go in and copy and paste all those snippets of code
into a text editor.

How about another RC button called "NPC Backup"
that does an sql retreival (if the npcs are stored in some kind of database on the server) and grabs the code of all your weapons, classes, and database npcs into three files in a folder that can be downloaded, as one would download a level.

For example, weapons.txt might look like this

HTML Code:
/////////////////////////////
//image : bomb.png
//name : Bomb

//#CLIENTSIDE
if actionOnWeaponfired()
  {
   //do bomb stuff with putnpc2 since putexplosion dosent work on a gmap;
  }

/////////////////////////////
//next npc here and so on
 
and you would have similar data in classes.txt and databasenpcs.txt

It would be a big time saver, especially on servers like mine where we have a ton of npcs.
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #2  
Old 11-14-2005, 06:43 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Using the clientrc functions, you could probably script this yourself.
__________________
Skyld
Reply With Quote
  #3  
Old 11-14-2005, 06:57 PM
Malinko Malinko is offline
Unholy Nation
Join Date: Mar 2004
Location: Massachusetts, U.S.A.
Posts: 1,782
Malinko is on a distinguished road
Send a message via AIM to Malinko
Quote:
Originally Posted by prozac424242
While backing up levels, ganis and graphics on rc is easy
with the upload/download drag and drop window,
there is no easy way to back up your weapon npcs,
database npcs, or classes.
You have to go in and copy and paste all those snippets of code
into a text editor.

How about another RC button called "NPC Backup"
that does an sql retreival (if the npcs are stored in some kind of database on the server) and grabs the code of all your weapons, classes, and database npcs into three files in a folder that can be downloaded, as one would download a level.

For example, weapons.txt might look like this

HTML Code:
/////////////////////////////
//image : bomb.png
//name : Bomb

//#CLIENTSIDE
if actionOnWeaponfired()
  {
   //do bomb stuff with putnpc2 since putexplosion dosent work on a gmap;
  }

/////////////////////////////
//next npc here and so on
 
and you would have similar data in classes.txt and databasenpcs.txt

It would be a big time saver, especially on servers like mine where we have a ton of npcs.
This feature does exist!

rw npcs/* (DB NPCs)
rw weapons/* (NPCw)
rw scripts/* (Classes)

I'm 100% sure this feature is enabled for all playerworld, just add yourself the rights.

Edit: Of course, these rights should be given only to those with level 4 RCs, maybe only the Manager/Owner should have it. Just a little security note.
Reply With Quote
  #4  
Old 11-14-2005, 07:36 PM
prozac424242 prozac424242 is offline
Registered User
prozac424242's Avatar
Join Date: May 2001
Location: Gone crazy: back soon
Posts: 356
prozac424242 is on a distinguished road
Send a message via ICQ to prozac424242 Send a message via AIM to prozac424242
Yay they work! thank you!

What is the one central location I look for announcements for useful features like this in the future?
__________________

Useful links:
Graal Stats
Client Script Functions-GS1 to GS2
Serverside Script Functions-Gscript page
Particle Engine-Player Attributes
Server Options-Admin rights-Gmaps
Quote:
Originally Posted by Admins
Thanks for developing and improving playerworlds and such
Reply With Quote
  #5  
Old 11-14-2005, 10:26 PM
Malinko Malinko is offline
Unholy Nation
Join Date: Mar 2004
Location: Massachusetts, U.S.A.
Posts: 1,782
Malinko is on a distinguished road
Send a message via AIM to Malinko
Hm. I just knew this information because erm, don't know, I just know it.

If I find threads with such information, I'll forum PM it to you and create a thread with such information as well.
Reply With Quote
  #6  
Old 11-14-2005, 11:14 PM
CheeToS2 CheeToS2 is offline
That Guy
CheeToS2's Avatar
Join Date: Dec 2001
Location: Seattle, WA
Posts: 2,528
CheeToS2 will become famous soon enough
Send a message via AIM to CheeToS2
Quote:
Originally Posted by prozac424242
Yay they work! thank you!

What is the one central location I look for announcements for useful features like this in the future?
It depends on what the announcement is about. v4 updates are in the v4 main forum, and changes in the GServer/NPCServer that are beneficial to v4 have been posted there too, recently. Big updates for the GServer/NPCServer have been posted in the NPC Scripting forum recently. The feature Malinko mentioned was announced in the Playerworlds Main Forum (I guess since it is useful to managers who need to backup): http://forums.graalonline.com/forums...ad.php?t=58071
__________________

Reply With Quote
  #7  
Old 11-15-2005, 08:23 AM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Quote:
Originally Posted by prozac424242
What is the one central location I look for announcements for useful features like this in the future?
Taking a quick look at threads started by Stefan might also help .
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #8  
Old 11-15-2005, 09:08 AM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
Also, I find it useful to:

-rw npcs/npclocal*.txt

To prevent display of evil localnpcs.
Reply With Quote
  #9  
Old 11-17-2005, 09:48 AM
petro1212 petro1212 is offline
Angelus
petro1212's Avatar
Join Date: Mar 2003
Location: The Moon
Posts: 445
petro1212 is on a distinguished road
Send a message via AIM to petro1212 Send a message via MSN to petro1212
Quote:
Originally Posted by Rick
Also, I find it useful to:

-rw npcs/npclocal*.txt

To prevent display of evil localnpcs.
It might just be me but -rw always bugged for me in the past. Growlz once added it onto my rights in Rudora and for some twisted reason I was still able to see the level(his house) and modify it while it was clearly set.
(But thats a long while ago now already)
__________________
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 11:32 PM.


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