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 05-22-2007, 01:25 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
file handling

There's something that's really getting on my nerves right now.. that's not being able to load/save certain file types.

Let me demonstrate..

PHP Code:
temp.file.loadVars("levels/mudlib/shopdb/fredshop.arc");
echo(
temp.file.item.getDynamicVarNames()); 
This works perfectly, but, if I rename the file to fredshop.gupd, and change the npcserver rights, this wont work:


PHP Code:
temp.file.loadVars("levels/mudlib/shopdb/fredshop.gupd");
echo(
temp.file.item.getDynamicVarNames()); 

Same thing with a lot of filetypes. This could be really handy, at least since I'm trying to script something that scans entire folders and turn it into a .gupd file.

So, Stefan, can you enable all filetypes for the following commands? I mean, now when you can change rights of the npcserver, that shouldn't be a security issue any more - should it? :/

loadlines(str)
loadstring(str)
loadvars(str)
savelines(str, int)
savestring(str, int)
savevars(str, int)
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #2  
Old 05-22-2007, 01:29 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
There are limitations on client and serverside to avoid people to generate exes, batch files, cmd etc. Thats why scripts are restricted to certain file types. With the recent npcserver update scripts have been enabled for image file types (png, gif, jpeg), if you need more then tell me. We will probably not enable all file types, too risky.
Reply With Quote
  #3  
Old 05-22-2007, 01:32 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Stefan View Post
There are limitations on client and serverside to avoid people to generate exes, batch files, cmd etc. Thats why scripts are restricted to certain file types. With the recent npcserver update scripts have been enabled for image file types (png, gif, jpeg), if you need more then tell me. We will probably not enable all file types, too risky.
Can you atleast please enable it for .gupd files? I could really use it on Mythic, and since I plan on releasing this.. "thing" when its done, it should be enabled on all servers. Trust me when I say it will be useful for playerworlds.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #4  
Old 05-24-2007, 01:59 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Quote:
Originally Posted by Stefan View Post
There are limitations on client and serverside to avoid people to generate exes, batch files, cmd etc. Thats why scripts are restricted to certain file types. With the recent npcserver update scripts have been enabled for image file types (png, gif, jpeg), if you need more then tell me. We will probably not enable all file types, too risky.
Oh sweet! Do these 3 types work clientside too?

Oh and I thought you could load/save to .gupd already o_O
__________________
Do it with a DON!
Reply With Quote
  #5  
Old 05-22-2007, 02: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
I second this, I'm sick of creating GUPDs
__________________
Reply With Quote
  #6  
Old 05-22-2007, 02:40 AM
Deadly_Killer Deadly_Killer is offline
Registered User
Join Date: Feb 2002
Posts: 227
Deadly_Killer is on a distinguished road
Hm, would be cool if all graal filetypes were enabled.

.wav
.mid
.nw
.graal
.zelda (? -- might as well lol)
.gupd
.gani
.png
.gif
.mng
__________________
- Zidane / Zidaya
Reply With Quote
  #7  
Old 05-23-2007, 11:01 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
So Stefan, would you be so kind and enable it for .gupd files?
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #8  
Old 06-01-2007, 05:43 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by xXziroXx View Post
So Stefan, would you be so kind and enable it for .gupd files?
*bumps*
__________________
Follow my work on social media post-Graal:Updated august 2025.
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 03:25 PM.


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