GithubHelp home page GithubHelp logo

lazyripent's Introduction

lazyripent

tool for mass ripenting

This python script allows you to mass edit bsp files with ripent, comes with a basic syntax to set up conditions ("selectors") and actions ("modifiers"). Code produced in one night so its messy at best ;) Requires Python3, Steam, and Sven Co-op SDK. Automatically selects 64-bit or 32-bit ripent.

usage: python lazyripent.py "C:\path\to\bsps" myrules

#cheatsheet
{ 
MATCH "key" "value"
NOTMATCH "key" "value"
HAVE "key"
NOTHAVE "key"
ADD "key" "value"
REMOVE "key"
REPLACE "key" "value",
REPLACE "key" "value?" "parse"
NEWENT "key:value:key:$key"
}

See example_rules.txt for further info on how to use the syntax.

lazyripent's People

Contributors

zode avatar mikk155 avatar outerbeast avatar

Stargazers

 avatar Duko avatar  avatar

Watchers

 avatar

lazyripent's Issues

Clear/set bit for keyvalue

Option to clear or set bits for a keyvalue
Example rule:

{
MATCH "classname" "func_door"
CLEAR "spawnflags" "2048" // If this value is set, subtract it from the keyvalue, else do nothing
}
{
MATCH "classname" "trigger_hurt"
SET "damagetype" "8" // If this value is not set, add it to the keyvalue, else do nothing
}

Rule prefix problem

the rule prefix "$" should be changed to something else so it don't interfeer for when people want to include custom keyvalues in the entities

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.