OpenSC2K icon indicating copy to clipboard operation
OpenSC2K copied to clipboard

This doesn't work anymore

Open danieldanielecki opened this issue 4 years ago • 11 comments

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?

danieldanielecki avatar Apr 06 '20 11:04 danieldanielecki

Does anyone look at this anymore?

lukigarazus avatar Apr 28 '20 07:04 lukigarazus

@danieldanielecki Have you put PAL_MSTR.BMP file from SimCity 2000 in the specified location and are still having the problem?

dfloer avatar Apr 28 '20 11:04 dfloer

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.

nicholas-ochoa avatar Apr 28 '20 13:04 nicholas-ochoa

@dfloer - where can I get the file from?

@nicholas-ochoa - were you able to do any progress?

danieldanielecki avatar Jun 13 '20 10:06 danieldanielecki

@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.

dfloer avatar Jun 13 '20 19:06 dfloer

Ohh so basically from the repo it's infeasible to clone the game.

danieldanielecki avatar Jun 14 '20 08:06 danieldanielecki

So how should we solve this problem now

dd123-a avatar Jun 29 '23 19:06 dd123-a

have you finish this problem

dd123-a avatar Jun 30 '23 17:06 dd123-a

nope, I gave up that time

danieldanielecki avatar Jul 01 '23 07:07 danieldanielecki

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

dd123-a avatar Jul 02 '23 06:07 dd123-a

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

dd123-a avatar Jul 02 '23 06:07 dd123-a