@bf6mods/cli 1.3.0 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,191 @@
1
+ {
2
+ "Portal_Dynamic": [
3
+ {
4
+ "name": "TEAM_1_HQ",
5
+ "AltTeam": "TeamNeutral",
6
+ "ObjId": 1,
7
+ "InfantrySpawns": [
8
+ "TEAM_1_HQ/SpawnPoint_1_1",
9
+ "TEAM_1_HQ/SpawnPoint_1_2",
10
+ "TEAM_1_HQ/SpawnPoint_1_3",
11
+ "TEAM_1_HQ/SpawnPoint_1_4"
12
+ ],
13
+ "HQArea": "TEAM_1_HQ/HQ_Team1",
14
+ "type": "HQ_PlayerSpawner",
15
+ "right": { "x": 1, "y": 0, "z": 0 },
16
+ "up": { "x": 0, "y": 1, "z": 0 },
17
+ "front": { "x": 0, "y": 0, "z": 1 },
18
+ "position": { "x": -30.0207, "y": 32.4003, "z": -0.012538 },
19
+ "id": "TEAM_1_HQ",
20
+ "linked": ["HQArea", "InfantrySpawns"]
21
+ },
22
+ {
23
+ "name": "HQ_Team1",
24
+ "type": "PolygonVolume",
25
+ "id": "TEAM_1_HQ/HQ_Team1",
26
+ "height": 0,
27
+ "points": [
28
+ { "x": -25.0207, "y": 37.4003, "z": 4.987462 },
29
+ { "x": -25.0207, "y": 37.4003, "z": -5.012538 },
30
+ { "x": -35.0207, "y": 37.4003, "z": -5.012538 },
31
+ { "x": -35.0207, "y": 37.4003, "z": 4.987462 }
32
+ ]
33
+ },
34
+ {
35
+ "name": "SpawnPoint_1_1",
36
+ "type": "SpawnPoint",
37
+ "right": { "x": 0.999884, "y": 0, "z": 0.0152535 },
38
+ "up": { "x": 0, "y": 1, "z": 0 },
39
+ "front": { "x": -0.0152535, "y": 0, "z": 0.999884 },
40
+ "position": { "x": -30.0207, "y": 32.4003, "z": -3.012538 },
41
+ "id": "TEAM_1_HQ/SpawnPoint_1_1"
42
+ },
43
+ {
44
+ "name": "SpawnPoint_1_2",
45
+ "type": "SpawnPoint",
46
+ "right": { "x": -0.9995, "y": 0, "z": 0.0316198 },
47
+ "up": { "x": 0, "y": 1, "z": 0 },
48
+ "front": { "x": -0.0316198, "y": 0, "z": -0.9995 },
49
+ "position": { "x": -27.0207, "y": 32.4003, "z": -0.012538 },
50
+ "id": "TEAM_1_HQ/SpawnPoint_1_2"
51
+ },
52
+ {
53
+ "name": "SpawnPoint_1_3",
54
+ "type": "SpawnPoint",
55
+ "right": { "x": -0.0428871, "y": 0, "z": -0.99908 },
56
+ "up": { "x": 0, "y": 1, "z": 0 },
57
+ "front": { "x": 0.99908, "y": 0, "z": -0.0428871 },
58
+ "position": { "x": -33.0207, "y": 32.4003, "z": -0.012538 },
59
+ "id": "TEAM_1_HQ/SpawnPoint_1_3"
60
+ },
61
+ {
62
+ "name": "SpawnPoint_1_4",
63
+ "type": "SpawnPoint",
64
+ "right": { "x": 0.0841819, "y": 0, "z": 0.99645 },
65
+ "up": { "x": 0, "y": 1, "z": 0 },
66
+ "front": { "x": -0.99645, "y": 0, "z": 0.0841819 },
67
+ "position": { "x": -30.0207, "y": 32.4003, "z": 2.987462 },
68
+ "id": "TEAM_1_HQ/SpawnPoint_1_4"
69
+ },
70
+ {
71
+ "name": "TEAM_2_HQ",
72
+ "Team": "Team2",
73
+ "AltTeam": "TeamNeutral",
74
+ "ObjId": 2,
75
+ "InfantrySpawns": [
76
+ "TEAM_2_HQ/SpawnPoint_2_1",
77
+ "TEAM_2_HQ/SpawnPoint_2_2",
78
+ "TEAM_2_HQ/SpawnPoint_2_3",
79
+ "TEAM_2_HQ/SpawnPoint_2_4"
80
+ ],
81
+ "HQArea": "TEAM_2_HQ/HQ_Team2",
82
+ "type": "HQ_PlayerSpawner",
83
+ "right": { "x": 1, "y": 0, "z": 0 },
84
+ "up": { "x": 0, "y": 1, "z": 0 },
85
+ "front": { "x": 0, "y": 0, "z": 1 },
86
+ "position": { "x": 30.194, "y": 32.9783, "z": -0.0373716 },
87
+ "id": "TEAM_2_HQ",
88
+ "linked": ["HQArea", "InfantrySpawns"]
89
+ },
90
+ {
91
+ "name": "HQ_Team2",
92
+ "type": "PolygonVolume",
93
+ "id": "TEAM_2_HQ/HQ_Team2",
94
+ "height": 0,
95
+ "points": [
96
+ { "x": 35.194, "y": 37.9783, "z": 4.9626284 },
97
+ { "x": 35.194, "y": 37.9783, "z": -5.0373716 },
98
+ { "x": 25.194, "y": 37.9783, "z": -5.0373716 },
99
+ { "x": 25.194, "y": 37.9783, "z": 4.9626284 }
100
+ ]
101
+ },
102
+ {
103
+ "name": "SpawnPoint_2_1",
104
+ "type": "SpawnPoint",
105
+ "right": { "x": 0.87795, "y": 0, "z": 0.478754 },
106
+ "up": { "x": 0, "y": 1, "z": 0 },
107
+ "front": { "x": -0.478754, "y": 0, "z": 0.87795 },
108
+ "position": { "x": 30.194, "y": 32.9783, "z": -3.0373716 },
109
+ "id": "TEAM_2_HQ/SpawnPoint_2_1"
110
+ },
111
+ {
112
+ "name": "SpawnPoint_2_2",
113
+ "type": "SpawnPoint",
114
+ "right": { "x": -0.997604, "y": 0, "z": -0.0691822 },
115
+ "up": { "x": 0, "y": 1, "z": 0 },
116
+ "front": { "x": 0.0691822, "y": 0, "z": -0.997604 },
117
+ "position": { "x": 33.194, "y": 32.9783, "z": -0.0373716 },
118
+ "id": "TEAM_2_HQ/SpawnPoint_2_2"
119
+ },
120
+ {
121
+ "name": "SpawnPoint_2_3",
122
+ "type": "SpawnPoint",
123
+ "right": { "x": 0.162758, "y": 0, "z": -0.986666 },
124
+ "up": { "x": 0, "y": 1, "z": 0 },
125
+ "front": { "x": 0.986666, "y": 0, "z": 0.162758 },
126
+ "position": { "x": 27.194, "y": 32.9783, "z": -0.0373716 },
127
+ "id": "TEAM_2_HQ/SpawnPoint_2_3"
128
+ },
129
+ {
130
+ "name": "SpawnPoint_2_4",
131
+ "type": "SpawnPoint",
132
+ "right": { "x": -0.165771, "y": 0, "z": 0.986164 },
133
+ "up": { "x": 0, "y": 1, "z": 0 },
134
+ "front": { "x": -0.986164, "y": 0, "z": -0.165771 },
135
+ "position": { "x": 30.194, "y": 32.9783, "z": 2.9626284 },
136
+ "id": "TEAM_2_HQ/SpawnPoint_2_4"
137
+ },
138
+ {
139
+ "name": "CombatArea",
140
+ "CombatVolume": "CombatArea/CombatVolume",
141
+ "type": "CombatArea",
142
+ "right": { "x": 1, "y": 0, "z": 0 },
143
+ "up": { "x": 0, "y": 1, "z": 0 },
144
+ "front": { "x": 0, "y": 0, "z": 1 },
145
+ "position": { "x": 0, "y": 0, "z": 0 },
146
+ "id": "CombatArea",
147
+ "linked": ["CombatVolume"]
148
+ },
149
+ {
150
+ "name": "CombatVolume",
151
+ "type": "PolygonVolume",
152
+ "id": "CombatArea/CombatVolume",
153
+ "height": 0,
154
+ "points": [
155
+ { "x": -450, "y": 43.0489, "z": -450 },
156
+ { "x": -450, "y": 43.0489, "z": 450 },
157
+ { "x": 450, "y": 43.0489, "z": 450 },
158
+ { "x": 450, "y": 43.0489, "z": -450 }
159
+ ]
160
+ },
161
+ {
162
+ "name": "DeployCam",
163
+ "type": "DeployCam",
164
+ "right": { "x": 1, "y": 0, "z": 0 },
165
+ "up": { "x": 0, "y": 0.101056, "z": -0.994881 },
166
+ "front": { "x": 0, "y": 0.994881, "z": 0.101056 },
167
+ "position": { "x": 0, "y": 383.15, "z": 0 },
168
+ "id": "Camera3D/DeployCam"
169
+ }
170
+ ],
171
+ "Static": [
172
+ {
173
+ "name": "MP_Portal_Sand_Terrain",
174
+ "type": "MP_Portal_Sand_Terrain",
175
+ "right": { "x": 1, "y": 0, "z": 0 },
176
+ "up": { "x": 0, "y": 1, "z": 0 },
177
+ "front": { "x": 0, "y": 0, "z": 1 },
178
+ "position": { "x": 0, "y": 0, "z": 0 },
179
+ "id": "Static/MP_Portal_Sand_Terrain"
180
+ },
181
+ {
182
+ "name": "MP_Portal_Sand_Assets",
183
+ "type": "MP_Portal_Sand_Assets",
184
+ "right": { "x": 1, "y": 0, "z": 0 },
185
+ "up": { "x": 0, "y": 1, "z": 0 },
186
+ "front": { "x": 0, "y": 0, "z": 1 },
187
+ "position": { "x": 0, "y": 0, "z": 0 },
188
+ "id": "Static/MP_Portal_Sand_Assets"
189
+ }
190
+ ]
191
+ }
@@ -1,15 +1,20 @@
1
1
  import type { ConfigType } from "@bf6mods/sdk";
