Epoch 1.0.6 Changes #13

Open
wants to merge 12 commits into
from

Projects

None yet

1 participant

@icomrade

Changes so far include duplicate UID fix and INT64 for CharID I haven't notice issues so far with the changes.

icomrade added some commits May 16, 2016
@icomrade icomrade Use Int64 for CharacterID
Allows for longer CharacterID field in all tables that use CharacterID.
This change was requested in the following issue
EpochModTeam/DayZ-Epoch#1371
bd4c7fa
@icomrade icomrade Should fix duplicate ObjectUID
ObjectID is written to ObjectUID on DB startup to prevent duplicate UID
since the ObjectID field is autoincremented by the SQL server
abfe6c1
@icomrade icomrade Fix typo e8eee85
@icomrade icomrade Offset ObjectUID by 1
ObjectID of 1 is used by the game for some special objects
7a84058
@icomrade icomrade New column playerGroup in the player_data table
New Hive Child 204 for updating playerGroup column. Groups are returned
from the 101 Child on login.
ab6292e
@icomrade icomrade Add coins and small fixes
Improve group saving, add GetInt64 for the longer characterID fields.
Server owners may continue to use their coins in object inventory but
are encouraged to save new object coins to the new StorageCoins column

New call to update player permanent coins, Child:205
_key = format["CHILD:205:%1:%2:%3:%4:",(getPlayerUID
_character),dayZ_instance,_globalCoins,_bankCoins];

_bankcoins represents the old BankSaldo field, I don't know what it was
for but I didn't want to to remove it.

use existing calls 303/309 for saving object_data coins. use 201 for
character coins

SQL:

ALTER TABLE `player_data` ADD `PlayerCoins` bigint(20) NOT NULL DEFAULT
"0";
ALTER TABLE `player_data` ADD `BankCoins` bigint(20) NOT NULL DEFAULT
"0";
ALTER TABLE `object_data` ADD `StorageCoins` bigint(20) NOT NULL DEFAULT
"0";
ALTER TABLE `character_data` ALTER COLUMN `CashMoney` `Coins` bigint(20)
NOT NULL DEFAULT "0";
UPDATE player_data t1, banking_data t2
SET t1.`PlayerCoins` = t2.bankMoney,
t1.`BankCoins` = t2.BankSaldo
WHERE t1.PlayerUID = t2.PlayerUID
dd50629
@icomrade icomrade Fix Coins 33938bc
@icomrade icomrade Another coin fix 5e5e18e
@icomrade icomrade Don't select objects that are destroyed bb959ad
@icomrade icomrade Write objectData output to file
Write file in C++ instead of returning a single object with each
itteration of callExtension in a loop. Also retained ability to use the
loop behavior.
bc5d5c5
@icomrade icomrade Fix Child 309 error d2f17ef
@icomrade icomrade Add config variable MaintenanceObjects
Compensates for objects with data stored in the inventory field
bc67e02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment