Atlas Shop, Currency & Kits

Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!
Hi,

I don't have the greatest experience with coding but I managed to make it work according to the Json tester but it's still crashing my server. I cannot find out what it is that's causing it. Anyone that can spot something that is obviously interfering with the code? I have isolated all plugins and found out that it is the shop that's crashing my game and it's always when I go to /shop 8+ pages.

Some or any help would be greatly appreciated!
Aza

I may have attached the wrong codes originally. >.<'
 
Hello,

I have a problem with me comes an error message in the console.


Code:
02/27/21 00:49 [AtlasShop][error] [json.exception.parse_error.101] parse error at 4263: syntax error - unexpected end of input; expected '}'
02/27/21 00:49 [API][warning] (API::PluginManager::LoadAllPlugins) Failed to load plugin - AtlasShop
Error code: 1114

config.json:

JSON:
{ 
  "Mysql":{ 
    "UseMysql":true,
    "MysqlHost":"localhost",
    "MysqlUser":"atlas",
    "MysqlPass":"PASSWORD",
    "MysqlDB":"atlas"
  },
  "General":{ 
    "TimedPointsReward":{ 
      "Enabled":true,
      "Interval":10,
      "Groups":{ 
        "Default":{ 
          "Amount":5
        },
        "vip":{ 
          "Amount":10
        }
      }
    },
    "ItemsPerPage":15,
    "ShopDisplayTime":15.0,
    "ShopTextSize":1.3,
    "DbPathOverride":"",
    "WebKey":"",
    "DefaultKit":"vip,starter"
  },
  "Kits":{ 
    "starter":{ 
      "DefaultAmount":2,
      "Price":90,
      "Description":"Starter kit",
      "OnlyFromSpawn":true,
      "Items":[ 
        { 
          "Amount":1,
          "Quality":0,
          "ForceBlueprint":false,
          "Blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponMetalPick.PrimalItem_WeaponMetalPick'",
          "Blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponSickle.PrimalItem_WeaponSickle'",
          "Blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponMetalHatchet.PrimalItem_WeaponMetalHatchet'",
          "Blueprint":"Blueprint'/Game/PrimalEarth/Test/PrimalItem_WeaponSpyglass.PrimalItem_WeaponSpyglass'"
        }
      ],
  "Messages":{ 
    "Sender":"ArkShop",
    "BoughtItem":"<RichColor Color=\"0, 1, 0, 1\">You have successfully bought item</>",
    "BoughtDino":"<RichColor Color=\"0, 1, 0, 1\">You have successfully bought dino</>",
    "BoughtBeacon":"<RichColor Color=\"0, 1, 0, 1\">You have successfully bought beacon</>",
    "BoughtExp":"<RichColor Color=\"0, 1, 0, 1\">You have successfully bought experience</>",
    "ReceivedPoints":"<RichColor Color=\"1, 1, 0, 1\">You have received {0} points! (total: {1})</>",
    "HavePoints":"You have {0} points",
    "NoPoints":"<RichColor Color=\"1, 0, 0, 1\">You don't have enough points</>",
    "WrongId":"<RichColor Color=\"1, 0, 0, 1\">Wrong id</>",
    "NoPermissionsKit":"<RichColor Color=\"1, 0, 0, 1\">You don't have permission to use this kit</>",
    "CantBuyKit":"<RichColor Color=\"1, 0, 0, 1\">You can't buy this kit</>",
    "BoughtKit":"<RichColor Color=\"0, 1, 0, 1\">You have successfully bought {0} kit</>",
    "AvailableKits":"Available kits for you:",
    "NoKits":"No available kits",
    "KitsLeft":"You have {0} {1} kits left",
    "NoKitsLeft":"You don't have {0} kits left",
    "CantGivePoints":"<RichColor Color=\"1, 0, 0, 1\">You can't give points to yourself</>",
    "RidingDino":"<RichColor Color=\"1, 0, 0, 1\">You can't buy this item while riding a dino</>",
    "SentPoints":"<RichColor Color=\"0, 1, 0, 1\">You have successfully sent {0} points to {1}</>",
    "GotPoints":"You have received {0} points from {1}",
    "NoPlayer":"<RichColor Color=\"1, 0, 0, 1\">Player doesn't exist</>",
    "FoundMorePlayers":"<RichColor Color=\"1, 0, 0, 1\">Found more than one player with the given name</>",
    "BuyUsage":"Usage: /buy id amount",
    "ShopUsage":"Usage: /shop page",
    "KitUsage":"Usage: /kit KitName",
    "BuyKitUsage":"Usage: /BuyKit KitName amount",
    "TradeUsage":"Usage: /trade 'Player Name' amount",
    "PointsCmd":"/points",
    "TradeCmd":"/trade",
    "BuyCmd":"/buy",
    "ShopCmd":"/shop",
    "KitCmd":"/kit",
    "BuyKitCmd":"/buykit",
    "SellCmd":"/sell",
    "ShopSellCmd":"/shopsell",
    "SellUsage":"Usage: /sell id amount",
    "NotEnoughItems":"<RichColor Color=\"1, 0, 0, 1\">You don't have enough items ({0}/{1})</>",
    "SoldItems":"<RichColor Color=\"0, 1, 0, 1\">You have successfully sold items</>",
    "BadLevel":"<RichColor Color=\"1, 0, 0, 1\">Required level: {0} - {1}</>",
    "KitsListPrice":"Price: {0}",
    "KitsListFormat":"\"{0}\" - {1}. {2} left. {3}\n",
    "StoreListDino":"{0}) {1}. Level: {2}. Id: {3}. Price: {4}\n",
    "StoreListItem":"{0}) {1}. Id: {2}. Price: {3}\n",
    "StoreListFormat":"{0}",
    "OnlyOnSpawnKit":"This kit can be used only on spawn",
    "HelpCmd":"/shophelp",
    "ShopMessage":"Usage: /buy id amount",
    "HelpMessage":"This is shop help message",
    "ClaimCmd":"/claim",
    "ClaimedItems":"You have successfully claimed the items",
    "NothingToClaim":"You have nothing to claim",
    "ReceivedFirstPoints":"{}"
  }
}


is there something wrong in the config file? i do not see it.

"Permission plugin is installed and working.


best regards
 
Hello,

I have a problem with me comes an error message in the console.


Code:
02/27/21 00:49 [AtlasShop][error] [json.exception.parse_error.101] parse error at 4263: syntax error - unexpected end of input; expected '}'
02/27/21 00:49 [API][warning] (API::PluginManager::LoadAllPlugins) Failed to load plugin - AtlasShop
Error code: 1114

config.json:

JSON:
{
  "Mysql":{
    "UseMysql":true,
    "MysqlHost":"localhost",
    "MysqlUser":"atlas",
    "MysqlPass":"PASSWORD",
    "MysqlDB":"atlas"
  },
  "General":{
    "TimedPointsReward":{
      "Enabled":true,
      "Interval":10,
      "Groups":{
        "Default":{
          "Amount":5
        },
        "vip":{
          "Amount":10
        }
      }
    },
    "ItemsPerPage":15,
    "ShopDisplayTime":15.0,
    "ShopTextSize":1.3,
    "DbPathOverride":"",
    "WebKey":"",
    "DefaultKit":"vip,starter"
  },
  "Kits":{
    "starter":{
      "DefaultAmount":2,
      "Price":90,
      "Description":"Starter kit",
      "OnlyFromSpawn":true,
      "Items":[
        {
          "Amount":1,
          "Quality":0,
          "ForceBlueprint":false,
          "Blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponMetalPick.PrimalItem_WeaponMetalPick'",
          "Blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponSickle.PrimalItem_WeaponSickle'",
          "Blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponMetalHatchet.PrimalItem_WeaponMetalHatchet'",
          "Blueprint":"Blueprint'/Game/PrimalEarth/Test/PrimalItem_WeaponSpyglass.PrimalItem_WeaponSpyglass'"
        }
      ],
  "Messages":{
    "Sender":"ArkShop",
    "BoughtItem":"<RichColor Color=\"0, 1, 0, 1\">You have successfully bought item</>",
    "BoughtDino":"<RichColor Color=\"0, 1, 0, 1\">You have successfully bought dino</>",
    "BoughtBeacon":"<RichColor Color=\"0, 1, 0, 1\">You have successfully bought beacon</>",
    "BoughtExp":"<RichColor Color=\"0, 1, 0, 1\">You have successfully bought experience</>",
    "ReceivedPoints":"<RichColor Color=\"1, 1, 0, 1\">You have received {0} points! (total: {1})</>",
    "HavePoints":"You have {0} points",
    "NoPoints":"<RichColor Color=\"1, 0, 0, 1\">You don't have enough points</>",
    "WrongId":"<RichColor Color=\"1, 0, 0, 1\">Wrong id</>",
    "NoPermissionsKit":"<RichColor Color=\"1, 0, 0, 1\">You don't have permission to use this kit</>",
    "CantBuyKit":"<RichColor Color=\"1, 0, 0, 1\">You can't buy this kit</>",
    "BoughtKit":"<RichColor Color=\"0, 1, 0, 1\">You have successfully bought {0} kit</>",
    "AvailableKits":"Available kits for you:",
    "NoKits":"No available kits",
    "KitsLeft":"You have {0} {1} kits left",
    "NoKitsLeft":"You don't have {0} kits left",
    "CantGivePoints":"<RichColor Color=\"1, 0, 0, 1\">You can't give points to yourself</>",
    "RidingDino":"<RichColor Color=\"1, 0, 0, 1\">You can't buy this item while riding a dino</>",
    "SentPoints":"<RichColor Color=\"0, 1, 0, 1\">You have successfully sent {0} points to {1}</>",
    "GotPoints":"You have received {0} points from {1}",
    "NoPlayer":"<RichColor Color=\"1, 0, 0, 1\">Player doesn't exist</>",
    "FoundMorePlayers":"<RichColor Color=\"1, 0, 0, 1\">Found more than one player with the given name</>",
    "BuyUsage":"Usage: /buy id amount",
    "ShopUsage":"Usage: /shop page",
    "KitUsage":"Usage: /kit KitName",
    "BuyKitUsage":"Usage: /BuyKit KitName amount",
    "TradeUsage":"Usage: /trade 'Player Name' amount",
    "PointsCmd":"/points",
    "TradeCmd":"/trade",
    "BuyCmd":"/buy",
    "ShopCmd":"/shop",
    "KitCmd":"/kit",
    "BuyKitCmd":"/buykit",
    "SellCmd":"/sell",
    "ShopSellCmd":"/shopsell",
    "SellUsage":"Usage: /sell id amount",
    "NotEnoughItems":"<RichColor Color=\"1, 0, 0, 1\">You don't have enough items ({0}/{1})</>",
    "SoldItems":"<RichColor Color=\"0, 1, 0, 1\">You have successfully sold items</>",
    "BadLevel":"<RichColor Color=\"1, 0, 0, 1\">Required level: {0} - {1}</>",
    "KitsListPrice":"Price: {0}",
    "KitsListFormat":"\"{0}\" - {1}. {2} left. {3}\n",
    "StoreListDino":"{0}) {1}. Level: {2}. Id: {3}. Price: {4}\n",
    "StoreListItem":"{0}) {1}. Id: {2}. Price: {3}\n",
    "StoreListFormat":"{0}",
    "OnlyOnSpawnKit":"This kit can be used only on spawn",
    "HelpCmd":"/shophelp",
    "ShopMessage":"Usage: /buy id amount",
    "HelpMessage":"This is shop help message",
    "ClaimCmd":"/claim",
    "ClaimedItems":"You have successfully claimed the items",
    "NothingToClaim":"You have nothing to claim",
    "ReceivedFirstPoints":"{}"
  }
}


is there something wrong in the config file? i do not see it.

"Permission plugin is installed and working.


best regards


I could be wrong but

JSON:
"Kits":{

    "starter":{

      "DefaultAmount":2,

      "Price":90,

      "Description":"Starter kit",

      "OnlyFromSpawn":true,

      "Items":[

        {

          "Amount":1,

          "Quality":0,

          "ForceBlueprint":false,

          "Blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponMetalPick.PrimalItem_WeaponMetalPick'",

          "Blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponSickle.PrimalItem_WeaponSickle'",

          "Blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponMetalHatchet.PrimalItem_WeaponMetalHatchet'",

          "Blueprint":"Blueprint'/Game/PrimalEarth/Test/PrimalItem_WeaponSpyglass.PrimalItem_WeaponSpyglass'"

        }

      ],

supposed to be

JSON:
"Kits":{

    "starter":{

      "DefaultAmount":2,

      "Price":90,

      "Description":"Starter kit",

      "OnlyFromSpawn":true,

      "Items":[

        {

          "Amount":1,

          "Quality":0,

          "ForceBlueprint":false,

          "Blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponMetalPick.PrimalItem_WeaponMetalPick'",

          "Blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponSickle.PrimalItem_WeaponSickle'",

          "Blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponMetalHatchet.PrimalItem_WeaponMetalHatchet'",

          "Blueprint":"Blueprint'/Game/PrimalEarth/Test/PrimalItem_WeaponSpyglass.PrimalItem_WeaponSpyglass'"

        }

      ]

},
 
Here is default as you can see at bottom
JSON:
  "Kits":{

    "starter":{

      "DefaultAmount":2,

      "Price":90,

      "Description":"Starter kit (carno with saddle)",

      "OnlyFromSpawn":true,

      "Items":[

        {

          "Amount":1,

          "Quality":0,

          "ForceBlueprint":false,

          "Blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Items/Armor/Saddles/PrimalItemArmor_CarnoSaddle.PrimalItemArmor_CarnoSaddle'"

        }

      ],

      "Dinos":[

        {

          "Level":10,

          "Blueprint":"Blueprint'/Game/PrimalEarth/Dinos/Carno/Carno_Character_BP.Carno_Character_BP'"

        }

      ]

    },

    "vip":{

      "DefaultAmount":1,

      "Description":"Vip kit for premiums (ptero)",

      "Permissions":"Admins,Premiums",

      "Dinos":[

        {

          "Level":20,

          "Neutered":true,

          "Blueprint":"Blueprint'/Game/PrimalEarth/Dinos/Ptero/Ptero_Character_BP.Ptero_Character_BP'"

        }

      ]

    },
 
Yes, you're right there was one missing } I have then seen the bottom also still missing one ^^

but unfortunately I still have error message





C:
02/27/21 03:42 [AtlasShop][error] [json.exception.type_error.306] cannot use value() with null
02/27/21 03:42 [API][warning] (API::PluginManager::LoadAllPlugins) Failed to load plugin - AtlasShop
Error code: 1114


it must be somehow related to the starter kit. I have tried an Ark config where only eggs are in it and there are no error messages.
As soon as I add starter kits these messages come again.
 
Last edited:
Yeah I actually just had this and fixed it your adding all items in one spot, this would need to be seperate items detailing their values I would assume anyways
(EDIT: I just did a fresh install of the plugin and tested it, the issue is not there you have a bug somewhere else. But you must add each item and their attributes in each slot as seen in the next post)

JSON:
  "Kits":{
    "starter":{
      "DefaultAmount":2,
      "Price":90,
      "Description":"Starter kit (carno with saddle)",
      "OnlyFromSpawn":true,
      "Items":[
        {
          "Amount":1,
          "Quality":0,
          "ForceBlueprint":false,
          "Blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Items/Armor/Leather/PrimalItemArmor_HideHelmet.PrimalItemArmor_HideHelmet'"
        },
        {
          "Amount":1,
          "Quality":0,
          "ForceBlueprint":false,
          "Blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Items/Armor/Leather/PrimalItemArmor_HideShirt.PrimalItemArmor_HideShirt'"
        },
        {
          "Amount":1,
          "Quality":0,
          "ForceBlueprint":false,
          "Blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Items/Armor/Leather/PrimalItemArmor_HideGloves.PrimalItemArmor_HideGloves'"
        },
        {
          "Amount":1,
          "Quality":0,
          "ForceBlueprint":false,
          "Blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Items/Armor/Leather/PrimalItemArmor_HidePants.PrimalItemArmor_HidePants"
        },
        {
          "Amount":1,
          "Quality":0,
          "ForceBlueprint":false,
          "Blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Items/Armor/Leather/PrimalItemArmor_HideBoots.PrimalItemArmor_HideBoots'"
        },
        {
          "Amount":1,
          "Quality":0,
          "ForceBlueprint":false,
          "Blueprint":"Blueprint’/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponStoneHatchet.PrimalItem_WeaponStoneHatchet'"
        },
        {
          "Amount":1,
          "Quality":0,
          "ForceBlueprint":false,
          "Blueprint":"Blueprint’/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponStonePick.PrimalItem_WeaponStonePick'"
        },
        {
          "Amount":1,
          "Quality":0,
          "ForceBlueprint":false,
          "Blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Items/Armor/Leather/PrimalItemArmor_HideBoots.PrimalItemArmor_HideBoots'"
        },
        {
          "Amount":1,
          "Quality":0,
          "ForceBlueprint":false,
          "Blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Items/Armor/Leather/PrimalItemArmor_HideBoots.PrimalItemArmor_HideBoots'"
        }
      ]
    },
    "vip":{
      "DefaultAmount":1,
      "Description":"Vip kit for premiums (ptero)",
      "Permissions":"Admins,Premiums",
      "Dinos":[
        {
          "Level":20,
          "Neutered":true,
          "Blueprint":"Blueprint'/Game/PrimalEarth/Dinos/Ptero/Ptero_Character_BP.Ptero_Character_BP'"
        }
      ]
    },
 
Last edited:
So you would do this
(Also I use this site works great for me Json Formatter & Validator)

JSON:
/*
Each Item I think requires their qualities, amounts, and blueprint information
The blueprint itself does not store this information
BP stores model, texture, animation, and sound information
(If you use devkit to open each item you will see this)
*/
"Kits":{
      "starter":{
         "DefaultAmount":2,
         "Price":90,
         "Description":"Starter kit (carno with saddle)",
         "OnlyFromSpawn":true,
         "Items":[ <----------//   [  This is opening the items involved below //
            { <----------//      }, to open an item //
               "Amount":1,  <----------//   How many //
               "Quality":0, <----------//      How good is the item? 0,1,2,3,4,5,6 //
               "ForceBlueprint":false,  <----------//      Do you want them to be able to craft this? (Dunno if this is needed in atlass but:cool:)[/B]
               "Blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Items/Armor/Saddles/PrimalItemArmor_CarnoSaddle.PrimalItemArmor_CarnoSaddle'" // BP PATH
            }, <----------//      }, to close item //
            { <----------//      }, to open next item //
               "Amount":1,
               "Quality":0,
               "ForceBlueprint":false,
               "Blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Items/Armor/Saddles/PrimalItemArmor_CarnoSaddle.PrimalItemArmor_CarnoSaddle'"
            }<----------//    }  with no , to set as last item of kit           //
         ]<----------//      ]  This will close the Items involved in the kit your calling  //
      },
 
Last edited:
So you would do this
(Also I use this site works great for me Json Formatter & Validator)

JSON:
   "Kits":{
      "starter":{
         "DefaultAmount":2,
         "Price":90,
         "Description":"Starter kit (carno with saddle)",
         "OnlyFromSpawn":true,
         "Items":[
            {
// Each Item I think requires their qualities, amounts, and blueprint information
//The blueprint itself does not store this information
//The Blueprint stores model,texture,animation, and sound information (If you use devkit to open each item you will see this)
               "Amount":1,
               "Quality":0,
               "ForceBlueprint":false,
               "Blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Items/Armor/Saddles/PrimalItemArmor_CarnoSaddle.PrimalItemArmor_CarnoSaddle'"
            },
//       ^^        }, to move to next item     //
            {
               "Amount":1,
               "Quality":0,
               "ForceBlueprint":false,
               "Blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Items/Armor/Saddles/PrimalItemArmor_CarnoSaddle.PrimalItemArmor_CarnoSaddle'"
            }
         ]
//       ^^  } with no , to set as last item of kit           //
      },
Thank you very much for your work.

I didn't know that I have to do each item separately, now I know!

However, it again changed and it is unfortunately still not I know but also not what it fails now.

I have used your page from syntax it is not now



Console:

C#:
02/27/21 19:02 [AtlasShop][error] [json.exception.type_error.306] cannot use value() with null
02/27/21 19:02 [API][warning] (API::PluginManager::LoadAllPlugins) Failed to load plugin - AtlasShop
Error code: 1114



config:

JSON:
{
    "Mysql":{
      "UseMysql":true,
      "MysqlHost":"localhost",
      "MysqlUser":"atlas",
      "MysqlPass":"PASSWORD",
      "MysqlDB":"atlas"
    },
      "General": {
          "TimedPointsReward": {
              "Enabled": true,
              "Interval": 15,
              "Groups": {
                  "Default": {
                      "Amount": 15
                  },
                  "Premiums": {
                      "Amount": 60
                  }
              }
          },
          "ItemsPerPage": 25,
          "ShopDisplayTime": 15,
          "ShopTextSize": 1,
          "DefaultKit": "starter,vip"
      },
  "Kits":{
      "starter":{
        "DefaultAmount":2,
        "Price":90,
        "Description":"Starter kit (carno with saddle)",
        "OnlyFromSpawn":true,
        "Items":[
          {
            "Amount":1,
            "Quality":1,
            "ForceBlueprint":false,
            "Blueprint":"/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponMetalPick.PrimalItem_WeaponMetalPick'"
          },
          {
            "Amount":1,
            "Quality":1,
            "ForceBlueprint":false,
            "Blueprint":"/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponSickle.PrimalItem_WeaponSickle'"
          },
          {
            "Amount":1,
            "Quality":1,
            "ForceBlueprint":false,
            "Blueprint":"/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponMetalHatchet.PrimalItem_WeaponMetalHatchet'"
          },
          {
            "Amount":1,
            "Quality":1,
            "ForceBlueprint":false,
            "Blueprint":"/Game/PrimalEarth/Test/PrimalItem_WeaponSpyglass.PrimalItem_WeaponSpyglass'"
          }
        ]
      },
      "vip":{
        "DefaultAmount":1,
        "Description":"Vip kit for premiums (ptero)",
        "Permissions":"Admins,Premiums",
        "Dinos":[
          {
            "Level":20,
            "Neutered":true,
            "Blueprint":"/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponMetalPick.PrimalItem_WeaponMetalPick'"
          }
        ]
      },
      "ShopItems": {
          "egg_allosaurus":{
              "Type": "item",
              "Description": "Allosaurus Egg",
              "Price": 1000,
              "Amount": 1,
              "Blueprint": "/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponMetalPick.PrimalItem_WeaponMetalPick'"
          },
          "egg_ankylo":{
              "Type": "item",
              "Description": "Ankylo Egg",
              "Price": 1000,
              "Amount": 1,
              "Blueprint": "/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponMetalPick.PrimalItem_WeaponMetalPick'"
            }
         },
      "SellItems": {
      },
      "Messages": {
          "Sender": "Shop",
          "BoughtItem": "<RichColor Color=\"0, 1, 0, 1\">You have successfully bought item</>",
          "BoughtDino": "<RichColor Color=\"0, 1, 0, 1\">You have successfully bought dino</>",
          "BoughtBeacon": "<RichColor Color=\"0, 1, 0, 1\">You have successfully bought beacon</>",
          "BoughtExp": "<RichColor Color=\"0, 1, 0, 1\">You have successfully bought experience</>",
          "ReceivedPoints": "<RichColor Color=\"1, 1, 0, 1\">You have received {0} points! (total: {1})</>",
          "HavePoints": "You have {0} points",
          "NoPoints": "<RichColor Color=\"1, 0, 0, 1\">You don't have enough points</>",
          "WrongId": "<RichColor Color=\"1, 0, 0, 1\">Wrong id</>",
          "NoPermissionsKit": "<RichColor Color=\"1, 0, 0, 1\">You don't have permission to use this kit</>",
          "CantBuyKit": "<RichColor Color=\"1, 0, 0, 1\">You can't buy this kit</>",
          "BoughtKit": "<RichColor Color=\"0, 1, 0, 1\">You have successfully bought {0} kit</>",
          "AvailableKits": "Available kits for you:",
          "NoKits": "No available kits",
          "KitsLeft": "You have {0} {1} kits left",
          "NoKitsLeft": "You don't have {0} kits left",
          "CantGivePoints": "<RichColor Color=\"1, 0, 0, 1\">You can't give points to yourself</>",
          "RidingDino": "<RichColor Color=\"1, 0, 0, 1\">You can't buy this item while riding a dino</>",
          "SentPoints": "<RichColor Color=\"0, 1, 0, 1\">You have successfully sent {0} points to {1}</>",
          "GotPoints": "You have received {0} points from {1}",
          "NoPlayer": "<RichColor Color=\"1, 0, 0, 1\">Player doesn't exist</>",
          "FoundMorePlayers": "<RichColor Color=\"1, 0, 0, 1\">Found more than one player with the given name</>",
          "BuyUsage": "Usage: /buy id amount",
          "ShopUsage": "Usage: /shop page -- /shopsell page",
          "KitUsage": "Usage: /kit KitName",
          "BuyKitUsage": "Usage: /BuyKit KitName amount",
          "TradeUsage": "Usage: /trade 'Player Name' amount",
          "PointsCmd": "/points",
          "TradeCmd": "/trade",
          "BuyCmd": "/buy",
          "ShopCmd": "/shop",
          "KitCmd": "/kit",
          "BuyKitCmd": "/buykit",
          "SellCmd": "/sell",
          "ShopSellCmd": "/shopsell",
          "SellUsage": "Usage: /sell id amount",
          "NotEnoughItems": "<RichColor Color=\"1, 0, 0, 1\">You don't have enough items ({0}/{1})</>",
          "SoldItems": "<RichColor Color=\"0, 1, 0, 1\">You have successfully sold items</>",
          "BadLevel": "<RichColor Color=\"1, 0, 0, 1\">Required level: {0} - {1}</>",
          "KitsListPrice": "Price: {0}",
          "KitsListFormat": "\"{0}\" - {1}. {2} left. {3}\n",
          "StoreListDino": "{0}) {1}. Level: {2}. Id: {3}. Price: {4}\n",
          "StoreListItem": "{0}) {1}. Id: {2}. Price: {3}\n",
          "StoreListFormat": "{0}",
          "OnlyOnSpawnKit": "This kit can be used only on spawn",
          "HelpCmd": "/shophelp",
          "ShopMessage": "Usage: /buy id amount",
          "HelpMessage": ""
          }
        }    
}
 
"Permissions": "Admins,Premiums":

Shouldn't it say vip instead of premiums?
 
"Permissions": "Admins,Premiums":

Shouldn't it say vip instead of premiums?
The name of those are what you call in permissions plugin not in this one, this uses permissions to allow you to get only certain parts
such as I have a kit for admins allows them to get 500 pts from shop every 5 mins instead of 15 like normal players. but you have to have
ADMIN permissions to get it.

I assume this is what you mean which defines the groups at the start of the config.

JSON:
      "General": {
          "TimedPointsReward": {
              "Enabled": true,
              "Interval": 15,
              "Groups": {
                  "Default": {
                      "Amount": 15
                  },
                  "Premiums": {
                      "Amount": 60
                  }
              }
          },
          "ItemsPerPage": 25,
          "ShopDisplayTime": 15,
          "ShopTextSize": 1,
          "DefaultKit": "starter,vip"
      },

Otherwise:
JSON:
    "vip":{
      "DefaultAmount":1,
      "Description":"Vip kit for premiums (ptero)",
      "Permissions":"Admins,Premiums",
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

View attachment 3917
 
Last edited:
JSON:
    "vip":{
      "DefaultAmount":1,
      "Description":"Vip kit for premiums (ptero)",
      "Permissions":"Admins,Premiums",
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

For the understanding:

Here is written about the VIP group.
in the column "Permissions" should be the declaration of the database variable?
Vip then corresponds to the premium group in the script?
or are these placeholders and above one addresses the variable?

Know me unfortunately little in java
 
Vip is just for the Shops view, Premium is a group that is set in Permissions
i.e. "Admins, Default" But you will have to add Premiums to Permissions. I believe
the only reason I even know is cause I just did this to mine and I had to figure it out
on my own. I don't really know much of these languages but I know some C,C++,and C#.

So again the Permissions plugin you would have to console or rcon console it to add
that group so it would allow that group to be active, You can also add people to
those groups including yourself although everyone is added to default and it should
auto-add you once you login as admin.
 
Thank you for your detailed explanation.

i now have a config with no error message at startup.
But now when I die I do not get a starter kit or can buy them.

Error message when trying :

C-like:
02/27/21 23:25 [AtlasShop][error] (d:\programs\ark\atlas\atlasshop\atlasshop\private\kits.cpp AtlasShop::Kits::GetPlayerKitsConfig) Couldn't parse config: [json.exception.parse_error.101] parse error at 1: syntax error - unexpected end of input; expected '[', '{', or a literal
02/27/21 23:25 [AtlasShop][error] (d:\programs\ark\atlas\atlasshop\atlasshop\private\kits.cpp AtlasShop::Kits::GetPlayerKitsConfig) Couldn't parse config: [json.exception.parse_error.101] parse error at 1: syntax error - unexpected end of input; expected '[', '{', or a literal
02/27/21 23:25 [AtlasShop][error] (d:\programs\ark\atlas\atlasshop\atlasshop\private\kits.cpp AtlasShop::Kits::GetPlayerKitsConfig) Couldn't parse config: [json.exception.parse_error.101] parse error at 1: syntax error - unexpected end of input; expected '[', '{', or a literal


JSON:
{
    "Mysql":{
      "UseMysql":true,
      "MysqlHost":"localhost",
      "MysqlUser":"atlas",
      "MysqlPass":"PASS",
      "MysqlDB":"atlas"
    },
  "General":{
    "TimedPointsReward":{
      "Enabled":true,
      "Interval":5,
      "Groups":{
        "Default":{
          "Amount":5
        },
        "Premiums":{
          "Amount":15
        }
      }
    },
    "ItemsPerPage":15,
    "ShopDisplayTime":15.0,
    "ShopTextSize":1.3,
    "DbPathOverride":"",
    "DefaultKit":"vip,starter"
  },
  "Kits":{
    "starter":{
      "DefaultAmount":10,
      "Price":90,
      "Description":"Starter kit (carno with saddle)",
      "OnlyFromSpawn":true,
      "Items":[
        {
          "Amount":1,
          "Quality":1,
          "ForceBlueprint":false,
          "Blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponMetalPick.PrimalItem_WeaponMetalPick'"
        },
                {
          "Amount":1,
          "Quality":1,
          "ForceBlueprint":false,
          "Blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponSickle.PrimalItem_WeaponSickle'"
        },
                {
          "Amount":1,
          "Quality":1,
          "ForceBlueprint":false,
          "Blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponMetalHatchet.PrimalItem_WeaponMetalHatchet'"
        },
                {
          "Amount":1,
          "Quality":1,
          "ForceBlueprint":false,
          "Blueprint":"Blueprint'/Game/Mods/KPlusAutomationMod/Spyglass/PrimalItemWeapon_Spyglass_K+.PrimalItemWeapon_Spyglass_K+'"
        }
      ],
      "Dinos":[
        {
          "Level":10,
          "Blueprint":"Blueprint'/Game/Atlas/Creatures/Giraffe/Giraffe_Character_BP.Giraffe_Character_BP'"
        }
      ]
    },
    "vip":{
      "DefaultAmount":1,
      "Description":"Donator Kit",
      "Permissions":"Admins,Premiums",
      "Dinos":[
        {
          "Level":20,
          "Neutered":true,
          "Blueprint":"Blueprint'/Game/Atlas/Creatures/Giraffe/Giraffe_Character_BP.Giraffe_Character_BP'"
        }
      ]
    }
  },
  "ShopItems":{
    "ingots100":{
      "Type":"item",
      "Description":"Metal Ingot (100x)",
      "Price":15,
      "Items":[
        {
          "Quality":0,
          "ForceBlueprint":false,
          "Amount":1,
          "Blueprint":"Blueprint'/Game/PrimalEarth/CoreBlueprints/Weapons/PrimalItem_WeaponMetalPick.PrimalItem_WeaponMetalPick'"
        }
      ]
    },
    "allengrams":{
      "Type":"command",
      "Description":"All engrams",
      "Price":1000,
      "Items":[
        {
          "Command":"GiveEngrams"
        }
      ]
    }
  },
  "SellItems":{
    "metal":{
      "Type":"item",
      "Description":"100x stone",
      "Price":10,
      "Amount":100,
      "Blueprint":"Blueprint'/Game/Mods/Stack50/Resources/PrimalItemResource_Stone_Child.PrimalItemResource_Stone_Child'"
    }
  },
  "Messages":{
    "Sender":"Legacy Atlas Shop",
    "BoughtItem":"<RichColor Color=\"0, 1, 0, 1\">You have successfully bought item</>",
    "BoughtDino":"<RichColor Color=\"0, 1, 0, 1\">You have successfully bought dino</>",
    "BoughtBeacon":"<RichColor Color=\"0, 1, 0, 1\">You have successfully bought beacon</>",
    "BoughtExp":"<RichColor Color=\"0, 1, 0, 1\">You have successfully bought experience</>",
    "ReceivedPoints":"<RichColor Color=\"1, 1, 0, 1\">You have received {0} points! (total: {1})</>",
    "HavePoints":"You have {0} points",
    "NoPoints":"<RichColor Color=\"1, 0, 0, 1\">You don't have enough points</>",
    "WrongId":"<RichColor Color=\"1, 0, 0, 1\">Wrong id</>",
    "NoPermissionsKit":"<RichColor Color=\"1, 0, 0, 1\">You don't have permission to use this kit</>",
    "CantBuyKit":"<RichColor Color=\"1, 0, 0, 1\">You can't buy this kit</>",
    "BoughtKit":"<RichColor Color=\"0, 1, 0, 1\">You have successfully bought {0} kit</>",
    "AvailableKits":"Available kits for you:",
    "NoKits":"No available kits",
    "KitsLeft":"You have {0} {1} kits left",
    "NoKitsLeft":"You don't have {0} kits left",
    "CantGivePoints":"<RichColor Color=\"1, 0, 0, 1\">You can't give points to yourself</>",
    "RidingDino":"<RichColor Color=\"1, 0, 0, 1\">You can't buy this item while riding a dino</>",
    "SentPoints":"<RichColor Color=\"0, 1, 0, 1\">You have successfully sent {0} points to {1}</>",
    "GotPoints":"You have received {0} points from {1}",
    "NoPlayer":"<RichColor Color=\"1, 0, 0, 1\">Player doesn't exist</>",
    "FoundMorePlayers":"<RichColor Color=\"1, 0, 0, 1\">Found more than one player with the given name</>",
    "BuyUsage":"Usage: /buy id amount",
    "ShopUsage":"Usage: /shop page",
    "KitUsage":"Usage: /kit KitName",
    "BuyKitUsage":"Usage: /BuyKit KitName amount",
    "TradeUsage":"Usage: /trade 'Player Name' amount",
    "PointsCmd":"/points",
    "TradeCmd":"/trade",
    "BuyCmd":"/buy",
    "ShopCmd":"/shop",
    "KitCmd":"/kit",
    "BuyKitCmd":"/buykit",
    "SellCmd":"/sell",
    "ShopSellCmd":"/shopsell",
    "SellUsage":"Usage: /sell id amount",
    "NotEnoughItems":"<RichColor Color=\"1, 0, 0, 1\">You don't have enough items ({0}/{1})</>",
    "SoldItems":"<RichColor Color=\"0, 1, 0, 1\">You have successfully sold items</>",
    "BadLevel":"<RichColor Color=\"1, 0, 0, 1\">Required level: {0} - {1}</>",
    "KitsListPrice":"Price: {0}",
    "KitsListFormat":"\"{0}\" - {1}. {2} left. {3}\n",
    "StoreListDino":"{0}) {1}. Level: {2}. Id: {3}. Price: {4}\n",
    "StoreListItem":"{0}) {1}. Id: {2}. Price: {3}\n",
    "StoreListFormat":"{0}",
    "OnlyOnSpawnKit":"This kit can be used only on spawn",
    "HelpCmd":"/shophelp",
    "ShopMessage":"Usage: /buy id amount",
    "HelpMessage":"This is shop help message"
  }
}



Error found.

Atlas Shop has not created SQL columns from "Kits,points".
after I deleted the table players again and restarted the server the columns were there! ;D
 
Last edited:
Looking for info on how to put in the mod items? I have everything vanilla working fine except seeds and mod items. I really appreciate and like this api, it's tricky at first but so handy once you do learn it.

"WheatSeed": {
"Type": "item",
"Description": "Wheat Seed",
"Price": 100,
"Amount": 5,
"Blueprint": "Blueprint'/Game/Atlas/AtlasCoreBP/Items/Resources/PrimalItemConsumable_Vegetable_Wheat_Seed.PrimalItemConsumable_Vegetable_Wheat_Seed'"

current format and path that i can not seem to get to work
 
MySQL is not required but recommended if you want to link multiple servers to the one db. I will make a tutorial eventually.

Will look at it.
You can already sell gold coins for points using sell function.

Could be a coincidence, crash log doesn't say anything about plugins.
Hi Michidu! Did you make a tutorial for this? We are trying to get the API shop/currency/kits in the game but realize we will need some type of SQL to make it work.

Thanks,
Andy
 
Were useing a gportal server do you have a video for properly insdaling files to server when i follow your instructions posted its crashing our server.
 
Monetize your ARK server
Tempest Dedicated Servers
Rogue Vikings Discord Server - Rogue Vikings Gaming Servers - Minecraft Prison Servers - Minecraft Creative Servers
Tebex
Back
Top