UDMF maps don't work with mod

Ask about mapping, UDMF, using DoomBuilder/editor of choice, etc, 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.

UDMF maps don't work with mod

Postby SpeedStriker243 » Sat Jul 31, 2021 2:28 pm

A mod I'm working on doesn't work with UDMF maps -- some maps cause the game to crash, others render mod-specific controls useless.

It could potentially be an ACS or ZScript issue, but it seemed to start happening when I added ZScript.
User avatar
SpeedStriker243
That1M8Head
 
Joined: 03 Feb 2021
Location: United Kingdom
Discord: That1M8Head#1574
Github ID: That1M8Head
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: UDMF maps don't work with mod

Postby wildweasel » Sat Jul 31, 2021 2:32 pm

Unfortunately, we can't help with this little amount of information. Do you have a runnable example of your mod that causes a crash/problem, and information on which exact maps it's happening with?
User avatar
wildweasel
change o' pace.
Moderator Team Lead
 
Joined: 15 Jul 2003

Re: UDMF maps don't work with mod

Postby SpeedStriker243 » Sat Jul 31, 2021 3:23 pm

I received a message from a tester saying the following:
I know you're busy right now, but I figured I'd post here about something I found with SL&L. Apparently (potentially, not a 100% sure about this) it really doesn't like UDMF maps. That's what I've been using for the ToaCW music pack, and there are two big things: 1) taunts don't work at all. 2) the off-hand attack only works sometimes, and generally acts like it has a really long cool down. Not sure what exactly is going, could be UDMF being weird, could be SL&L, could be some config going on with me. I dunno. Just figured I'd let ya know

When playing Kinsie's test map (which no longer crashes for whatever reason) I receive a message in the console saying
Code: Select allExpand view
Music "ShotgunGuy" was not found
on level start and local ACS functions don't work at all.
User avatar
SpeedStriker243
That1M8Head
 
Joined: 03 Feb 2021
Location: United Kingdom
Discord: That1M8Head#1574
Github ID: That1M8Head
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: UDMF maps don't work with mod

Postby Jarewill » Sat Jul 31, 2021 4:04 pm

That looks like an issue with your ACS script not having a defined library.
For gameplay mods you want to include the #library keyword at the top of your script file, like so:
Code: Select allExpand view
#library "modname"
#include "zcommon.acs"  
Jarewill
 
 
 
Joined: 21 Jul 2019

Re: UDMF maps don't work with mod

Postby SpeedStriker243 » Sat Jul 31, 2021 4:09 pm

Oh, I didn't even know that was a thing. Thanks!
User avatar
SpeedStriker243
That1M8Head
 
Joined: 03 Feb 2021
Location: United Kingdom
Discord: That1M8Head#1574
Github ID: That1M8Head
Operating System: Other Linux 64-bit
OS Test Version: No (Using Stable Public Version)
Graphics Processor: nVidia with Vulkan support

Re: UDMF maps don't work with mod

Postby Gez » Sun Aug 01, 2021 5:53 am

What it didn't like was actually the presence of other scripts. Then they get confused about which variable belong to which script, and that's precisely why you have to declare your script as a library script so as not to interfere with map scripts.
Gez
 
 
 
Joined: 06 Jul 2007


Return to Mapping

Who is online

Users browsing this forum: No registered users and 2 guests