Skip to main content

Economy

1. Overview

The file economy.yaml in exported package contains all configuration of Economy module from exported title region. You can add, delete or update some items in the file and then re-import to the title region.

2. An Example of The File Content

# AUTO-GENERATED FILE.
#
# Export information
# @export_time: Thu, 17 Mar 2022 07:26:50 GMT
#
# This file was automatically generated by PGOS Portal.
# Copyright 2022 Proxima Beta, Inc. All Rights Reserved.
#
# Constant Definitions:
# currency:
# currency_type: 1-Virtual Currency, 2-Midas Coin, 3-Real Money
# item:
# item_type: 1-Normal Item, 2-Bundle, 3-Container, 4-Generator
# store:
# status: 1-On Sale, 2-Off-Sale
# item_mapping:
# item_type: 1-Normal Item, 2-Bundle, 3-Container, 4-Generator
# pay_platform: Steam

economy:
snapshot_tag: '20220317152639198'
title_id: '5'
title_region_id: d_5_812179_dev
currencies:
list:
- identification:
currency_code: BTC
currency_type: 1
currency_name: bt coin
currency_icon: BTC ICON
initial_deposit: 1024
items:
list:
- identification:
item_id: 'bundle-xxxx'
item_type: 2
is_unique: false
tags:
tag-1: xxx
icon: ''
display_name: Item1
description: xxx
default_custom_data:
key: value
condition: ''
open_key: ''
action:
action_type: vsf
action_entity:
function_name: errTest
server_name: Virtual_Server_Test_Demo
action_args: ''
is_consumable: false
valid_duration: 0
is_stackable: false
is_tradable: false
item_content:
- item_id: item_190jlfpf
amount: 1
default_prices:
- currency_code: BB
currency_type: 1
currency_name: BB
currency_icon: BB
amount: 11
vc_content:
- currency_code: BTC
currency_type: 1
currency_name: Gold
currency_icon: currency_1
amount: 1
stores:
list:
- identification:
store_id: store_1372431
display_name: xxx
description: ''
tags:
tag-1: xxx
categories:
- store_id: store_1372431
category_id: category_1372473
name: xxx
item_ids:
- bundle_ryobqlxl
store_items:
- store_id: store_1372431
item_id: item_1a6lu8oi
status: 2
original_prices:
- currency_code: BTC
amount: 900
sub_prices:
item_190jlfpf:
prices:
- currency_code: EOS
amount: 200
item_mappings:
list:
- identification:
item_id: bundle_07nxkmp2
item_type: 2
platform_items:
- pay_platform: Steam
platform_item_id: '1001'

3. Field Description

currencies

  • identification: The unique identifier for the current resource, it contains multiple fields:
    • currency_code: The code of currency. Type: string. Length: 1-16.
  • currency_type: The Type of currency. Type: number, 1: Virtual Currency, 2: Midas Coin, 3: Real Money.
  • currency_name: The name of currency. Type: string. Length: 1-255.
  • currency_icon: The icon of currency. Type: string. Length: 1-1024.
  • initial_deposit: The initial deposit of currency. Type: number. Length: 1-4,294,967,295.

items

  • identification: The unique identifier for the current resource, it contains multiple fields:
    • item_id: The id of item. Type: string. Length: 1-60.
  • item_type: The Type of item. Type: number. 1: Normal Item, 2: Bundle, 3: Container, 4: Generator.
  • is_unique: The unique of item. Type: bool.
  • tags: The tag of item. Type: json.
  • icon: The icon of item. Type: string. Length: 1-1024.
  • display_name: The name of item. Type: string. Length: 1-255.
  • description: The description of item. Type: string Length: 1-1024.
  • default_custom_data: The default custom data of item. Type: json.
  • condition: The condition of item.
  • open_key: The open key of item. Type: string.
  • action: The action of item.
    • action_type: The action Type of action. Type: string, vsf.
    • action_entity
      • server_name: The server name of action. Type: string.
      • function_name: The function name of virtual server. Type: string.
  • is_consumable: The consumable of item. Type: bool.
  • valid_duration: The valid duration of item. Type: number, in the unit of second.
  • is_stackable: The stackable of item. Type: bool.
  • is_tradable: The tradable of item. Type: bool.
  • item_content: The content of item.
    • item_id: The id of item. Type: string.
    • amount: The amount of item. Type: number, limit: 1-4,294,967,295.
  • default_prices: The default prices of item.
    • currency_code: The code of currency. Type: string. Length: 1-16.
    • currency_type: The Type of currency. Type: number, 1-Virtual Currency, 2-Midas Coin, 3-Real Money.
    • currency_name: The name of currency. Type: string, Length: 1-255.
    • currency_icon: The icon of currency. Type: string, Length: 1-1024.
    • amount: The amount of currency. Type: number, limit: 1-4,294,967,295.
  • vc_content: The description of item. Type: string. Length: 1-1000.
    • currency_code: The code of currency. Type: string. Length: 1-16.
    • currency_type: The Type of currency. Type: number, 1: Virtual Currency, 2: Midas Coin, 3: Real Money.
    • currency_name: The name of currency. Type: string. Length: 1-255.
    • currency_icon: The icon of currency. Type: string. Length: 1-1024.
    • amount: The amount of currency. Type: number, limit: 1-4,294,967,295.

stores

  • identification: The nique identifier for the current resource, it contains multiple fields:
    • store_id: The id of store. Type: string.
  • display_name: The display name of store. Type: string. Length: 1-255.
  • description: The description of store. Type: string. Length: 1-1024.
  • tags: The tag of store. Type: json object.
  • categories: The category of store.
    • store_id: The id of store. Type: string.
    • category_id: The id of category. Type: string.
    • name: The name of category. Type: string.
    • item_ids: The id of item. Type: array string.
  • store_items: The item of store.
    • store_id: The id of store. Type: string.
    • item_id: The id of item. Type: string.
    • status: The status of item. Type: number, 1: On Sale 2: Off-Sale.
    • original_prices: The original price of item. Type: array.
      • currency_code: The code of currency. Type: string. Length: 1-16.
      • amount: The amount of currency. Type: number, limit: 1-4,294,967,295.
    • sub_prices: The sub price of item. Type: json object.

item_mappings

  • identification: The unique identifier for the current resource, it contains multiple fields:
    • item_id: The id of item. Type: string.
  • item_type: The Type of item. Type: number, 1: Normal Item, 2: Bundle, 3: Container, 4: Generator.
  • platform_items: The platform item of item.
    • pay_platform: The platform of item. Type: string.
    • platform_item_id: The platform item id of item. Type: string.