Skip to content
Snippets Groups Projects
Forked from pregmodfan / fc-pregmod
9599 commits behind the upstream repository.
Pregmodder's avatar
Pregmodder authored
romeo loop fix

Closes #3282

See merge request pregmodfan/fc-pregmod!9869
b260daa5
History

Free Cities - pregmod

Pregmod is a modification of the original Free Cities created by FCdev.

Play the game

You can download compiled files and source archives from the Releases page, and the build from the latest commit to the master branch.

Alternatively, you can build the game yourself:

First, clone the git repository:

  1. Install Git for terminal or a Git GUI of your choice.
  2. Clone the repo
    • Via terminal: git clone --single-branch https://gitgud.io/pregmodfan/fc-pregmod.git
  3. Get updates
    • Via terminal: git pull

Compile the game:

  • Windows

    • Run compile.bat
    • Second run of compile.bat will overwrite without prompt
  • Linux/Mac

    1. Ensure executable permission on file devTools/tweeGo/tweego (not tweego.exe!)
    2. Ensure executable permission on file compile.sh
    3. In the root dir of sources (where you see src, devTools, bin...) run command ./compile.sh from console. Alternatively, if you have make installed, run make all in the root directory.

To play open FC_pregmod.html in bin/ (Recommendation: Drag it into incognito mode)

Common problems

  • sessionStorage quota exceeded / localStorage quota exceeded or something similar

    • Your saves stored inside the browser are getting too large. There are multiple ways to solve this:
      1. Delete saves stored in the browser. If you want to keep them, save them to disk first.
      2. Disable autosave and delete the current one. Due to technical reasons autosaves are larger than normal saves, so this may help more than expected.
      3. If on Firefox, raise the storage limit: Type about:config in the address bar and search for dom.storage.default_quota. Increase this value as needed. Default value is 5120 kilobytes / 5 MB.
      4. Switch to a different browser. Recommended is either Firefox or FCHost, a custom HTML renderer specifically for Pregmod. Further reading can be found here.
      5. If you absolutely need to use Google Chrome:
        1. download and unzip NW.js SDK for your operative system.
        2. copy the game file (FC_pregmod.html) into the nwjs-sdk-v0.XX.Y-YOUR_OS folder
        3. in the same folder, create a text file with the following content:
          {
              "name": "Free Cities pregmod edition",
              "main": "FC_pregmod.html",
              "dom_storage_quota":30
          }
          and save it as package.json. In this example, 30 is the limit (in MB) that is set for the storage quota, but you can replace it with any number. Google Chrome has the same default value as Firefox.
        4. Double click nw.exe to launch the game.
  • Everything is broken!

    • Do not copy over your existing download as it may leave old files behind, replace it entirely
  • I can't save more than once or twice.

    • Known issue caused by SugarCube level changes. Save to file doesn't have this problem and will likely avoid the first problem as well.
    • It is possible to increase the memory utilized by your browser to delay this
  • I wish to report a sanityCheck issue.

    • Great, however a large majority of the results are false positives. That said, if you found an actual error it could be a great first contribution if you are interested.

Contribute

New Contributors are always welcome. Basic information before you start can be found here

Submodules

FC uses a modified version of SugarCube 2. More information can be found here.