Page MenuHomeFeedback Tracker

JSON load data error with Vykix hosting enviroment
Closed, ResolvedPublic

Description

Hi,

Recently we have been having some issues with a few select hosts (Vykix) with some code we have developed, we have .JSON files that hold one alone license code which checks against a json on a webserver.

With all hosts I have tested, OVH and GTX and many other hosts work fine. The JSON loads on server boot and the license code is successfully read from the JSON.

Now when the select hosts use the same code/mod/pbos, there crash logs for servers constantly chuck a JSON load data error for example:
SCRIPT : Checking IP: 5.252.101.152 Port: 2502
SCRIPT (E): JSON ERROR DNA_Keycards_Scripts/Scripts/5_Mission/dna_keycards\missionserver.c:23
SCRIPT (E): [::JsonLoadData] :: [ERROR] :: Cannot load data JSON ERROR:
Invalid value.
Function: 'JsonLoadData'
Stack trace:
scripts/3_Game/tools\jsonfileloader.c:160
callatic_vehicles_tier_2_scripts/Ftl4Ouun/ pr7w KnV/ygIzhvai//S8lGxtGn/mHCHWso9/mnpe uME.ARjOjVN :138
callatic_vehicles_tier_2_scripts/Ftl4Ouun/ pr7w KnV/ygIzhvai//S8lGxtGn/mHCHWso9/mnpe uME.ARjOjVN :68
JM/CF/Scripts/1_Core/communityframework\module\cf_modulecoreevent.c:41
JM/CF/Scripts/1_Core/communityframework\module\cf_modulecoremanager.c:157
JM/CF/Scripts/5_Mission/communityframework\mission\missionserver.c:37
VPPAdminTools/5_Mission/vppadmintools\missionserver.c:12
DNA_Keycards_Scripts/Scripts/5_Mission/dna_keycards\missionserver.c:23

Details

Severity
Minor
Resolution
Open
Reproducibility
Random
Operating System
Windows 11 x64
Category
General
Steps To Reproduce

Use code in example to generate a folder in profiles with a .JSON and a example format for a license code to be inputted into which will be read from on the next server load/boot

class Tier1Module : CF_ModuleGame
{
    private string obfv_webhook;
    private string licenseFilePath;
    private ref map<string, string> playerLicenseData;  // Add 'ref' to playerLicenseData

    void Tier1Module()
    {
        // Constructor: This is where you can initialize variables or perform setup tasks.

        // Check and create the CZAutoz folder if it doesn't exist
        string profilePath = "$profile:CZAutoz";
        if (!FileExist(profilePath))
        {
            Print("CZAutoz folder not found. Creating it.");
            MakeDirectory(profilePath);
        }

        // Initialize licenseFilePath
        licenseFilePath = profilePath + "\\Tier1license.json";

        // Initialize playerLicenseData as a new map
        playerLicenseData = new map<string, string>();

        if (!FileExist(licenseFilePath))
        {
            // Create a new license code if it doesn't exist
            string exampleLicenseCode = "EXAMPLE_LICENSE_CODE_CHANGE_ME";  // Replace with your example license code
            playerLicenseData.Insert("licenseCode", exampleLicenseCode);

            // Save the example license code to Tier1license.json
            JsonFileLoader<map<string, string>>.JsonSaveFile(licenseFilePath, playerLicenseData);

            if (FileExist(licenseFilePath))
            {
                Print("Created new Tier1license.json with example license code. Please change this to your valid license: " + exampleLicenseCode);
            }
            else
            {
                Print("Failed to create Tier1license.json. Check file permissions or path.");
            }
        }
        else
        {
            // Tier1license.json exists, read the existing license code
            JsonFileLoader<map<string, string>>.JsonLoadFile(licenseFilePath, playerLicenseData);

            if (playerLicenseData.Count() > 0 && playerLicenseData.Contains("licenseCode"))
            {
                string existingLicenseCode = playerLicenseData["licenseCode"];
                Print("Loaded existing license code: " + existingLicenseCode);
            }
            else
            {
                Print("Failed to load Tier1license.json or file format is incorrect. Check file format or path.");
            }
        }
    }
}

