Skip to content

Conflicts

Blixibon edited this page Sep 16, 2019 · 2 revisions

Mapbase touches nearly every corner of the SDK, so it's bound to overlap with the changes of other mods which may be interested in using Mapbase.

Most of the conflict concerns are related to the source code. We tried to make merging Mapbase with existing mods as easy as possible via Git, but depending on what changes a mod makes on its own, serious conflicts can still occur. This page will list some common/possible merge conflicts. Many overlapping changes might not actually cause merge conflicts and just gain an #ifdef MAPBASE, but reading through this is recommended if you are figuring out how to merge Mapbase with an existing mod.

This article will refer to the reader (you) as a modder/programmer curious about whether Mapbase will conflict with your mod.

Projected textures

Mapbase uses its own blend of projected textures with several improvements from the VDC, Alien Swarm, and open-source projects.

The projected texture VDC fixes are popular among sourcemods that want to use projected textures. Mapbase uses some of the same fixes, although a few of them have been replaced or rendered obsolete by other changes. Whether or not these will actually cause merge conflicts is uncertain, although you could possibly scan through the Mapbase code and see if there's any fixes missing/replaced.

Discord RPC

Mapbase uses its own special RPC implementation, partly based on the VDC article for Discord RPC.

Discord RPC is popular among sourcemods due to the ease of implementing it as seen in the article above. If your mod uses Discord RPC, it may conflict with Mapbase's own implementation of it.

Under normal circumstances, Mapbase's RPC implementation should replace instances of the Discord RPC in your code (keeping the .lib and .dll is fine) since Mapbase basically just uses an enhanced version of it. Discarding Mapbase's changes and keeping your original programming may make game_metadata and other RPC-related Mapbase features useless.

Miscellaneous fixes

Mapbase gathers other fixes from the VDC, the Source 2013 repo's pull requests, and beyond. Most of these fixes can be found with the "Third Party" label on Mapbase's Trello board.

Clone this wiki locally