OpenSC2K
OpenSC2K copied to clipboard
This doesn't work anymore
The installation with yarn install
/yarn dev
is no longer working. This is both for master
and typescript
branch.
The master
branch in a browser shows only black screen on the localhost:3000
with some errors in the console:
Failed to load resource: the server responded with a status of 404 (Not Found)
:3000/assets/import/LARGE.DAT:1 Failed to load resource: the server responded with a status of 404 (Not Found)
index.js:311 Uncaught TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.
at fromObject (index.js:311)
at from (index.js:137)
at Function.push../node_modules/buffer/index.js.Buffer.from (index.js:149)
at new palette (palette.js:10)
at LoaderPlugin.<anonymous> (world.js:26)
at LoaderPlugin.emit (index.js:181)
at LoaderPlugin.loadComplete (LoaderPlugin.js:900)
at LoaderPlugin.fileProcessComplete (LoaderPlugin.js:883)
at LoaderPlugin.nextFile (LoaderPlugin.js:827)
at BinaryFile.onLoad (File.js:331)
The typescript
branch has local hardcoded dependency pngjs (see issue #54). Even when setting this as latest
it complains about node_modules/fsevents/fsevents.node
file. This file can be cleaned up and the error disappears. However, then in a terminal I can see another error (node:7713) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open 'assets/import/PAL_MSTR.BMP'
and Electron's starting page.
Can you please take a look into these issues and let us know?
Does anyone look at this anymore?
@danieldanielecki Have you put PAL_MSTR.BMP
file from SimCity 2000 in the specified location and are still having the problem?
I'll try and look at this later this week. Most likely I'll just push the local dependency out (it's a fork of pngjs) but even then this is not in any state that is remotely playable / usable.
Please keep in mind, it doesn't currently "do" anything besides convert the tiles into PNG and start the load process.
@dfloer - where can I get the file from?
@nicholas-ochoa - were you able to do any progress?
@danieldanielecki Retail copy of the game, not sure where you can buy the Windows 95 version these days. It can't be included here because the game seems copyright protected.
Ohh so basically from the repo it's infeasible to clone the game.
So how should we solve this problem now
have you finish this problem
nope, I gave up that time
nope, I gave up that time
Perhaps you can try this project: https://github.com/pdeva/OpenSC2K . I have successfully built it with this, but of course its functionality is not yet complete, as his readme said, but he does not lack the so-called confusing files there
nope, I gave up that time By the way, you need to change the file of package.json to adapt to version changes in order to build successfully, at least on my machine
nope, I gave up that time
Perhaps you can try this project: https://github.com/pdeva/OpenSC2K . I have successfully built it with this, but of course its functionality is not yet complete, as his readme said, but he does not lack the so-called confusing files there
By the way, you need to change the file of package.json to adapt to version changes in order to build successfully, at least on my machine