Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 04-01-2009, 08:42 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
Save NPCs in Subdirectories

There should be a way to specify if a DB NPC (putnpc2) is put into the npcs/ folder, or a subdirectory of that.

I know that you can have the NPCs simply save locally, and they will be stored separately; however, there is no option to just put them in a different place without saving them locally.

Perhaps an options fourth paramater could be added to putnpc2, something like

PHP Code:
putnpc2(3232"""items/"); 
The reason I would like this is because it is currently impossible to make a backup of Era's NPCs (copying from the npcs/ directory to a local folder) because RC2, RC1, and scripted-RC all fail to view the directory since it has too many files.
__________________
Reply With Quote
  #2  
Old 04-01-2009, 11:33 AM
TSAdmin TSAdmin is offline
Forum Moderator
TSAdmin's Avatar
Join Date: Aug 2006
Location: Australia
Posts: 1,980
TSAdmin has much to be proud ofTSAdmin has much to be proud ofTSAdmin has much to be proud ofTSAdmin has much to be proud ofTSAdmin has much to be proud ofTSAdmin has much to be proud of
Most definitely agreed.

Edit: hmm, on a side note, maybe to avoid having to worry about custom subfolders by creating a complete fourth parameter, the subfolders could be automatically created based on the level name they're in.

Eg: npcs/onlinestartlocal.nw/npc_blahblah.txt
__________________
TSAdmin (Forum Moderator)
Welcome to the Official GraalOnline Forums! Where sharing an opinion may be seen as a declaration of war!
------------------------
· User Agreement · Code of Conduct · Forum Rules ·
· Graal Support · Administrative Contacts ·
Reply With Quote
  #3  
Old 04-01-2009, 02:03 PM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Quote:
Originally Posted by TSAdmin View Post
Most definitely agreed.

Edit: hmm, on a side note, maybe to avoid having to worry about custom subfolders by creating a complete fourth parameter, the subfolders could be automatically created based on the level name they're in.

Eg: npcs/onlinestartlocal.nw/npc_blahblah.txt
I agree aswell, but not to the levelname idea.
Would create a lot of sub-directories which aren't needed.

If you could categorize the sub-folder yourself, that would be better.

npcs/blocks/npc_blahblah.txt
npcs/items/npc_blahblah.txt
npcs/objects/npc_blahblah.txt
npcs/misc/npc_blahblah.txt
etc...
__________________
Reply With Quote
  #4  
Old 04-01-2009, 02:29 PM
TSAdmin TSAdmin is offline
Forum Moderator
TSAdmin's Avatar
Join Date: Aug 2006
Location: Australia
Posts: 1,980
TSAdmin has much to be proud ofTSAdmin has much to be proud ofTSAdmin has much to be proud ofTSAdmin has much to be proud ofTSAdmin has much to be proud ofTSAdmin has much to be proud of
Quote:
Originally Posted by Chompy View Post
I agree aswell, but not to the levelname idea.
Would create a lot of sub-directories which aren't needed.

If you could categorize the sub-folder yourself, that would be better.

npcs/blocks/npc_blahblah.txt
npcs/items/npc_blahblah.txt
npcs/objects/npc_blahblah.txt
npcs/misc/npc_blahblah.txt
etc...
^ Even better, still. Good thinking, Chompy

Basically:
npcs/classname/npc_stuff.txt
__________________
TSAdmin (Forum Moderator)
Welcome to the Official GraalOnline Forums! Where sharing an opinion may be seen as a declaration of war!
------------------------
· User Agreement · Code of Conduct · Forum Rules ·
· Graal Support · Administrative Contacts ·
Reply With Quote
  #5  
Old 04-01-2009, 06:41 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 TSAdmin View Post
^ Even better, still. Good thinking, Chompy

Basically:
npcs/classname/npc_stuff.txt
Pretty much, but it would have to be your own customization, because a lot of NPCs have many classes joined.
__________________
Reply With Quote
  #6  
Old 04-01-2009, 08:33 PM
salesman salesman is offline
Finger lickin' good.
salesman's Avatar
Join Date: Nov 2008
Location: Colorado
Posts: 1,865
salesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud ofsalesman has much to be proud of
I support this idea!
Reply With Quote
  #7  
Old 04-02-2009, 04:53 PM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
i agree and support this!
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
  #8  
Old 04-09-2009, 04:06 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
bump
__________________
Reply With Quote
  #9  
Old 04-10-2009, 12:34 PM
Accela Accela is offline
Novice Coder
Accela's Avatar
Join Date: Apr 2009
Location: Virginia-USA
Posts: 2
Accela is on a distinguished road
Despite being totally unfamiliar with DB npcs, I agree, as it sounds important. >:[

-Bump.-
Reply With Quote
  #10  
Old 04-10-2009, 07:07 PM
devilsknite1 devilsknite1 is offline
C:
devilsknite1's Avatar
Join Date: Jul 2006
Location: Florida, USA
Posts: 269
devilsknite1 has a spectacular aura about
Send a message via AIM to devilsknite1 Send a message via MSN to devilsknite1 Send a message via Yahoo to devilsknite1
*Confused*
Are you trying to get the NPC itself saved to a custom folder?
If so, then Stefan add it now. >;(
Reply With Quote
  #11  
Old 04-14-2009, 11:05 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
I don't think that this will be added anytime soon. It will be possible to expand the "savelocally" approach and also support that for gmaps. The npcs should be saved depending on their location.
Reply With Quote
  #12  
Old 04-14-2009, 05:13 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
I don't really find this "handy" since if it was that important you should be managing the localnpcs yourself through a variable database method or even in the SQL.

Just use the following folder config for now if you're just doing backups:

NPC Code:

rw npcs/npc*
-rw npcs/npclocalnpc*

__________________
Quote:

Last edited by fowlplay4; 04-14-2009 at 05:23 PM..
Reply With Quote
  #13  
Old 04-14-2009, 05:57 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by fowlplay4 View Post
I don't really find this "handy" since if it was that important you should be managing the localnpcs yourself through a variable database method or even in the SQL.

Just use the following folder config for now if you're just doing backups:

NPC Code:

rw npcs/npc*
-rw npcs/npclocalnpc*

I can't believe I never thought of that, rep++.
__________________
Reply With Quote
  #14  
Old 04-14-2009, 06:09 PM
Deas_Voice Deas_Voice is offline
Deas
Deas_Voice's Avatar
Join Date: Jun 2007
Location: Sweden
Posts: 2,264
Deas_Voice is a jewel in the roughDeas_Voice is a jewel in the rough
Send a message via AIM to Deas_Voice Send a message via MSN to Deas_Voice Send a message via Yahoo to Deas_Voice
Quote:
Originally Posted by Stefan View Post
The npcs should be saved depending on their location
lame excuse IMO
__________________
.
WTF is real life, and where do I Download it?
There is no Real Life, just AFK!
since 2003~
I Support~
ღAeonღ | ღTestbedღ | ღDelteriaღ

if you are going to rep me, don't be an idiot, leave your name!
I got nothing but love for you
Reply With Quote
  #15  
Old 04-14-2009, 09:36 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 Stefan View Post
I don't think that this will be added anytime soon. It will be possible to expand the "savelocally" approach and also support that for gmaps. The npcs should be saved depending on their location.
I disagree, the 'savelocally' cannot always be used. I don't see how it would be extremely hard to add this option, and it would certainly be worth it. Saving based on level could be a mess since it would be impossible to organize stuff, plus you'd have huge folders for the main overworld.
__________________
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 07:59 PM.


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