Deprecations
Several features and modules are deprecated, renamed to something else or removed to allow other features.
srctools.bsp
- BSP.replace_lump( ) None
Write out the BSP file, replacing a lump with the given bytes.
- Deprecated:
simply assign to the
.dataattribute of the lump.
- staticmethod BSP.write_ent_data(vmf: VMF, use_comma_sep: bool = ...)
Generate the entity data lump.
Deprecated, read and write
BSP.entsinstead.- Parameters:
vmf – This accepts a VMF file like that returned from read_ent_data(). Brushes are ignored, so the VMF must use
*xxmodel references.use_comma_sep – This is used to force using either commas, or
0x1Din I/O.
- with BSP.packfile() Iterator[ZipFile] as zipfile
A context manager to allow editing the packed content.
When successfully exited, the zip will be rewritten to the BSP file. Deprecated, use
BSP.pakfileto access the cached archive instead.
- BSP.static_props() Iterator[StaticProp]
Read in the Static Props lump.
Deprecated, use
bsp.props.
- BSP.write_static_props(props: list[StaticProp]) None
Remake the static prop lump.
Deprecated,
bsp.propsis stored and resaved.
- property VisTree.plane_norm: Vec
- Deprecated:
Alias for
tree.plane.normal.
- property VisTree.plane_dist: float
- Deprecated:
Alias for
tree.plane.dist.
srctools.dmx
- srctools.dmx.STUB
Call
srctools.dmx.StubElement.stub()instead.
- class srctools.dmx.AngleTup
Was a named tuple, use the frozen class instead.
- class srctools.dmx.Vec3
Was a named tuple, use the frozen class instead.
srctools.filesys
- FileSystem.read_prop(path: str, encoding: str = 'utf8') Keyvalues
Read a Keyvalues1 file from the filesystem.
- Deprecated:
Use
read_kv1().
srctools.fgd
- class srctools.fgd.Keyvalues
This was renamed so it is not confused with Keyvalues1 trees.
srctools.property_parser
Deprecated original location of the srctools.keyvalues Keyvalues1 parser.
- class srctools.property_parser.Property
Deprecated original name of srctools.keyvalues.Keyvalues.
- class srctools.property_parser.KeyValError
Deprecated original name of srctools.keyvalues.KeyValError.
- class srctools.property_parser.NoKeyError
Deprecated original name of srctools.keyvalues.NoKeyError.
srctools.vec
Deprecated original location of srctools.math vector code.
- class srctools.vec.Vec
Deprecated original name of srctools.math.Vec.
- class srctools.vec.Angle
Deprecated original name of srctools.math.Angle.
- class srctools.vec.Matrix
Deprecated original name of srctools.math.Matrix.
- class srctools.vec.Vec_tuple
Deprecated original name of srctools.math.Vec_tuple.
- srctools.vec.parse_vec_str()
Deprecated original name of srctools.math.parse_vec_str.
- srctools.vec.to_matrix()
Deprecated original name of srctools.math.to_matrix.
- srctools.vec.lerp()
Deprecated original name of srctools.math.lerp.