Skip to content

Conversation

@thecybermind
Copy link
Owner

Properly handle misc_bsp entities and subbsp loading in JAMP. This also required a hefty code change in the entity storage system which affected all the other games as well, including JASP. Tested subbsp support with both JA games on Windows.

…nerating entstring to provide extra info in stripper_dump

- GAME_JASP: properly handle -1 arg to G_SET_ACTIVE_SUBBSP
- GAME_JAMP: add code to G_SET_ACTIVE_SUBBSP post hook to pull all new entities from engine, and store in a list (specific to the subbsp index)
- GAME_JAMP: add code to G_GET_ENTITY_TOKEN to handle reading from specific subbsp list if necessary
- GAME_JAMP: add GAME_INIT post hook to add "_subbsp_index=index" keyval to each subbsp entity and then add to g_mapents/g_modents
- still todo: fix statics/state in ent_next_token() to handle swapping to a different list mid-way
…s. it will take entities from an entstring or G_GET_ENTITY_TOKEN, and can output tokens (for use in G_GET_ENTITY_TOKEN hook to pass to mod) or entstring (for SpawnEntities functions). this class also provides a lot of the other ent_* function functionality.

stripper_qmm also can now properly handle and filter JAMP subbsp entries, and a lot of duplicate code between it and the JASP subbsp solution was removed.
the only thing i still need to do is have the stripper_dump command also print the subbsps if JAMP/JASP
…initialize iterator after the object was copied into the subbsp containers, so needed to rule-of-5 the MapEntities class
@thecybermind thecybermind self-assigned this Dec 13, 2025
@thecybermind thecybermind added the enhancement New feature or request label Dec 13, 2025
@thecybermind thecybermind linked an issue Dec 13, 2025 that may be closed by this pull request
@thecybermind thecybermind merged commit d074a9f into master Dec 13, 2025
2 checks passed
@thecybermind thecybermind deleted the dev_issue2 branch December 13, 2025 01:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

JAMP - add full support for filtering misc_bsp entities

1 participant