2
2
 
3
3
  export enum MapId {
4
- FireStorm = "MP_FireStorm-ModBuilderCustom0",
5
4
  SiegeOfCairo = "MP_Abbasid-ModBuilderCustom0",
6
5
  EmpireState = "MP_Aftermath-ModBuilderCustom0",
6
+ BlackwellFields = "MP_Badlands-ModBuilderCustom0",
7
7
  IberianOffensive = "MP_Battery-ModBuilderCustom0",
8
8
  LiberationPeak = "MP_Capstone-ModBuilderCustom0",
9
9
  ManhattanBridge = "MP_Dumbo-ModBuilderCustom0",
10
+ Eastwoord = "MP_Eastwood-ModBuilderCustom0",
11
+ FireStorm = "MP_FireStorm-ModBuilderCustom0",
10
12
  SaintsQuarter = "MP_Limestone-ModBuilderCustom0",
11
13
  NewSobekCity = "MP_Outskirts-ModBuilderCustom0",
12
14
  MirakValley = "MP_Tungsten-ModBuilderCustom0",
15
+ GolfCourse = "MP_Granite_ClubHouse_Portal-ModBuilderCustom0",
16
+ DefenseNexus = "MP_Granite_TechCampus_Portal-ModBuilderCustom0",
17
+ PortalSandbox = "MP_Portal_Sand-ModBuilderCustom0",
13
18
  }
