Can Dialog files be placed a PK3-style directory?

Ask about editing graphics, sounds, models, music, etc here!
Shaders (GLSL) and SNDINFO questions also go here!

Moderators: GZDoom Developers, Raze 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.
Guest

Can Dialog files be placed a PK3-style directory?

Post by Guest »

I'm starting to mess around with Dialog and Conversations, but in my research it seems the Dialog or Dialogue files MUST be placed in the map WAD via SLADE.

Is there any way to have these files in a PK3 directory? And if so, where exactly? I've tried a few locations so far with no luck.

I have the rest of my mod files that way and would prefer to do as much there as possible.

Thanks!
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49192
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Can Dialog files be placed a PK3-style directory?

Post by Graf Zahl »

THere's two options:

If you use UDMF they should be part of the map itself. Otherwise they go into the root directory.
User avatar
ramon.dexter
Posts: 1562
Joined: Tue Oct 20, 2015 12:50 pm
Graphics Processor: nVidia with Vulkan support
Location: Kozolupy, Bohemia

Re: Can Dialog files be placed a PK3-style directory?

Post by ramon.dexter »

I've started to use this approach recently.
Just make a, for example, folder called /dialog in pk3 root. Then in the dialog part in udb you just have to refer these files with: include = "dialog/dialogfile.txt";

But keep in mind that you have to put your maps into /maps directory of the said pk3. If you keep your maps in separate .wad file outside of the pk3, this approach will not work and you have to put the dialogs directly into the wad itself.
User avatar
Graf Zahl
Lead GZDoom+Raze Developer
Lead GZDoom+Raze Developer
Posts: 49192
Joined: Sat Jul 19, 2003 10:19 am
Location: Germany

Re: Can Dialog files be placed a PK3-style directory?

Post by Graf Zahl »

ramon.dexter wrote:I've started to use this approach recently.
Just make a, for example, folder called /dialog in pk3 root. Then in the dialog part in udb you just have to refer these files with: include = "dialog/dialogfile.txt";
I'd rather embed the dialog directly into the map unless there's a good reason not to.
User avatar
ramon.dexter
Posts: 1562
Joined: Tue Oct 20, 2015 12:50 pm
Graphics Processor: nVidia with Vulkan support
Location: Kozolupy, Bohemia

Re: Can Dialog files be placed a PK3-style directory?

Post by ramon.dexter »

I used that approach. But when I had like 30 conversations in a map (each one consisting of at least 4-6 pages), it started to be hard to manage with the code on 4000 lines...
ekhudson
Posts: 1
Joined: Fri Apr 22, 2022 12:52 pm

Re: Can Dialog files be placed a PK3-style directory?

Post by ekhudson »

Awesome, thanks folks! Glad to know there's a way to do this!

Return to “Assets (and other stuff)”