Author Topic: Load content files Dynamically  (Read 1511 times)

VetalYA

  • Guest
Load content files Dynamically
« 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.

Thijn

  • Tester
  • Sr. Member
  • ****
  • Posts: 531
  • Karma: +27/-16
    • View Profile
Re: Load content files Dynamically
« Reply #1 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..

VetalYA

  • Guest
Re: Load content files Dynamically
« Reply #2 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 >>.

stormeus

  • No-Lifer
  • Developer
  • Full Member
  • *****
  • Posts: 112
  • Karma: +13/-2
    • View Profile
Re: Load content files Dynamically
« Reply #3 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.
Quote
Morphine says:
    them LU devs ranting about how LU doesn't have client pickups
    while us VC:MPers don't have client anything
    ;_;

Stormeus Argo says:
    we have client crashes though
    ohohohohoho

Morphine says:
    LU DOESN'T HAVE THAT

Stormeus Argo says:
    LU - 0
    VC:MP - 1

 

© Liberty Unleashed Team.