nicholas-ochoa / OpenSC2K

OpenSC2K - An Open Source remake of Sim City 2000 by Maxis
GNU General Public License v3.0
4.99k stars 90 forks source link

This doesn't work anymore #55

Open danieldanielecki opened 4 years ago

danieldanielecki commented 4 years ago

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?

lukigarazus commented 4 years ago

Does anyone look at this anymore?

dfloer commented 4 years ago

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

nicholas-ochoa commented 4 years ago

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.

danieldanielecki commented 4 years ago

@dfloer - where can I get the file from?

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

dfloer commented 4 years ago

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

danieldanielecki commented 4 years ago

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

dd123-a commented 1 year ago

So how should we solve this problem now

dd123-a commented 1 year ago

have you finish this problem

danieldanielecki commented 1 year ago

nope, I gave up that time

dd123-a commented 1 year ago

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 commented 1 year ago

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