[ACS] Check if map is present.

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
Ravick
Posts: 2049
Joined: Sun Aug 22, 2010 10:59 pm
Location: Tubarão, Brasil
Contact:

[ACS] Check if map is present.

Post by Ravick »

Hi there.


I want a script to do different stuff depending on if the player has or hasn't load the mod with a(some) map pack(s) containing certain maps.
For example, it should do something if the game is being played with a map pack that contains a E4M1, but other if it contains a Map03.
Is there an ACS way to check if a certain map is present in game?

Thanks in advanced! :)
Kovnikel
Posts: 8
Joined: Sun Aug 17, 2025 7:10 am

Re: [ACS] Check if map is present.

Post by Kovnikel »

If they load the map you can check the map name/number with GetLevelInfo, but I don't think there is a way to check maps they player hasnt been to. For example ChangeLevel has no conidition to check if the map exists or not. Perhaps there is a way to achieve it with zscript.
User avatar
Ravick
Posts: 2049
Joined: Sun Aug 22, 2010 10:59 pm
Location: Tubarão, Brasil
Contact:

Re: [ACS] Check if map is present.

Post by Ravick »

The problem is I am stuck in a project that must be Zandronum compatible and the team asked me not to use Zscript. :(

I guess I'll have to give up on this feature. :(
User avatar
stainedofmind
Posts: 219
Joined: Sun Sep 01, 2019 10:59 am

Re: [ACS] Check if map is present.

Post by stainedofmind »

Ravick wrote: Sun Aug 24, 2025 10:14 pm The problem is I am stuck in a project that must be Zandronum compatible and the team asked me not to use Zscript. :(

I guess I'll have to give up on this feature. :(
Zandronum 3.2 added lump reading features, so you might be able to cook something up with that. See the linked info in the following post: https://zandronum.com/forum/viewtopic.php?f=8&t=11370
User avatar
Redneckerz
Spotlight Team
Posts: 1129
Joined: Mon Nov 25, 2019 8:54 am
Graphics Processor: Intel (Modern GZDoom)

Re: [ACS] Check if map is present.

Post by Redneckerz »

Ravick wrote: Sun Aug 24, 2025 10:14 pm The problem is I am stuck in a project that must be Zandronum compatible and the team asked me not to use Zscript. :(

I guess I'll have to give up on this feature. :(
You could check some of the ZDaemon game modes, whose ACS is usually public. However, ZDaemon ACS is wildly different from ZDoom ACS, and most of the custom modes aren't documented yet.

That is, until soon. Else you could perhaps ask Worst-vd-Plas for this script.
Post Reply

Return to “Scripting”