Skip to content

Commit 4f3cdc1

Browse files
committed
Updated stable
Added localized % to translation dropdown
1 parent e148bb7 commit 4f3cdc1

File tree

9 files changed

+57
-29
lines changed

9 files changed

+57
-29
lines changed

docusaurus.config.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,17 @@ module.exports = {
1313
trailingSlash: false,
1414
i18n: {
1515
defaultLocale: 'en',
16-
locales: isDev ? ['en'] : ['en', 'fr', 'pt-BR'],
16+
locales: isDev ? ['en'] : ['en', 'fr', 'pt-BR', 'de'],
1717
localeConfigs: {
1818
en: {
1919
label: '🇬🇧 English'
2020
},
2121
'pt-BR': {
2222
label: '🇧🇷 Português (Brasil)'
2323
},
24+
de: {
25+
label: '🇩🇪 Deutsch'
26+
},
2427
fr: {
2528
label: '🇫🇷 Français'
2629
},
@@ -107,6 +110,11 @@ module.exports = {
107110
href: 'https://crowdin.com/project/nanos-world-docs/',
108111
label: 'Help Us Translate',
109112
},
113+
{
114+
type: 'html',
115+
className: 'crowdin-progress-item',
116+
value: '<a title="Help Us Translate" target="_blank" href="https://crowdin.com/project/nanos-world-docs/"><img src="https://badges.crowdin.net/nanos-world-docs/localized.svg"></a>'
117+
}
110118
],
111119
},
112120
{
@@ -163,7 +171,7 @@ module.exports = {
163171
label: 'bleeding-edge 🩸',
164172
},
165173
latest: {
166-
label: 'latest - a1.91.x ⚖️',
174+
label: 'latest - a1.98.x ⚖️',
167175
}
168176
},
169177
},
@@ -197,9 +205,9 @@ module.exports = {
197205
],
198206
markdown: {
199207
mermaid: true,
200-
hooks: {
208+
hooks: {
201209
onBrokenMarkdownLinks: 'warn',
202-
}
210+
}
203211
},
204212
plugins: [
205213
require.resolve('docusaurus-plugin-image-zoom'),

src/css/custom.css

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,4 +789,9 @@ img-comparison-slider .before figcaption {
789789

790790
img-comparison-slider .after figcaption {
791791
right: 10px;
792+
}
793+
794+
.crowdin-progress-item {
795+
text-align: center;
796+
margin: 5px 0 0 0;
792797
}

versioned_docs/version-latest/assets-modding/creating-assets/importing-assets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ Common problems when importing assets and possible solutions:
279279
280280
#### Corrupt data found, please verify your installation
281281

282-
> If you see this error as a Popup, please make sure to retry all steps listed [here](#troubleshooting).
282+
> If you see this error as a Popup, please make sure to retry all steps listed [here](#troubleshooting) or try cleaning up your local `NanosWorld/Server/Assets/` folder and re-downloading the files from the server.
283283
284284
#### Game Crash during/after loading a custom map or custom assets
285285

versioned_docs/version-latest/assets-modding/default-asset-pack/default-materials.md

Lines changed: 30 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,11 @@ For more information regarding how each Parameter affects the final visual, plea
5555
**Masked** and **Lit** Material.
5656

5757

58+
### **`M_Default_Masked_Lit_WorldAligned`**
59+
60+
**Masked** and **Lit** Material, with `WorldAlignedTexture` node, scaled with `TextureSize` scalar parameter.
61+
62+
5863
### **`M_Default_Masked_Unlit`**
5964

6065
**Masked** and **Unlit** Material.
@@ -75,6 +80,16 @@ For more information regarding how each Parameter affects the final visual, plea
7580
**Translucent**, **Lit** with `Deferred Decal` Material Domain, to be used in <Classes.Decal />.
7681

7782

83+
### **`M_Default_Translucent_Unlit`**
84+
85+
**Translucent** and **Unlit** Material.
86+
87+
88+
### **`M_Default_Translucent_Unlit_Depth`**
89+
90+
**Translucent**, **Unlit** with `Disable Depth Test` enabled. Is the same as Translucent but will be always visible in the screen, even behind walls or other objects.
91+
92+
7893
## Special Utils Materials
7994

8095
### **`M_Noise`**
@@ -99,10 +114,13 @@ For more information regarding how each Parameter affects the final visual, plea
99114
| | Domain | Blend Mode | Shading Model |
100115
| :--- | :--- | :--- | :--- |
101116
| **M_Default_Masked_Lit** | Surface | Masked | Default Lit |
117+
| **M_Default_Masked_Lit_WorldAligned** | Surface | Masked | Default Lit |
102118
| **M_Default_Masked_Unlit** | Surface | Masked | Unlit |
103119
| **M_Default_Translucent_Lit** | Surface | Translucent | Default Lit |
104120
| **M_Default_Translucent_Lit_Depth** | Surface | Translucent | Default Lit |
105121
| **M_Default_Translucent_Lit_Decal** | Deferred Decal | Translucent | Default Lit |
122+
| **M_Default_Translucent_Unlit** | Surface | Translucent | Unlit |
123+
| **M_Default_Translucent_Unlit_Depth** | Surface | Translucent | Unlit |
106124
| **M_Noise** | Surface | Opaque | Default Lit |
107125
| **M_Wireframe** | Surface | Translucent | Default Lit |
108126

@@ -119,15 +137,18 @@ For more information regarding how each Parameter affects the final visual, plea
119137

120138
#### Supported Common Parameters in each Material
121139

122-
| | Tint | Texture | Normal | Emissive | Metallic | Specular | Roughness | Opacity |
123-
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
124-
| **M_Default_Masked_Lit** | `true` | `true` | `true` | `true` | `true` | `true` | `true` | `true*` |
125-
| **M_Default_Masked_Unlit** | `false` | `true` | `false` | `true` | `false` | `false` | `false` | `true*` |
126-
| **M_Default_Translucent_Lit** | `true` | `true` | `false` | `true` | `false` | `false` | `false` | `true` |
127-
| **M_Default_Translucent_Lit_Depth** | `true` | `true` | `false` | `true` | `false` | `false` | `false` | `true` |
128-
| **M_Default_Translucent_Lit_Decal** | `true` | `true` | `true` | `true` | `true` | `true` | `true` | `true` |
129-
| **M_Noise** | `false` | `false` | `false` | `true` | `true` | `true` | `true` | `false` |
130-
| **M_Wireframe** | `true` | `false` | `false` | `true` | `false` | `false` | `false` | `false` |
140+
| Material Name | Tint | Texture | Normal | Emissive | Metallic | Specular | Roughness | Opacity | VTiling | UTiling | TextureSize |
141+
| :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- | :--- |
142+
| **M_Default_Masked_Lit** | `true` | `true` | `true` | `true` | `true` | `true` | `true` | `true*` | `true` | `true` | `false` |
143+
| **M_Default_Masked_Lit_WorldAligned** | `true` | `true` | `true` | `true` | `true` | `true` | `true` | `true*` | `true` | `true` | `true` |
144+
| **M_Default_Masked_Unlit** | `false` | `true` | `false` | `true` | `false` | `false` | `false` | `true*` | `true` | `true` | `false` |
145+
| **M_Default_Translucent_Lit** | `true` | `true` | `false` | `true` | `false` | `false` | `false` | `true` | `false` | `false` | `false` |
146+
| **M_Default_Translucent_Lit_Depth** | `true` | `true` | `false` | `true` | `false` | `false` | `false` | `true` | `false` | `false` | `false` |
147+
| **M_Default_Translucent_Lit_Decal** | `true` | `true` | `true` | `true` | `true` | `true` | `true` | `true` | `false` | `false` | `false` |
148+
| **M_Default_Translucent_Unlit** | `false` | `true` | `false` | `false` | `false` | `false` | `false` | `true` | `false` | `false` | `false` |
149+
| **M_Default_Translucent_Unlit_Depth** | `false` | `true` | `false` | `false` | `false` | `false` | `false` | `true` | `false` | `false` | `false` |
150+
| **M_Noise** | `false` | `false` | `false` | `true` | `true` | `true` | `true` | `false` | `false` | `false` | `false` |
151+
| **M_Wireframe** | `true` | `false` | `false` | `true` | `false` | `false` | `false` | `false` | `false` | `false` | `false` |
131152

132153
> **Masked Material's Opacity supports only Opacity Mask: `0` or `1`*
133154

versioned_docs/version-latest/core-concepts/server-manual/server-configuration.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ https://github.com/nanos-world/nanos-world-server/blob/main/Config.toml
4040
| **`query_port`** | Server query Port (UDP) |
4141
| **`announce`** | Whether to announce or not in the Server List |
4242
| **`max_tick_rate`** | Server Tick in Hz. How much the server will tick per second. We recommend leaving it 30 |
43+
| **`max_send_rate`** | Server send rate per client in MB/s. Limits bandwidth for each connected player |
4344
| **`log_level`** | Which Log level to output |
4445
| **`game_mode`** | [game-mode](/core-concepts/packages/packages-guide.md#game-mode) package to load - you can only load one game-mode at once. |
4546
| **`loading_screen`** | [loading-screen](/core-concepts/packages/loading-screen.md) package to load - you can only load one loading-screen at once. |
@@ -138,6 +139,8 @@ It is possible to override the Server Configuration with Command Line Parameters
138139
| `--auto_download` | *flag* | Automatically downloads Packages and Assets from Vault if needed |
139140
| `--use_vault_assets_lean` | *flag* | Only downloads the Asset Pack's .toml configuration files from Vault |
140141
| `--log_show_thread` | *flag* | Shows the current running thread of each outputted log |
142+
| `--max_tick_rate` | 15-120 | Sets the server max tick rate in Hz (ticks per second) |
143+
| `--max_send_rate` | 1-64 | Sets the server max send rate per client in MB/s |
141144
| `--enable_unsafe_libs` | *flag* | Enables executing the methods `os.execute`, `os.rename`, `os.remove`, `os.exit`, `os.getenv`, `os.tmpname`, `os.setlocale`, `dofile`, `loadfile` and all `io.*` on server side (**Caution**: those methods may allow malicious operations to run on your server, make sure you know what you are doing) |
142145

143146
:::tip

versioned_docs/version-latest/scripting-reference/classes/base-classes/pickable.mdx

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ description: Base class for all Pickables
44
tags: [base-class]
55
---
66

7-
import { Classes } from '@site/src/components/_nanos';
8-
import ThemedImage from '@theme/ThemedImage';
9-
107
<HeaderDeclaration type="Class" name="Pickable" />
118

129
They have special methods and events and are highlighted when looked at by a Character.
@@ -26,15 +23,11 @@ They have special methods and events and are highlighted when looked at by a Cha
2623

2724
nanos world provides a bunch of crosshair materials which can be used in Weapons/Pickables. You can of course create your own crosshair material and use those instead!
2825

29-
````mdx-code-block
30-
<ThemedImage
31-
alt="All available Crosshairs"
32-
sources={{
33-
light: '/img/docs/crosshairs_light.webp',
34-
dark: '/img/docs/crosshairs_dark.webp',
35-
}}
26+
<ImageDarkLight
27+
light_img="/img/docs/crosshairs_light.webp"
28+
dark_img="/img/docs/crosshairs_dark.webp"
29+
legend="All available Crosshairs"
3630
/>
37-
````
3831

3932

4033
#### List of crosshair materials included in the default asset pack

versioned_docs/version-latest/scripting-reference/classes/text-render.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ local my_text_render = TextRender(
2626

2727
If you desire your **TextRender** to be visible through walls, replace it's material with the nanos Default TranslucentDepth one!
2828

29-
`SetMaterial("nanos-world::M_Default_Translucent_Lit_Depth")`.
29+
`SetMaterial("nanos-world::M_Default_Translucent_Unlit_Depth")`.
3030

3131
You can also tweak it's color and other properties using the Material methods.
3232

versioned_docs/version-latest/welcome.mdx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ sidebar_position: 0
88
slug: /
99
---
1010

11-
import ThemedImage from '@theme/ThemedImage';
12-
1311

1412
Welcome to the new nanos world Official Documentation!
1513

0 commit comments

Comments
 (0)