Can anyone help me?

tjmac124

Well-Known Member
Oct 2, 2015
69
0
I am trying to figure how to compile the files for flexible survival from github but I can't figure out how to. Can someone tell me how?
 

dndw

Well-Known Member
Aug 27, 2015
456
20
I literally figured this out just yesterday. What magnificent coincidence.

  1. Download and install Inform 7 for your platform. The Linux CLI version is not advisible, but if your distro doesn't run Gnome you don't have a choice.
  2. Downlaod the FS files, either as a zip or through cloning, it doesn't matter.
  3. Open up Inform7 and create a new, empty project. Take note of the location you create it in.
  4. Save the project after it opens, then exit Inform7.
  5. Go to the folder you created the project in. it should contain a <PROJECT_NAME>.inform folder.
  6. Create a <PROJECT_NAME>.materials folder next to the .inform one.
  7. Copy the Figures folder from the FS download into the .materials folder.
  8. Also in the .materials folder, create a folder named Extensions
  9. Copy all folders from the FS directory into <PROJECT_NAME>.materials/Extensions, EXCEPT: Inform, Flexible society main files, Reserved and Figures
  10. Copy the file Inform/story.ni from your download to <PROJECT_NAME>.inform/Source. You should get prompted to overwrite the existing file; do so.
  11. That should do it. Start Inform7 again. You should see the main FS file, starting with the title and author. If not, something went awry somewhere.
  12. You can now hit the play button in the top left, or Release->Release in the menu bar.
  13. Wait an ungodly amount of time for the game to compile. Seriously, don't be surprised if it takes twenty minutes or more. Best thing is, it won't get any faster. It's twenty minutes every. single. time.
  14. You can open and edit other files from the menu bar: File->Open extension-><AUTHOR>-><FILENAME>
 

tjmac124

Well-Known Member
Oct 2, 2015
69
0
Something went wrong it says "Translating the Source - Failed


The application ran your source text through the Inform 7 compiler, as usual, but the compiler unexpectedly failed. This should not happen even if your source text is gibberish, so you may have uncovered a bug in the program.


When a program like the I7 compiler fails, it typically returns an error number: this time, the number was 10, and that probably indicates that the compiler failed to manage its data structures properly. Perhaps you created a complicated situation on which it has not been fully tested.


The best option now is probably to reword whatever was last changed and to try again. Subsequent attempts will not be affected by the failure of this one, so there is nothing to be gained by restarting the application or the computer. A failed run should never damage the source text, so your work cannot be lost." 


I downloaded the windows version of Inform 7 is that the problem?
 

dndw

Well-Known Member
Aug 27, 2015
456
20
Looks like this is a known issue, caused by FS being on a much larger scale than Inform is intended for. The story.ni file defines a number of constants at the top, and you probably have to fiddle with MAX_SYMBOLS, MAX_NUM_STATIC_STRINGS and/or SYMBOLS_CHUNCK_SIZE a bit. If those are set too low (as in this case, most likely), then compilation will fail with code 10. Too large, and compilation takes an even more embarrassingly long amount of time. I'd suggest increasing them in small steps.