Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   NPC backup feature for RC (https://forums.graalonline.com/forums/showthread.php?t=62270)

prozac424242 11-14-2005 05:50 PM

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.

Skyld 11-14-2005 06:43 PM

Using the clientrc functions, you could probably script this yourself.

Malinko 11-14-2005 06:57 PM

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.

prozac424242 11-14-2005 07:36 PM

Yay they work! thank you!

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

Malinko 11-14-2005 10:26 PM

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.

CheeToS2 11-14-2005 11:14 PM

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

napo_p2p 11-15-2005 08:23 AM

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 ;).

Rick 11-15-2005 09:08 AM

Also, I find it useful to:

-rw npcs/npclocal*.txt

To prevent display of evil localnpcs.

petro1212 11-17-2005 09:48 AM

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)


All times are GMT +2. The time now is 04:25 PM.

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