Skip to content
Snippets Groups Projects
Forked from pregmodfan / fc-pregmod
12900 commits behind the upstream repository.
Pregmodder's avatar
Pregmodder authored
Modernize modification.js

See merge request pregmodfan/fc-pregmod!9127
45f85717
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 FCpregmod.html in bin/ (Recommendation: Drag it into incognito mode)

Common problems

  • I get an error on gamestart reading Apologies! A fatal error has occurred. Aborting. Error: Unexpected token @ in JSON at position 0. Stack Trace: SyntaxError: Unexpected token @ in JSON at position 0 at JSON.parse (<anonymous>) at JSON.value or some variant

    • clear cookies
  • 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 coming from those specific sections being split over several lines in the name of readability and git grep's intentionally lacking support for multiline. An Attempt to add -Pzl (pregmodfan/fc-pregmod!2108 (closed) ) created a sub condition black hole. What follows are examples of common false positives that can safely be ignored:
[MissingClosingAngleBracket]src/art/vector/Generate_Stylesheet.tw:11:<<print "<style>."+_art_display_class+" {
	<<print "<style>."+_art_display_class+" {
position: absolute;
height: 100%;
margin-left: auto;
margin-right: auto;
left: 0;
right: 0;
}

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.