Now I have directly had Vykix the host blaming my code and mod that this is the issue but when tested in other hosting enviroments, there has been no issue at all and the JSON files all read well without a JSON load data error? I am really adamant that the host Vykix has a really wierd hosting enviroment set up causing pathing issues etc.

Are we happy to rule this out as it would be a host related issue and not modding related issue if the related code works fine with OVH, GTX and many other hosts? But with few selected hosts, the error appears and servers crash

SCRIPT : Checking IP: 5.252.101.152 Port: 2502
SCRIPT (E): JSON ERROR DNA_Keycards_Scripts/Scripts/5_Mission/dna_keycards\missionserver.c:23
SCRIPT (E): [::JsonLoadData] :: [ERROR] :: Cannot load data JSON ERROR:
Invalid value.
Function: 'JsonLoadData'
Stack trace:
scripts/3_Game/tools\jsonfileloader.c:160
callatic_vehicles_tier_2_scripts/Ftl4Ouun/ pr7w KnV/ygIzhvai//S8lGxtGn/mHCHWso9/mnpe uME.ARjOjVN :138
callatic_vehicles_tier_2_scripts/Ftl4Ouun/ pr7w KnV/ygIzhvai//S8lGxtGn/mHCHWso9/mnpe uME.ARjOjVN :68
JM/CF/Scripts/1_Core/communityframework\module\cf_modulecoreevent.c:41
JM/CF/Scripts/1_Core/communityframework\module\cf_modulecoremanager.c:157
JM/CF/Scripts/5_Mission/communityframework\mission\missionserver.c:37
VPPAdminTools/5_Mission/vppadmintools\missionserver.c:12
DNA_Keycards_Scripts/Scripts/5_Mission/dna_keycards\missionserver.c:23

Are we aware of any JSON related issues within DayZ itself?

Event Timeline

Callatic created this task.Sep 6 2024, 10:07 PM

Are you sure it's Vykix specific? Cause that IP comes back as an entirely different company in germany called "Mo's Operations GmbH". As far as I know, Vykix is Spain or Portugal

I would like to address the following:

SCRIPT: Checking IP: 5.252.101.152 Port: 2502

This IP address does not belong to our network, providing clear evidence that we are not the only ones affected by this issue. Therefore, I kindly request that you verify your sources before making claims that are not substantiated by accurate information.

To suggest that Mo's Operations GmbH is affiliated with VYKIX is an incorrect assumption. I urge you to thoroughly review your sources and avoid making misleading statements.

This correspondence serves as a written record that another company, Mo's Operations GmbH, is also experiencing difficulties with your mods. This fact contradicts your previous statement, where you asserted that we are the only ones facing such issues.

For your reference:

SCRIPT: Checking IP: 5.252.101.152 Port: 2502 – Unable to access your mod.

This clearly indicates that Mo's Operations GmbH is encountering access issues with your mod, not just us.

I kindly request that you carefully review your facts and provide accurate information going forward.

Thank you for your attention to this matter.

SCRIPT : Checking IP: 5.252.101.152 Port: 2502
SCRIPT (E): JSON ERROR DNA_Keycards_Scripts/Scripts/5_Mission/dna_keycards\missionserver.c:23
SCRIPT (E): [::JsonLoadData] :: [ERROR] :: Cannot load data JSON ERROR:
Invalid value.
Function: 'JsonLoadData'
Stack trace:
scripts/3_Game/tools\jsonfileloader.c:160
callatic_vehicles_tier_2_scripts/Ftl4Ouun/ pr7w KnV/ygIzhvai//S8lGxtGn/mHCHWso9/mnpe uME.ARjOjVN :138
callatic_vehicles_tier_2_scripts/Ftl4Ouun/ pr7w KnV/ygIzhvai//S8lGxtGn/mHCHWso9/mnpe uME.ARjOjVN :68
JM/CF/Scripts/1_Core/communityframework\module\cf_modulecoreevent.c:41
JM/CF/Scripts/1_Core/communityframework\module\cf_modulecoremanager.c:157
JM/CF/Scripts/5_Mission/communityframework\mission\missionserver.c:37
VPPAdminTools/5_Mission/vppadmintools\missionserver.c:12
DNA_Keycards_Scripts/Scripts/5_Mission/dna_keycards\missionserver.c:23

