Skip to content

Commit d805af3

Browse files
committed
Added File extension whitelist
Improved Vehicle Meshes docs with scale/rotation guide.
1 parent 6620694 commit d805af3

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

docs/assets-modding/creating-assets/skeletal-meshes/vehicles-meshes.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ Vehicles in nanos world implement Unreal's [Wheeled Vehicle](https://docs.unreal
1111

1212
## Preparing a Skeletal Mesh
1313

14-
There is no secret to import a Vehicle Skeletal Mesh. Any Skeletal Mesh with any Skeleton will work. The only "rule" is to it have 4 wheels bones, so the Vehicle systems can properly rotate them.
14+
There is no secret to import a Vehicle Skeletal Mesh. Any Skeletal Mesh with any Skeleton will work. Just a few rules:
15+
16+
- It must have one bone for each Wheel, so the Vehicle Animations can properly rotate them.
17+
- The root bone should be rotated in the X forward, Z up format.
18+
- The root bone also should be ideally scaled as `1, 1, 1`.
1519

1620
Take a look on one of the default Vehicles Skeleton:
1721

docs/scripting-reference/classes/file.mdx

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,19 @@ local configuration_file_json = JSON.parse(configuration_file:Read())
2828
Access to files is sandboxed. Only certain directories and files are allowed to be written or read from.
2929

3030

31+
#### Allowed Extensions
32+
33+
Only the following file extensions are allowed to be accessed (read & write):
34+
35+
`.txt` `.dat` `.json` `.toml` `.xml` `.csv` `.log` `.png` `.jpg` `.jpeg` `.webp` `.webm` `.mp3` `.wav` `.ogg` `.mp4`
36+
37+
:::note
38+
39+
If you think that a file extension should be added to the allowed list, please report it in the [Feedback Hub](https://feedback.nanos-world.com).
40+
41+
:::
42+
43+
3144
#### Server Side
3245

3346
On Server side, it's only allowed to access files inside the server folder itself (where server executable is located). Also, accessing the Config.toml is not allowed.

0 commit comments

Comments
 (0)