1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00

Update to 1.5.1

This commit is contained in:
Sense101 2022-02-14 18:36:08 +00:00
commit d3542f826f
20 changed files with 277 additions and 189 deletions

View File

@ -5,7 +5,7 @@
This is the source code for shapez.io, an open source base building game inspired by Factorio. This is the source code for shapez.io, an open source base building game inspired by Factorio.
Your goal is to produce shapes by cutting, rotating, merging and painting parts of shapes. Your goal is to produce shapes by cutting, rotating, merging and painting parts of shapes.
- [Steam Page](https://steam.shapez.io) - [Steam Page](https://get.shapez.io/ghr)
- [Official Discord](https://discord.com/invite/HN7EVzV) <- _Highly recommended to join!_ - [Official Discord](https://discord.com/invite/HN7EVzV) <- _Highly recommended to join!_
- [Trello Board & Roadmap](https://trello.com/b/ISQncpJP/shapezio) - [Trello Board & Roadmap](https://trello.com/b/ISQncpJP/shapezio)
- [itch.io Page](https://tobspr.itch.io/shapezio) - [itch.io Page](https://tobspr.itch.io/shapezio)

View File

@ -316,7 +316,7 @@ async function writeFileSafe(filename, contents) {
} }
ipcMain.handle("fs-job", async (event, job) => { ipcMain.handle("fs-job", async (event, job) => {
const filenameSafe = job.filename.replace(/[^a-z\.\-_0-9]/i, "_"); const filenameSafe = job.filename.replace(/[^a-z\.\-_0-9]/gi, "_");
const fname = path.join(storePath, filenameSafe); const fname = path.join(storePath, filenameSafe);
switch (job.type) { switch (job.type) {
case "read": { case "read": {
@ -373,7 +373,7 @@ try {
mods = loadMods(); mods = loadMods();
console.log("Loaded", mods.length, "mods"); console.log("Loaded", mods.length, "mods");
} catch (ex) { } catch (ex) {
console.error("Failed ot load mods"); console.error("Failed to load mods");
dialog.showErrorBox("Failed to load mods:", ex); dialog.showErrorBox("Failed to load mods:", ex);
} }
@ -383,6 +383,7 @@ ipcMain.handle("get-mods", async () => {
steam.init(isDev); steam.init(isDev);
if (mods) { // Only allow achievements and puzzle DLC if no mods are loaded
if (mods.length === 0) {
steam.listen(); steam.listen();
} }

View File

@ -1,3 +1,39 @@
module.exports = function (source, map) { const oneExport = exp => {
return source + `\nexport let $s=(n,v)=>eval(n+"=v")`; return `${exp}=v`; // No checks needed
};
const twoExports = (exp1, exp2) => {
return `n=="${exp1}"?${exp1}=v:${exp2}=v`;
};
const multiExports = exps => {
exps = exps.map(exp => `case "${exp}":${exp}=v;break;`);
return `switch(n){${exps.toString().replaceAll(";,", ";")} }`;
};
const defineFnBody = source => {
const regex = /export (?:let|class) (?<name>\w+)/g;
let names = [...source.matchAll(regex)].map(n => n.groups.name);
switch (names.length) {
case 0:
return false;
case 1:
return oneExport(names[0]);
case 2:
return twoExports(names[0], names[1]);
default:
return multiExports(names);
}
};
/**
*
* @param {string} source
* @param {*} map
* @returns
*/
module.exports = function (source, map) {
const body = defineFnBody(source);
if (!body) return source;
return source + `\nexport const __$S__=(n,v)=>{${body}}`;
}; };

View File

@ -97,6 +97,7 @@ module.exports = ({ watch = false, standalone = false, chineseVersion = false, w
loader: path.resolve(__dirname, "mod.js"), loader: path.resolve(__dirname, "mod.js"),
}, },
], ],
],
}, },
{ {
test: /\.worker\.js$/, test: /\.worker\.js$/,

View File

@ -131,6 +131,7 @@ module.exports = ({
warnings: true, warnings: true,
}, },
mangle: { mangle: {
reserved: ["__$S__"],
eval: true, eval: true,
keep_classnames: !minifyNames, keep_classnames: !minifyNames,
keep_fnames: !minifyNames, keep_fnames: !minifyNames,
@ -210,6 +211,9 @@ module.exports = ({
test: /\.js$/, test: /\.js$/,
use: [ use: [
// "thread-loader", // "thread-loader",
{
loader: path.resolve(__dirname, "mod.js"),
},
{ {
loader: "babel-loader?cacheDirectory", loader: "babel-loader?cacheDirectory",
options: { options: {

View File

@ -7,8 +7,6 @@ Currently there are two options to develop mods for shapez.io:
1. Writing single file mods, which doesn't require any additional tools and can be loaded directly in the game 1. Writing single file mods, which doesn't require any additional tools and can be loaded directly in the game
2. Using the [create-shapezio-mod](https://www.npmjs.com/package/create-shapezio-mod) package. This package is still in development but allows you to pack multiple files and images into a single mod file, so you don't have to base64 encode your images etc. 2. Using the [create-shapezio-mod](https://www.npmjs.com/package/create-shapezio-mod) package. This package is still in development but allows you to pack multiple files and images into a single mod file, so you don't have to base64 encode your images etc.
Since the `create-shapezio-mod` package is still in development, the current recommended way is to write single file mods, which I'll explain now.
## Mod Developer Discord ## Mod Developer Discord
A great place to get help with mod development is the official [shapez.io modloader discord](https://discord.gg/xq5v8uyMue). A great place to get help with mod development is the official [shapez.io modloader discord](https://discord.gg/xq5v8uyMue).
@ -40,7 +38,7 @@ To get into shapez.io modding, I highly recommend checking out all of the exampl
| [mod_settings.js](mod_settings.js) | Shows a dialog counting how often the mod has been launched | Reading and storing mod settings | | [mod_settings.js](mod_settings.js) | Shows a dialog counting how often the mod has been launched | Reading and storing mod settings |
| [storing_data_in_savegame.js](storing_data_in_savegame.js) | Shows how to store custom (structured) data in the savegame | Storing custom data in savegame | | [storing_data_in_savegame.js](storing_data_in_savegame.js) | Shows how to store custom (structured) data in the savegame | Storing custom data in savegame |
| [modify_existing_building.js](modify_existing_building.js) | Makes the rotator building always unlocked and adds a new statistic to the building panel | Modifying a builtin building, replacing builtin methods | | [modify_existing_building.js](modify_existing_building.js) | Makes the rotator building always unlocked and adds a new statistic to the building panel | Modifying a builtin building, replacing builtin methods |
| [modify_ui.js](modify_ui.js) | Shows how to add custom IU elements to builtin game states (the Main Menu in this case) | Extending builtin UI states, Adding CSS | | [modify_ui.js](modify_ui.js) | Shows how to add custom UI elements to builtin game states (the Main Menu in this case) | Extending builtin UI states, Adding CSS |
| [pasting.js](pasting.js) | Shows a dialog when pasting text in the game | Listening to paste events | | [pasting.js](pasting.js) | Shows a dialog when pasting text in the game | Listening to paste events |
| [sandbox.js](sandbox.js) | Makes blueprints free and always unlocked | Overriding builtin methods | | [sandbox.js](sandbox.js) | Makes blueprints free and always unlocked | Overriding builtin methods |

View File

@ -120,19 +120,21 @@ class Mod extends shapez.Mod {
this.modInterface.registerSprite("sprites/fluids/water.png", RESOURCES["water.png"]); this.modInterface.registerSprite("sprites/fluids/water.png", RESOURCES["water.png"]);
// Make the item spawn on the map // Make the item spawn on the map
this.modInterface.runAfterMethod(shapez.MapChunk, "generatePatches", function ({ this.modInterface.runAfterMethod(
rng, shapez.MapChunk,
chunkCenter, "generatePatches",
distanceToOriginInChunks, function ({ rng, chunkCenter, distanceToOriginInChunks }) {
}) { // Generate a simple patch
// Generate a simple patch // ALWAYS use rng and NEVER use Math.random() otherwise the map will look different
// ALWAYS use rng and NEVER use Math.random() otherwise the map will look different // every time you resume the game
// every time you resume the game if (rng.next() > 0.8) {
if (rng.next() > 0.8) { const fluidType = rng.choice(Array.from(Object.keys(enumFluidType)));
const fluidType = rng.choice(Array.from(Object.keys(enumFluidType))); this.internalGeneratePatch(rng, 4, FLUID_ITEM_SINGLETONS[fluidType]);
this.internalGeneratePatch(rng, 4, FLUID_ITEM_SINGLETONS[fluidType]); }
} }
}); );
this.modInterface.registerItem(FluidItem, itemData => FLUID_ITEM_SINGLETONS[itemData]);
} }
} }

View File

@ -15,7 +15,7 @@ export class BaseItem extends BasicSerializableObject {
return "base_item"; return "base_item";
} }
/** @returns {object} */ /** @returns {import("../savegame/serialization").Schema} */
static getSchema() { static getSchema() {
return {}; return {};
} }

View File

@ -2,8 +2,6 @@ import { types } from "../../savegame/serialization";
import { BaseItem } from "../base_item"; import { BaseItem } from "../base_item";
import { Component } from "../component"; import { Component } from "../component";
import { typeItemSingleton } from "../item_resolver"; import { typeItemSingleton } from "../item_resolver";
import { ColorItem } from "../items/color_item";
import { ShapeItem } from "../items/shape_item";
export class StorageComponent extends Component { export class StorageComponent extends Component {
static getId() { static getId() {

View File

@ -15,6 +15,11 @@ import trim from "trim";
import { enumColors } from "../../colors"; import { enumColors } from "../../colors";
import { ShapeDefinition } from "../../shape_definition"; import { ShapeDefinition } from "../../shape_definition";
/** @type {{
* [x: string]: (entity: Entity) => BaseItem
* }} */
export const MODS_ADDITIONAL_CONSTANT_SIGNAL_RESOLVER = {};
export class HUDConstantSignalEdit extends BaseHUDPart { export class HUDConstantSignalEdit extends BaseHUDPart {
initialize() { initialize() {
this.root.camera.downPreHandler.add(this.downPreHandler, this); this.root.camera.downPreHandler.add(this.downPreHandler, this);
@ -190,6 +195,10 @@ export class HUDConstantSignalEdit extends BaseHUDPart {
code = trim(code); code = trim(code);
const codeLower = code.toLowerCase(); const codeLower = code.toLowerCase();
if (MODS_ADDITIONAL_CONSTANT_SIGNAL_RESOLVER[codeLower]) {
return MODS_ADDITIONAL_CONSTANT_SIGNAL_RESOLVER[codeLower].apply(this, [entity]);
}
if (enumColors[codeLower]) { if (enumColors[codeLower]) {
return COLOR_ITEM_SINGLETONS[codeLower]; return COLOR_ITEM_SINGLETONS[codeLower];
} }

View File

@ -4,6 +4,8 @@ import { BooleanItem, BOOL_TRUE_SINGLETON, BOOL_FALSE_SINGLETON } from "./items/
import { ShapeItem } from "./items/shape_item"; import { ShapeItem } from "./items/shape_item";
import { ColorItem, COLOR_ITEM_SINGLETONS } from "./items/color_item"; import { ColorItem, COLOR_ITEM_SINGLETONS } from "./items/color_item";
export const MODS_ADDITIONAL_ITEMS = {};
/** /**
* Resolves items so we share instances * Resolves items so we share instances
* @param {import("../savegame/savegame_serializer").GameRoot} root * @param {import("../savegame/savegame_serializer").GameRoot} root
@ -13,6 +15,10 @@ export function itemResolverSingleton(root, data) {
const itemType = data.$; const itemType = data.$;
const itemData = data.data; const itemData = data.data;
if (MODS_ADDITIONAL_ITEMS[itemType]) {
return MODS_ADDITIONAL_ITEMS[itemType](itemData);
}
switch (itemType) { switch (itemType) {
case BooleanItem.getId(): { case BooleanItem.getId(): {
return itemData ? BOOL_TRUE_SINGLETON : BOOL_FALSE_SINGLETON; return itemData ? BOOL_TRUE_SINGLETON : BOOL_FALSE_SINGLETON;

View File

@ -7,6 +7,15 @@ import { isTrueItem } from "../items/boolean_item";
import { ColorItem, COLOR_ITEM_SINGLETONS } from "../items/color_item"; import { ColorItem, COLOR_ITEM_SINGLETONS } from "../items/color_item";
import { MapChunkView } from "../map_chunk_view"; import { MapChunkView } from "../map_chunk_view";
/** @type {{
* [x: string]: (item: BaseItem) => BaseItem
* }} */
export const MODS_ADDITIONAL_DISPLAY_ITEM_RESOLVER = {};
/** @type {{
* [x: string]: (parameters: import("../../core/draw_parameters").DrawParameters, entity: import("../entity").Entity, item: BaseItem) => BaseItem
* }} */
export const MODS_ADDITIONAL_DISPLAY_ITEM_DRAW = {};
export class DisplaySystem extends GameSystem { export class DisplaySystem extends GameSystem {
constructor(root) { constructor(root) {
super(root); super(root);
@ -32,6 +41,10 @@ export class DisplaySystem extends GameSystem {
return null; return null;
} }
if (MODS_ADDITIONAL_DISPLAY_ITEM_RESOLVER[value.getItemType()]) {
return MODS_ADDITIONAL_DISPLAY_ITEM_RESOLVER[value.getItemType()].apply(this, [value]);
}
switch (value.getItemType()) { switch (value.getItemType()) {
case "boolean": { case "boolean": {
return isTrueItem(value) ? COLOR_ITEM_SINGLETONS[enumColors.white] : null; return isTrueItem(value) ? COLOR_ITEM_SINGLETONS[enumColors.white] : null;
@ -74,6 +87,14 @@ export class DisplaySystem extends GameSystem {
continue; continue;
} }
if (MODS_ADDITIONAL_DISPLAY_ITEM_DRAW[value.getItemType()]) {
return MODS_ADDITIONAL_DISPLAY_ITEM_DRAW[value.getItemType()].apply(this, [
parameters,
entity,
value,
]);
}
const origin = entity.components.StaticMapEntity.origin; const origin = entity.components.StaticMapEntity.origin;
if (value.getItemType() === "color") { if (value.getItemType() === "color") {
this.displaySprites[/** @type {ColorItem} */ (value).color].drawCachedCentered( this.displaySprites[/** @type {ColorItem} */ (value).color].drawCachedCentered(

View File

@ -17,7 +17,7 @@ import { Loader } from "../core/loader";
import { LANGUAGES } from "../languages"; import { LANGUAGES } from "../languages";
import { matchDataRecursive, T } from "../translations"; import { matchDataRecursive, T } from "../translations";
import { gBuildingVariants, registerBuildingVariant } from "../game/building_codes"; import { gBuildingVariants, registerBuildingVariant } from "../game/building_codes";
import { gComponentRegistry, gMetaBuildingRegistry } from "../core/global_registries"; import { gComponentRegistry, gItemRegistry, gMetaBuildingRegistry } from "../core/global_registries";
import { MODS_ADDITIONAL_SHAPE_MAP_WEIGHTS } from "../game/map_chunk"; import { MODS_ADDITIONAL_SHAPE_MAP_WEIGHTS } from "../game/map_chunk";
import { MODS_ADDITIONAL_SYSTEMS } from "../game/game_system_manager"; import { MODS_ADDITIONAL_SYSTEMS } from "../game/game_system_manager";
import { MOD_CHUNK_DRAW_HOOKS } from "../game/map_chunk_view"; import { MOD_CHUNK_DRAW_HOOKS } from "../game/map_chunk_view";
@ -28,6 +28,8 @@ import { ModMetaBuilding } from "./mod_meta_building";
import { BaseHUDPart } from "../game/hud/base_hud_part"; import { BaseHUDPart } from "../game/hud/base_hud_part";
import { Vector } from "../core/vector"; import { Vector } from "../core/vector";
import { GameRoot } from "../game/root"; import { GameRoot } from "../game/root";
import { BaseItem } from "../game/base_item";
import { MODS_ADDITIONAL_ITEMS } from "../game/item_resolver";
/** /**
* @typedef {{new(...args: any[]): any, prototype: any}} constructable * @typedef {{new(...args: any[]): any, prototype: any}} constructable
@ -190,6 +192,15 @@ export class ModInterface {
} }
} }
/**
* @param {typeof BaseItem} item
* @param {(itemData: any) => BaseItem} resolver
*/
registerItem(item, resolver) {
gItemRegistry.register(item);
MODS_ADDITIONAL_ITEMS[item.getId()] = resolver;
}
/** /**
* *
* @param {typeof Component} component * @param {typeof Component} component
@ -583,8 +594,8 @@ export class ModInterface {
* @param {string=} payload.name * @param {string=} payload.name
* @param {string=} payload.description * @param {string=} payload.description
* @param {Vector=} payload.dimensions * @param {Vector=} payload.dimensions
* @param {(root: GameRoot) => [string, string][]} payload.additionalStatistics * @param {(root: GameRoot) => [string, string][]=} payload.additionalStatistics
* @param {(root: GameRoot) => boolean[]} payload.isUnlocked * @param {(root: GameRoot) => boolean[]=} payload.isUnlocked
*/ */
addVariantToExistingBuilding(metaClass, variant, payload) { addVariantToExistingBuilding(metaClass, variant, payload) {
if (!payload.rotationVariants) { if (!payload.rotationVariants) {
@ -660,9 +671,14 @@ export class ModInterface {
})); }));
} }
// Register our variant finally // Register our variant finally, with rotation variants
payload.rotationVariants.forEach(rotationVariant => payload.rotationVariants.forEach(rotationVariant =>
shapez.registerBuildingVariant(internalId, metaClass, variant, rotationVariant) shapez.registerBuildingVariant(
rotationVariant ? internalId + "-" + rotationVariant : internalId,
metaClass,
variant,
rotationVariant
)
); );
} }
} }

View File

@ -112,7 +112,7 @@ export class ModLoader {
// @ts-ignore // @ts-ignore
const module = modules(key); const module = modules(key);
for (const member in module) { for (const member in module) {
if (member === "default" || member === "$s") { if (member === "default" || member === "__$S__") {
// Setter // Setter
continue; continue;
} }
@ -125,7 +125,7 @@ export class ModLoader {
return module[member]; return module[member];
}, },
set(v) { set(v) {
module["$s"](member, v); module.__$S__(member, v);
}, },
}); });
} }

View File

@ -192,7 +192,7 @@ export class BasicSerializableObject {
return schema; return schema;
} }
/** @returns {object} */ /** @returns {object | string | number} */
serialize() { serialize() {
return serializeSchema( return serializeSchema(
this, this,

View File

@ -77,9 +77,9 @@ mainMenu:
puzzleDlcWishlist: Přidejte si nyní na seznam přání! puzzleDlcWishlist: Přidejte si nyní na seznam přání!
puzzleDlcViewNow: Zobrazit DLC puzzleDlcViewNow: Zobrazit DLC
mods: mods:
title: Active Mods title: Aktivní módy
warningPuzzleDLC: Playing the Puzzle DLC is not possible with mods. Please warningPuzzleDLC: Nelze hrát Puzzle DLC společně s módy. Prosím
disable all mods to play the DLC. deaktivujte všechny módy, abyste mohli hrát DLC.
dialogs: dialogs:
buttons: buttons:
ok: OK ok: OK
@ -257,12 +257,12 @@ dialogs:
title: Smazat puzzle? title: Smazat puzzle?
desc: Jste si jisti, že chcete smazat '<title>'? Tato akce je nevratná! desc: Jste si jisti, že chcete smazat '<title>'? Tato akce je nevratná!
modsDifference: modsDifference:
title: Mod Warning title: Varování o módech
desc: The currently installed mods differ from the mods the savegame was created desc: Aktuálně nainstalované módy se liší od módů, se kterými byla uložená hra
with. This might cause the savegame to break or not load at all. Are vytvořena. To může způsobit, že se uložená hra rozbije nebo se vůbec nenačte.
you sure you want to continue? Jste si jisti, že chcete pokračovat?
missingMods: Missing Mods missingMods: Chybějící módy
newMods: Newly installed Mods newMods: Nově nainstalované módy
ingame: ingame:
keybindingsOverlay: keybindingsOverlay:
moveMap: Posun mapy moveMap: Posun mapy
@ -468,7 +468,7 @@ ingame:
titleRatingDesc: Vaše hodnocení nám pomůže podat vám v budoucnu lepší návrhy titleRatingDesc: Vaše hodnocení nám pomůže podat vám v budoucnu lepší návrhy
continueBtn: Hrát dál continueBtn: Hrát dál
menuBtn: Menu menuBtn: Menu
nextPuzzle: Next Puzzle nextPuzzle: Další puzzle
puzzleMetadata: puzzleMetadata:
author: Autor author: Autor
shortKey: Krátký klíč shortKey: Krátký klíč
@ -1007,12 +1007,12 @@ settings:
title: Velikost zdrojů na mapě title: Velikost zdrojů na mapě
description: Určuje velikost ikon tvarů na náhledu mapy (při oddálení). description: Určuje velikost ikon tvarů na náhledu mapy (při oddálení).
shapeTooltipAlwaysOn: shapeTooltipAlwaysOn:
title: Shape Tooltip - Show Always title: Popisek tvaru Zobrazit vždy
description: Whether to always show the shape tooltip when hovering buildings, description: Určuje, zda se má vždy zobrazovat nápověda tvaru při najetí na budovy,
instead of having to hold 'ALT'. místo toho, abyste museli držet „ALT“.
rangeSliderPercentage: <amount> % rangeSliderPercentage: <amount> %
tickrateHz: <amount> Hz tickrateHz: <amount> Hz
newBadge: New! newBadge: Nové!
keybindings: keybindings:
title: Klávesové zkratky title: Klávesové zkratky
hint: "Tip: Nezapomeňte používat CTRL, SHIFT a ALT! Díky nim můžete měnit způsob hint: "Tip: Nezapomeňte používat CTRL, SHIFT a ALT! Díky nim můžete měnit způsob
@ -1026,7 +1026,7 @@ keybindings:
massSelect: Hromadný výběr massSelect: Hromadný výběr
buildings: Zkratky pro stavbu buildings: Zkratky pro stavbu
placementModifiers: Modifikátory umístění placementModifiers: Modifikátory umístění
mods: Provided by Mods mods: Poskytnuto z módů
mappings: mappings:
confirm: Potvrdit confirm: Potvrdit
back: Zpět back: Zpět
@ -1095,7 +1095,7 @@ keybindings:
goal_acceptor: Přijemce cílů goal_acceptor: Přijemce cílů
block: Blok block: Blok
massSelectClear: Vymazat pásy massSelectClear: Vymazat pásy
showShapeTooltip: Show shape output tooltip showShapeTooltip: Zobrazit popisek výstupu tvaru
about: about:
title: O hře title: O hře
body: >- body: >-
@ -1233,24 +1233,24 @@ puzzleMenu:
easy: Lehká easy: Lehká
medium: Střední medium: Střední
hard: Těžká hard: Těžká
unknown: Unrated unknown: Nehodnoceno
dlcHint: Již jste toto DLC zakoupili? Ujistěte se, že je aktivováno kliknutím dlcHint: Již jste toto DLC zakoupili? Ujistěte se, že je aktivováno kliknutím
pravého tlačítka na shapez.io ve své knihovně, vybráním Vlastnosti > pravého tlačítka na shapez.io ve své knihovně, vybráním Vlastnosti >
DLC. DLC.
search: search:
action: Search action: Hledat
placeholder: Enter a puzzle or author name placeholder: Vložte název puzzlu nebo jméno autora
includeCompleted: Include Completed includeCompleted: Včetně dokončených
difficulties: difficulties:
any: Any Difficulty any: Jakákoli obtížnost
easy: Easy easy: Lehká
medium: Medium medium: Střední
hard: Hard hard: Těžká
durations: durations:
any: Any Duration any: Jakákoli doba trvání
short: Short (< 2 min) short: Krátká (< 2 min)
medium: Normal medium: Normální
long: Long (> 10 min) long: Dlouhá (> 10 min)
backendErrors: backendErrors:
ratelimit: Provádíte své akce příliš často. Počkejte prosím. ratelimit: Provádíte své akce příliš často. Počkejte prosím.
invalid-api-key: Komunikace s back-endem se nezdařila, prosím zkuste invalid-api-key: Komunikace s back-endem se nezdařila, prosím zkuste
@ -1278,19 +1278,19 @@ backendErrors:
přesto chcete odstranit, kontaktujte nás prosím na support@shapez.io! přesto chcete odstranit, kontaktujte nás prosím na support@shapez.io!
no-permission: K provedení této akce nemáte oprávnění. no-permission: K provedení této akce nemáte oprávnění.
mods: mods:
title: Mods title: Módy
author: Author author: Autor
version: Version version: Verze
modWebsite: Website modWebsite: Webová stránka
openFolder: Open Mods Folder openFolder: Otevřít složku s módy
folderOnlyStandalone: Opening the mod folder is only possible when running the standalone. folderOnlyStandalone: Otevření složky s módy je možné pouze v samostatné verzi hry.
browseMods: Browse Mods browseMods: Procházet módy
modsInfo: To install and manage mods, copy them to the mods folder within the modsInfo: Chcete-li nainstalovat a spravovat módy, zkopírujte je do složky mods
game directory. You can also use the 'Open Mods Folder' button on the v adresáři hry. Můžete také použít tlačítko 'Otevřít složku s módy'
top right. vpravo nahoře.
noModSupport: You need the standalone version on Steam to install mods. noModSupport: K instalaci módů potřebujete samostatnou verzi hry na Steamu.
togglingComingSoon: togglingComingSoon:
title: Coming Soon title: Již brzy
description: Enabling or disabling mods is currently only possible by copying description: Aktivace či deaktivace módů je v současné době možná pouze kopírováním
the mod file from or to the mods/ folder. However, being able to souboru módu z nebo do mods/ složky. Nicméně, možnost správy módů přímo
toggle them here is planned for a future update! ze hry je plánována pro budoucí aktualizaci!

View File

@ -454,8 +454,9 @@ ingame:
clearItems: Supprimer les objets clearItems: Supprimer les objets
share: Partager share: Partager
report: Signaler report: Signaler
clearBuildings: Effacer les batiments clearBuildings: Effacer les Constructions
resetPuzzle: Reset Puzzle resetPuzzle: Réinitialiser le Puzzle
puzzleEditorControls: puzzleEditorControls:
title: Créateur de Puzzles title: Créateur de Puzzles
instructions: instructions:
@ -475,6 +476,7 @@ ingame:
- 6. Une fois publié <strong>tous les batiments seront - 6. Une fois publié <strong>tous les batiments seront
supprimés</strong> sauf les générateurs et les récepteurs - C'est supprimés</strong> sauf les générateurs et les récepteurs - C'est
la partie ou le joueur est censé se débrouiller seul :) la partie ou le joueur est censé se débrouiller seul :)
puzzleCompletion: puzzleCompletion:
title: Puzzle Résolu ! title: Puzzle Résolu !
titleLike: "Cliquez sur le cœur si vous avez aimé le Puzzle:" titleLike: "Cliquez sur le cœur si vous avez aimé le Puzzle:"
@ -485,7 +487,7 @@ ingame:
nextPuzzle: Puzzle suivant nextPuzzle: Puzzle suivant
puzzleMetadata: puzzleMetadata:
author: Auteur author: Auteur
shortKey: Clée courte shortKey: Raccourci clavier
rating: Niveau de difficulté rating: Niveau de difficulté
averageDuration: Durée moyenne averageDuration: Durée moyenne
completionRate: Taux de réussite completionRate: Taux de réussite
@ -1073,7 +1075,7 @@ settings:
visible en dézoomant. visible en dézoomant.
shapeTooltipAlwaysOn: shapeTooltipAlwaysOn:
title: Info-bulle de forme - Toujours afficher title: Info-bulle de forme - Toujours afficher
description: Si activé une info-bule s'affiche quand vous survolez un batiment description: Si activé, une info-bule s'affiche quand vous survolez un batiment
sinon il faut maintenir 'ALT'. sinon il faut maintenir 'ALT'.
tickrateHz: <amount> Hz tickrateHz: <amount> Hz
newBadge: New! newBadge: New!
@ -1152,10 +1154,10 @@ keybindings:
placementDisableAutoOrientation: Désactiver lorientation automatique placementDisableAutoOrientation: Désactiver lorientation automatique
placeMultiple: Rester en mode placement placeMultiple: Rester en mode placement
placeInverse: Inverser lorientation des convoyeurs placeInverse: Inverser lorientation des convoyeurs
rotateToUp: "Rotate: Point Up" rotateToUp: "Rotation : pointer vers le haut"
rotateToDown: "Rotate: Point Down" rotateToDown: "Rotation : pointer vers le bas"
rotateToRight: "Rotate: Point Right" rotateToRight: "Rotation : pointer vers le droite"
rotateToLeft: "Rotate: Point Left" rotateToLeft: "Rotation : pointer vers le gauche"
constant_producer: Producteur Constant constant_producer: Producteur Constant
goal_acceptor: Récepteur goal_acceptor: Récepteur
block: Bloc block: Bloc
@ -1311,16 +1313,16 @@ puzzleMenu:
un clic droit sur shapez.io dans votre bibliothèque, en sélectionnant un clic droit sur shapez.io dans votre bibliothèque, en sélectionnant
Propriétés > DLC. Propriétés > DLC.
search: search:
action: Chercher action: Recherche
placeholder: Entrez un puzzle ou un nom d'auteur placeholder: Entrez un puzzle ou un nom d'auteur
includeCompleted: Inclure les puzzles terminés includeCompleted: Inclure terminé
difficulties: difficulties:
any: Toutes difficultés any: Toute difficulté
easy: Facile easy: Facile
medium: Moyen medium: Medium
hard: Difficile hard: Dificile
durations: durations:
any: Toutes durées any: Toute durée
short: Court (< 2 min) short: Court (< 2 min)
medium: Normal medium: Normal
long: Long (> 10 min) long: Long (> 10 min)
@ -1353,18 +1355,17 @@ backendErrors:
no-permission: Vous n'êtes pas autorisé à effectuer cette action. no-permission: Vous n'êtes pas autorisé à effectuer cette action.
mods: mods:
title: Mods title: Mods
author: Author author: Auteur
version: Version version: Version
modWebsite: Website modWebsite: Page web
openFolder: Open Mods Folder openFolder: Ouvrir le dossier des mods
folderOnlyStandalone: Opening the mod folder is only possible when running the standalone. folderOnlyStandalone: Ouvrir le dossier des mods est uniquement possible avec la version complète
browseMods: Browse Mods browseMods: Chercher les Mods
modsInfo: To install and manage mods, copy them to the mods folder within the modsInfo: Pour installer et gérer les mods, copier-les dans le dossier Mods dans le répertoire du jeu.
game directory. You can also use the 'Open Mods Folder' button on the Vous pouvez aussi utiliser le bouton 'Ouvrir le dossier des Mods' en haut à droite
top right. noModSupport: Vous avez besoin de la version complète sur Steam pour installer des mods.
noModSupport: You need the standalone version on Steam to install mods.
togglingComingSoon: togglingComingSoon:
title: Coming Soon title: Bientôt disponible
description: Enabling or disabling mods is currently only possible by copying description: Activer ou désactiver un mod est pour le moment possible qu'en
the mod file from or to the mods/ folder. However, being able to copiant le fichier du mod depuis ou vers le dossier des mods. Cependant,
toggle them here is planned for a future update! activer ou désactiver un mod est prévu pour une mise à jour future !

View File

@ -81,9 +81,9 @@ mainMenu:
puzzleDlcWishlist: Voeg nu toe aan je verlanglijst! puzzleDlcWishlist: Voeg nu toe aan je verlanglijst!
puzzleDlcViewNow: Bekijk DLC puzzleDlcViewNow: Bekijk DLC
mods: mods:
title: Active Mods title: Actieve Mods
warningPuzzleDLC: Playing the Puzzle DLC is not possible with mods. Please warningPuzzleDLC: Het spelen van de Puzzle DLC is niet mogelijk met mods. Schakel
disable all mods to play the DLC. alsjeblieft alle mods uit om de DLC te spelen.
dialogs: dialogs:
buttons: buttons:
ok: OK ok: OK
@ -270,12 +270,12 @@ dialogs:
desc: Weet je zeker dat je '<title>' wilt verwijderen? Dit kan niet ongedaan desc: Weet je zeker dat je '<title>' wilt verwijderen? Dit kan niet ongedaan
gemaakt worden! gemaakt worden!
modsDifference: modsDifference:
title: Mod Warning title: Mod Waarschuwing
desc: The currently installed mods differ from the mods the savegame was created desc: The currently installed mods differ from the mods the savegame was created
with. This might cause the savegame to break or not load at all. Are with. This might cause the savegame to break or not load at all. Are
you sure you want to continue? you sure you want to continue?
missingMods: Missing Mods missingMods: Missende Mods
newMods: Newly installed Mods newMods: Nieuw geïnstalleerde Mods
ingame: ingame:
keybindingsOverlay: keybindingsOverlay:
moveMap: Beweeg rond de wereld moveMap: Beweeg rond de wereld
@ -1188,10 +1188,8 @@ tips:
- Knippers knippen altijd verticaal, ongeacht hun oriëntatie. - Knippers knippen altijd verticaal, ongeacht hun oriëntatie.
- De opslagbuffer geeft prioriteit aan de eerste uitvoer. - De opslagbuffer geeft prioriteit aan de eerste uitvoer.
- Investeer tijd om herhaalbare ontwerpen te maken - het is het waard! - Investeer tijd om herhaalbare ontwerpen te maken - het is het waard!
- Invest time to build repeatable designs - it's worth it!
- Je kunt <b>ALT</b> ingedrukt houden om de richting van de geplaatste - Je kunt <b>ALT</b> ingedrukt houden om de richting van de geplaatste
lopende banden om te keren. lopende banden om te keren.
- You can hold <b>ALT</b> to invert the direction of placed belts.
- Vormontginningen die verder van de HUB verwijderd zijn, zijn complexer. - Vormontginningen die verder van de HUB verwijderd zijn, zijn complexer.
- Machines hebben een beperkte snelheid, verdeel ze voor maximale - Machines hebben een beperkte snelheid, verdeel ze voor maximale
efficiëntie. efficiëntie.
@ -1214,7 +1212,6 @@ tips:
mannen. mannen.
- Maak een aparte blueprint fabriek. Ze zijn belangrijk voor modules. - Maak een aparte blueprint fabriek. Ze zijn belangrijk voor modules.
- Bekijk de kleurenmixer eens wat beter, en je vragen worden beantwoord. - Bekijk de kleurenmixer eens wat beter, en je vragen worden beantwoord.
- Have a closer look at the color mixer, and your questions will be answered.
- Use <b>CTRL</b> + Click to select an area. - Use <b>CTRL</b> + Click to select an area.
- Met het speldpictogram naast elke vorm in de upgradelijst zet deze vast op - Met het speldpictogram naast elke vorm in de upgradelijst zet deze vast op
het scherm. het scherm.
@ -1234,7 +1231,6 @@ tips:
- Druk twee keer op F4 om de tegel van je muis en camera weer te geven. - Druk twee keer op F4 om de tegel van je muis en camera weer te geven.
- Je kan aan de linkerkant op een vastgezette vorm klikken om deze los te - Je kan aan de linkerkant op een vastgezette vorm klikken om deze los te
maken. maken.
- You can click a pinned shape on the left side to unpin it.
puzzleMenu: puzzleMenu:
play: Spelen play: Spelen
edit: Bewerken edit: Bewerken
@ -1280,21 +1276,21 @@ puzzleMenu:
easy: Makkelijk easy: Makkelijk
medium: Medium medium: Medium
hard: Moeilijk hard: Moeilijk
unknown: Unrated unknown: Onbeoordeeld
search: search:
action: Search action: Zoeken
placeholder: Enter a puzzle or author name placeholder: Voer een puzzel- of auteursnaam in
includeCompleted: Include Completed includeCompleted: Inclusief Voltooide
difficulties: difficulties:
any: Any Difficulty any: Elke Moeilijkheidsgraad
easy: Easy easy: Makkelijk
medium: Medium medium: Medium
hard: Hard hard: Moeilijk
durations: durations:
any: Any Duration any: Elke Tijd
short: Short (< 2 min) short: Kort (< 2 min)
medium: Normal medium: Normaal
long: Long (> 10 min) long: Lang (> 10 min)
backendErrors: backendErrors:
ratelimit: Je voert je handelingen te vaak uit. Wacht alstublieft even. ratelimit: Je voert je handelingen te vaak uit. Wacht alstublieft even.
invalid-api-key: Kan niet communiceren met de servers, probeer alstublieft het invalid-api-key: Kan niet communiceren met de servers, probeer alstublieft het
@ -1323,18 +1319,17 @@ backendErrors:
no-permission: Je bent niet gemachtigd om deze actie uit te voeren. no-permission: Je bent niet gemachtigd om deze actie uit te voeren.
mods: mods:
title: Mods title: Mods
author: Author author: Auteur
version: Version version: Versie
modWebsite: Website modWebsite: Website
openFolder: Open Mods Folder openFolder: Open Mods Map
folderOnlyStandalone: Opening the mod folder is only possible when running the standalone. folderOnlyStandalone: Het openen van de mod map is alleen mogelijk bij het gebruiken van de zelfstandige versie.
browseMods: Browse Mods browseMods: Door mods bladeren
modsInfo: To install and manage mods, copy them to the mods folder within the modsInfo: Om mods te installeren en te beheren, kopieert u ze naar de map mods in de
game directory. You can also use the 'Open Mods Folder' button on the spel map. U kunt ook de knop 'Open Mods Map' gebruiken rechtsboven.
top right. noModSupport: Je hebt de zelfstandige versie op Steam nodig om mods te installeren.
noModSupport: You need the standalone version on Steam to install mods.
togglingComingSoon: togglingComingSoon:
title: Coming Soon title: Binnenkort Beschikbaar
description: Enabling or disabling mods is currently only possible by copying description: Mods in- of uitschakelen is momenteel alleen mogelijk door
the mod file from or to the mods/ folder. However, being able to het mod-bestand van of naar de mods map te kopiëren. Echter, in staat zijn om
toggle them here is planned for a future update! ze hier in- of uitteschakelen is gepland voor een toekomstige update!

View File

@ -95,9 +95,9 @@ dialogs:
viewUpdate: Посмотреть Обновление viewUpdate: Посмотреть Обновление
showUpgrades: Показать Улучшения showUpgrades: Показать Улучшения
showKeybindings: Показать Управление (Привязку клавиш) showKeybindings: Показать Управление (Привязку клавиш)
retry: Retry retry: Заново
continue: Continue continue: Подолжить
playOffline: Play Offline playOffline: Играть оффлайн
importSavegameError: importSavegameError:
title: Ошибка импортирования title: Ошибка импортирования
text: Не удалось импортировать сохранение игры. text: Не удалось импортировать сохранение игры.
@ -245,7 +245,7 @@ dialogs:
puzzleShare: puzzleShare:
title: Короткий ключ скопирован title: Короткий ключ скопирован
desc: Короткий ключ головоломки (<key>) был скопирован в буфер обмена! Он может desc: Короткий ключ головоломки (<key>) был скопирован в буфер обмена! Он может
быть введен в меню головолом для доступа к головоломке. быть введен в меню головоломок для доступа к головоломке.
puzzleReport: puzzleReport:
title: Жалоба на головоломку title: Жалоба на головоломку
options: options:
@ -292,7 +292,7 @@ ingame:
clearSelection: Отменить clearSelection: Отменить
pipette: Пипетка pipette: Пипетка
switchLayers: Переключить слои switchLayers: Переключить слои
clearBelts: Clear belts clearBelts: Очистить конвейеры
colors: colors:
red: Красный red: Красный
green: Зеленый green: Зеленый
@ -451,8 +451,8 @@ ingame:
clearItems: Очистить предметы clearItems: Очистить предметы
share: Поделиться share: Поделиться
report: Пожаловаться report: Пожаловаться
clearBuildings: Clear Buildings clearBuildings: Очистить постройки
resetPuzzle: Reset Puzzle resetPuzzle: Сброс головоломки
puzzleEditorControls: puzzleEditorControls:
title: Редактор головоломок title: Редактор головоломок
instructions: instructions:
@ -479,7 +479,7 @@ ingame:
titleRatingDesc: Ваша оценка поможет мне в будущем делать вам лучшие предложения titleRatingDesc: Ваша оценка поможет мне в будущем делать вам лучшие предложения
continueBtn: Продолжить игру continueBtn: Продолжить игру
menuBtn: Меню menuBtn: Меню
nextPuzzle: Next Puzzle nextPuzzle: Следующая головоломка
puzzleMetadata: puzzleMetadata:
author: Автор author: Автор
shortKey: Короткий ключ shortKey: Короткий ключ
@ -709,8 +709,8 @@ buildings:
description: Доставьте фигуру в приемник, чтобы установить их в качестве цели. description: Доставьте фигуру в приемник, чтобы установить их в качестве цели.
block: block:
default: default:
name: Block name: Блок
description: Allows you to block a tile. description: Блокирует это место от установки чего-либо
storyRewards: storyRewards:
reward_cutter_and_trash: reward_cutter_and_trash:
title: Разрезание Фигур title: Разрезание Фигур
@ -1044,11 +1044,11 @@ settings:
title: Размер ресурсов на карте title: Размер ресурсов на карте
description: Устанавливает размер фигур на карте (когда вид достаточно отдалён). description: Устанавливает размер фигур на карте (когда вид достаточно отдалён).
shapeTooltipAlwaysOn: shapeTooltipAlwaysOn:
title: Shape Tooltip - Show Always
description: Whether to always show the shape tooltip when hovering buildings, title: Показывать подсказку фигуры
instead of having to hold 'ALT'. description: Показывать ли подсказку фигуры всегда или только при удержании 'ALT'.
tickrateHz: <amount> Hz tickrateHz: <amount> Гц
newBadge: New! newBadge: Новое!
keybindings: keybindings:
title: Настройки управления title: Настройки управления
hint: "Подсказка: Обязательно используйте CTRL, SHIFT и ALT! Они дают разные hint: "Подсказка: Обязательно используйте CTRL, SHIFT и ALT! Они дают разные
@ -1131,7 +1131,7 @@ keybindings:
goal_acceptor: Приёмник предметов goal_acceptor: Приёмник предметов
block: Блок block: Блок
massSelectClear: Очистить конвейеры massSelectClear: Очистить конвейеры
showShapeTooltip: Show shape output tooltip showShapeTooltip: Показывать подсказку фигуры на выходе
about: about:
title: Об игре title: Об игре
body: >- body: >-
@ -1272,19 +1272,19 @@ puzzleMenu:
dlcHint: Уже купили DLC? Проверьте, что оно активировано, нажав правый клик на dlcHint: Уже купили DLC? Проверьте, что оно активировано, нажав правый клик на
shapez.io в своей библиотеке, и далее Свойства > Доп. Контент shapez.io в своей библиотеке, и далее Свойства > Доп. Контент
search: search:
action: Search action: Поиск
placeholder: Enter a puzzle or author name placeholder: Введите название головоломки или имя автора
includeCompleted: Include Completed includeCompleted: Показывать завершённые
difficulties: difficulties:
any: Any Difficulty any: Любая сложность
easy: Easy easy: Легко
medium: Medium medium: Средне
hard: Hard hard: Сложно
durations: durations:
any: Any Duration any: Любая длительность
short: Short (< 2 min) short: Короткие (< 2 мин.)
medium: Normal medium: Средние
long: Long (> 10 min) long: Долгие (> 10 мин.)
backendErrors: backendErrors:
ratelimit: Вы слишком часто выполняете свои действия. Подождите немного. ratelimit: Вы слишком часто выполняете свои действия. Подождите немного.
invalid-api-key: Не удалось связаться с сервером, попробуйте invalid-api-key: Не удалось связаться с сервером, попробуйте

View File

@ -79,9 +79,9 @@ mainMenu:
puzzleDlcWishlist: İstek listene ekle! puzzleDlcWishlist: İstek listene ekle!
puzzleDlcViewNow: Paketi (DLC) görüntüle puzzleDlcViewNow: Paketi (DLC) görüntüle
mods: mods:
title: Active Mods title: Aktif Modlar
warningPuzzleDLC: Playing the Puzzle DLC is not possible with mods. Please warningPuzzleDLC: Modlarla Yapboz DLC'sini oynamak mümkün değil. Lütfen
disable all mods to play the DLC. Yapboz DLC'sini oynayabilmek için bütün modları devre dışı bırakınız.
dialogs: dialogs:
buttons: buttons:
ok: OK ok: OK
@ -263,12 +263,12 @@ dialogs:
desc: "'<title>' yapbozunu silmek istediğinize emin misiniz? Bu işlem geri desc: "'<title>' yapbozunu silmek istediğinize emin misiniz? Bu işlem geri
alınamaz!" alınamaz!"
modsDifference: modsDifference:
title: Mod Warning title: Mod Uyarısı
desc: The currently installed mods differ from the mods the savegame was created desc: Halihazırda kullanılan modlar, kayıtlı oyunun yaratıldığı modlardan farklıdır.
with. This might cause the savegame to break or not load at all. Are Bu işlem kayıtlı oyunun bozulmasına veya hiç yüklenmemesine neden olabilir. Devam
you sure you want to continue? etmek istediğinize emin misiniz?
missingMods: Missing Mods missingMods: Eksik Modlar
newMods: Newly installed Mods newMods: Yeni yüklenen Modlar
ingame: ingame:
keybindingsOverlay: keybindingsOverlay:
moveMap: Hareket Et moveMap: Hareket Et
@ -1038,7 +1038,7 @@ settings:
description: Şekil ipuçlarını 'ALT' tuşuna basarak göstermek yerine her zaman description: Şekil ipuçlarını 'ALT' tuşuna basarak göstermek yerine her zaman
gösterir. gösterir.
tickrateHz: <amount> Hz tickrateHz: <amount> Hz
newBadge: New! newBadge: Yeni!
keybindings: keybindings:
title: Tuş Atamaları title: Tuş Atamaları
hint: "İpucu: CTRL, SHIFT ve ALT tuşlarından yararlanın! Farklı yerleştirme hint: "İpucu: CTRL, SHIFT ve ALT tuşlarından yararlanın! Farklı yerleştirme
@ -1052,7 +1052,7 @@ keybindings:
massSelect: Çoklu Seçİm massSelect: Çoklu Seçİm
buildings: Yapı Kısayolları buildings: Yapı Kısayolları
placementModifiers: Yerleştİrme Özellİklerİ placementModifiers: Yerleştİrme Özellİklerİ
mods: Provided by Mods mods: Modlar tarafından sağlandı
mappings: mappings:
confirm: Kabul confirm: Kabul
back: Geri back: Geri
@ -1307,19 +1307,19 @@ backendErrors:
istiyorsanız support@shapez.io ile iletişime geçiniz! istiyorsanız support@shapez.io ile iletişime geçiniz!
no-permission: Bu işlemi yapmak için izniniz yok. no-permission: Bu işlemi yapmak için izniniz yok.
mods: mods:
title: Mods title: Modlar
author: Author author: Sahibi
version: Version version: Sürüm
modWebsite: Website modWebsite: İnternet sitesi
openFolder: Open Mods Folder openFolder: Mod Klasörünü Aç
folderOnlyStandalone: Opening the mod folder is only possible when running the standalone. folderOnlyStandalone: Mod klasörünü açmak sadece tam sürümü çalıştırıyorken mümkün.
browseMods: Browse Mods browseMods: Modlara Gözat
modsInfo: To install and manage mods, copy them to the mods folder within the modsInfo: Modları yüklemek ve yönetmek için, bunları oyun dizini içerisindeki Modlar
game directory. You can also use the 'Open Mods Folder' button on the klasörüne kopyalayın. Ayrıca sağ üstteki 'Modlar Klasörünü Aç' düğmesini de
top right. kullanabilirsiniz.
noModSupport: You need the standalone version on Steam to install mods. noModSupport: Mod yükleyebilmek için tam sürümü çalıştırmalısınız.
togglingComingSoon: togglingComingSoon:
title: Coming Soon title: Yakında Gelecek
description: Enabling or disabling mods is currently only possible by copying description: Modları etkinleştirmek veya devre dışı bırakmak şu anda yalnızca
the mod file from or to the mods/ folder. However, being able to dosyaları Mod klasörüne kopyalayarak mümkündür. Ancak modları burada
toggle them here is planned for a future update! değiştirmek gelecekteki bir güncelleme için planlanmıştır!