erorr404 Posted March 5, 2007 Share Posted March 5, 2007 (edited) 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: 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 February 8, 2011 by Guest Link to comment
SamB Posted March 5, 2007 Share Posted March 5, 2007 Cool, I've been waiting for ages to be able to use mySQL like php does it. Link to comment
Brophy Posted March 5, 2007 Share Posted March 5, 2007 Oh noes! my script names have been leaked! Link to comment
norby89 Posted March 5, 2007 Share Posted March 5, 2007 Multi Myriad Island anyone? <3 Oh noes! my script names have been leaked! ooo Tina Link to comment
iam2noob4u Posted March 5, 2007 Share Posted March 5, 2007 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)) Link to comment
liquid ocelot Posted March 5, 2007 Share Posted March 5, 2007 Best News I've heard all day! Its Damn amazing what MTA is capable of Link to comment
ArmedAndDangerous Posted March 5, 2007 Share Posted March 5, 2007 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. Link to comment
Ace_Gambit Posted March 5, 2007 Share Posted March 5, 2007 I was looking for this thread. And I see a lot of dynamic server-side "options" floating about . 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. Link to comment
liquid ocelot Posted March 6, 2007 Share Posted March 6, 2007 I was looking for this thread. And I see a lot of dynamic server-side "options" floating about . 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. Link to comment
Recommended Posts