DayZ
Universal Api
Showing 11-17 of 17 entries
< 1  >
Update: 23 Mar, 2021 @ 8:23am

WebService

Update endpoint now accepts "Operation" Endpoint allowing for advanced operations for array objects - Currently Supported set, push, pull, pullall, unset, mul, rename - https://docs.mongodb.com/manual/reference/operator/update-array/ Added Discord Bot Support allowing you to configure a discord bot Added Discord Connection URLs allowing (if set up) players to link their discord to their player object in the discord Added Discord/Get to get a discord user data for the specified user (note clients can only request there own) Added Discord/GetWithPlainId to get a discord user data for the specified user using the plain steam id (note clients can only request there own) Added Discord/AddRole allowing you to add roles to user Added Discord/RemoveRole allowing you to remove roles from a user Some minor code tweaking/improvements

Experimental Version of Mod
New Functions PlayerUpdateAdv, ObjectUpdateAdv, GlobalsUpdateAdv allows you to specify the update operation for arrays New Functions UApi().Discord().Link() | gets discord login link for a user (client side) New Functions UApi().Discord().GetUser(GUID, RestCallback) | return the UserObject for a discord user New Functions UApi().Discord().AddRole(GUID, RoleId) | Adds discord role to players discord New Functions UApi().Discord().RemoveRole(GUID, RoleId) | Removes discord role from players discord New Functions UApi().Discord().GetUserWithPlainId(plainId, RestCallback)| return the UserObject for a discord user new Settings "PromptDiscordOnConnect": 0 | 1 will enable and auto open the web browser to page to link their discord account to the database if the user hasn't already done so. (mainly meant for testing)

Update: 29 Jan, 2021 @ 10:27am

Change Log for Webservice and Mod
Webservice
Fixed typo in Endpoint URLs (kept the typo'd version for backwards compatibly but will eventually remove them)
Fixed AuthToken Generator so it doesn't generate using invalid characters
Fixed some error in async functions
Fixed Error with parser limits causing crashes
Added Logging Endpoint to be able to unify logging with in the database allowing for queueable logs
Added Ability to have the QnA Maker Chat Bot respond via notifications instead of chat messages

Mod
Moved Defines to its own PBO for better cross mod compatibility
Fixed Typos in coding that prevent some functions from working
Fixed Some Missing semi collons
Fixed Mod Config Folder not creating on mod install
Added some helper functions for Incrementation
Added Logging function UApi().Rest().Log(string JsonString); which will store the data into the database
Added New Settings "EnableDefaultLogs" when enabled and the settings are enabled in the server config it will log player position every 5 minutes and when ever a player dies

Update: 8 Oct, 2020 @ 11:09am

Webservice

Removed the console log when the status check is called if running behind a load balancer that does status checks it can become overwhelming Added a Transaction Endpoint too allow you to run increments of number data(float/int) allowing multiple servers to increment the same values in near Realtime without overriding each other) Added a Update Endpoint allowing you to update single elements in your data again to be able to lower the possibility of multiple servers overriding the same data :)

Mod
Added the following functions to "UApi().Rest()"
/* Where Value is the amount to incement by and element is the varlible name Element of the array extra, since its running from mongo db you can increment sub objects or even array values(if you know the index) with '.' inbetween example Stats.0.Count would incerment the varible Count in the first element in an object array called Stats */ void PlayerTransaction(string mod, string guid, string element, float value = 1, ref RestCallback UCBX = NULL) void GlobalsTransaction(string mod, string element, float value = 1, ref RestCallback UCBX = NULL) void ObjectTransaction(string mod, string objectId, string element, float value = 1, ref RestCallback UCBX = NULL) /* String Values must be wrapped with Quotes example string newValue = "\"NewValue\"" You can do the same for elements as above for Transactions */ void PlayerUpdate(string mod, string guid, string element, string value, ref RestCallback UCBX = NULL) void ObjectUpdate(string mod, string guid, string element, string value, ref RestCallback UCBX = NULL) void GlobalsUpdate(string mod, string element, string value, ref RestCallback UCBX = NULL) /* A simple to use Get was added as well */ void UApi().Rest().Get(string url, ref RestCallback UCBX = NULL )

Update: 28 Sep, 2020 @ 12:57pm

Universal API (Web Service)

Added error logging to file Fixed error called when status check is called through non post event

Universal API Mod
Added QnA maker config file to allow unique response per server (aka which server is this could respond with the unique server name using

Overall
Changed items endpoint to object Added query function Added forwarder function Changed Token Expiry Time to 45 Minutes from 1hr and renew time to 20-22 minutes prevent all the clients renewing at the same time after server restarts

Update: 25 Sep, 2020 @ 9:23am

Fixing crashing on disconnect

Update: 24 Sep, 2020 @ 2:01pm

Adding Meta.cpp

Update: 24 Sep, 2020 @ 1:34pm

First Init(Second Init coming to push the meta.cpp)