Graal Forums  

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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 08-25-2002, 11:49 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
A new way of data storage

For NPCs Server:

There are few ways to store data on the server, and all of them can be erased quite easily. The ones that can't are inaccessable. My proposal would be a way of storing information on the server in text files that you can call up server side to be read. The following commands would be needed.



addline textfile,text; adds a line of text into the textfile on the server
insertline textfile,linenumber,text; Inserts a line of text at the line number in the text file (every line is ended by a return character)
replaceline textfile,linenumber,text; Replaces the text at "linenumber" with "text"
removeline linetext,textfile; remove the first line of text that is equal to "linetext"
deleteline textfile,linenumber; Deletes the line of text at "linenumber"

#l(linenumber,textfile) Gets the line of text in the textfile at "linenumber"

textlen(textfile) Number of lines in the text file


All these commands would be serverside ofcourse. Maybe stored in another directory named "Serverdata" or something along that lines... It would be good for storing perminant data that can be accessed by NPCs on the server, the posibilities are almost limitless. Additional (yet optional) commands that could be added are...


gettext textfile; downloads the textfile off the server for offline use (if under 64k)
#l(linenumber,textfile) Same as above, only the clientside version will search on the players computer for the textfile


Note: when I say line number, every line of text in the text file is seperated by a return character, much like every token is seperated by either a comma or a space.
__________________

subliminal message: 1+1=3

Last edited by Falcor; 08-26-2002 at 06:29 AM..
Reply With Quote
 


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


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