![]() |
requesturlasgamefile?
Does anybody know how to use it?
I've got the parameters, but I have no clue how to use it. Otherwise, is there a way to save a file to the images folder on the client using savestring? And if not, can somebody give the NPCServer read/write access to a certain folder on Testbed so I can experiment? |
In theory this should work, but it doesn't.
PHP Code:
I.e: NPC Code: |
ooo, I did not know you could do that in folder config
|
Quote:
|
These things only work in v6.
For the redirect-feature you still need to upload the files to the server (for file-modification-time-check) but the client will download them from a website. With requesturlasgamefile() you can download a file from a webserver and treat it like it has been downloaded from the server. I've just seen that there is a bug though, normally it requires 4 parameters, will fix it in the next version. The main reason for these functions is to take stress away from the server, e.g. it could be possible to download Graal.exe from the website instead from the game server so that not hundreds of people download a new Graal version at once and slow down the server. |
Quote:
|
Quote:
|
Quote:
|
Quote:
|
There is no difference. I can generate my image via script perfectly fine, and use savestring to save it. Only problem is, it's in the scriptfiles folder.
|
Quote:
|
savestring() is saving as binary, not ASCII.
Normally files saved to the scriptfiles folder should work fine as in-game image. |
Quote:
Pretty handy, actually. Custom graphics generated via script. Think: seasonal images. Would be nice to have photoshop-like features added, however, or something like ImageMagick for Perl. |
Really? O_o..
I had images in scriptfiles and they refused to display on the client.. |
Quote:
|
From what I understand there's a problem with the old client that prevents images from loading. In the new client it should work, though, because they are added to FILENAMECACHE when saved.
|
| All times are GMT +2. The time now is 06:09 AM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.