Skip to content
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Donate
Collapse

Plutonium

  1. Home
  2. BO2 Modding Releases & Resources
  3. [Release] GSC Autocompiler/Fastcompiler for a more convenient gsc modding

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

Scheduled Pinned Locked Moved BO2 Modding Releases & Resources
10 Posts 7 Posters 5.7k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • undefined Offline
    undefined Offline
    Sorex Contributor
    wrote on Oct 11, 2021, 8:41 PM last edited by Sorex Nov 9, 2022, 12:07 PM
    #1

    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.

    Notification

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

    Download

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

    undefined 1 Reply Last reply Oct 11, 2021, 10:47 PM
    2
    • undefined Offline
      undefined Offline
      Chase
      wrote on Oct 11, 2021, 10:44 PM last edited by
      #2

      Nice release.

      1 Reply Last reply
      1
      • undefined Offline
        undefined Offline
        mikzy Banned
        replied to Sorex on Oct 11, 2021, 10:47 PM last edited by
        #3

        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

        1 Reply Last reply
        0
        • undefined Offline
          undefined Offline
          Sorex Contributor
          wrote on Oct 11, 2021, 10:54 PM last edited by Sorex Oct 12, 2021, 4:26 PM
          #4

          mikey
          I will show you why on the video tutorial 😉

          The video is now up on youtube

          1 Reply Last reply
          0
          • undefined Offline
            undefined Offline
            Sorex Contributor
            wrote on Jun 12, 2022, 10:24 PM last edited by
            #5

            UPDATE

            Added a support for the gsc-tool provided by xensik.

            Download the "GSC Auto-compiler with xensik compiler" if you want use the xensik compiler.

            1 Reply Last reply
            0
            • undefined Offline
              undefined Offline
              Nakero
              wrote on Jan 13, 2024, 4:54 PM last edited by Nakero Jan 13, 2024, 7:06 PM
              #6

              is it possible to decompile a script compiled by this program?

              1 Reply Last reply
              0
              • undefined Offline
                undefined Offline
                FutureRave VIP
                wrote on Jan 14, 2024, 4:58 PM last edited by FutureRave Jan 14, 2024, 6:59 PM
                #7

                Yes. You need an old version of gsc-tool to do that.

                You can download it from here: https://cdn.discordapp.com/attachments/1076132145145319547/1196136154865598504/gsc-tool.exe

                usage: gsc-tool.exe <mode> <game> <path>
                        * modes: asm, disasm, comp, decomp
                        * games: iw5, iw6, iw7, iw8, s1, s2, s4, h1, h2, t6
                        * paths: file or directory (recursive)
                

                You probably need to do gsc-tool.exe decomp t6 <script name>

                1 Reply Last reply
                0
                • undefined Offline
                  undefined Offline
                  ZAPlord
                  wrote on Jan 1, 2025, 1:18 AM last edited by
                  #8

                  .\Compile.ps1 : File C:\Users\bronc\Downloads\MyProject\Compile.ps1 cannot be loaded. The file
                  C:\Users\bronc\Downloads\MyProject\Compile.ps1 is not digitally signed. You cannot run this script on the current
                  system. For more information about running scripts and setting execution policy, see about_Execution_Policies at
                  https:/go.microsoft.com/fwlink/?LinkID=135170.
                  At line:1 char:1

                  • .\Compile.ps1
                  •   + CategoryInfo          : SecurityError: (:) [], PSSecurityException
                      + FullyQualifiedErrorId : UnauthorizedAccess
                  undefined 1 Reply Last reply Jan 1, 2025, 1:18 PM
                  0
                  • undefined Offline
                    undefined Offline
                    Resxt Plutonium Staff
                    replied to ZAPlord on Jan 1, 2025, 1:18 PM last edited by
                    #9

                    ZAPlord solution would be changing execution probably

                    You don't need this Powershell script anymore anyways since Plutonium reads uncompiled scripts

                    1 Reply Last reply
                    0
                    • undefined Offline
                      undefined Offline
                      ZAPlord
                      wrote on Jan 2, 2025, 2:02 AM last edited by
                      #10

                      ik i didnt but i figured out you didnt need to compile the scripts, i made an error with the scripting

                      1 Reply Last reply
                      0

                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Donate