DayZ GUI Loadout Editor for Bliss (v1.1)

Falcon911

Well-Known Member
Refernce article. Cannot find the author Ersan

This is a quick script I wrote for my GSP, it isn't super polished but it works quite well. I figured I would release it to the public in case someone else finds a use for it or wants to implement it into an administration tool.

Screenshot:



Download:
http://dayz.st/files/loadout_1.1.zip

Instructions:
1. unzip loadout.php, jquery.min.js, and items folder to a web server
2. edit loadout.php with your database and instanceid details
3. execute items.sql on your bliss database (this will add a new table called 'items' that has all relevant item information - it won't affect your database)
 

Falcon911

Well-Known Member
Again reference only I am not the author.

Nice tool.. However.. Would it not be easier to just load a window at the bottom of the output of what you want? I can then copy and paste the info into my instances since I have multiple server running on the same database.

I can then copy and paste the info into my instances.

I have trying but lack the special knowledge of creating the proper output.
Yeah you could definitely do that - delete this:
Code:
$.ajax({
        async: false,
        type: 'GET',
        url: './loadout.php?save=1&string=' + encodeURIComponent("[[" + primarystring.substring(0, primarystring.length - 1) + "],[" + secondarystring.substring(0, secondarystring.length - 1) + "]]"),
        success: function(data) {
            if(data == "1") { alert('Loadout saved - you need to restart your server for the changes to take effect.  You may now close this window'); } else { alert('There was a problem saving your loadout'); }
        }
    });
And write:
Code:
prompt("Loadout String:","[[" + primarystring.substring(0, primarystring.length - 1) + "],[" + secondarystring.substring(0, secondarystring.length - 1) + "]]");
That will simply make a dialog box that has the string in a textbox that you can copy.
You can also remove the loadout parsing so that it doesn't try to load the current loadout by deleting this:

Code:
$result = mysql_query("SELECT inventory FROM instance WHERE id=".$instanceid);
$result = mysql_fetch_array($result);
$loadout = $result['loadout'];
And replacing it with:
Code:
$loadout = "[]";
Also I just fixed a problem where it would request the wrong URL to save (it was specific to my webserver setup, sorry). Redownload the zip or else it won't save your loadout when you click save. (if you're not using the above method)

Also this is untested but should work.
 

TheLaughingMan

Well-Known Member
Does this modify a user's current loadout or does it modify the custom loadout feature which applies a loadout on each fresh spawn for those added to it?
 

kikyou2

Valued Member!
Hey there thanks for your work!

But I got some questions:

I edited all the MySQL Data in the loadout.php but isn´t there missing the MySQL port?

Also when I try to open loadout.php there is always this showing up:


Thanks in advance!
 

Falcon911

Well-Known Member
Again not the author. Just ported the info from Bliss forums to here for further interested parties. Maybe Ersan can post.
 

Audio Rejectz

Well-Known Member
Does this modify a user's current loadout or does it modify the custom loadout feature which applies a loadout on each fresh spawn for those added to it?
Fresh spawns - Although Ersan has made some awesome new features. He runs DayZ.ST so if anyone needs help with it he may help if you drop him a message on there or aim him at this. Not sure if hes on these forums yet
 

dirtyape

New Member
What are the requirements? This does nothing on my client, it just displays the items but when you click on them nothing happens. Am I missing something?

:edit: actually disregard, I added the changes Falcon posted above and it started working.
 

Doc

Valued Member!
ooh php, finally a language i can code in! I am going to attempt to modify this for Pwnoz0rs pack, will post if i am successfuk
 

Phoenix

Member
ooh php, finally a language i can code in! I am going to attempt to modify this for Pwnoz0rs pack, will post if i am successfuk
If I'm understanding this tool correctly, it modifies the values injected into the bliss-hive database by the "Custom Loadout" plugin bliss includes. Without changing the base and including the hook in Pwnzor's pack, you won't really get anywhere. It would be easy after that though. I've looked into it, but haven't had any time to devote to doing it.

I would very much like custom loadouts for Pwnzor's package as it's arguably the more user (admin) friendly, so it's been a shame to see a lack of hook development on it. Most of them have been adapted from bliss...
 

Doc

Valued Member!
If I'm understanding this tool correctly, it modifies the values injected into the bliss-hive database by the "Custom Loadout" plugin bliss includes. Without changing the base and including the hook in Pwnzor's pack, you won't really get anywhere. It would be easy after that though. I've looked into it, but haven't had any time to devote to doing it.

I would very much like custom loadouts for Pwnzor's package as it's arguably the more user (admin) friendly, so it's been a shame to see a lack of hook development on it. Most of them have been adapted from bliss...

I agree - I'm considering a switch to bliss for that purpose
 

Ryahn2

New Member
I have it up and running but it doesnt seem to work like it should. I am assuming clicking on the item names adds it to the inventory section. I just recently install xampp for testing purposes on my server and it has always worked right out the box for javascript and etc
 
Top