![]() |
Binary safe read/write function
It would be great if you could save files in their correct format. For instance, receiving a .jpg from a website and saving in it's proper form in a script. Could be SaveDataAsFile(str) or similar ^^. Definitely would be good when NPC-Server sockets are released for everyone :D .
[EDIT]: Now that I think about it, is there one already available/ being made for clientrc? |
Normally using savestring() should exactly do that
|
when i tried something like that with savestring it did save as .txt but not as .png
|
Hmmm it's only allowing certain file types yes, to prevent people making .bats or .exes or similar
|
So what can files be saved as?
|
txt, rtf, html, xml, nw, gani, cs, gs, arc, dat, hfl
On serverside also gmap |
Thus my original post ^^.
|
Why not gmap on the clientside?
You should also allow gupd :) And maybe ini? :o (Since it won't harm anything in the serverfiles folder and certainly won't do harm on the server it self) |
that doesnt help for making an upload thing for pngs =/
can you give the npc-serv clientrc? Oo |
Quote:
Any possible ETA on releasing NPC-Server sockets publically? ^^ |
Quote:
I understand the dangers, but still, this is probably an unneeded limit. |
If savestring() allowed all common filetypes used in Graal, it would be perfect. I definitely won't be using .exe, .bat or .scr at any point but image types would be great.
|
Quote:
You load the data from the file on the client, trigger it to the server and save it on the server. Just because the ascii data is unledgeable doesn't mean it won't work... |
it doesnt save as .png
so how would it work Oo |
*shrugs* Binary data can hypothetically be sent as text, as long as the protocol doesn't attempt to automatically parse it at the same time (inserting linebreaks, ignoring invisible characters, etc). But that's neither here nor there - it Can save as .png and Should, but because Scripted RC isn't done yet Stefan hasn't unlocked that yet. So we have to wait an indeterminite span of time. Maybe it'll be out before Graal3D, maybe after, who knows? I doubt even Stefan knows for sure.
|
I already said in another thread it might be better to use the built-in upload functionality, we just need a way to configure it correctly, right now it is only uploading if you have client-RC open and select a path (and have write rights for the file)
|
I don't care what it is if it gives players the ability to upload things
|
| All times are GMT +2. The time now is 07:37 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.