Jump to content

Wootenstien

Member
  • Posts

    19
  • Joined

  • Last visited

Posts posted by Wootenstien

  1. Nvm about the question above, I have a hunch on how to achieve that. I know someone posted about how to have trader menu's to specific traders, so players with the same skins on would not get the trader menu. I wanted to make small traders throughout the map but don't want each one to have their own special skin, it had to do something in when the ai is spawned from the mission file but I cannot seem to find it.

  2. Alright everyone, I am tired of these coins getting removed randomly all the time from vaults so I decided to spend a few hours and take a look on how dayz epoch handles vaults and such. After searching around I found the problem to the coins not saving. Let me explain to the people that actually want to understand why it was happening and then I will post the fix.

     

    Dayz epoch actually has 2 variants of the vaults, one in which is locked and one in which is unlocked. When a player unlocks the vault what is actually happening is all the variables that were stored onto that locked safe are saved to local variables, next the locked vault gets removed and a new unlocked variant is placed down in the exact same spot and in the same direction, after that the these variables from the old safe gets written to the new vault, (3 of the variables are actually calculated by finding the weapons, magazines and the backpacks of the safe and then places all the info on an array,which then get's called to the new vault to "fill" it up with the old loot). Now another variable called "bankMoney" is added from this mod to the vaults of your server(s). As you can remember about the unlock vault and the vault lock is one of the first things it does is get the variables from the old vault so it can apply them to the new vault. It grabs this variable "bankMoney" from the old one and attempts to write the new variable to the new vault.

     

    Now there could be a bad glitch which involves people to take the money of the old vault before the new one get's places down, but this is "fixed" by one of the scripts, (The player_lockVault.sqf). I am sad to say that the way this was originally designed was absolute laziness as all the "fix" does is make the variable "bankMoney" to 0 before it is written to the database so if another player tries to take money when the player is locking the vault it would give them that there is not enough money in the vault. That is all fine and dandy, but if you take a look at this line PVDZE_log_lockUnlock = [player, _obj,true]; AND publicVariableServer "PVDZE_log_lockUnlock"; it basically calls the server to safe the inventory of the vault which also means the coins... but since they are now set to 0 you will get a big fat zero in your database, so when the player opens the vault or the server is restarted there will be nothing in the vault no matter if you put 10 coins to 200000 coins, so ya that needs to fixed...

     

    BUT LUCKALLY I ALREADY DID! SO FOLLOW BELOW SO YOU CAN HAVE SOME GOOD OLD SAFES SAVING LIKE THEY SHOULD!

     

    1) Go to your mission folder

    2) If you don't have a custom player_lockVault and are using the zupa's varient go into your ZSC folder and search for it, if you ARE using one find your player_lockVault.sqf

    3) Open player_lockVault.sqf

    4) Search for _obj setVariable ["bankMoney", 0, true]; which is around line 42 and remove it

    5) Search for _pos = _obj getVariable["OEMPos",(getposATL _obj)];

    6) Add this below it:

     

    sleep 1;
     
    _objMoneyNew = _obj getVariable["bankMoney",0];
     
    //Checks to see if the values have changed if they have the players will be punished
    //cutText [format ["Old Coins: %1  New coins: %2",_objMoney,_objMoneyNew],"PLAIN"];
    if(_objMoney != _objMoneyNew) exitWith {
    _nearPlayers = _this nearEntities ["CAManBase", 2];
    cutText ["We do not accept duping, you will now be punished", "PLAIN DOWN"];
    {
    removeAllWeapons _x;
    removeBackpack _x; 
    _x setVariable["cashMoney",0,true];
    (vehicle _x) setVehicleAmmo 0;
        } forEach _nearPlayers;
    s_player_lockvault = -1;
    DZE_ActionInProgress = false;
    };
     
    This basically punishes the player if they attempting this dupe with a friend by removing all the gear in their inventory plus coins
     
    7) Safe the file and test er out!
     
    Just a note I am a pretty new scripter so I may of made some noob/shitty code. I may be completely wrong about all of this however It works fine for me and I hope it works for you as well, GOOD LUCK!
  3. So I did what you ask for me to try and sadly I am getting the same thing I have been getting.

     

    A question about the bat file you gave me, you wanted me to overwrite everything that was in the original 3d.life.mission.arma2net.bat with the paste you gave me right?

     

    I checked my versions of .net and visual and they are above both of those. I downloaded them anyways and they gave me the message that my version was too high, so I guess that is not the problem

     

    I am sorry that I am causing all of this trouble for you. I would like to give you a donation for all the work that you have put in this. Wish it could work. I will keep trying, maybe one day I will get it lol.

  4. During my whole testing phase to find the error, there was never one thing that was written to a log in that folder. The only time a log appeared is when I tested the connection with the Arma2NetExplorer, which contained this:

     

    Info: 21:13:31 - Logging started in directory: C:\Users\Sean\AppData\Local\Arma2NETMySQL/logs/
    Info: 21:13:31 - Arma2NETMySQL Plugin Started.
    Info: 21:13:31 - Version number: 0.1.0.0
    Info: 21:13:31 - Loading databases...
    Warning: 21:13:31 - Unable to find the Databases.txt file here: E:\Program Files (x86)\Steam\steamapps\common\Arma 2 Operation Arrowhead\@Arma2NET\Databases.txt
    Info: 21:13:31 - Databases.txt file loading in from: C:\Users\Sean\AppData\Local\Arma2NETMySQL/Databases.txt
    Info: 21:13:31 - Type: mysql Database: dayz_epoch IPAddress: 127.0.0.1 Port: 3306 Username: root Password: NotShownForSecurityReasons
    Info: 21:13:31 - Received - Database: dayz_epoch SQL Query: select ObjectID from object_data WHERE ObjectUID
    Info: 21:48:31 - 30 minutes of inactivity have passed.  Closing down MySQL connection.
     
    Maybe nothing is showing up because the scripts are not talking to the dlls? I looked last night at the syntax of your custom scripts, they seem all fine, and would theoretically send the info to the .dlls
     
    The errors that are placed in the .rpt file make sense and what you stated above, because what is being returned is nothing, but the script is expecting something in that variable. 
     
    Do you think that an arma 2 update would cause this? I tried this without a firewall, and looked at the security of the .dlls all users have full access to these.
     
    Also this was created when the steam update was not up, so do you think that would be the problem, it using a different player UID?
    Do you think that because I only put something in the character_data but nothing in the player_data and the player_login it would not work? Just throwing out ideas.
     
    Also on my main menu screen should I see the mod in my expansions list? I do not.
     
    I edited my steam launch params and the @Arma2NET mod appeared, but sadly that did not fix anything.
     
     
    Looking deeper in the @Arma2NET I noticed a monopaths file, which took it to the c drive. My sql server and my arma 2 game are located on different harddrives, the sql server being on the c drive and the arma 2 game being on my e drive.
  5. Ok so when it comes to the dayz_hunger error and your fix.

     

    I look at the variables.sqf and I find that dayz_hunger and dayz_thirst is there in the exact place you wanted me to place it. I overwrite the variables anyways with what you gave me, but I am still getting that error in my .rpt.

     

    The .bat works, thank you, it loads up everything, except I removed the mods that I do not have such as dayz origins overwatch the jon_editorUpdate and the mbg. (I am assuming that I do not need those for this to work, just epoch 1.4.0.2)

     

    I removed the old database and put a new schema in using your link. I saved my character data that was located in the character_data table of my server, (Making sure to only grab one entry, which was mine), and place it in my new database. I changed the init.sqf to what the tutorial at the beginning stated I should do if I wanted to use a character from the database, changed the userID. Also I made sure DefaultTruePreMadeFalse was equaling false now. I checked to see if the database supported 17 and it did.

     

    After joining I got receiving for a little bit, which then I was greeted with a brand new character with the PlayerUID representing the one I put in the init.sqf. Confused I looked at my client rpt file and find this. http://pastebin.com/nxVSQB2K. Maybe the syntax is off? Also a lot of these errors seem to be related to undefined variables.

     

    I tested the arma2net with the code you gave me and it did indeed change all the traders_data qty column to 51 when the values where lower then 50.

     

    When I started the game I checked the log file and nothing was there, I guess because it is having errors there is never really anything being called.

     

    I also tried this without my firewall on and anti-virus, same thing happened.

     

    Not really sure what is going on. Going to do a full fresh re-install and see if that does anything. Will post back when I get the results.

     

     

    Alright so I did a fresh re-install and I back to getting those errors with hunger. I tried it with and without loading from the character database, but I am still getting those errors, pasted above.

  6. 1 - Ok. So I changed the instance number to 17. Being the default map as "DayZ_Epoch_17.Chernarus" (Was wondering why it was the 11 variant). However nothing changed.

    2 - I used the default 1.4.0.2 database files. (Loaded them through workbench) So it should of placed all the correct tables.

    3 - I am using what I got from you, there are no custom files atm.

    4 - I am only getting a few errors here is a small portion. http://pastebin.com/XDp67Z9ZSeem to be mostly GUI related

    5 - I do not have a 1.4.0.2 database to load up sadly. My server atm runs 1.5.0.1, so I do not have a character database to run. I was not sure if using the default settings with the default char would save to the database. (No worries on that one honestly, I was just wondering if it did)

     

    Do you think a newer arma 2 would be the problem? I don't think it would, but I am not sure.

     

    BTW Thank you for trying to help me, it means a lot to me.

     

    Ok so I looked at the .bat file that was placed in the arma 2 oa base dir. It calls for a beta. I am not sure that the new update has a beta patch, I am not sure if that would matter.

  7. Alright so I downgraded to 1.0.4.2 and now I get the traders options, there is no missions sqf error now. I still keep getting .rpt errors stating that dayz_hunger is an undefined var. Now when I go to the trader, it just states loading items... I guess it is having problems getting the info from the database. (And yes I am using 1.4.0.2 as the database) When I put Arma2NETMySQLCommand ['dayz_epoch',"SELECT InstanceID FROM character_data LIMIT 1"] in it still gives me [[]]. So I guess it is still not writing the char ID to the database. But when I put in this Arma2NETMySQLCommand ['dayz_epoch',"SELECT id FROM traders_data LIMIT 1"] I get a response. 

  8. Well looks like traders are not working for me, I get a lot of rpt errors as well. When I load up the character, no character data is written to the database (If I does that). Not really sure what is wrong. The sql database is up and running. I used that little explorer put in the command you suggested to other people to use and I keep getting [[]]. I guess that makes sense since there is nothing in the database anyways. Not really sure what I am doing wrong. Also that game is saying that it cannot find the removenet.sqf.

  9. So my players have been reporting mission coins in their safes after restart, so I though I would investigate and what I found was not good. When I build a vault and look at my database, it is there with an empty inv []. When I put my coins in.. say 1000 it goes on the database, nice and simple... but then I lock it... and it SOMETIMES goes away AKA the coins go to 0... Weird right. However when I unlock it it always comes back, but you can see the problem if the player has his vault locked on restart it will read 0 and thus it will become zero. I have no clue on why sometimes this happens but that is bad. I will take a look at the code, but I was wondering if someone already has a fix for this.

  10. So my players are saying that safes with changed codes do not save coins, (Yes I am using ), however ones that they do not change save their coins.

     

    NVM, I fixed the problem... if you use this mod and want it to work with the coins mod edit ckc_updSafe in the CKC folder of you mission file and past this in:

     

    DZE_ActionInProgress = true;
     
    _object = cursorTarget;
     
    _weapon = getWeaponCargo _object;
    _magazine =   getMagazineCargo _object ;
    _backpack =  getBackpackCargo _object;
    _coins = _object getVariable["bankMoney",0];
     
     
    _newCombo = dayz_combination;
    _object setVariable ["CharacterID",_newCombo,true];
     
    _actual = _object getVariable ["CharacterID", "0"];
    cutText [format["Your new Key: %1", _actual], "PLAIN DOWN"];
     
     
     
     
                _classname = "VaultStorageLocked";
           _location = _object getVariable["OEMPos",(getposATL _object)];
    _dir = getDir _object;
     
     
     
    // Create new object 
    _newobject = createVehicle [_classname, [0,0,0], [], 0, "CAN_COLLIDE"];
     
    // Set direction
    _newobject setDir _dir;
     
    // Set location
    _newobject setPosATL _location;
     
       _newobject setVariable ["WeaponCargo", _weapon ,true];
    _newobject setVariable ["MagazineCargo", _magazine ,true];
    _newobject setVariable ["BackpackCargo", _backpack,true];
    _newobject setVariable ["bankMoney", _coins,true];
    _newobject setVariable["packing",0];
    player reveal _newobject;
     
     
    PVDZE_obj_Swap = [_actual,_newobject,[_dir,_location],_classname,_object,player];
    publicVariableServer "PVDZE_obj_Swap";
       sleep 1;
               _newobject spawn player_unlockVault;
     
     
     
    DZE_ActionInProgress = false;
  11. Hello epoch players!

    I have a server that has been up for about a week or so, however, as the title explains people are having problems joining. I have some of my friends join without a problem, while others have had multiple problems, now here is the kicker. I use DART for my server to get a player list and also it use for administrating. I can see random people attempting to join but this is ALWAYS the message I receive from dart.

    [2015-01-04 | 22:29:00] Player #9 Player (************************* IP) connected

    [2015-01-04 | 22:29:01] Player #9 Player - GUID: ******************************* (unverified)

    [2015-01-04 | 22:29:01] Verified GUID (**********************) of player #9 Player

    [2015-01-04 | 22:29:02] Player #9 Player - Legacy GUID: *************************

    [2015-01-04 | 22:29:05] Player #9 Player disconnected

    So I know people are trying to join but they do not get to the main lobby. (I know this because the server RPT does not even know that these people have entered due to it actually taking note of players when they have successfully reached the lobby)

    No here is the big problem... I can't figure it out... and without actually getting feedback from players that are not able to join, (which is impossible on account of me being unable to get in communication with these random players) I cannot get a reasonable lead on what the problem would be.

    Here is some info:

    The server shows up in gametracker: http://www.gametrack....101.169:64817/

    The server also shows up in dayz launcher, however it has problems updating the player count and does not show the ping...

    The server does show up in dayz commander but it does not state that the server is hosting 1.5.0.1 epoch on it.

    Here is my server config:

    hostName = "64BitCrusaders - SpawnBike/Gear|Groups|Coins|CustomAIMissions\Map|HighFPS|LowLag!(1.0.5.1/125548)";

    password = "";

    passwordAdmin = "********";

    maxPlayers = 50;

    steamport = 2303;

    steamqueryport = 2304;

    logFile = "server_log.txt";

    voteThreshold = 2;

    voteMissionPlayers = 3;

    //reportingIP = "arma2oapc.master.gamespy.com";

    timeStampFormat = "short";

    motd[] = {"The 64Bit Community welcomes you!!","If you need help don't hesitate to ask"};

    motdInterval = 0;

    vonCodecQuality = 11;

    disableVoN = 0;

    kickduplicate = 1;

    verifySignatures = 2;

    persistent = 1;

    BattlEye = 1;

    allowedLoadFileExtensions[] = {"hpp","sqs","sqf","fsm","cpp","paa","txt","xml","inc","ext","sqm","ods","fxy","lip","csv","kb","bik","bikb","html","htm","biedi"}; //only allow files with those extensions to be loaded via loadFile command (since Arma 3 build 1.19.124216)

    allowedPreprocessFileExtensions[] = {"hpp","sqs","sqf","fsm","cpp","paa","txt","xml","inc","ext","sqm","ods","fxy","lip","csv","kb","bik","bikb","html","htm","biedi"}; //only allow files with those extensions to be loaded via preprocessFile/preprocessFileLineNumber commands (since Arma 3 build 1.19.124323)

    allowedHTMLLoadExtensions[] = {"htm","html","xml","txt"}; //only allow files with those extensions to be loaded via HTMLLoad command (since Arma 3 build 1.27.126715)

    doubleIdDetected = "";

    onUserConnected = "";

    onUserDisconnected = "";

    onUnsignedData = "kick (_this select 0)";

    onHackedData = "kick (_this select 0)";

    onDifferentData = "";

    regularCheck = "";

    requiredBuild = 125548;

    requiredSecureId = 2;

    class Missions

    {

    class Mission1

    {

    template = "DayZ_Epoch_11.Chernarus";

    difficulty= "veteran";

    };

    };

    I have already tried different steam ports, with spacing in between the regular steam port and the query. 2300 and 2305 for example.

    I have downloaded dayz epoch from the official torrent file "dayz_epoch"

    Now I think dayz launcher downloads the dayz epoch file but names it something like dayz_epoch1051 or something (would that cause problems?)

    If some of you could try to join: 167.114.101.169:64817 and see if you can post the error on this post I would be forever grateful.

  12. Hello epoch players!

     

    I have a server that has been up for about a week or so, however, as the title explains people are having problems joining. I have some of my friends join without a problem, while others have had multiple problems, now here is the kicker. I use DART for my server to get a player list and also it use for administrating. I can see random people attempting to join but this is ALWAYS the message I receive from dart.

     

    [2015-01-04 | 22:29:00] Player #9 Player (************************* IP) connected
    [2015-01-04 | 22:29:01] Player #9 Player - GUID: ******************************* (unverified)
    [2015-01-04 | 22:29:01] Verified GUID (**********************) of player #9 Player 
    [2015-01-04 | 22:29:02] Player #9 Player - Legacy GUID: *************************
    [2015-01-04 | 22:29:05] Player #9 Player disconnected
     
    So I know people are trying to join but they do not get to the main lobby. (I know this because the server RPT does not even know that these people have entered due to it actually taking note of players when they have successfully reached the lobby)
     
    No here is the big problem... I can't figure it out... and without actually getting feedback from players that are not able to join, (which is impossible on account of me being unable to get in communication with these random players) I cannot get a reasonable lead on what the problem would be.
     
    Here is some info:
     
    The server also shows up in dayz launcher, however it has problems updating the player count and does not show the ping...
    The server does not show up in dayz commander on account they have not updated their host file for a very long time.
     
    Here is my server config:
     
    hostName = "64BitCrusaders - SpawnBike/Gear|Groups|Coins|CustomAIMissions\Map|HighFPS|LowLag!(1.0.5.1/125548)";
    password = "";
    passwordAdmin = "********";
    maxPlayers = 50;
    steamport = 2303;
    steamqueryport = 2304;
    logFile = "server_log.txt";
    voteThreshold = 2;
    voteMissionPlayers = 3;
    //reportingIP = "arma2oapc.master.gamespy.com";
    timeStampFormat = "short";
    motd[] = {"The 64Bit Community welcomes you!!","If you need help don't hesitate to ask"};
    motdInterval = 0;
    vonCodecQuality = 11;
    disableVoN = 0;
    kickduplicate = 1;
    verifySignatures = 2;
    persistent = 1;
    BattlEye = 1;
     
    allowedLoadFileExtensions[] = {"hpp","sqs","sqf","fsm","cpp","paa","txt","xml","inc","ext","sqm","ods","fxy","lip","csv","kb","bik","bikb","html","htm","biedi"}; //only allow files with those extensions to be loaded via loadFile command (since Arma 3 build 1.19.124216)
    allowedPreprocessFileExtensions[] = {"hpp","sqs","sqf","fsm","cpp","paa","txt","xml","inc","ext","sqm","ods","fxy","lip","csv","kb","bik","bikb","html","htm","biedi"}; //only allow files with those extensions to be loaded via preprocessFile/preprocessFileLineNumber commands (since Arma 3 build 1.19.124323)
    allowedHTMLLoadExtensions[] = {"htm","html","xml","txt"}; //only allow files with those extensions to be loaded via HTMLLoad command (since Arma 3 build 1.27.126715)
     
    doubleIdDetected = "";
    onUserConnected = "";
    onUserDisconnected = "";
    onUnsignedData = "kick (_this select 0)";
    onHackedData = "kick (_this select 0)";
    onDifferentData = "";
    regularCheck = "";
    requiredBuild = 125548;
    requiredSecureId = 2;
     
    class Missions
    {
        class Mission1
        {
        template = "DayZ_Epoch_11.Chernarus";
        difficulty= "veteran";
        };
     
    };
     
    I have already tried different steam ports, with spacing in between the regular steam port and the query. 2300 and 2305 for example.
    I have downloaded dayz epoch from the official torrent file "dayz_epoch"
    Now I think dayz launcher downloads the dayz epoch file but names it something like dayz_epoch1051 or something (would that cause problems?)
     
    If some of you could try to join: 167.114.101.169:64817 and see if you can post the error on this post I would be forever grateful.
     

     

×
×
  • Create New...