Jump to content

[Alpha Release] Single Currency 3.0 & Storage DEFAULT HIVE ( No global banking).


Recommended Posts

hi all.

 

My Problem: Single Currency is working fine. ONLY thing is that the money in storages like safes, cars etc.. wont save after restart. I saw some fixes here, but they really dindt helped. Also got a question when I have to replace the _intentory to _inventory in my  server_monitor.sq. Do I have to replace all _intentory to _inventory or only the part where the ZSC needs it!?!?

If anybody could help me out or mention all fixes for this again, I would be very thankfull :)

EDIT:

Found that stupid mistake in the server_monitor.sqf  NO need for help

sincerely 

DrInca

Link to comment
Share on other sites

  On 2/15/2016 at 5:27 AM, Grumplestache said:

This seems to help with the proximity of players around the safe. But it doesnt stop it all together. Is the best fix just to watch players and ban when people are caught duping? Also where can I monitor the single currency transactions. Is there anyway to monitor players current cash levels?

Expand  

Hey mate. The 5m check you added should have sorted that I would have thought..

How about changing fn_SelfActions code to catch it earlier, and not even give people the option if there's someone else using it:

if(_typeOfCursorTarget in ZSC_MoneyStorage && (player distance _cursorTarget < 3) && !DZE_ActionInProgress) then {
        if (s_bank_dialog < 0) then {
                s_bank_dialog = player addAction ["Money Storage", "custom\actions\bank_dialog.sqf",_cursorTarget, 3, true, true, "", ""];    
        };

to this, like you did it in the Bank_Dialogue, and while we're at it, let's try replacing the scroll option with an explanation so people don't say "I get no prompt for moneys, its bugged":

if(_typeOfCursorTarget in ZSC_MoneyStorage && (player distance _cursorTarget < 3) && !DZE_ActionInProgress) then {
	if (s_bank_dialog < 0) then {
		_nearPlayers = cursorTarget nearEntities ["CAManBase", 5];
		_playerNear = ({isPlayer _x} count _nearPlayers) > 1;
		if(_playerNear) then
			s_bank_dialog = player addAction ["Money Storage Access Disabled (Friendly Nearby)", "",_cursorTarget, 3, true, true, "", ""];
		else
			s_bank_dialog = player addAction ["Money Storage", "custom\actions\bank_dialog.sqf",_cursorTarget, 3, true, true, "", ""];
		};
	};
} else {
	player removeAction s_bank_dialog;
	s_bank_dialog = -1;
}; 

This way we only give them the option to access money if there is nobody else within 5m, else we remove the scroll option and replace it with a prompt. We call the prompt the same thing as the bank menu option, so it will be removed or changed out for the normal bank option when the lack of players nearby requirement is satisfied.

Instead of "(Friendly Nearby)", you could print the actual player count minus one and say "x Players are too close to your stash!" or something similar if you like a more informative message or want to imply that paranoia is the reason they can't use it hehe. Also I haven't coded anything ARMA in a long time, so please verify my syntax and such before using this. The only reason I didn't print the player count etc. in the scroll option is because I can't remember how without referring to a working example XD

*edit* Just thought I might mention as well, if you implement my suggestion, you might want to monitor server performance closely and see if it's very detrimental to performance. What I am asking it to do will result in lots of calls when people are looking at a money storage device, counting nearby players. Potentially a full server of people looking at money storage devices could produce lag; we can reduce the radius a touch if that's the case which should help a bit. The 5m check could be reduced to 3m, to match the radius used in fn_SelfActions to determine if the player is within range of the storage device in the first place. Good luck! :)

Link to comment
Share on other sites

  On 2/21/2016 at 11:37 PM, outseeker said:

Hey mate. The 5m check you added should have sorted that I would have thought..

How about changing fn_SelfActions code to catch it earlier, and not even give people the option if there's someone else using it:

