Welcome to Open Carnage

A resource for Halo 1 modding and tech, with unique means of rewarding individual content creation and support. Have a wander to see why we're worth the time! EST. 2012


Serpent 2.1.0

Members of Open Carnage never see off-site ads.

I'm currently working on allowing users to convert HSC scripts to serpent scripts. Note that comments do not get preserved here.




UPDATE: I've just released 2.1.0. Here is a link to the changelog: https://github.com/Kavawuvi/serpent/blob/2.1.0/CHANGELOG.md




  • Added --pretty for converting to Halo Script if a human-readable output is desired


  • --strip is now on by default for if converting to Halo Script




  • HSC scripts can now be parsed
  • HSC scripts can now be converted into serpent scripts (parse_hsc_script() and compile_serpent_script())
  • Added --strip to make stripping of unnecessary characters optional


  • Changed the behavior of removing the quotation marks from strings so that only alphanumeric strings (with or without underscores) have their quotation marks removed rather than strings without spaces.
  • Reorganized the file structure. All functions for converting scripts are now stored in a submodule.
  • compile() is changed to compile_hsc_script()
  • parse() is changed to parse_serpent_script()
  • Python's argparse is used for parsing arguments now


  • Empty strings are now properly handled
Java and ST34MF0X like this

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.