Jump to content

Race download map


Feche1320

Recommended Posts

Posted

Not sure, maybe they made their maps to be created with createObject server side.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

Okay I have a problem.. my idea was to read the .map file serverside and then create the objects, but in order to load the map scripts, resource has to be started, but if I start the resource, map download appears again.. any idea on how to fix this?

Posted

Remove the map file from meta.xml, read it as a XML file.

San Andreas Utopia RPG (SAUR) Owner & Developer.

560x95_FFFFFF_FF9900_000000_000000.png

Education is the most powerful weapon which you can use to change the world.

Posted

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.

"[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007

Posted

Read Lua files in server, send it to client and use loadstring.

"[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007

Posted

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 ).

"[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007

Posted

I didn't say that. I explained what should you do and what functions you needed for that, just re-read the topic.

"[...] If you don’t love it, if you’re not having fun doing it, you don’t really love it, you’re going to give up." - Steve Jobs, 2007

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...