Skip to content
  • 0 Unread 0
  • Recent
  • Popular
  • Users
  • Donate
Collapse
Home Docs Stats Discord Donate
Download
  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
11 Posts 8 Posters 12.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Chase
    Chase
    Chase
    wrote on last edited by
    #2

    Nice release.

    1 Reply Last reply
    1
    • Sorex Sorex

      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.

      mikzy
      mikzy
      mikzy
      Banned
      wrote on 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
      • Sorex
        Sorex
        Sorex
        Contributor
        wrote on last edited by Sorex
        #4

        mikey
        I will show you why on the video tutorial 😉

        The video is now up on youtube

        1 Reply Last reply
        0
        • Sorex
          Sorex
          Sorex
          Contributor
          wrote on 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
          • Nakero
            Nakero
            Nakero
            wrote on last edited by Nakero
            #6

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

            1 Reply Last reply
            0
            • FutureRave
              FutureRave
              FutureRave
              VIP
              wrote on last edited by FutureRave
              #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
              • ZAPlord
                ZAPlord
                ZAPlord
                wrote on 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
                Resxt 1 Reply Last reply
                0
                • ZAPlord ZAPlord

                  .\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
                  Resxt
                  Resxt
                  Resxt
                  Plutonium Staff
                  wrote on 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
                  • ZAPlord
                    ZAPlord
                    ZAPlord
                    wrote on 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
                    • Athapi
                      Athapi
                      Athapi
                      wrote on last edited by
                      #11

                      Plutonium wont load uncompiled scripts.

                      1 Reply Last reply
                      0

                      Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                      Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                      With your input, this post could be even better 💗

                      Register Login
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

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