-
Posts
337 -
Joined
-
Last visited
Content Type
Profiles
Forums
Articles
Posts posted by Rocu
-
-
Finally got back around to workin on this. Turned out the issue wasn't that I was missing classes, but that the classes from your transfer_dialog.hpp were looking for gui items that didnt exsist in my build of SC.
to fix just download the SC files from Zupa and copy the gui folder to your server root.
Thanks again mate!
Aah okay, good to know. Good thing you got it fixed.
-
my rpt logs dont say any errors it tells me that iv sold a weapon for say 1000 coins and so on i can buy and sell with out error and get the coins and bank them just when i die my bank gets set to 0 when i respawn
What about database? What happens there during all this?
Does the player's bankMoney and cashMoney update at all?
-
I want to ask a question
After Install Zupa Single Curency
To Update to Hive 2.0 Soul i only need to update the HiveExt.dll right ?
Or i need to update HiveExt.dll and 3 Folder Cfgtrader , file in the mission folder & in the dayz_server
You need to update all of the files & folders that are included in the 2.0 update. Not just the dll.
-
no file bankinit.sqf where can I get it?
Installation was not his
The fix was meant for Soul's version. You can find the file itself here: https://github.com/UK431-Soul/DayZ-Epoch_SCHiveExt/blob/master/dayz_server/bankzones/bankinit.sqf
-
Before we continue I'd like to point out that there isn't a 'fix' for this because it's not actually broken. Whatever is causing this is just something that you missed during installation.
Anyway...
What happens in the database during this? Does it save there at all?
What do RPT logs say?
-
This here is the file where you'll probably find the missing classes:
-
Hey man getting this error:
ErrorMessage: File mpmissions\DayZ_Epoch_16.Panthera2\gold\transfer\transfer_dialog.hpp, line 8: /BankTransferDialog/controlsBackground.BankTransferTitleBackground: Undefined base class 'Life_RscText'
Any ideas?
Thanks
I think you're missing some GUI classes. This script was made to work with Zupa's original GUI files, if you don't have those it won't work. But you can just copy the missing classes over if you want.
-
Epoch Admin Tools V1.9.1 Does it work?Does it work?
Yes, works fine. It would have to be a quite drastic update for it to not work since we're only using the navigation part from admin tools.
-
Hi I added this this morning and added the dev functions before the isdedi part in my compiles.sqf and i get the scroll option in-game at the fuel stations but it is not repairing/refueling/rearming anything, is there something I am missing?
Did you follow the original Service Point tutorial first? If not, do that first, THEN replace it with Zupa's files. Here's the original:
-
Banking_data not saving Can anyone tell me why
Banking_data not saving at all or just for first timers? For the first issue I recommend searching around the forums, there are many people who have had the same problem. It's not an issue with the release, just something that has been done wrong during installation. If you have the issue for first time login players then I'll ask if you have applied all the fixes I've posted on the first post? Also shouldn't your database tables names be all lowercase? I see you have a table named banking_data but also another table named Character_DATA.
-
but how do I remove the existing event? I do not see where I have an existing one
If you can't find the existing events with HeidiSQL then just insert this query:
SHOW EVENTS
And that should list all of the events you have. Look for the event name that you want deleted and then just insert this query:
DROP EVENT IF EXISTS yourEventName;
-
-
Not really a fix for the issue, but I don't see why do you need to set prices that high. Just remove the extra 0 at the end of every price and your problem is solved. I never sell anything for over 800k so I never get any issues with it. What are you selling that you possibly need to ask for over 1m coins? Apache choppers and tanks?
-
Once in a while? Perhaps the player IS in the debug area ie. when logging in, dying etc.
-
Hi Rocu, thanks for your response, please see my previous messages in this thread. I listed the error, I am not a sql guru annd could use some assistance in getting the command to run properly.
Ah yes sorry, my bad. In that case, do as suggested - remove the existing event first. As recommended previously, you should try and use HeidiSQL for that.
-
Hello, does anyone have any info on this? I am still having issues with banking data not saving for new players yet, I have patched with the info at the beginning of this thread and I can not run the sql command
Why can't you run the command? What error does it give you?
-
This topic here should help you out:
-
Ahh thanks for the explanation Rocu. Could that be why some scripts have the problem of not saving and resetting at restart/respawn? Hmm much to learn.
No problem and yeah. This is usually most noticeable in 'tag friend' scripts where if you tag someone you see them on your GPS, you see some indication above their head etc but it only lasts as long as they live. It'd need a whole new db table to indicate who's friends with who.
-
Ooh thanks for the awesome replies.
I'm not sure how hive calls work but the way I had the script in my head was to add scroll menu to item/npc that says upgrade bank and this initiates a script that would say something like if money given then MaxBankMoney = 1000000 and so on or something?
Yes you could do that, but that would only work as long as the player is online/alive. As soon as you reconnect you would be back at square one again. That's where the hive comes in. If you want this feature to be persistent you need to store the information somewhere.
-
You don't *need* to change the db structure necessarily. You could just manipulate with the fields you're given. Kind of like Plot 4 Life uses the worldspace column to store info about plot pole ownership. All you really need is to hide a single digit somewhere in the database that refers to your current state of "bank balance upgrades".
For example, you add a single digit in front of the bank money balance that refers to the upgrade. So if in database you see you have 34500 coins in your bank account. This would mean you actually have 4500 coins and the number 3 only refers to the upgrade you currently have. Note that this was just an example on the top of my head. This probably isn't the best way of handling this but it should give you the idea. Not to mention you would also have to change the way bankMoney is handled in character_sync etc.
-
For some reason none of fixes actually worked for me on dedi, but did work on local test machine by default. Weird..
Anyway, since I am not running as root, I changed definer. Also AFTER UPDATE ON didn't work, since fields are not updated, just created when a new player joins (right?)... it's a fresh server
However making a trigger for AFTER INSERT ON works.
CREATE DEFINER=`dayz`@`localhost` TRIGGER `banking` AFTER INSERT ON `player_data` FOR EACH ROW INSERT INTO banking_data ( PlayerUID, PlayerName, BankSaldo, LastUpdated) VALUES (NEW.PlayerUID, NEW.PlayerName, 0, NOW())
You have a point. The event should run with AFTER INSERT instead of UPDATE, indeed. I'll update the first post.
-
This is removing the current bank money from the bank account and replacing it with the amount tranfered
EX: I gave my 10k to my friend that had 20k, now he only has 10k
The script works fine. Has been on my public server for about 3 weeks now.
At first glance, the problem you described seems like it's trying to set money instead of add, am I right? The part of the code that transfers money looks like this:
_target setVariable["bankMoney",_targetBankBalance + _targetMoney, true];
As you can see there's not much that can go wrong here (bankmoney = bank balance + the amount). So the script is working fine, must be a problem @ your end.
My first thoughts are that it can't get the player's current bank balance so it's adding the amount to a number 0. That can be caused by several things:
- Are you sure your bank's variable name is "bankMoney"?
- Are you sure you have Soul's V1 HiveExt.dll + all the updated files he included?
- What happens in the database during all this?
Try this: check the player's bank balance in DB, then transfer the money, during the transfer check it again and a minute after the transfer check it again. See if the numbers add up.
-
404 on DL
Re-uploaded to GitHub. New link @ first post. Thanks for letting me know.
-
What exactly does this one do??
Well, in technical terms, it sets CharacterID to 0 (clears ownership / removes the need for a key) for any item, that has not been updated within 5 days. Exceptions include barrier, storage, shed, etc etc. The exception is necessary so that it doesn't reset things like safes, lockboxes, locked doors etc. So it applies only on vehicles.
[Release] Transfer Money from ATM
in Gold Coin based Single Currency & Banking System
Posted
If you're using Infistar AH I belive you have to add the dialog ID to the exceptions or something like that. Not sure but I believe it's something like that. I don't have Infistar's AH myself so I couldn't test it out.