14
19
 
15
20
  /**
@@ -23,6 +28,17 @@ export enum MapId {
23
28
  * in your `bf6.config.ts` file.
24
29
  */
25
30
  export type Bf6Config = {
31
+ /**
32
+ * The unique identifier of your mod experience.
33
+ *
34
+ * You can find this ID in the URL when editing your experience:
35
+ * [https://portal.battlefield.com/bf6/experience/settings/mode?id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx](https://portal.battlefield.com/bf6/experience/settings/mode?id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx)
36
+ *
37
+ * This ID is referenced when deploying your mod using:
38
+ * npx \@bf6mods/cli deploy
39
+ */
40
+ id?: string;
41
+
26
42
  /**
27
43
  * The human-readable name of the mod.
28
44
  *
@@ -0,0 +1,3 @@
1
+ node_modules/
2
+ dist
3
+ .bf6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bf6mods/cli",
3
- "version": "1.3.0",
3
+ "version": "1.4.0",
4
4
  "description": "CLI and library for bundling BF6 mods",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -27,12 +27,15 @@
27
27
  "url": "git+https://github.com/bf6mods/bf6mods.git"
28
28
  },
29
29
  "dependencies": {
30
+ "@bf6mods/portal": "*",
30
31
  "@bf6mods/sdk": "*",
31
32
  "@clack/prompts": "^0.11.0",
32
33
  "chokidar": "^4.0.3",
33
34
  "colors": "^1.4.0",
34
35
  "commander": "^14.0.1",
36
+ "import-global": "^1.1.1",
35
37
  "jiti": "^2.6.1",
38
+ "keytar": "^7.9.0",
36
39
  "knitwork": "^1.2.0",
37
40
  "rolldown": "^1.0.0-beta.44",
38
41
  "stringify-object": "^6.0.0",
@@ -46,6 +49,7 @@
46
49
  "@types/stringify-object": "^4.0.5",
47
50
  "cross-env": "^10.1.0",
48
51
  "execa": "^9.6.0",
52
+ "puppeteer": "^24.27.0",
49
53
  "tsx": "^4.20.6"
50
54
  }
51
55
  }