Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 01-28-2003, 05:25 AM
LilNiglet LilNiglet is offline
Registered User
Join Date: Jun 2001
Posts: 3,178
LilNiglet is on a distinguished road
IndexFiles(dir,ext)

IndexFiles(dir,ext,string)

Creates a space delimited string array of filenames, minus the extensions, in a given directory

dir - A subdirectory of the levels directory, for example, IndexFiles(webgifs,ext) would get you to the webgifs folder

ext - the file extention to list

string - the string to write the list to

examples:

IndexFiles(midis,mid,client.midi);

would list all of the midi files in the graal2001/levels/midis folder, and write them to the client.midi string

Reply With Quote
  #2  
Old 01-28-2003, 05:29 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
I've tried asking for such things many times. I even made a list of posible commands that were exactly like the stringarray commands, only would effect each line (Dilimited by a NewLine). and stuff, but I think this isnt a top prority. ateast is hasnt since the first time I asked. X_X. its a shame really, it would be a good thing.
__________________

subliminal message: 1+1=3
Reply With Quote
  #3  
Old 01-28-2003, 06:31 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Other than a music player, what's the point?
__________________
Reply With Quote
  #4  
Old 01-28-2003, 05:04 PM
Jeff Jeff is offline
Registered User
Join Date: Oct 2002
Location: Nebraska, USA
Posts: 707
Jeff is on a distinguished road
Could also be used for an automatic update-level bot, an image/gani downloader...
__________________
Jeff, the Archduke of Dustari
Member of the LAT on Graal The Adventure
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GO d+ s++:+ !a C++ UL+(UL+++)@ P+ L+(++)>+++ E---- W++@ N- !o ?K w(w--) !O !M@ !V PS- PE+ Y PGP t+ 5 X R tv(tv+) b++(b+)>b++++ DI(DI+) D-- G e->e++++ h! !r y
------END GEEK CODE BLOCK------
Reply With Quote
  #5  
Old 01-28-2003, 05:16 PM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by Jeff
Could also be used for an automatic update-level bot
Automatic update-level bot? Please elaborate.

Quote:
an image/gani downloader...
Well... yeah, but that stuff happens automatically anyway.
__________________
Reply With Quote
  #6  
Old 01-28-2003, 07:28 PM
tlf288 tlf288 is offline
Registered User
tlf288's Avatar
Join Date: Nov 2001
Location: new account: Trevor
Posts: 0
tlf288 is on a distinguished road
Send a message via AIM to tlf288 Send a message via Yahoo to tlf288
Isn't there already a message code to test if a player has a certain file?
__________________
new account: Trevor
Reply With Quote
  #7  
Old 01-28-2003, 11:00 PM
Jeff Jeff is offline
Registered User
Join Date: Oct 2002
Location: Nebraska, USA
Posts: 707
Jeff is on a distinguished road
Quote:
Originally posted by Kaimetsu


Automatic update-level bot? Please elaborate.



Well... yeah, but that stuff happens automatically anyway.

1) Like something that runs a for loop through all the levels to send an update command to RC.

2) I mean a preloader to facilitate loading all such files in advance to reduce load times etc later.
__________________
Jeff, the Archduke of Dustari
Member of the LAT on Graal The Adventure
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GO d+ s++:+ !a C++ UL+(UL+++)@ P+ L+(++)>+++ E---- W++@ N- !o ?K w(w--) !O !M@ !V PS- PE+ Y PGP t+ 5 X R tv(tv+) b++(b+)>b++++ DI(DI+) D-- G e->e++++ h! !r y
------END GEEK CODE BLOCK------
Reply With Quote
  #8  
Old 01-29-2003, 05:50 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by Jeff
1) Like something that runs a for loop through all the levels to send an update command to RC.
Still I don't know what you mean. What would be the point?
__________________
Reply With Quote
  #9  
