Jump to content

Rocu

Member
  • Posts

    337
  • Joined

  • Last visited

Posts posted by Rocu

  1. 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.

  2. 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: 

  3.  

    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.

  4. 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.

  5. 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.

  6. 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.

  7.  

    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.

  8. 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.

  9. 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.

×
×
  • Create New...