Jump to content
salival

ZSC for Epoch 1.0.6+ (And OverWatch 0.25)

Recommended Posts

4 hours ago, salival said:

I'll have a look and see what's involved, I haven't messed with any of the global based coin stuff.

I took a look, but when the scripts start accessing the database and such, its way beyond me lol. 

I would love to help to be honest. But you'd have to show me a few things, the more i learn, the more i can contribute back also.

I love helping others, but i can only help with what i know lol. Anyways the offer is there. if you feel for it pm me :)

Duke

Share this post


Link to post
Share on other sites

Thank you for this release,

I am however experiencing an issue with safes. I have a fresh 1.0.6.1 server installed and the latest Github release of this coins script.

Whenever I disconnect from the server then relog, the deposited coins are not in the safe.

I can see on the database that the safe has coins in the "StorageCoins" column. 

Traders are all working great :)

Any guidance on where I may have gone wrong would be greatly welcomed.

Thanks, Steve. 

Share this post


Link to post
Share on other sites
2 hours ago, dcgsteve said:

Thank you for this release,

I am however experiencing an issue with safes. I have a fresh 1.0.6.1 server installed and the latest Github release of this coins script.

Whenever I disconnect from the server then relog, the deposited coins are not in the safe.

I can see on the database that the safe has coins in the "StorageCoins" column. 

Traders are all working great :)

Any guidance on where I may have gone wrong would be greatly welcomed.

Thanks, Steve. 

Hello,

This can happen if you didn't merge the server_handleGear changes or if you don't have dze_moneyStorageClasses set as per the variables file I supplied

Share this post


Link to post
Share on other sites

I have got the functionality for global banking working but the server side file named bankinit.sqf needs to be updated to reflect the new database structure and DLL. I can get the bankers to appear and interact with them but I get error message, "[Error] Invalid method id: 299" in the console. Obviously 299 is not the correct "Child." I see that the coins for global banking are stored under a column named "bankcoins" in the playerdata table. The file just needs to reflect this.

https://gist.github.com/worldwidesorrow/6416d97efcee2bf7ff5d5fdc5972b52a

Any help would be appreciated.

Share this post


Link to post
Share on other sites
1 minute ago, JasonTM said:

I have got the functionality for global banking working but the server side file named bankinit.sqf needs to be updated to reflect the new database structure and DLL. I can get the bankers to appear and interact with them but I get error message, "[Error] Invalid method id: 299" in the console. Obviously 299 is not the correct "Child." I see that the coins for global banking are stored under a column named "bankcoins" in the playerdata table. The file just needs to reflect this.

https://gist.github.com/worldwidesorrow/6416d97efcee2bf7ff5d5fdc5972b52a

Any help would be appreciated.

This was my biggest fear, which is why i didnt attempt to go too far with it. I do remember the devs mentioning something about the DLL being ready for coins and banking...

Share this post


Link to post
Share on other sites
13 hours ago, JasonTM said:

I have got the functionality for global banking working but the server side file named bankinit.sqf needs to be updated to reflect the new database structure and DLL. I can get the bankers to appear and interact with them but I get error message, "[Error] Invalid method id: 299" in the console. Obviously 299 is not the correct "Child." I see that the coins for global banking are stored under a column named "bankcoins" in the playerdata table. The file just needs to reflect this.

https://gist.github.com/worldwidesorrow/6416d97efcee2bf7ff5d5fdc5972b52a

Any help would be appreciated.

I didn't read up on the previous convo's but here a quick sit down of what i think is going on:

 

Epoch has the saving stuff implemented already:

Getting variables from player object

https://github.com/EpochModTeam/DayZ-Epoch/blob/master/SQF/dayz_server/compile/server_playerSync.sqf#L39-L41

Saving it to DB with DLL child 205

https://github.com/EpochModTeam/DayZ-Epoch/blob/master/SQF/dayz_server/compile/server_playerSync.sqf#L224-L227

 

