Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   IndexFiles(dir,ext) (https://forums.graalonline.com/forums/showthread.php?t=42320)

LilNiglet 01-28-2003 05:25 AM

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

:) :)

Falcor 01-28-2003 05:29 AM

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.

Kaimetsu 01-28-2003 06:31 AM

Other than a music player, what's the point?

Jeff 01-28-2003 05:04 PM

Could also be used for an automatic update-level bot, an image/gani downloader...

Kaimetsu 01-28-2003 05:16 PM

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.

tlf288 01-28-2003 07:28 PM

Isn't there already a message code to test if a player has a certain file?

Jeff 01-28-2003 11:00 PM

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.

Kaimetsu 01-29-2003 05:50 AM

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?

Jeff 01-29-2003 06:06 AM

The point would be to update all levels swiftly to remove putnpcs left around by hackers etc

Python523 01-30-2003 12:32 AM

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

Falcor 01-30-2003 01:43 AM

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.

Python523 01-30-2003 02:04 AM

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

Falcor 01-30-2003 02:32 AM

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

Kaimetsu 01-30-2003 06:25 AM

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?

Kinatt 01-30-2003 06:34 AM

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

azuretek23 01-30-2003 08:38 AM

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

Jeff 01-30-2003 05:47 PM

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.

Kaimetsu 01-31-2003 05:27 AM

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.

LilNiglet 02-02-2003 07:40 PM

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?

Kaimetsu 02-03-2003 04:51 AM

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.

LilNiglet 02-05-2003 01:43 AM

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

Kaimetsu 02-05-2003 03:36 AM

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.

adam 02-07-2003 09:24 PM

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.


All times are GMT +2. The time now is 10:50 PM.

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