Jump to content

[Outdated] ZSC for Epoch 1.0.6.2 (And OverWatch 0.25)


Recommended Posts

Hi all, I am just wondering if anyone has run into this with their single currency setup. I can loot coins from an AI, but then when I try to loot coins off other AI it keeps coming up with whatever the name of the first ai was has no coins, and keeps on saying that for a while, but after a while you can loot coins off one more, then it gets stuck in that loop again it seems.

I am not getting any errors in my server rpt other than hundreds of missing config classes because I am running Sauerland :P 

Link to comment
Share on other sites

Hi all i have this all setup however the NPC bankers have no scroll option and the Bank icon under the coin shows 0 even though in my Safe Bank i have 2.5mil and 1.5mil in one of my SUV's

 

This is really bugging me coz I've gone over the install and I've not missed anything as far as i can see

 

Many Thanks in advance

 

Raiden

Link to comment
Share on other sites

  On 5/1/2017 at 1:15 PM, Voltan said:

Hi all, I am just wondering if anyone has run into this with their single currency setup. I can loot coins from an AI, but then when I try to loot coins off other AI it keeps coming up with whatever the name of the first ai was has no coins, and keeps on saying that for a while, but after a while you can loot coins off one more, then it gets stuck in that loop again it seems.

I am not getting any errors in my server rpt other than hundreds of missing config classes because I am running Sauerland :P 

Expand  

What AI missions are you using? For each AI system you have to edit custom files.
I do not have this issue but I suggest you should also check your client rpt. That sounds like your selfaction isn't resetting.

Link to comment
Share on other sites

  On 5/1/2017 at 1:49 PM, R4idmeister said:

Hi all i have this all setup however the NPC bankers have no scroll option and the Bank icon under the coin shows 0 even though in my Safe Bank i have 2.5mil and 1.5mil in one of my SUV's

 

This is really bugging me coz I've gone over the install and I've not missed anything as far as i can see

 

Many Thanks in advance

 

Raiden

Expand  

If you don't get a scroll option on NPCs, that's related to your fn_selfActions.sqf. There is a special file for that in the download. Did you replace your fn_selfActions.sqf with the provided one? It's located in "downloads\ZSC\global_banking\dayz_code\compile\".
Or do you have any rpt errors?

Link to comment
Share on other sites

  On 5/1/2017 at 1:56 PM, R4idmeister said:

No errors and i didn't replace the fn_selfactions from global banking i edit the one from normal zsc

 

I'll look into this now

Expand  

This part is important and the corresponding reset actions:
 

  Reveal hidden contents

 

Link to comment
Share on other sites

  On 5/1/2017 at 1:58 PM, DAmNRelentless said:

This part is important and the corresponding reset actions:
 

  Reveal hidden contents

 

Expand  

what line do i paste this on?

as i've made changes to the fn_selfactions already

Link to comment
Share on other sites

  On 5/1/2017 at 11:19 PM, Voltan said:

Did you see an issue with the .rpt?

My post gone? Sorry, will try the spoiler thing next time

 

Expand  

I removed the post, there was nothing in there relevant, if anything your server rpt is what you should have posted since dzms/Wai is server side.

All check wallet does is check the body for a variable, if it finds coins it sets that variable to true so fn_selfActions won't let you check the body again. If you can check the same body over and over again then there is another issue.

If the bodies don't have coins on them then there's an issue with your ai mods

Upload your server rpt to Dropbox or pastebin and drop the link in here.

Link to comment
Share on other sites

  On 5/1/2017 at 1:15 PM, Voltan said:

Hi all, I am just wondering if anyone has run into this with their single currency setup. I can loot coins from an AI, but then when I try to loot coins off other AI it keeps coming up with whatever the name of the first ai was has no coins, and keeps on saying that for a while, but after a while you can loot coins off one more, then it gets stuck in that loop again it seems.

I am not getting any errors in my server rpt other than hundreds of missing config classes because I am running Sauerland :P 

Expand  

 

  On 5/1/2017 at 11:33 PM, salival said:

I removed the post, there was nothing in there relevant, if anything your server rpt is what you should have posted since dzms/Wai is server side.

All check wallet does is check the body for a variable, if it finds coins it sets that variable to true so fn_selfActions won't let you check the body again. If you can check the same body over and over again then there is another issue.

If the bodies don't have coins on them then there's an issue with your ai mods

Upload your server rpt to Dropbox or pastebin and drop the link in here.

Expand  

I don't think this is an issue with the AI, I have had it happen when quickly looting. Could be an issue with the fn_selfActions, but I know when you quickly go from body to body, if you don't look up and refresh the scroll menu, this can happen.

Link to comment
Share on other sites

  On 5/1/2017 at 11:33 PM, salival said:

I removed the post, there was nothing in there relevant, if anything your server rpt is what you should have posted since dzms/Wai is server side.

