Dayz Datenbank Problem

  • Hallo Leute,


    ich will in meiner Datenbank die Startausrüstung ändern, mit Navicat, aber mir fehlt die "instances"
    kann mir einer sagen wie ich das hinbekomme.


    Gruß Todi

  • Sry hatte deine Antwort irgendwie übersehen.
    versuch mal das


    Here is a working example for modifying the initial loadout and backpack for all players.
    1. Unpack @Server_DayZ.../AddOns/dayz_server.pbo
    2. Open compile/server_playerLogin.sqf with an text editor.
    3. Replace following lines (84-90)

    Quellcode


    1 _config = (configFile >> "CfgSurvival" >> "Inventory" >> "Default");
    2 _mags = getArray (_config >> "magazines");
    3 _wpns = getArray (_config >> "weapons");
    4 _bcpk = getText (_config >> "backpack");
    5 _randomSpot = true;
    6 _key = format["CHILD:203:%1:%2:%3:",_charID,[_wpns,_mags],[_bcpk,[],[]]];
    7 _key call server_hiveWrite;






    with

    Quellcode


    1 _randomSpot = true;
    2
    3 _inventory = [["ItemFlashlight","ItemMap","ItemGPS","NVGoggles","AK_74"],["ItemBandage","ItemPainkiller","30Rnd_545x39_AK"]];
    4 _backpack = ["DZ_ALICE_Pack_EP1",[],[]];
    5_key = format["CHILD:203:%1:%2:%3:",_charID,_inventory,_backpack];
    6_key call server_hiveWrite;



    4. Modify _inventory and _backpack to your needs. The format is the same as in the database fields of character_data.
    5. Save the file and pack the folder back to dayz_server.pbo.


    Notice: On my test server my character's backpack was still displayed as Patrol Pack. I had to drop it on the ground to change it into the ALICE Pack. This is probably a bug in the client code of DayZ (I used Lingor Skaro).


    ---


    I also implementing the feature that I suggested in my previous post (use default database values). But it requires a change in the HiveExt.dll. I will open a pull request as soon as I am able to compile and test my modified HiveExt.dll.

  • Beim Rucksack ist noch nen kleiner Fehler drin muss so sein ["DZ_ALICE_Pack_EP1",[[],[]],[[],[]]]
    sonst nimmt er ihn nicht 8)

    Einmal editiert, zuletzt von Lt.Bear ()