[OSP] Django dynamic webserver for Mount & Blade: Warband Multiplayer MODS

Users who are viewing this thread

SirFroweey

Banned
Old Guard
Greetings:

I'm glad to be back to this community. I know I may have had a few bumps along the road but I hope my contributions to the modding community can atone for my past transgressions.

That being said, I created a Django web server that is Mount & Blade: Warband ready. With it you can easily set-up a Django web server than can be utilized to create, update and get data for your MOD. Use it to save player data, and retrieve it later. You can even use it to link two or more mods together.

The purpose of this project is to allow modders to completely bypass the pain and time of creating a web server and database for your MOD. It allows you to focus entirely on your MOD. It's fast, smart and simple-to-use.

Navigate to the projects Github page for complete documentation and the download.

http://github.com/SirFroweey/warband_mod_django_webserver

All questions and comments will be answered here.


Enjoy.
 
Sherlock Holmes said:
What does the acronym 'MOD' stand for?

Any modifications that you are creating or have created for this game.

MOD can also stand for server-sided scripts that run off of existing MODS like Persistent World.
 
Update released:

- /get  /update /put  and /compare requests can now return extra strings via the extra_strings parameters, i.e.:

Code:
http://127.0.0.1:8000/get/?table=Account&player_id=1337&access_token=123456&extra_strings=ONE,TWO,THREE,FOUR,etc&values=gold,z_pos

This will allow you to execute modding code like:

Code:
(eq, ":integer_count", 2),
(eq, ":string_count", 5),

and filter out your url responses properly.


- You can now specify multiple warband servers or ip addresses that can use your Django web server API.

- You can now pass time_now as a value in your requests. It will set the current server datetime as the value for the specified key, i.e.:

Code:
http://127.0.0.1:8000/update/?table=Account&player_id=123456&logout_date=time_now&lookup_keys=player_id&access_token=123456

- You can now perform addition and subtraction on your database via the /update/ request like so:

Code:
http://127.0.0.1:8000/update/?table=Account&player_id=123456&logout_date=time_now&lookup_keys=player_id&access_token=123456&add=gold+1000
http://127.0.0.1:8000/update/?table=Account&player_id=123456&logout_date=time_now&lookup_keys=player_id&access_token=123456&subtract=gold-1000

This will help ease the process of making automatic banking scripts. gold should be defined as a field in the core/models.py file for your model(database table).
 
Update released:

- Added underscore(_) support. You can now supply underscores by substituting the $ in your URLS.
 
I've been really struggling with the webhosting aspect of database coding. I'll give this a more in depth read later
 
Back
Top Bottom