Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.
/ SMExt-EntityLump Public archive

SourceMod extension to parse entity lumps.

License

Notifications You must be signed in to change notification settings

nosoop/SMExt-EntityLump

Repository files navigation

Entity Lump Manager

ℹ️ This repository is no longer active. This extension has been merged into SourceMod as alliedmodders/sourcemod#1673. It should also be available in SourceMod 1.11 in the future.

If you were a developer using this extension, you must recompile plugins to use the version in SourceMod; there is no other migration path, and the extension cannot be used alongside the implementation in SourceMod.

A SourceMod extension that parses out the level entity string into a format that can be easily manipulated by plugins.

Overview

The API has two methodmaps; EntityLump and EntityLumpEntry.

An EntityLumpEntry is an ordered list of key / value pairs, behaving similar to an ArrayList. Duplicate keys are allowed.

EntityLump is similar to a global ArrayList that holds EntityLumpEntry instances.

Standalone binary

Compiling the extension also produces the entlump_parser executable, which is a small command-line tool intended to test the parsing logic without needing a map or Source dedicated server running.

The tool can be used as follows:

./entlump_parser ${file}

The tool parses the entity lump from the input file, then outputs a reconstructed one on standard output. If parsing is correct, then the strings should look identical aside from whitespace outside of keys / values.

A few test cases are provided in standalone-parser/test_files.

About

SourceMod extension to parse entity lumps.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published