From 02befadcd9be6d8887ac27a5fea313aaa314e198 Mon Sep 17 00:00:00 2001 From: Lajos Meszaros Date: Mon, 28 Feb 2022 23:53:17 +0100 Subject: [PATCH] fixed lake map not generating from the launcher --- src/compile.js | 1 + src/electron/src/components/App.jsx | 20 +++++++++++--------- src/projects/the-lake/index.js | 2 +- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/compile.js b/src/compile.js index 6dc8ce70..30ddc4fb 100644 --- a/src/compile.js +++ b/src/compile.js @@ -23,6 +23,7 @@ const compileFTS = (config) => { outputDir, `./game/graph/levels/level${levelIdx}/fast.fts.json` ); + const dest = path.resolve( outputDir, `./game/graph/levels/level${levelIdx}/fast.fts` diff --git a/src/electron/src/components/App.jsx b/src/electron/src/components/App.jsx index 3302dd1f..03731d97 100644 --- a/src/electron/src/components/App.jsx +++ b/src/electron/src/components/App.jsx @@ -2,16 +2,17 @@ import fs from "fs"; import React, { useState, useEffect } from "react"; import AliasNightmare from "../projects/AliasNightmare.jsx"; import TheBackrooms from "../projects/TheBackrooms.jsx"; +import TheLake from "../projects/TheLake.jsx"; import Loading from "./Loading.jsx"; import MenuItem from "./MenuItem.jsx"; import path from "path"; import seedrandom from "seedrandom"; import { ipcRenderer } from "electron"; import { cleanupCache, uninstall } from "../../../helpers.js"; -import aliasNightmare from "../../../projects/alias-nightmare/index.js"; -import theBackrooms from "../../../projects/the-backrooms/index.js"; +import aliasNightmareGenerator from "../../../projects/alias-nightmare/index.js"; +import theBackroomsGenerator from "../../../projects/the-backrooms/index.js"; +import theLakeGenerator from "../../../projects/the-lake/index.js"; import { compileFTS, compileLLF, compileDLF } from "../../../compile.js"; -import TheLake from "../projects/TheLake.jsx"; const generateSeed = () => Math.floor(Math.random() * 1e20); @@ -100,12 +101,15 @@ const App = () => { levelIdx: 1, seed, outputDir, + lootTable: [], + bumpFactor: 3, ...settings, }; switch (project) { case "the-backrooms": - await theBackrooms({ + await theBackroomsGenerator({ + ...config, percentOfLightsOn: 30, roomDimensions: { width: [1, 5], @@ -129,17 +133,15 @@ const App = () => { variant: "slow", }, ], - ...config, }); break; case "alias-nightmare": - await aliasNightmare({ - lootTable: [], + await aliasNightmareGenerator({ ...config, }); break; case "the-lake": - await TheLake({ + await theLakeGenerator({ ...config, }); break; @@ -171,7 +173,7 @@ const App = () => { checkForInstalledMaps(outputDir); }, 100); }, 100); - }, 100); + }, 1000); }, 100); }; diff --git a/src/projects/the-lake/index.js b/src/projects/the-lake/index.js index b7bcdb8d..4dee9cee 100644 --- a/src/projects/the-lake/index.js +++ b/src/projects/the-lake/index.js @@ -66,7 +66,7 @@ const createAmikarsRock = (pos) => { const generate = async (config) => { const { origin } = config; - const welcomeMarker = createWelcomeMarker([500, 0, 500]); + createWelcomeMarker([500, 0, 500]); createPlant([700, 0, 700]); createAmikarsRock([-500, 220, 500]);