Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 03-09-2011, 05:28 AM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
If you mean specifically download a file into /graal/ I don't think it's possible, otherwise fileupdate("filename"); would download a file to it's relevant folder.
Reply With Quote
  #2  
Old 03-09-2011, 06:19 AM
MattKan MattKan is offline
the KattMan
Join Date: Aug 2010
Location: United States
Posts: 1,325
MattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to beholdMattKan is a splendid one to behold
Send a message via AIM to MattKan
Quote:
Originally Posted by ffcmike View Post
If you mean specifically download a file into /graal/ I don't think it's possible, otherwise fileupdate("filename"); would download a file to it's relevant folder.
So let's say someone overwrote pics1.png.

Could I make it

PHP Code:
//#CLIENTSIDE
function onPlayerLogin()
{
 
fileupdate("pics1.png");

To fix the file?

To make it fix the file everyone
__________________
Quote:
Originally Posted by Satoru Iwata
On the other hand, free-to-play games, if unbalanced, could result in some consumers paying extremely large amounts of money, and we can certainly not expect to build a good relationship with our consumers in this fashion. In order to have a favorable long-term relationship, we would like to offer free-to-play games that are balanced and reasonable.
Quote:
Originally Posted by Unximad
Eurocenter Games remains attached to the values of indies game developer and to the service our playerbase community.
Reply With Quote
  #3  
Old 03-09-2011, 06:22 AM
ffcmike ffcmike is offline
Banned
Join Date: Jul 2004
Location: London
Posts: 2,029
ffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond reputeffcmike has a reputation beyond repute
Send a message via AIM to ffcmike Send a message via MSN to ffcmike
Quote:
Originally Posted by MattKan View Post
So let's say someone overwrote pics1.png.

Could I make it

PHP Code:
//#CLIENTSIDE
function onPlayerLogin()
{
 
fileupdate("pics1.png");

To fix the file?

To make it fix the file everyone
Depends on whether the function compares the modification time of the file on your client with the file on the server in order to re-download or if it forces it, but if it does force the download it wouldn't be a good idea to have pics1.png being downloaded every single login.
You'd probably want to be comparing against a pre determined modification time of the original pics1.png beforehand.
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 07:21 PM.


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