Code Monkey home page Code Monkey logo

Comments (6)

RektInator avatar RektInator commented on June 6, 2024 1

You don't need zonetool for GSC scripts. Plutonium IW5 can load GSC scripts on it's own now just like MW2. If you want to add scripts to your zone, simply add them as rawfile assets (instead of scriptfile assets).

Example: rawfile,maps/mp/gametypes/war.gsc

This will work just fine.

from gsc-tool.

xensik avatar xensik commented on June 6, 2024 1

extracted sp files from zonetool should work using -z options. ./gsc-tool.exe -iw5 -zdecomp script.cgsc. you need both files from zonetool, script.cgsc & script.cgsc.stack

from gsc-tool.

Combine900 avatar Combine900 commented on June 6, 2024

I know.. i used it for SP.. and as we all know you guys wont do any sp modification for IW5 (sadly..)

However you can dump important SP files with zonetool and gsc-tool help us too view the .gsc code of the SP files.. but that no longer works with the current version :/

from gsc-tool.

user-45-20 avatar user-45-20 commented on June 6, 2024

Should be an easy change to make, the binary GSCS are composed of bytecode and a stack "buffer", zonetool just dumps them to two separate files. If you look at decompile_file in main.cpp, all you really need to do is call disassembler.disassemble with three arguments - the file name, the bytecode buffer, and the stack buffer.

from gsc-tool.

Combine900 avatar Combine900 commented on June 6, 2024

Should be an easy change to make, the binary GSCS are composed of bytecode and a stack "buffer", zonetool just dumps them to two separate files. If you look at decompile_file in main.cpp, all you really need to do is call disassembler.disassemble with three arguments - the file name, the bytecode buffer, and the stack buffer.

Sounds like a solution, but not easy to do for a noob at this stuff 😅

from gsc-tool.

Combine900 avatar Combine900 commented on June 6, 2024

extracted sp files from zonetool should work using -z options. ./gsc-tool.exe -iw5 -zdecomp script.cgsc. you need both files from zonetool, script.cgsc & script.cgsc.stack

Thank you :) hope you keep up the gud work on this tool. (btw. can you keep an eye on the SP stuff :)?)

from gsc-tool.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.