All check wallet does is check the body for a variable, if it finds coins it sets that variable to true so fn_selfActions won't let you check the body again. If you can check the same body over and over again then there is another issue.

If the bodies don't have coins on them then there's an issue with your ai mods

Upload your server rpt to Dropbox or pastebin and drop the link in here.

Expand  

I believe the bodies do have coins on them, but it seems like the interface is getting stuck in a loop or something when it gets coins off one ai, and it seems to take a while to fix itself.

I will have a quick look through my fn_selfactions

Here is my server RPT for last night, fair warning, its not small. 

https://www.dropbox.com/s/gjujz2nowizegot/arma2oaserver.RPT?dl=0

Link to comment
Share on other sites

  On 5/2/2017 at 12:02 AM, salival said:

Arma is pretty slack on when it decides to refresh the cursorTarget. I think this is not a bug as much as it is a problem.

The only real way to fix it is to run. Away from the body then run back and try it, the cursorTarget will refresh (hopefully) then.

Expand  

I was looking through the zsc files, and I am a noob with coding, but see the below script from checkwallet.sqf, but would this script using the coin variable name Z_MoneyVariable have issues if I am assigning my DZAI, WAI and DZMS AI the "CashMoney" variable?

I am still having alot of issues with players getting coins off their own dead bodies, with it mostly telling them as per below code "Unknown has no coins". Walking away for a minute doesnt seem to help.

 

  Reveal hidden contents

 

Link to comment
Share on other sites

  On 5/4/2017 at 3:29 AM, Voltan said:

I was looking through the zsc files, and I am a noob with coding, but see the below script from checkwallet.sqf, but would this script using the coin variable name Z_MoneyVariable have issues if I am assigning my DZAI, WAI and DZMS AI the "CashMoney" variable?

I am still having alot of issues with players getting coins off their own dead bodies, with it mostly telling them as per below code "Unknown has no coins". Walking away for a minute doesnt seem to help.

 

  Reveal hidden contents

 

Expand  

Z_moneyVariable is just a pointer to cash money. We use it for consitancy so that shouldn't matter.

 https://github.com/EpochModTeam/DayZ-Epoch/blob/master/SQF/dayz_code/configVariables.sqf#L71

There should be no way the player can take coins off their body after taking them off unless something else is going wrong since I'm setting the body's coins to 0 after looting them in the first place if they have coins.

If the body doesn't have coins or the coins are invalid the player will not get coins since the script is exited when they receive the "unknown has no coins" message. No money will change hands.

https://github.com/oiad/ZSC/blob/master/scripts/zsc/checkWallet.sqf#L17

I will pm you with my email address and you can send your dayz_server and mission folder to me.

Link to comment
Share on other sites

EDIT: Do not used code from this post, it's outdated. See dedicated thread with updates.

===

Hello guys,
first: @salival I'm regular visitor of this forum for almost a year and this is my very first post. I'd like to say... it's incredible how well you're doing with community support. Hat off!
second: ...the same is valid of course for @juandayz, @theduke and many other awesome guys!

Now, I'm studying new changes to epoch 1.0.6.1 and preparing some addon for fun. That's why i reworked a little bit former @zupas dev functions and want to share it here. Maybe it will be usefull for someone. It's tested and working but I have to admit - I haven't time to test it well! If there will be problem, I will adjust code or... someone will come with better version.
All credits goes to @zupa and @salival.

1. Check the code bellow: it's just one file. You can use it for adding/removing players coins to/from wallet/bank account.

2. How to use it:

  •    in your custom compiles folder create file named 'fnc_SC_uniCoins.sqf';
  •    in your custom compiles file add following line: 'fnc_SC_uniCoins = compile preprocessFileLineNumbers "path\to\custom\compiles\fnc_SC_uniCoins.sqf"';
  •    in your code use: [_player,_amount,_action,_target] call fnc_SC_uniCoins;
  •    parameters are described in code bellow
  •    you can copy code or download from gist: here is the link

3. How to test it:

  •    if you're working on some addon, you don't need my advice :)
  •    if you don't know how to test it, you can use my example created just for you:
    • Example scenario is just for test (but...)
    •  Scenario: Player is awarded for killing local zombies by coins (random amount from 0 to 250 Coins)
    •  Modelling:
      •  (1) Add money to wallet for kill
      •  (2) Remove money from wallet for kill
      •  (3) Add money to bank account for kill
      •  (4) Remove money from bank account for kill
    •  - for test we're using file from Epoch 'dayz_code\compiles' named 'local_eventKill.sqf'
    •  + original src: here is the link
    •  - repeate common workflow (custom compiles, variables...) + Read comments in code header!
    •  - again, you can copy code or download from gist: here is the link

Again, thank you guys for your awesome work!!!
cy, @iben

