Remove SCUM sqlite user projections

This commit is contained in:
npc0-hue
2026-09-14 13:41:44 +08:00
parent b1f102bafb
commit ecdca8e28b
76 changed files with 2264 additions and 1558 deletions
+171 -260
View File
@@ -70,8 +70,6 @@
"remote.rsync.write",
"remote.run.files.read",
"remote.run.files.write",
"remote.run.db.sqlite.query",
"remote.run.db.sqlite.execute",
"remote.run.process.start",
"remote.run.process.stop",
"remote.run.logs.transfer",
@@ -90,8 +88,6 @@
"runCapabilities": [
"remote.run.files.read",
"remote.run.files.write",
"remote.run.db.sqlite.query",
"remote.run.db.sqlite.execute",
"remote.run.process.start",
"remote.run.process.stop",
"remote.run.logs.transfer",
@@ -99,9 +95,7 @@
"remote.run.program.command"
],
"rcon": true,
"databaseEngines": [
"sqlite"
],
"databaseEngines": [],
"logTransfer": true
},
"bridge": {
@@ -226,144 +220,16 @@
"maxRecords": 1000
}
],
"queryTemplates": [
{
"key": "scum.player.profile",
"title": "Read SCUM player profile, economy, squad, and position facts",
"permission": "server.game-client.read",
"engine": "sqlite",
"transportKey": "scum-database",
"targetKey": "scum-database",
"parameterSchemaRef": "schemas/bridge/queries/scum-player-profile.parameters.schema.json",
"resultSchemaRef": "schemas/bridge/queries/scum-player-profile.result.schema.json",
"sqlRef": "sql/scum-db-v57/users.sql",
"pollIntervalSeconds": 3,
"maxRows": 500,
"timeoutSeconds": 15
},
{
"key": "scum.squads",
"title": "Read SCUM squad records",
"permission": "server.game-client.read",
"engine": "sqlite",
"transportKey": "scum-database",
"targetKey": "scum-database",
"parameterSchemaRef": "schemas/bridge/queries/scum-squads.parameters.schema.json",
"resultSchemaRef": "schemas/bridge/queries/scum-squads.result.schema.json",
"sqlRef": "sql/scum-db-v57/squads.sql",
"pollIntervalSeconds": 1800,
"maxRows": 500,
"timeoutSeconds": 15
},
{
"key": "scum.squad-members",
"title": "Read SCUM squad membership records",
"permission": "server.game-client.read",
"engine": "sqlite",
"transportKey": "scum-database",
"targetKey": "scum-database",
"parameterSchemaRef": "schemas/bridge/queries/scum-squad-members.parameters.schema.json",
"resultSchemaRef": "schemas/bridge/queries/scum-squad-members.result.schema.json",
"sqlRef": "sql/scum-db-v57/squad-members.sql",
"pollIntervalSeconds": 1800,
"maxRows": 500,
"timeoutSeconds": 15
},
{
"key": "scum.vehicles",
"title": "Read SCUM vehicle records and coordinates",
"permission": "server.game-client.read",
"engine": "sqlite",
"transportKey": "scum-database",
"targetKey": "scum-database",
"parameterSchemaRef": "schemas/bridge/queries/scum-vehicles.parameters.schema.json",
"resultSchemaRef": "schemas/bridge/queries/scum-vehicles.result.schema.json",
"sqlRef": "sql/scum-db-v57/vehicles.sql",
"pollIntervalSeconds": 3,
"maxRows": 500,
"timeoutSeconds": 15
},
{
"key": "scum.flags",
"title": "Read SCUM flag and ownership records",
"permission": "server.game-client.read",
"engine": "sqlite",
"transportKey": "scum-database",
"targetKey": "scum-database",
"parameterSchemaRef": "schemas/bridge/queries/scum-flags.parameters.schema.json",
"resultSchemaRef": "schemas/bridge/queries/scum-flags.result.schema.json",
"sqlRef": "sql/scum-db-v57/flags.sql",
"pollIntervalSeconds": 1800,
"maxRows": 500,
"timeoutSeconds": 15
},
{
"key": "scum.positions",
"title": "Read SCUM player, vehicle, base, and flag coordinates",
"permission": "server.game-client.read",
"engine": "sqlite",
"transportKey": "scum-database",
"targetKey": "scum-database",
"parameterSchemaRef": "schemas/bridge/queries/scum-positions.parameters.schema.json",
"resultSchemaRef": "schemas/bridge/queries/scum-positions.result.schema.json",
"sqlRef": "sql/scum-db-v57/map-points.sql",
"pollIntervalSeconds": 3,
"maxRows": 500,
"timeoutSeconds": 15
},
{
"key": "scum.tasks",
"title": "Read SCUM v57 quest and task records",
"permission": "server.game-client.read",
"engine": "sqlite",
"transportKey": "scum-database",
"targetKey": "scum-database",
"parameterSchemaRef": "schemas/bridge/queries/scum-tasks.parameters.schema.json",
"resultSchemaRef": "schemas/bridge/queries/scum-tasks.result.schema.json",
"sqlRef": "sql/scum-db-v57/tasks.sql",
"pollIntervalSeconds": 1800,
"maxRows": 500,
"timeoutSeconds": 15
},
{
"key": "scum.events",
"title": "Read SCUM v57 native event rounds and statistics",
"permission": "server.game-client.read",
"engine": "sqlite",
"transportKey": "scum-database",
"targetKey": "scum-database",
"parameterSchemaRef": "schemas/bridge/queries/scum-events.parameters.schema.json",
"resultSchemaRef": "schemas/bridge/queries/scum-events.result.schema.json",
"sqlRef": "sql/scum-db-v57/events.sql",
"pollIntervalSeconds": 1800,
"maxRows": 500,
"timeoutSeconds": 15
},
{
"key": "scum.native-timed-gifts",
"title": "Read SCUM v57 native timed gift completion records",
"permission": "server.game-client.read",
"engine": "sqlite",
"transportKey": "scum-database",
"targetKey": "scum-database",
"parameterSchemaRef": "schemas/bridge/queries/scum-native-timed-gifts.parameters.schema.json",
"resultSchemaRef": "schemas/bridge/queries/scum-native-timed-gifts.result.schema.json",
"sqlRef": "sql/scum-db-v57/native-timed-gifts.sql",
"pollIntervalSeconds": 1800,
"maxRows": 500,
"timeoutSeconds": 15
}
],
"dataPacks": [
{
"key": "scum-db-v57",
"key": "scum-config-v57",
"databaseUserVersion": 57,
"configMapRefs": [
"data-packs/scum-db-v57/config-maps.json"
"data-packs/scum-config-v57/config-maps.json"
],
"dataRefs": [
"data-packs/scum-db-v57/gift-items.json",
"data-packs/scum-db-v57/map-geometry.json"
"data-packs/scum-config-v57/gift-items.json",
"data-packs/scum-config-v57/map-geometry.json"
]
}
],
@@ -412,10 +278,6 @@
"players",
"online.sessions"
],
"queryTemplateKeys": [
"scum.player.profile",
"scum.positions"
],
"featureKeys": [
"player.intelligence"
]
@@ -426,11 +288,6 @@
"squads",
"flags"
],
"queryTemplateKeys": [
"scum.squads",
"scum.squad-members",
"scum.flags"
],
"featureKeys": [
"player.intelligence"
]
@@ -442,12 +299,6 @@
"vehicles",
"flags"
],
"queryTemplateKeys": [
"scum.player.profile",
"scum.vehicles",
"scum.flags",
"scum.positions"
],
"featureKeys": [
"trajectory.collect"
]
@@ -457,9 +308,6 @@
"snapshotTypes": [
"players"
],
"queryTemplateKeys": [
"scum.native-timed-gifts"
],
"commandTypes": [
"reward.deliver"
],
@@ -469,17 +317,6 @@
},
{
"pageKey": "workflows",
"queryTemplateKeys": [
"scum.player.profile",
"scum.squads",
"scum.squad-members",
"scum.vehicles",
"scum.flags",
"scum.positions",
"scum.tasks",
"scum.events",
"scum.native-timed-gifts"
],
"commandTypes": [
"event.start"
],
@@ -706,58 +543,202 @@
"restartImpact": "restart-required"
},
{
"key": "allow-map-screen", "fileKey": "scum-server-settings", "configKey": "scum.AllowMapScreen", "label": "允许地图", "description": "是否允许玩家打开地图。", "control": "boolean", "defaultValue": "True", "restartImpact": "none"
"key": "allow-map-screen",
"fileKey": "scum-server-settings",
"configKey": "scum.AllowMapScreen",
"label": "允许地图",
"description": "是否允许玩家打开地图。",
"control": "boolean",
"defaultValue": "True",
"restartImpact": "none"
},
{
"key": "allow-kill-claiming", "fileKey": "scum-server-settings", "configKey": "scum.AllowKillClaiming", "label": "允许领取击杀", "description": "是否允许玩家领取击杀奖励。", "control": "boolean", "defaultValue": "True", "restartImpact": "none"
"key": "allow-kill-claiming",
"fileKey": "scum-server-settings",
"configKey": "scum.AllowKillClaiming",
"label": "允许领取击杀",
"description": "是否允许玩家领取击杀奖励。",
"control": "boolean",
"defaultValue": "True",
"restartImpact": "none"
},
{
"key": "allow-coma", "fileKey": "scum-server-settings", "configKey": "scum.AllowComa", "label": "允许昏迷", "description": "是否启用昏迷机制。", "control": "boolean", "defaultValue": "True", "restartImpact": "restart-required"
"key": "allow-coma",
"fileKey": "scum-server-settings",
"configKey": "scum.AllowComa",
"label": "允许昏迷",
"description": "是否启用昏迷机制。",
"control": "boolean",
"defaultValue": "True",
"restartImpact": "restart-required"
},
{
"key": "allow-mines-and-traps", "fileKey": "scum-server-settings", "configKey": "scum.AllowMinesAndTraps", "label": "允许地雷和陷阱", "description": "是否允许使用地雷和陷阱。", "control": "boolean", "defaultValue": "False", "restartImpact": "restart-required"
"key": "allow-mines-and-traps",
"fileKey": "scum-server-settings",
"configKey": "scum.AllowMinesAndTraps",
"label": "允许地雷和陷阱",
"description": "是否允许使用地雷和陷阱。",
"control": "boolean",
"defaultValue": "False",
"restartImpact": "restart-required"
},
{
"key": "allow-events", "fileKey": "scum-server-settings", "configKey": "scum.AllowEvents", "label": "允许服务器事件", "description": "是否启用服务器事件。", "control": "boolean", "defaultValue": "True", "restartImpact": "restart-required"
"key": "allow-events",
"fileKey": "scum-server-settings",
"configKey": "scum.AllowEvents",
"label": "允许服务器事件",
"description": "是否启用服务器事件。",
"control": "boolean",
"defaultValue": "True",
"restartImpact": "restart-required"
},
{
"key": "logout-timer", "fileKey": "scum-server-settings", "configKey": "scum.LogoutTimer", "label": "下线倒计时", "description": "玩家下线前的倒计时秒数。", "control": "number", "minimum": 0, "maximum": 3600, "defaultValue": "60", "restartImpact": "restart-required"
"key": "logout-timer",
"fileKey": "scum-server-settings",
"configKey": "scum.LogoutTimer",
"label": "下线倒计时",
"description": "玩家下线前的倒计时秒数。",
"control": "number",
"minimum": 0,
"maximum": 3600,
"defaultValue": "60",
"restartImpact": "restart-required"
},
{
"key": "fame-gain-multiplier", "fileKey": "scum-server-settings", "configKey": "scum.FameGainMultiplier", "label": "声望获取倍率", "description": "玩家获得声望的倍率。", "control": "number", "minimum": 0, "maximum": 100, "defaultValue": "1", "restartImpact": "none"
"key": "fame-gain-multiplier",
"fileKey": "scum-server-settings",
"configKey": "scum.FameGainMultiplier",
"label": "声望获取倍率",
"description": "玩家获得声望的倍率。",
"control": "number",
"minimum": 0,
"maximum": 100,
"defaultValue": "1",
"restartImpact": "none"
},
{
"key": "max-allowed-characters", "fileKey": "scum-server-settings", "configKey": "scum.MaxAllowedCharacters", "label": "世界角色上限", "description": "世界中同时存在的角色数量上限。", "control": "number", "minimum": 0, "maximum": 10000, "defaultValue": "500", "restartImpact": "restart-required"
"key": "max-allowed-characters",
"fileKey": "scum-server-settings",
"configKey": "scum.MaxAllowedCharacters",
"label": "世界角色上限",
"description": "世界中同时存在的角色数量上限。",
"control": "number",
"minimum": 0,
"maximum": 10000,
"defaultValue": "500",
"restartImpact": "restart-required"
},
{
"key": "max-allowed-zombies", "fileKey": "scum-server-settings", "configKey": "scum.MaxAllowedZombies", "label": "僵尸上限", "description": "世界中同时存在的僵尸数量上限。", "control": "number", "minimum": 0, "maximum": 10000, "defaultValue": "300", "restartImpact": "restart-required"
"key": "max-allowed-zombies",
"fileKey": "scum-server-settings",
"configKey": "scum.MaxAllowedZombies",
"label": "僵尸上限",
"description": "世界中同时存在的僵尸数量上限。",
"control": "number",
"minimum": 0,
"maximum": 10000,
"defaultValue": "300",
"restartImpact": "restart-required"
},
{
"key": "max-allowed-animals", "fileKey": "scum-server-settings", "configKey": "scum.MaxAllowedAnimals", "label": "动物上限", "description": "世界中同时存在的动物数量上限。", "control": "number", "minimum": 0, "maximum": 10000, "defaultValue": "-1", "restartImpact": "restart-required"
"key": "max-allowed-animals",
"fileKey": "scum-server-settings",
"configKey": "scum.MaxAllowedAnimals",
"label": "动物上限",
"description": "世界中同时存在的动物数量上限。",
"control": "number",
"minimum": 0,
"maximum": 10000,
"defaultValue": "-1",
"restartImpact": "restart-required"
},
{
"key": "exterior-zombie-amount", "fileKey": "scum-server-settings", "configKey": "scum.ExteriorZombieAmountModifier", "label": "室外僵尸倍率", "description": "室外僵尸数量倍率。", "control": "number", "minimum": 0, "maximum": 100, "defaultValue": "3.9", "restartImpact": "restart-required"
"key": "exterior-zombie-amount",
"fileKey": "scum-server-settings",
"configKey": "scum.ExteriorZombieAmountModifier",
"label": "室外僵尸倍率",
"description": "室外僵尸数量倍率。",
"control": "number",
"minimum": 0,
"maximum": 100,
"defaultValue": "3.9",
"restartImpact": "restart-required"
},
{
"key": "interior-zombie-amount", "fileKey": "scum-server-settings", "configKey": "scum.InteriorZombieAmountModifier", "label": "室内僵尸倍率", "description": "室内僵尸数量倍率。", "control": "number", "minimum": 0, "maximum": 100, "defaultValue": "2.8", "restartImpact": "restart-required"
"key": "interior-zombie-amount",
"fileKey": "scum-server-settings",
"configKey": "scum.InteriorZombieAmountModifier",
"label": "室内僵尸倍率",
"description": "室内僵尸数量倍率。",
"control": "number",
"minimum": 0,
"maximum": 100,
"defaultValue": "2.8",
"restartImpact": "restart-required"
},
{
"key": "fuel-drain-multiplier", "fileKey": "scum-server-settings", "configKey": "scum.FuelDrainFromEngineMultiplier", "label": "车辆耗油倍率", "description": "车辆发动机燃油消耗倍率。", "control": "number", "minimum": 0, "maximum": 100, "defaultValue": "1", "restartImpact": "none"
"key": "fuel-drain-multiplier",
"fileKey": "scum-server-settings",
"configKey": "scum.FuelDrainFromEngineMultiplier",
"label": "车辆耗油倍率",
"description": "车辆发动机燃油消耗倍率。",
"control": "number",
"minimum": 0,
"maximum": 100,
"defaultValue": "1",
"restartImpact": "none"
},
{
"key": "vehicle-inactivity-time", "fileKey": "scum-server-settings", "configKey": "scum.MaximumTimeOfVehicleInactivity", "label": "车辆不活跃时间", "description": "车辆不活跃后被处理的时间。", "control": "text", "defaultValue": "168:10:00", "restartImpact": "restart-required"
"key": "vehicle-inactivity-time",
"fileKey": "scum-server-settings",
"configKey": "scum.MaximumTimeOfVehicleInactivity",
"label": "车辆不活跃时间",
"description": "车辆不活跃后被处理的时间。",
"control": "text",
"defaultValue": "168:10:00",
"restartImpact": "restart-required"
},
{
"key": "log-vehicle-destroyed", "fileKey": "scum-server-settings", "configKey": "scum.LogVehicleDestroyed", "label": "记录车辆摧毁", "description": "是否记录车辆被摧毁事件。", "control": "boolean", "defaultValue": "True", "restartImpact": "none"
"key": "log-vehicle-destroyed",
"fileKey": "scum-server-settings",
"configKey": "scum.LogVehicleDestroyed",
"label": "记录车辆摧毁",
"description": "是否记录车辆被摧毁事件。",
"control": "boolean",
"defaultValue": "True",
"restartImpact": "none"
},
{
"key": "raid-protection-type", "fileKey": "scum-server-settings", "configKey": "scum.RaidProtectionType", "label": "抄家保护类型", "description": "服务器抄家保护规则类型。", "control": "number", "minimum": 0, "maximum": 10, "defaultValue": "3", "restartImpact": "restart-required"
"key": "raid-protection-type",
"fileKey": "scum-server-settings",
"configKey": "scum.RaidProtectionType",
"label": "抄家保护类型",
"description": "服务器抄家保护规则类型。",
"control": "number",
"minimum": 0,
"maximum": 10,
"defaultValue": "3",
"restartImpact": "restart-required"
},
{
"key": "quests-enabled", "fileKey": "scum-server-settings", "configKey": "scum.QuestsEnabled", "label": "启用任务", "description": "是否启用商人任务系统。", "control": "boolean", "defaultValue": "True", "restartImpact": "none"
"key": "quests-enabled",
"fileKey": "scum-server-settings",
"configKey": "scum.QuestsEnabled",
"label": "启用任务",
"description": "是否启用商人任务系统。",
"control": "boolean",
"defaultValue": "True",
"restartImpact": "none"
},
{
"key": "new-player-protection", "fileKey": "scum-server-settings", "configKey": "scum.EnableNewPlayerProtection", "label": "新人保护", "description": "是否启用新人保护。", "control": "boolean", "defaultValue": "True", "restartImpact": "restart-required"
"key": "new-player-protection",
"fileKey": "scum-server-settings",
"configKey": "scum.EnableNewPlayerProtection",
"label": "新人保护",
"description": "是否启用新人保护。",
"control": "boolean",
"defaultValue": "True",
"restartImpact": "restart-required"
}
]
},
@@ -858,51 +839,15 @@
"mode": 384
},
{
"path": "sql/scum-db-v57/users.sql",
"path": "data-packs/scum-config-v57/config-maps.json",
"mode": 384
},
{
"path": "sql/scum-db-v57/squads.sql",
"path": "data-packs/scum-config-v57/gift-items.json",
"mode": 384
},
{
"path": "sql/scum-db-v57/squad-members.sql",
"mode": 384
},
{
"path": "sql/scum-db-v57/vehicles.sql",
"mode": 384
},
{
"path": "sql/scum-db-v57/flags.sql",
"mode": 384
},
{
"path": "sql/scum-db-v57/map-points.sql",
"mode": 384
},
{
"path": "sql/scum-db-v57/tasks.sql",
"mode": 384
},
{
"path": "sql/scum-db-v57/events.sql",
"mode": 384
},
{
"path": "sql/scum-db-v57/native-timed-gifts.sql",
"mode": 384
},
{
"path": "data-packs/scum-db-v57/config-maps.json",
"mode": 384
},
{
"path": "data-packs/scum-db-v57/gift-items.json",
"mode": 384
},
{
"path": "data-packs/scum-db-v57/map-geometry.json",
"path": "data-packs/scum-config-v57/map-geometry.json",
"mode": 384
}
],
@@ -1072,7 +1017,6 @@
},
"transportKeys": [
"server-files",
"scum-database",
"scum-management"
],
"dllExtensionRefs": [
@@ -1093,16 +1037,6 @@
"windows",
"linux"
]
},
{
"key": "sqlite",
"kind": "package.installed",
"targetKey": "sqlite-driver",
"required": false,
"platforms": [
"windows",
"linux"
]
}
],
"installPlans": [
@@ -1196,21 +1130,7 @@
"retentionDays": 30
}
],
"dataTargets": [
{
"key": "scum-database",
"kind": "sqlite.snapshot",
"transportKey": "scum-database",
"sourceRootKey": "server-root",
"sourcePath": "SCUM/Saved/SaveFiles/SCUM.db",
"workspaceKey": "databases/scum-database",
"refreshPolicy": "on-demand-snapshot",
"maxBytes": 1073741824,
"platforms": [
"windows"
]
}
],
"dataTargets": [],
"transportProfiles": [
{
"key": "server-files",
@@ -1239,15 +1159,6 @@
"remote.rsync.write"
]
},
{
"key": "scum-database",
"kind": "sqlite",
"targetKey": "scum-database",
"capabilities": [
"remote.run.db.sqlite.query",
"remote.run.db.sqlite.execute"
]
},
{
"key": "scum-management",
"kind": "rcon",