Jump to content

Race download map


Feche1320

Recommended Posts

You could create a download manager which would load any resource instantly ( you could do something different for known types of files and simply read unknown type files and create new ones with same name and content in client ). Use:

loadstring --for loading Lua files 
dxCreateTexture -- for loading image files 

And you could read a XML file ( map files ) in the server and create objects and other things there.

Link to comment

For music files, get the file's content in the server side and send it to the client, there you should create a new file with same name and with the content you passed to the client.

As for image files, get the file's content, send it to the client and use dxCreateTexture. Just note you will not be able to load the pictures in GUI elements neither DDS, BMP and TGA files. For that, you'll need to do the same as I already said above ( music files procedure ).

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...