Kind regards.

This is a example IP given that's all, this isnt just blaming you but I am actually trying to rule out the issue to resolve it more then anything as it wouldnt make any sense that over on my dedicated machine, a OVH dedicated machine, and multiple other machines at different centers and locations were working fine so this is just to RULE out. No target at all directed but I still had to explain where the issue lies and how it could be reproduced and how it was reproduced is when using your hosting enviroment.

Hi,

Recently we have been having some issues with a specific host (Vykix) and some code we have developed, we have .JSON files that hold one alone license code which checks against a json on a webserver.

With all hosts I have tested, OVH and GTX and many other hosts work fine. The JSON loads on server boot and the license code is successfully read from the JSON.

Now when Vykix use the same code/mod/pbos, there crash logs for servers constantly chuck a JSON load data error for example:
SCRIPT : Checking IP: 5.252.101.152 Port: 2502
SCRIPT (E): JSON ERROR DNA_Keycards_Scripts/Scripts/5_Mission/dna_keycards\missionserver.c:23
SCRIPT (E): [::JsonLoadData] :: [ERROR] :: Cannot load data JSON ERROR:
Invalid value.
Function: 'JsonLoadData'
Stack trace:
scripts/3_Game/tools\jsonfileloader.c:160
callatic_vehicles_tier_2_scripts/Ftl4Ouun/ pr7w KnV/ygIzhvai//S8lGxtGn/mHCHWso9/mnpe uME.ARjOjVN :138
callatic_vehicles_tier_2_scripts/Ftl4Ouun/ pr7w KnV/ygIzhvai//S8lGxtGn/mHCHWso9/mnpe uME.ARjOjVN :68
JM/CF/Scripts/1_Core/communityframework\module\cf_modulecoreevent.c:41
JM/CF/Scripts/1_Core/communityframework\module\cf_modulecoremanager.c:157
JM/CF/Scripts/5_Mission/communityframework\mission\missionserver.c:37
VPPAdminTools/5_Mission/vppadmintools\missionserver.c:12
DNA_Keycards_Scripts/Scripts/5_Mission/dna_keycards\missionserver.c:23

Your statement isn’t an example if you’re claiming that only VYKIX is experiencing issues—because, as evidenced here, another provider is also having problems. This directly contradicts your claims.

I kindly request that you verify your sources before making claims that are not substantiated by accurate information.

Kind regards.

How do you expect help when you post logs of obfuscated stuff?

The issue could be anything. Impossible to debug properly.

Checking IP: 5.252.101.152 Port: 2502

This is one of my IP's. Its NOT hosted with vykix.

Callatic removed a subscriber: Callatic.Sep 7 2024, 2:46 AM
Callatic updated the task description. (Show Details)Sep 7 2024, 2:49 AM
Callatic edited Steps To Reproduce. (Show Details)

You're asking for help from the company that you're breaking the EULA with on fixing your DRM implementation?

inkihh added a subscriber: inkihh.Sep 7 2024, 8:41 AM
VYKIXHosting added a comment.EditedSep 7 2024, 1:16 PM

To Whom It May Concern,

It is too late for Callatic from czautoz.co.uk to attempt to change the narrative and remove defamatory claims. Even the headline:

"JSON load data error with Vykix hosting environment"

Indicates that you were trying to suggest that only VYKIX was causing the issue. However, it turns out the IP address you referenced actually belongs to another hosting provider, which makes your assertions unfounded and misleading.

Furthermore, you proceeded to spread additional statements on your Discord server that are worse than defamatory because they are based on misinformation and falsehoods entirely fabricated by you. You even went as far as to leave a 1-star review:

Additionally, you banned our team member from your Discord and blocked us from communicating further, despite the fact that we were only trying to assist by sending relevant logs from our customers to you.

