GithubHelp home page GithubHelp logo

byondtools's Introduction

Game Developer

Hi, I'm Rob, a 34-year-old guy (he/him) living in Newcastle, WA who likes reverse-engineering, interpreters, and modding, and have worked professionally on popular game titles like Kerbal Space Program and From the Depths. I am currently working on ChilloutVR with Alpha Blend Interactive.

Here you can find some of my open-source projects, although I am slowly migrating to my gitlab account, since they support more features.

Current Projects

  • BYONDTools @ GitLab.com - BYOND game engine source code analysis toolkit
  • pyCSBinaryWriter @ GitLab.com - API for interacting with .NET-generated binary structures in Python
  • BuildTools @ GitLab.com - My own shoddy toolbag, includes custom dependency-resolving buildchain inspired by Tup.

I also work on a bunch of other projects using alts.

Continued Learning

I am currently learning:

  • Rust (computer language)
  • Lark (lexing/parsing framework for Python)
  • Crafting interpreters from scratch

Contact Information

My website and blog provides a variety of ways to reach me. Please do not contact me if you do so as a marketer, realtor, or canvasser.

You can also find my current resumé there.

byondtools's People

Contributors

boggart avatar corruptcomputer avatar n3x15 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

byondtools's Issues

Functions with brackets in a define cause an exception.

Functions inside a define cause an exception during parsing. (In version 0.1.5, installed via pip)

key: fetchElement(L,
Traceback (most recent call last):
  File "C:\Python27\Scripts\dmmrender.py", line 69, in <module>
    tree.ProcessFilesFromDME(args.project)
  File "C:\Python27\lib\site-packages\byond\objtree.py", line 216, in ProcessFilesFromDME
    self.ProcessFile(f)
  File "C:\Python27\lib\site-packages\byond\objtree.py", line 506, in ProcessFile
    line = self.PreprocessLine(line)
  File "C:\Python27\lib\site-packages\byond\objtree.py", line 709, in PreprocessLine
    self.defineMatchers[key] = re.compile(r'\b' + key + r'\b')
  File "C:\Python27\lib\re.py", line 190, in compile
    return _compile(pattern, flags)
  File "C:\Python27\lib\re.py", line 244, in _compile
    raise error, v # invalid expression
sre_constants.error: unbalanced parenthesis

[maprender.py] Aborts with AttributeError on MetaStation.v39K.dmm after outputting the first two z-levels.

Trying to render MetaStation.v39K.dmm results in maprender.py aborting with:

AttributeError: 'NoneType' object has no attribute 'id'

Before it does it spits out several of these:

[Errno 2] No such file or directory: 'W:\\Git\\tg-station\\null'
        icon: <BYONDValue value="null" filename="W:\Git\ByondTools\stdlib\atom_defaults.dm" line=33>
        icon_state: <BYONDString value="" filename="W:\Git\ByondTools\stdlib\atom_defaults.dm" line=34>
        dir: <BYONDValue value="2" filename="W:\Git\ByondTools\stdlib\atom_defaults.dm" line=31>
05/01/2014 12:06:43 PM [WARNING ]: Unable to open W:\Git\tg-station\null!

Logs
Dmm

The first two z-levels are dumped to png before it errors out.

dmmrender crashing.

Traceback (most recent call last):
  File "dmmrender.py", line 90, in <module>
    renderMap(args)
  File "dmmrender.py", line 48, in renderMap
    dmm.generateImage(outfile, os.path.dirname(args.project), renderflags, **kwargs)
AttributeError: Map instance has no attribute 'generateImage'`

BYOND2RGBA KeyError: 'rgb(X,X,X)' on attempting to render maps on /tg/station13 repo

Every time I try to render a map on /tg/station's repo it fails on z-level 1 with:

Traceback (most recent call last):
  File "C:\Python27\Scripts\dmmrender.py", line 90, in <module>
    renderMap(args)
  File "C:\Python27\Scripts\dmmrender.py", line 48, in renderMap
    dmm.generateImage(outfile, os.path.dirname(args.project), renderflags, **kwargs)
  File "C:\Python27\lib\site-packages\byond\map.py", line 717, in generateImage
    self.generateImage(filename_tpl, basedir, renderflags, z, **kwargs)
  File "C:\Python27\lib\site-packages\byond\map.py", line 804, in generateImage
    icon = self.renderAtom(atom, basedir, skip_alpha)
  File "C:\Python27\lib\site-packages\byond\map.py", line 707, in renderAtom
    c_frame = tint_image(frame, BYOND2RGBA(color, alpha))
  File "C:\Python27\lib\site-packages\byond\basetypes.py", line 49, in BYOND2RGBA
    return _COLOR_LOOKUP[colorstring]
KeyError: 'rgb(167,164,153)'

The RGB values differ per map but it happened for me on metastation, boxstation and a map I'm currently working on. This is using the latest version off of the python package index. (Installed with PIP)
Python 2.7.7 on Windows 8.1

Rendering error on tgstation repo.

Rendering error on tgstation repo.
tgstation.2.1.3.dmm.0.png

Only error in console was:

Checking z-level 1...
11/09/2014 07:38:23 PM [WARNING ]: (w:\Git\tg-station\icons/misc/fullscreen.dmi): Indexed PNG does not specify transparency! Setting black as transparency. self.img.info = {'Description': '# BEGIN DMI\nversion = 4.0\n\twidth = 480\n\theight = 480\nstate = "title"\n\tdirs = 1\n\tframes = 20\n\tdelay = 5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5\n# END DMI\n'}
 -> tgstation.2.1.3.dmm.1.png (8132x6396) - 5974 objects

Dir seems to be ignored and several things didn't render at all.

Filedir is blank, causing an exception.

At least on windows, current git revision, it attempts to create a folder with a filedir of "".

Checking z-level 0...
Traceback (most recent call last):
  File "C:\Python27\Scripts\dmmrender.py", line 90, in <module>
    renderMap(args)
  File "C:\Python27\Scripts\dmmrender.py", line 48, in renderMap
    dmm.generateImage(outfile, os.path.dirname(args.project), renderflags, **kwargs)
  File "C:\Python27\lib\site-packages\byond\map\__init__.py", line 869, in generateImage
    self.generateImage(filename_tpl, basedir, renderflags, z, **kwargs)
  File "C:\Python27\lib\site-packages\byond\map\__init__.py", line 986, in generateImage
    os.makedirs(filedir)
  File "C:\Python27\lib\os.py", line 157, in makedirs
    mkdir(name, mode)
WindowsError: [Error 3] The system cannot find the path specified: ''

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.