PS: well, inserting snippets seems to be harder that I thought :) Sorry for merging two spoilers into one layer!

  Reveal hidden contents
Edited by iben
Dedicated thread created
Link to comment
Share on other sites

@iben i dont know why, but i feel you gonna made awesome mods for all of us in a short time. and with the respect in which you talk with others....

you  gonna be a great member here. hat off! for you mate.

and are you sure youre not zupa with another nikname? :laugh:

Link to comment
Share on other sites

  On 5/15/2017 at 2:55 AM, juandayz said:

@iben i dont know why, but i feel you gonna made awesome mods for all of us in a short time. and with the respect in which you talk with others....

you  gonna be a great member here. hat off! for you mate.

and are you sure youre not zupa with another nikname? :laugh:

Expand  

Oh mate, you are so kind to me... :) But there are two basic facts: 1) I wish I were, but I'm not zupa :)) 2) There are so many great and skilled guys like for example You, that brings us these great addons for long time! I'm thinking right now which way I could contribute to community right now... :) 

Link to comment
Share on other sites

@iben This is exactly what I've been looking for!

 

I've been trying to integrate giving coins into an admin menu, could never get adding or removing from banks to work correctly. 

And this is so more elegant a solution to how I was doing it. 

Thanks :D

 

And also you are completely right about all the great guys and girls on here who are always willing to help others. Its a real shame some people don't appreciate all the hard work they do, (especially putting up with the silly questions I usually ask :D) 

Link to comment
Share on other sites

  On 5/16/2017 at 11:23 PM, kheldar125 said:

 

@iben This is exactly what I've been looking for!

 

Expand  

Hi @kheldar125 :))

Oh man, this is the right place to ask silly question if any question is silly :))) Thx mate

And BTW, if it was what you needed, try checkout this post about kill coins rewards and specific part where is guide how to use these functions in real example...

cheers

Link to comment
Share on other sites

  • 3 weeks later...
  Quote

Yes there is in hiveext.log never thought to look there still im still a noob.

here is the error

2017-03-08 03:19:00 HiveExt: [Information] SQF Failed to pass both player coins and player bank values skipping update

Expand  

 

  Quote

Well, I can't explain that. As I said it has to be something specific to your server, i.e a database issue or an install problem.

Expand  

@salival i was be able to reproduce the  @Hooty issue from above. its shows in the hive when player_humanityMorph is called.

Its not a ZSC error.

Show you how i reproduce it.

i create a small script to test it. using your default coins and the iben function.

testcoins.sqf (call it with keyboard, fn_selfactions.. you know..)

  Reveal hidden contents

at bottom of my init i change the skins of players everytime they loging in.

bottom init.sqf

call compile preprocessFileLineNumbers "changeSkins_init.sqf";

changeSkins_init.sqf

  Reveal hidden contents

pic

  Reveal hidden contents

error:

2017-06-06 13:53:26 HiveExt: [Information] Method: 205 Params: 76561198257572970:2:-1:-1:
2017-06-06 13:53:26 HiveExt: [Information] SQF Failed to pass both player coins and player bank values skipping update
2017-06-06 13:53:26 HiveExt: [Information] Result: ["PASS"]

my custom variables.sqf

  Reveal hidden contents

my custom configvariables.sqf

  Reveal hidden contents

The coins is added well.. and saved fine.

..Blablabla:

  Reveal hidden contents

 

Link to comment
Share on other sites

  On 6/7/2017 at 6:19 PM, juandayz said:

 

@salival i was be able to reproduce the  @Hooty issue from above. its shows in the hive when player_humanityMorph is called.

Its not a ZSC error.

Show you how i reproduce it.

i create a small script to test it. using your default coins and the iben function.

testcoins.sqf (call it with keyboard, fn_selfactions.. you know..)

  Reveal hidden contents

at bottom of my init i change the skins of players everytime they loging in.

bottom init.sqf

call compile preprocessFileLineNumbers "changeSkins_init.sqf";

changeSkins_init.sqf

  Reveal hidden contents

pic

  Reveal hidden contents

error:

2017-06-06 13:53:26 HiveExt: [Information] Method: 205 Params: 76561198257572970:2:-1:-1:
2017-06-06 13:53:26 HiveExt: [Information] SQF Failed to pass both player coins and player bank values skipping update
2017-06-06 13:53:26 HiveExt: [Information] Result: ["PASS"]

my custom variables.sqf

  Reveal hidden contents

my custom configvariables.sqf

  Reveal hidden contents

The coins is added well.. and saved fine.

..Blablabla:

  Reveal hidden contents

 

Expand  

@juandayz   Check your progress monitor. That is what mine was from the hotfix. Figured it out when the last time I installed hotfix, after coins were fully working for me. When I installed the hotfix, it started resetting coins again.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...