Graal Forums  

Go Back   Graal Forums > Private forums > Graal4 Forums > Graal V4 Main Forum
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 04-05-2006, 05:46 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
deletefolder(path)

deletes a custom folder (not like the levels folder) on the file browser so long as the contents are empty.

i need this for my login system, for the time being im going to have to make a way to reuse folders but this stinks because i have to add another client->server->client sequence to check if the character folder exists or is empty.

anyways, thanks
  #2  
Old 04-06-2006, 05:29 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Wouldn't this be in future improvements as it does not exist yet?

But: Deleting custom folders should be in the rc :-(.
And: You are making a folder for every character?

But it should be added :-D
  #3  
Old 04-06-2006, 08:10 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Yes you can delete custom folders in RC but thats not dynamic and thats what the system needs to work as.

Yes, everything gets its own folder, items.. characters. accounts.. clans, etc
  #4  
Old 04-07-2006, 03:17 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Warcaptain: That would end out to be a lot of folders, if you think about it.
  #5  
Old 04-07-2006, 07:03 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Yes, thousands probably thousands more if there is no deletefolder() function.
  #6  
Old 04-07-2006, 07:22 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
Just wondering, but wouldn't thousands of folders use up file size even if they are empty?

It's really going to be crazy if you ever accessed the folder that had all that, you should do it more like GK, and use one text file for all their items etc...
  #7  
Old 04-07-2006, 08:02 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Folders take virtually no space, our system has a text for each type of attribute to the player. ie: flags,items,location, etc

Once deletefolder() works it will be highly effecient.
  #8  
Old 04-08-2006, 04:13 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
So each player has one folder, and inside you have Account_Flags.txt | Account_items.txt | Account_Locations.txt | Account_Weapons.txt?
  #9  
Old 04-08-2006, 04:24 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Eh, something along those lines but not quite.
  #10  
Old 04-08-2006, 05:08 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
So what do you have a folder for Items then a billion text files for each item?
  #11  
Old 04-08-2006, 11:35 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Each item has a text file and then the players character has a file with an array of all their items (the indexes) in it.
  #12  
Old 04-09-2006, 06:36 AM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
I think you are crazy heh.

Why would each item need a folder? Each item is probally like 300 bytes.
  #13  
Old 04-09-2006, 07:04 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Eh.. each item doesnt have a folder.. And what would you know anyways?
  #14  
Old 04-09-2006, 05:09 PM
KuJi KuJi is offline
Banned
Join Date: Apr 2004
Location: Staten Island, New York
Posts: 2,202
KuJi will become famous soon enough
Send a message via ICQ to KuJi Send a message via AIM to KuJi Send a message via MSN to KuJi Send a message via Yahoo to KuJi
* I ment Text File.

And I don't understand why this is all needed, I think its crazy ;o.
  #15  
Old 04-09-2006, 11:35 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
It works well, its not very demanding at all.
  #16  
Old 04-11-2006, 03:44 PM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
I'm assuming he's making a mudlib-type thing. Items have archetypes and are all separate text files. His folder structure is probably something like:

Archetypes/Items/<itemtype>/*.arc
Mudaccounts/<accountname>/Flags.txt
Mudaccounts/<accountname>/Items.txt
Mudaccounts/<accountname>/whateverelse.txt
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
  #17  
Old 04-11-2006, 08:50 PM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Indeed, only its a bit more different because I am using a character based system.. players can have more than one character
  #18  
Old 04-14-2006, 01:16 AM
ApothiX ApothiX is offline
Okiesmokie
Join Date: May 2004
Posts: 1,447
ApothiX is on a distinguished road
Quote:
Originally Posted by Warcaptain
Indeed, only its a bit more different because I am using a character based system.. players can have more than one character
Same with my server, but how are you doing it? Mudaccounts/<AccountName>/<CharacterNumber>/* ?
__________________


[06:24:19] * Parts: Skyld (i=silent@unaffiliated/skyld) ("Perhaps Okiesmokie did not realise that I like the boys. ")
  #19  
Old 04-14-2006, 04:48 AM
Warcaptain Warcaptain is offline
Banned
Warcaptain's Avatar
Join Date: Jun 2001
Location: Virginia, USA
Posts: 2,086
Warcaptain is on a distinguished road
Send a message via ICQ to Warcaptain Send a message via AIM to Warcaptain Send a message via Yahoo to Warcaptain
Pretty much. The system works pretty flawlessly and I am quite happy with its progress.

I do things so manadb/characters/charname/* and manadb/accounts/accname/*

that way i dont have to keep a file with a list of all the characters to check if an character with the name alreay exists... also it (since no deletefolder exists) allows me to reuse character folders

That way if player with acc1 makes a char named Bob and then deletes it.. if player acc2 makes a char named bob, it will reuse the folder. (saving space)
 


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:19 PM.


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