Liberty Unleashed

Liberty Unleashed => Suggestions => Topic started by: VetalYA on November 18, 2011, 05:49:52 pm

Title: Load content files Dynamically
Post by: VetalYA on November 18, 2011, 05:49:52 pm
Usually, all files which we want  send, we write in Script.xml file:

Code: [Select]
<sound file="supersound.mp3"/>
<sound file="cool.mp3"/>

<script file="nicescript.nut" client="1" />
<script file="hehe.nut" client="1" />

I would  like to see a new Squirrel Server-side Function, which will load  content files Dynamically, when they needed.

Smth like:

Code: [Select]
LoadServerFile(pPlayer, format_sound , "Path_to_file/File.mp3");

Benefits: It will save bandwidth for server.
Title: Re: Load content files Dynamically
Post by: Thijn on November 20, 2011, 04:20:26 pm
That would indeed be nice, Only downloads files that are needed.
On the other hand, that needs waiting.

Would be epic if this is possible..
Title: Re: Load content files Dynamically
Post by: VetalYA on November 20, 2011, 05:00:13 pm
That would indeed be nice, Only downloads files that are needed.
On the other hand, that needs waiting.

Would be epic if this is possible..

Well... Yes, this idea is crazy, i wrote it only because i dont want to waste my  bandwidth for mp3 files.
Now i think, more useful ability will be to expand  abilities of Client & Server in this way:

Simply allow to write in Script.xml  -  http urls, example:


Code: [Select]
<url type="sound" link="http://myysite.org/some_file.mp3" />
But it will demand to create friendship between << TCP protocol & injected into gta3.exe - LU Client >>.
Title: Re: Load content files Dynamically
Post by: stormeus on November 20, 2011, 05:15:00 pm
If a dynamic file download feature is added, it should also check if the file is on the computer, and the checksum and filesize of the client's copy of the file is the same as the server's copy.

That way, the client isn't downloading the same file repeatedly in some deranged pseudo-DDoS.