Instead of handling this professionally, you chose to act in a manner that appears childish and unjust, whereas we have maintained professionalism throughout.

This entire situation is now a public record of your behavior, which includes defamatory actions and an unprofessional approach to resolving concerns.

We ask that you reconsider your actions and approach this matter with the seriousness it deserves.

VinGal added a subscriber: VinGal.Sep 7 2024, 3:36 PM

Overriding the following in your scripts should remove the need for a DRM, sadly the json error may still appear:

#ifdef Callatic_Vehicles_Armoured_Pack_Scripts
modded class ArmouredPackModule: CF_ModuleGame
{
    override bool obfm_CheckServer(string obfv_ip, int obfv_serverPort) {
        return true;
    }

    override void obfm_SendServerWebhook(string obfv_hostname, string obfv_ip, int obfv_serverPort, bool obfv_IsBlacklisted = false)
    {}
}
#endif

#ifdef Callatic_Vehicles_Offroad_Pack_Scripts
modded class OffroadPackModule: CF_ModuleGame
{
    override bool obfm_CheckServer(string obfv_ip, int obfv_serverPort) {
        return true;
    }

    override void obfm_SendServerWebhook(string obfv_hostname, string obfv_ip, int obfv_serverPort, bool obfv_IsBlacklisted = false)
    {}
}
#endif

#ifdef Callatic_Vehicles_Tier_1_Scripts
modded class Tier1Module: CF_ModuleGame
{
    override bool obfm_CheckServer(string obfv_ip, int obfv_serverPort) {
        return true;
    }

    override void obfm_SendServerWebhook(string obfv_hostname, string obfv_ip, int obfv_serverPort, bool obfv_IsBlacklisted = false)
    {}
}
#endif

#ifdef Callatic_Vehicles_Tier_1_Scripts
modded class Tier1Module: CF_ModuleGame
{
    override bool obfm_CheckServer(string obfv_ip, int obfv_serverPort) {
        return true;
    }

    override void obfm_SendServerWebhook(string obfv_hostname, string obfv_ip, int obfv_serverPort, bool obfv_IsBlacklisted = false)
    {}
}
#endif

#ifdef Callatic_Vehicles_Tier_2_Scripts
modded class Tier2Module: CF_ModuleGame
{
    override bool obfm_CheckServer(string obfv_ip, int obfv_serverPort) {
        return true;
    }

    override void obfm_SendServerWebhook(string obfv_hostname, string obfv_ip, int obfv_serverPort, bool obfv_IsBlacklisted = false)
    {}
}
#endif

#ifdef Callatic_Vehicles_Tier_3_Scripts
modded class Tier3Module: CF_ModuleGame
{
    override bool obfm_CheckServer(string obfv_ip, int obfv_serverPort) {
        return true;
    }

    override void obfm_SendServerWebhook(string obfv_hostname, string obfv_ip, int obfv_serverPort, bool obfv_IsBlacklisted = false)
    {}
}
#endif

#ifdef Callatic_Vehicles_Tier_4_Scripts
modded class Tier4Module: CF_ModuleGame
{
    override bool obfm_CheckServer(string obfv_ip, int obfv_serverPort) {
        return true;
    }

    override void obfm_SendServerWebhook(string obfv_hostname, string obfv_ip, int obfv_serverPort, bool obfv_IsBlacklisted = false)
    {}
}
#endif

#ifdef Callatic_Vehicles_Vans_Pack_Scripts
modded class VansPackModule: CF_ModuleGame
{
    override bool obfm_CheckServer(string obfv_ip, int obfv_serverPort) {
        return true;
    }

    override void obfm_SendServerWebhook(string obfv_hostname, string obfv_ip, int obfv_serverPort, bool obfv_IsBlacklisted = false)
    {}
}
#endif
Arkensor claimed this task.Sep 7 2024, 4:04 PM
Arkensor closed this task as Resolved.
Arkensor added a subscriber: Arkensor.

We will not be able to assist you with this as it is not a problem with the game. Whatever JSON is attempted to be loaded is invalid.