[Release] GSC Autocompiler/Fastcompiler for a more convenient gsc modding

Topic created ยท 4 Posts ยท 107 Views
  • GSC Autocompiler/Fastcompiler for a more convenient gsc modding

    Made by DoktorSAS

    The auto compiler gsc is nothing but a simple powershell script that allows you to compile a mod for Black ops II (Plutonium and Redacted).
    The script uses three directories:

    1. 'src': Folder where is contained the source code to compile
    2. 'bin': Folder where the compiled script is placed
    3. 'compiler': Folder where the compiler for the gsc scripts is kept

    It is also possible to convert the powershell into an .exe. I created one based on the original script (if you don't trust my .exe you can recompile it by yourself).

    The script in textual environments such as Visual Studio Code, Notepad, Atom, etc. ... is very convenient to have the scripts divided into smaller portions of code and easily explorable.

    If you have difficulty following the written guide I also leave you a guide in the form of a step-by-step video.
    Press here for the video

    The Compiler folder

    The gsc compiler is the compiler provided by the Plutonium team. In fact, it will not be provided by default due to security.


    When the code is executed several windows may be generated that will define a success, an error or a problem.

    Error Description
    1c52b462-fe31-41b8-8fa1-d41c8a1e6446-image.png Unable to run the compiler because the compiler files (compiler.exe and/or Irony.dll) are missing. To solve the problem just download the compiler files from Plutonium and copy them into the compiler folder.
    87dd0ebd-b479-45b2-acd7-c04bc968f4f4-image.png The project cannot be completed because the main file (the file that contains the includes and the main and/or init functions) is missing. To solve the problem, just add a main.gsc file or rename your main file.
    fdb961cb-39d4-40d1-a5a6-22b964b09bc0-image.png The source code of the project has an error, the compiler will report in the form of an error the line where the error is located while the windows notification will confirm the failure of the compilation.
    74561186-0c0c-402f-a0b0-15445d1dea18-image.png The source code has been compiled correctly.
    463784f3-0b78-42cf-8ae6-bdd5fc988aa7-image.png Unrecognized error, possible problem of any other type. (In case of this report the problem so that we can create a more complete script in catching errors).


    To download just press here or on the .rar file on this github page.

  • Nice release.

  • i dont really get why you convert a Powershell script to exe, and then you run the exe to actually compile the project tbh but i guess cool release? just seems like extra steps for no reason

  • @mikey
    I will show you why on the video tutorial ๐Ÿ˜‰

    The video is now up on youtube

Log in to reply