Old 01-29-2003, 06:06 AM
Jeff Jeff is offline
Registered User
Join Date: Oct 2002
Location: Nebraska, USA
Posts: 707
Jeff is on a distinguished road
The point would be to update all levels swiftly to remove putnpcs left around by hackers etc
__________________
Jeff, the Archduke of Dustari
Member of the LAT on Graal The Adventure
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GO d+ s++:+ !a C++ UL+(UL+++)@ P+ L+(++)>+++ E---- W++@ N- !o ?K w(w--) !O !M@ !V PS- PE+ Y PGP t+ 5 X R tv(tv+) b++(b+)>b++++ DI(DI+) D-- G e->e++++ h! !r y
------END GEEK CODE BLOCK------
Reply With Quote
  #10  
Old 01-30-2003, 12:32 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by Jeff
The point would be to update all levels swiftly to remove putnpcs left around by hackers etc
updatelevel doesn't remove putnpcs, and since putnpcs are laid serverside it shouldn't be much of a problem
Reply With Quote
  #11  
Old 01-30-2003, 01:43 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
Quote:
Originally posted by Python523

updatelevel doesn't remove putnpcs, and since putnpcs are laid serverside it shouldn't be much of a problem
putnpc is layed clientside, putnpc2 is serverside, however there is a disable put npc option in the serveroptions so you can get rid of it altogether.
__________________

subliminal message: 1+1=3
Reply With Quote
  #12  
Old 01-30-2003, 02:04 AM
Python523 Python523 is offline
Banned
Join Date: Aug 2001
Location: Illinois
Posts: 3,498
Python523 is on a distinguished road
Quote:
Originally posted by Falcor

putnpc is layed clientside, putnpc2 is serverside, however there is a disable put npc option in the serveroptions so you can get rid of it altogether.
i was aware that putnpc is serverside
Reply With Quote
  #13  
Old 01-30-2003, 02:32 AM
Falcor Falcor is offline
Darth Cucumber
Falcor's Avatar
Join Date: Mar 2001
Location: At School
Posts: 2,874
Falcor is on a distinguished road
Send a message via ICQ to Falcor Send a message via AIM to Falcor Send a message via MSN to Falcor Send a message via Yahoo to Falcor
I always thought it was Clientside, but I guess I could be wrong, the last time I used it was on a server w/o an NPCs Server
__________________

subliminal message: 1+1=3
Reply With Quote
  #14  
Old 01-30-2003, 06:25 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by Jeff
The point would be to update all levels swiftly to remove putnpcs left around by hackers etc
How would the contents of a player's Graal folder be useful to that?
__________________
Reply With Quote
  #15  
Old 01-30-2003, 06:34 AM
Kinatt Kinatt is offline
Banned
Kinatt's Avatar
Join Date: Jan 2003
Location: Raleigh North Carolina
Posts: 850
Kinatt is on a distinguished road
Send a message via AIM to Kinatt Send a message via Yahoo to Kinatt
Warning: spam

ok, ... mmhmm putnpc and clientside information are stored in the .ext of the sistring data line of the newstat production folder next to the oldstat production folder.. this could easily be mistaken for a new code that would update levels quickly and swiftly, the .txt also in there will explain all the file ordinance which can also be noted as the Systric datafileCdat the {playerstopdancefart} will help in various areas of the dancing raccoons. I know I am an idiot when it comes to scripting I just read this and have no idea what any of this means please delete this as soon as you see it.. its late and im about to faint.. time is going.. I wish I knew how to script bah damn Chicken wings..

yes Kai I know how big of an idiot I made myself look by posting this. Yet I still posted it HA! I am an idiot with .. no self esteem... please kill me please..
Reply With Quote
  #16  
Old 01-30-2003, 08:38 AM
azuretek23 azuretek23 is offline
Registered User
azuretek23's Avatar
Join Date: May 2002
Location: Phoenix, AZ
Posts: 516
azuretek23 is on a distinguished road
Send a message via ICQ to azuretek23 Send a message via AIM to azuretek23
Quote:
Originally posted by Kinatt
Warning: spam

