Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Future Improvements (https://forums.graalonline.com/forums/forumdisplay.php?f=10)
-   -   file handling (https://forums.graalonline.com/forums/showthread.php?t=74113)

xXziroXx 05-22-2007 01:25 AM

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)

Admins 05-22-2007 01:29 AM

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.

xXziroXx 05-22-2007 01:32 AM

Quote:

Originally Posted by Stefan (Post 1310391)
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.

cbk1994 05-22-2007 02:06 AM

I second this, I'm sick of creating GUPDs :(

Deadly_Killer 05-22-2007 02:40 AM

Hm, would be cool if all graal filetypes were enabled.

.wav
.mid
.nw
.graal
.zelda (? -- might as well lol)
.gupd
.gani
.png
.gif
.mng

xXziroXx 05-23-2007 11:01 PM

So Stefan, would you be so kind and enable it for .gupd files? :)

zokemon 05-24-2007 01:59 AM

Quote:

Originally Posted by Stefan (Post 1310391)
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

xXziroXx 06-01-2007 05:43 AM

Quote:

Originally Posted by xXziroXx (Post 1311136)
So Stefan, would you be so kind and enable it for .gupd files? :)

*bumps*


All times are GMT +2. The time now is 03:06 PM.

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