On player login all variables are also set ( even when one doesn't use Single Currency)

(Search for 'coins' in the following file to see what happens)

https://github.com/EpochModTeam/DayZ-Epoch/blob/master/SQF/dayz_server/compile/server_playerLogin.sqf#L91-L114

Share this post


Link to post
Share on other sites

Thank you so much Zupa! I got it to work.

The coins are successfully being saved to the "bankcoins" field in the player_data table and with no errors in the RPTs.

Since you pointed out that the saving stuff was already implemented in 1.0.6, I was able to eliminate the bankinit.sqf file altogether.

I replaced the following:
 

Spoiler

 

PVDZE_plr_Save = [player,(magazines player),true,true] ;
publicVariableServer "PVDZE_plr_Save";

PVDZE_bank_Save = [player];
publicVariableServer "PVDZE_bank_Save";

 

With the simple line that salival used: call player_forceSave;

The console shows that this forces Childs 201 (character data) and 205 (player data) to run.

Lastly, I replaced the "bankMoney" variable with the " MoneySpecial " as you pointed out above.

Thanks again, and thanks to salival and the rest of the Epoch dev team for making this work so well.

Share this post


Link to post
Share on other sites
4 minutes ago, JasonTM said:

Thank you so much Zupa! I got it to work.

The coins are successfully being saved to the "bankcoins" field in the player_data table and with no errors in the RPTs.

Since you pointed out that the saving stuff was already implemented in 1.0.6, I was able to eliminate the bankinit.sqf file altogether.

I replaced the following:
 

  Hide contents

 

PVDZE_plr_Save = [player,(magazines player),true,true] ;
publicVariableServer "PVDZE_plr_Save";

PVDZE_bank_Save = [player];
publicVariableServer "PVDZE_bank_Save";

 

With the simple line that salival used: call player_forceSave;

The console shows that this forces Childs 201 (character data) and 205 (player data) to run.

Lastly, I replaced the "bankMoney" variable with the " MoneySpecial " as you pointed out above.

Thanks again, and thanks to salival and the rest of the Epoch dev team for making this work so well.

Feel free to submit me a pull request on github with your changes

Share this post


Link to post
Share on other sites

Added to my test server, seems to be working great.

I removed the banker bots and added my own atm machines dotted around the map away from traders.

I also left the safe storage active for now for people to transfer money out of the safes into the bank, although having the two systems seems to be a good idea, as other people can acsess your money if they have accsess to the safe. Good for groups etc.

Excelent work.All I need to do is add the bank icon nto the HUD. Shouldnt be too hard.

Share this post


Link to post
Share on other sites

Ok found a big issue.

If you change clothes your bank balance is deleted.

If you relog it comes back.. HOWEVER

If you change clothes, then add to your bank, it wipes the orginal amount and sets it to whatever you put in after clothes change.

ASLO

If you die, your bank balance is wiped.

 

Im guessing its something to do with player_switchmodel not having the coin/money variables in it? Mine doesnt anyhow.mmaybe other files that come into play when creating a new character?

*edit* I appear to have fixed it with a new player_switchmodel file with the money and bank variables..

Also got the HUD working.

Quite a productive day for me :D

Share this post


Link to post
Share on other sites
1 hour ago, lwbuk said:

Ok found a big issue.

If you change clothes your bank balance is deleted.

If you relog it comes back.. HOWEVER

If you change clothes, then add to your bank, it wipes the orginal amount and sets it to whatever you put in after clothes change.

ASLO

If you die, your bank balance is wiped.

 

Im guessing its something to do with player_switchmodel not having the coin/money variables in it? Mine doesnt anyhow.mmaybe other files that come into play when creating a new character?

*edit* I appear to have fixed it with a new player_switchmodel file with the money and bank variables..

Also got the HUD working.

Quite a productive day for me :D

could you maybe post the fix?

Share this post


Link to post
Share on other sites

@lwbuk Dont use the  player_switchmodel.sqf  it is redundant. Use the player_humanityMorph.sqf, there is already a player getVariable [Z_moneyVariable,0] Switch your "cashMoney" to Z_moneyVariable to keep it integrativly. Add in the player_humanityMorph.sqf in if (Z_SingleCurrency) then { your special money like that:

At the beginning:

if (Z_SingleCurrency) then {
	_coins = player getVariable [Z_moneyVariable,0];
	_bankMoney = player getVariable["MoneySpecial",0];
};

At the end

if (Z_SingleCurrency) then {
	player setVariable [Z_moneyVariable,_coins,true];
	player setVariable ["MoneySpecial",_bankMoney,true];
};

If you have wiped your coins, make sure that you call the right player_humanityMorph.sqf in your compiles. Bank coins getting wiped because there is not defines for bank money in the player_humanityMorph.sqf but for the normal player coins.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Similar Content

    • By EditedSnowHD
      Hallo all,
      First I want to say i'm not the owner of this server. I just really like the server! Why?
      Well it reminds me of the good old days, and it has an 'OG Epoch feeling'. This is because the map isn't edited and the loot is really balanced. 
      You can't just join, get 25000 coins and start shooting with a tank. It's not like those servers. Ow and another thing, if you open up a map, you won't see like 300 activities all going on at once, not turbid at all. 
      The server also uses the original silver/gold system and everything you find/build/shoot feels really rewarding. 
      The addons added to the server really add something special to the experience on the server, and not distract you from the original feeling.
      I have just played for a few days on the server, and there a few standard players (and the owner is really kind!). But we're still looking to share this amazing experience with other people who might be searching for the 'OG Epoch feeling'.
      Already sold? Here is the Server IP: 78.143.13.42 port: 2302 , Server name: [EU][PvP] GGWEZ DayZ Epoch Chernarus - FreshDB | HC | Gemcrafting
      Link to loading screen and rules: https://imgur.com/a/kIsfXaX

      Features:
      Deploy Bike (old bike).
      Gem Crafting (static Weapons, decorations and more).
      AI Base.
      Custom Vehicles.
      Missions.
      Indestructible bases.
      Take Clothes.
      Spawn Selection.
      Custom Economy and Loot (Really well balanced IMO).
      Lift object with heli.
      Custom Trader City (Really cozy).
      Refuel at gasstation.
      Dogs.
      Street, -Buildinglights (for at night).
      and much more!
      Mods:
      @Epoch
      There also is a Discord channel where you can meet up and share info (like about the AI base or player builds).
      Discord: discord.gg/M6w2fun
      Staff: Drashyy & Mfkrp9 & EditedSnow
      If you have any more questions, feel free to contact me! Hope to see you in Chernarus.
      Edit 10-05-2020: I'm now part of the staff! Im a moderator on their discord.

       
       
    • By THAC0_Gewch
      https://github.com/OlofTheBald/DayZ-Humanity-Loadout-Granter/tree/Epoch_1.0.5.1
       
      Updated for 1.0.6.x
    • By MysteryGamersElite
      [EU/UK] SDF Epoch|Wiped April 1st|FPS++|WAI & DZMS|SSD|Coins|Hourly Paycheck|Custom Loot| AND MORE....
      BRAND NEW DATABASE + SERVER 1st APRIL 2020!
      Server IP: 164.132.67.27:2302
      Discord: https://discord.gg/BWJCjTe
      We offer 24 hour support via discord for any questions or issues with your game!
      Top Server Feature List:
      - Modded DZMS and WAI Mission System
      - Custom High Loot Tables and Improved Dynamic Vehicle Spawns
      - Paycheck Every Hour
      - Coin Based Currency with Storage Banking only
      - Deploy Bike & Mozzie
      - Locate Vehicle
      - Snap Build Pro
      - Group Management
      - Repair, Refuel and Rearm at Service Stations
      - Vehicle Key Changer
      - infiSTAR AntiHack
      - Virtual Garage
      - Change View Distance with Binoculars
      - 3 Hour Restarts starting from Midnight GMT
      - Garage Door Opener
      - Take Clothes
      - Indestructible Bases except doors
    • By Vitor99
      Hi everyone, i would like to know if there is any torrent links for Epoch and Overpoch, if you know some send me the link here
    • By Reaper5150
      Simple but fun little script I put together awhile ago.
      What it does? It is bound to a object in this case "ItemObsidian" as a right click, but can be changed to whatever you want. It then will sends out a message to the players on the server and marks the player with red smoke and a marker on the map.
      The player will then get 2 mins of god mod acting like the amour. Once the amour takes damage (All it is is a countdown timer really) The god mode is then disabled so they can be killed.
      I'm still working on this and will update it when it is done. If any of you better scriptwriters then myself ( I'm still a noob lol) have any ideas on how to improve this? contact me so I can give you credit in the update :)
      Known bugs:
      marker sometimes stays on map Credits to : @Schalldampfer  For helping me understand map markers
      Install: Place this in your scripts folder name it something like Jugg.sqf
      //========================================================
      //========= Juggernaut script-Written by Reaper5150 ===========
      //=======================================================
      sleep 2;
      [nil,nil,rTitleText,"THERE IS A JUGGERNAUT,FIND HIM AND KILL HIM IF YOU CAN!!!","PLAIN",3] call RE;
      sleep 1;
      [nil, player, rSAY, "YOURSOUND.OGG", 100] call RE; //Add your custom sound here when Juggernaut spawns 
      [] spawn {
      player removeMagazine 'ItemObsidian';//Add whatever object you want and bound to your right click function
      sleep 5;
      [nil,nil,rTitleText,"THE JUGGERNAUT HAS BODY ARMOR,WE CAN'T KILL HIM...HELP!!!","PLAIN",3] call RE;
      ////////Set marker/////////////////////////////////////////////////////////////////////
      [] execVM "scripts\marker.sqf";
      //Start Smoke Marker//////////////////////////////////////////////////////////////////////////
      sleep 5;
      PJ_grenade = "SmokeShellRed" createVehicle position player;
      PJ_grenade attachto [vehicle player,[0.1,0,0]];
      sleep 2;
      [nil,nil,rTitleText,"THE JUGGERNAUT (PLAYER) HAS BEEN MARKED WITH SMOKE AND ON THE MAP!!!","PLAIN",3] call RE;
       
      //Temp Godmode for 2 mins////////////////////////////////////////////////////
      (vehicle player) removeAllEventHandlers "handleDamage";
      (vehicle player) addEventHandler ["handleDamage", { false }];    
      (vehicle player) allowDamage false;
       
      //Acts like a countdown timer//////////////////////////////////////////////////////////////////
      sleep 90;
      [nil,nil,rTitleText,"THE JUGGERNAUTS ARMOR HAS TAKEN 30% DAMAGE","PLAIN",3] call RE;
      sleep 100;
      [nil,nil,rTitleText,"THE JUGGERNAUTS ARMOR HAS TAKEN 50% DAMAGE","PLAIN",3] call RE;
      sleep 110;
      [nil,nil,rTitleText,"THE JUGGERNAUTS ARMOR HAS TAKEN 90% DAMAGE","PLAIN",3] call RE;
      uiSleep 120;
      [nil,nil,rTitleText,"THE JUGGERNAUTS ARMOR IS WEAK...TAKE HIM OUT NOW!!!","PLAIN",3] call RE;
      sleep 2;
       
      //Start ending Juggernaut///////////////////////////////////
      (vehicle player) addEventHandler ["handleDamage", { true }];    
      (vehicle player) removeAllEventHandlers "handleDamage";
      (vehicle player) allowDamage true;
      uiSleep 240;
      deleteVehicle PJ_grenade;
      END;
      Call it from your right click
      ["ItemObsidian","JUGGERNAUT","execVM 'scripts\Jugg.sqf';","true"], 
      marker.sqf:
      _unit = player;
      _nameP = name _unit;
      _markerobjp = createMarker [_namep,[0,0]];
      _markerobjp setMarkerShape "ICON";
      _markerobjp setMarkerType "mil_dot";
      _markerobjp setMarkerColor "ColorRed";
      _markerobjp setMarkerText _nameP;
      _markerobjp setMarkerSize [1,1];

      while {alive _unit} do {
      _markerobjp setmarkerdir (getdir _unit);
      _markerobjp setMarkerPos (getPos _unit);
      _markerobjp setMarkerText _nameP;
      sleep 5;
      };
      ////////////////////////////////////////////
      uiSleep 240;
      deleteMarker _markerobjp;
       
  • Advertisement
  • Supporters
  • Discord

×
×
  • Create New...