ok, ... mmhmm putnpc and clientside information are stored in the .ext of the sistring data line of the newstat production folder next to the oldstat production folder.. this could easily be mistaken for a new code that would update levels quickly and swiftly, the .txt also in there will explain all the file ordinance which can also be noted as the Systric datafileCdat the {playerstopdancefart} will help in various areas of the dancing raccoons. I know I am an idiot when it comes to scripting I just read this and have no idea what any of this means please delete this as soon as you see it.. its late and im about to faint.. time is going.. I wish I knew how to script bah damn Chicken wings..

yes Kai I know how big of an idiot I made myself look by posting this. Yet I still posted it HA! I am an idiot with .. no self esteem... please kill me please..

scary thing is, that almost makes sense.....
__________________
:: Give a man a fish, you feed him for a day. Teach a man to fish, and you lose your monopoly on fisheries ::
Reply With Quote
  #17  
Old 01-30-2003, 05:47 PM
Jeff Jeff is offline
Registered User
Join Date: Oct 2002
Location: Nebraska, USA
Posts: 707
Jeff is on a distinguished road
Quote:
Originally posted by Kaimetsu


How would the contents of a player's Graal folder be useful to that?

I assumed we were speaking of serverside files.
__________________
Jeff, the Archduke of Dustari
Member of the LAT on Graal The Adventure
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GO d+ s++:+ !a C++ UL+(UL+++)@ P+ L+(++)>+++ E---- W++@ N- !o ?K w(w--) !O !M@ !V PS- PE+ Y PGP t+ 5 X R tv(tv+) b++(b+)>b++++ DI(DI+) D-- G e->e++++ h! !r y
------END GEEK CODE BLOCK------
Reply With Quote
  #18  
Old 01-31-2003, 05:27 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by Jeff



I assumed we were speaking of serverside files.
The reference to webgifs suggested otherwise, but I guess it could be implemented on both.
__________________
Reply With Quote
  #19  
Old 02-02-2003, 07:40 PM
LilNiglet LilNiglet is offline
Registered User
Join Date: Jun 2001
Posts: 3,178
LilNiglet is on a distinguished road
Quote:
Originally posted by Kaimetsu


The reference to webgifs suggested otherwise, but I guess it could be implemented on both.
::shrugs:: Serverside would be useful too. Maybe IndexFiles() for serverside, and IndexFiles2() for clientside?
Reply With Quote
  #20  
Old 02-03-2003, 04:51 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by LilNiglet

::shrugs:: Serverside would be useful too. Maybe IndexFiles() for serverside, and IndexFiles2() for clientside?
Why have different names? It'd do the same thing in either environment.
__________________
Reply With Quote
  #21  
Old 02-05-2003, 01:43 AM
LilNiglet LilNiglet is offline
Registered User
Join Date: Jun 2001
Posts: 3,178
LilNiglet is on a distinguished road
Quote:
Originally posted by Kaimetsu


Why have different names? It'd do the same thing in either environment.
No, no, be able to list files on the server. like, files in the /levels/music folder on the server, so that the person can download them
Reply With Quote
  #22  
Old 02-05-2003, 03:36 AM
Kaimetsu Kaimetsu is offline
Script Monkey
Kaimetsu's Avatar
Join Date: May 2001
Posts: 18,222
Kaimetsu will become famous soon enough
Quote:
Originally posted by LilNiglet


No, no, be able to list files on the server. like, files in the /levels/music folder on the server, so that the person can download them
Oh, I see. Sounds overcomplicated.
__________________
Reply With Quote
  #23  
Old 02-07-2003, 09:24 PM
adam adam is offline
http://wiki.graal.us/
adam's Avatar
Join Date: Nov 2001
Posts: 2,247
adam has a spectacular aura aboutadam has a spectacular aura about
Send a message via AIM to adam
I would just keep a list in a database npc. :-/ No need to have a script search for stuff when you can find it yourself.
__________________
Rogue Shadow (TCN)(NAT)(Global Development Team)

For development help, contact the patrons of the #graaldt irc channel below, I am usually there.
Click Here to Join IRC Chat Now! -- irc.freenode.net Channel: #graaldt
Quote:
<Dustyshouri> no, RogueShadow is always talking about scripts lol
<Dustyshouri> in fact, he pretty much brought Graal back as a topic single-handedly
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 11:40 PM.


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