erorr404

MTA "Resources" explained (by IJs)

Recommended Posts

The last couple of months we have been developing a new way of distributing content from server to clients. We do this by so called resources, a new way of thinking about your MTA mods. We will try to explain how this benefits you as user, and as potential developer.

Every developer that wants to make scripts or maps, includes his/her files inside a (zip) archive. This archive contains everything needed for the resource to load. For example, someone could develop an "RPG gameplay" resource that could include the following:

  • a server-side script file that runs on the server and provides the server-side gameplay and communicates with a SQL server. Check out the Tutorials section for more information on how to script this way. This is done by the Lua scripting language.
    a client-side script file that runs on each client, providing a user interface for e.g. logging in or an inventory of items (using the well-known MTA GUI which is now scriptable!). This is done by the Lua scripting language.
    a webserver file that runs on the server. Our dedicated server contains an embedded webserver which allows access to all currently loaded resources on the server (using Ajax, XML and Lua scripting support, similar to how PHP works). This would allow developers to put settings, status, and gameplay functions on the webserver so anyone can access them (without using the server's console or being in-game).

Our resources are compatible with custom files as well (as it allows downloading all files to each client). This means that in the future you may be able to send your own custom .dff or .x models, textures, images, sounds, etc. through a resource.. thus providing a complete "package" for your gamemode.

Resources are not necessarily bound to gameplay modes. For example, we have a drive-by resource that adds drive-by functionality, a simple tank-aim resource that adds a crosshair for tanks, a spawn manager resource that takes care of player spawning, a logger resource that logs server activity to a MySQL server, a death messages resource that displays all death messages, etc.

See, by moving as much of the functionality to resources (that are open-source) instead of baking everything into our DLL files, we are encouraging you to modify and extend the basic scripts we provide.

Gameplay examples can be found in the Tutorials section, but here's an example of a server-related resource:

resourcebrowser_small.png

This is our resourcebrowser resource. As the name says it provides a frontend for our embedded webserver, allowing access to all other resources. This is an example of what can be done with resources, not just on the gameplay.. but on virtually everything you want.

I hope you found this an interesting read. In any case, thanks for reading. We will be posting some more in-depth info on this in a next post.

Edited by Guest

Share this post


Link to post

Cool, I've been waiting for ages to be able to use mySQL like php does it. :)

Share this post


Link to post

Multi Myriad Island anyone? <3

Oh noes! my script names have been leaked! :lol:

ooo Tina :o

Share this post


Link to post

lol can't wat for MTA:Myriad Island.

although I'd suggest making a script to see weither the mod has been installed, and let users download it by hand (giving 173 MB+ to 20 people on a server... I'd like to see that happen (you need to upload 3,38 GB without players getting impatient))

Share this post


Link to post
lol can't wat for MTA:Myriad Island.

although I'd suggest making a script to see weither the mod has been installed, and let users download it by hand (giving 173 MB+ to 20 people on a server... I'd like to see that happen (you need to upload 3,38 GB without players getting impatient))

It has been suggested that files be provided to players via another server, in a similar fassion to CS:S on steam.

Share this post


Link to post

I was looking for this thread. And I see a lot of dynamic server-side "options" floating about :shock: . No offence (and I really say this with all respect) but I hope it is going to be more secure than the current cheat protection in MTA race.

Share this post


Link to post
I was looking for this thread. And I see a lot of dynamic server-side "options" floating about :shock: . No offence (and I really say this with all respect) but I hope it is going to be more secure than the current cheat protection in MTA race.

I agree, almost every day I play MTA I see someone flying/health hacking. and when there is no admins/votekick in some servers then I just have to leave because I get so pissed off by it. (which is why I never played SA:MP because of things like this.

Share this post


Link to post

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.