if(_typeOfCursorTarget in ZSC_MoneyStorage && (player distance _cursorTarget < 3) && !DZE_ActionInProgress) then {
        if (s_bank_dialog < 0) then {
                s_bank_dialog = player addAction ["Money Storage", "custom\actions\bank_dialog.sqf",_cursorTarget, 3, true, true, "", ""];    
        };

to this, like you did it in the Bank_Dialogue, and while we're at it, let's try replacing the scroll option with an explanation so people don't say "I get no prompt for moneys, its bugged":

if(_typeOfCursorTarget in ZSC_MoneyStorage && (player distance _cursorTarget < 3) && !DZE_ActionInProgress) then {
	if (s_bank_dialog < 0) then {
		_nearPlayers = cursorTarget nearEntities ["CAManBase", 5];
		_playerNear = ({isPlayer _x} count _nearPlayers) > 1;
		if(_playerNear) then
			s_bank_dialog = player addAction ["Money Storage Access Disabled (Friendly Nearby)", "",_cursorTarget, 3, true, true, "", ""];
		else
			s_bank_dialog = player addAction ["Money Storage", "custom\actions\bank_dialog.sqf",_cursorTarget, 3, true, true, "", ""];
		};
	};
} else {
	player removeAction s_bank_dialog;
	s_bank_dialog = -1;
}; 

This way we only give them the option to access money if there is nobody else within 5m, else we remove the scroll option and replace it with a prompt. We call the prompt the same thing as the bank menu option, so it will be removed or changed out for the normal bank option when the lack of players nearby requirement is satisfied.

Instead of "(Friendly Nearby)", you could print the actual player count minus one and say "x Players are too close to your stash!" or something similar if you like a more informative message or want to imply that paranoia is the reason they can't use it hehe. Also I haven't coded anything ARMA in a long time, so please verify my syntax and such before using this. The only reason I didn't print the player count etc. in the scroll option is because I can't remember how without referring to a working example XD

*edit* Just thought I might mention as well, if you implement my suggestion, you might want to monitor server performance closely and see if it's very detrimental to performance. What I am asking it to do will result in lots of calls when people are looking at a money storage device, counting nearby players. Potentially a full server of people looking at money storage devices could produce lag; we can reduce the radius a touch if that's the case which should help a bit. The 5m check could be reduced to 3m, to match the radius used in fn_SelfActions to determine if the player is within range of the storage device in the first place. Good luck! :)

Expand  

Thanks so much for the helpful information! I will test this and see what issues it corrects for me. What I would really like to do is just disable the Banking GUI when a player moves. Currently its the idea that a few players can move away from the safe with the menu open. I dont want to elaborate but thank you so much for the help with this!

Link to comment
Share on other sites

  • 1 month later...
  • 1 month later...
  On 5/22/2016 at 6:07 AM, J.Dominic said:

Sorry Zupa. I try to install to my server everythings work but vehicles, lockbox, safe can't keep my money. Everytime i restart my server all player money will reset to 0. Please help me :'(

Expand  

 

Zupa is no longer around.

 

Try checking your server_updateobject.sqf file

 

If your going to post files here please use spoilers or post them at pastebin.com

Link to comment
Share on other sites

  On 5/22/2016 at 6:10 PM, Pro_Speedy said:

 

Zupa is no longer around.

 

Try checking your server_updateobject.sqf file

 

If your going to post files here please use spoilers or post them at pastebin.com

Expand  
  Reveal hidden contents

 

Link to comment
Share on other sites

  On 5/23/2016 at 10:40 AM, J.Dominic said:
  Reveal hidden contents

 

Expand  

 

That seems fine,  does it save if you deposit money and look into the storage again?

 

and post your server_monitor aswell please

Link to comment
Share on other sites

  On 5/23/2016 at 11:48 AM, Pro_Speedy said:

 

That seems fine,  does it save if you deposit money and look into the storage again?

 

and post your server_monitor aswell please

Expand  

i already try deposit and rejoin for check storage. Doesn't work. I don't know why.

This my server_monitor

  Reveal hidden contents

 

Link to comment
Share on other sites

  On 5/23/2016 at 12:04 PM, J.Dominic said:

i already try deposit and rejoin for check storage. Doesn't work. I don't know why.

This my server_monitor

  Reveal hidden contents
Expand  

 

That seems fine also.

 

Try finding out what stores money and what doesn't and see if it stores money without restarting.

 

Then go through all the steps again.

 

And check your RPT files

Link to comment
Share on other sites

  On 5/22/2016 at 6:07 AM, J.Dominic said:

Sorry Zupa. I try to install to my server everythings work but vehicles, lockbox, safe can't keep my money. Everytime i restart my server all player money will reset to 0. Please help me :'(

Expand  

I have ran into this 3 different times and every time it was in the  server_updateobject.sqf, not saying its what is wrong. That is what I ran into.

Is it on a fresh install and what map?

Link to comment
Share on other sites

How many fn_selfActions.sqf do you have? Is there one in the P4L?  the one in ZUPA\compiles, did you set it to false or true in ZSC\gold\ZSCconfig.sqf?

it would look like this.

// if TRUE: Overwrites yours fn_selfactions.sqf with default 1 + edits. | IF False: Change content yourself @ step D
ZSC_Overwrite_SelfActions = true;

Link to comment
Share on other sites

  On 5/23/2016 at 7:31 PM, Thug said:

How many fn_selfActions.sqf do you have? Is there one in the P4L?  the one in ZUPA\compiles, did you set it to false or true in ZSC\gold\ZSCconfig.sqf?

it would look like this.

// if TRUE: Overwrites yours fn_selfactions.sqf with default 1 + edits. | IF False: Change content yourself @ step D
ZSC_Overwrite_SelfActions = true;

Expand  

 

I don't see why that would effect his problem, he said it all works but the money isn't stored after restart so it must be server_monitor or server_updateobject but they both look fine

Link to comment
Share on other sites

  On 5/23/2016 at 7:31 PM, Thug said:

How many fn_selfActions.sqf do you have? Is there one in the P4L?  the one in ZUPA\compiles, did you set it to false or true in ZSC\gold\ZSCconfig.sqf?

it would look like this.

// if TRUE: Overwrites yours fn_selfactions.sqf with default 1 + edits. | IF False: Change content yourself @ step D
ZSC_Overwrite_SelfActions = true;

Expand  

Yes. I have 2  fn_selfActions .sqf in P4L and \ZSC\compiles but i already set  ZSC_Overwrite_SelfActions = true;  in gole\ZSCConfig.

Link to comment
Share on other sites

  On 5/24/2016 at 12:19 AM, Pro_Speedy said:

 

I don't see why that would effect his problem, he said it all works but the money isn't stored after restart so it must be server_monitor or server_updateobject but they both look fine

Expand  

Yes most of the time  server_monitor or server_updateobject is the problem. One time I had the same problem and when I combined the two fn_selfActions it worked fine.

So I have this thing if broke step back and go through from the beginning. Witch I have done 3 or more times when it would not work for me.

 

Link to comment
Share on other sites

  On 5/24/2016 at 5:10 PM, Thug said:

Yes most of the time  server_monitor or server_updateobject is the problem. One time I had the same problem and when I combined the two fn_selfActions it worked fine.

So I have this thing if broke step back and go through from the beginning. Witch I have done 3 or more times when it would not work for me.

 

Expand  

Can you help me combine my fn_selfActions? 1 from ZSC\compiles and 1 from A_Plot_for_Life\Compile

1. ZSC

  Reveal hidden contents

2. A Plot for life

  Reveal hidden contents

 

  On 5/24/2016 at 5:17 PM, Thug said:

If you will go to Page 4 of this post you will see where I started posting about having problems. Just follow my post and you should find your answer.

Expand  

And i try to set same your Post in Page 4 doesn't work.

Link to comment
Share on other sites

  On 5/24/2016 at 7:54 PM, J.Dominic said:

Can you help me combine my fn_selfActions? 1 from ZSC\compiles and 1 from A_Plot_for_Life\Compile

1. ZSC

  Reveal hidden contents

2. A Plot for life

  Reveal hidden contents

 

And i try to set same your Post in Page 4 doesn't work.

Expand  

 

Try this there wasn't much diffrerence, use a program called diffmerge in the future

 

  Reveal hidden contents

 

Link to comment
Share on other sites

  On 5/24/2016 at 11:52 PM, Pro_Speedy said:

 

Try this there wasn't much diffrerence, use a program called diffmerge in the future

 

  Reveal hidden contents

 

Expand  

Thanks but still doesn't working. LOL what wrong with me?

Can you recommend other coin system post?

Thank you Pro_Speedy and Thug about 3 day you help me. :)

Link to comment
Share on other sites

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