Advanced Search

Author Topic: Help with DoomBuilder/Slade  (Read 4058 times)

0 Members and 1 Guest are viewing this topic.

May 27, 2016, 02:26:23 PM
Read 4058 times

Offline UltimateChimichanga

  • Standard Member

  • whoa
  • Date Registered: August 19, 2012, 03:51:22 AM

    • View Profile
    • me tumbl
Help with DoomBuilder/Slade
« on: May 27, 2016, 02:26:23 PM »
I want to add custom music to a map, but I don't know how to.  All of the tutorials I can find use XWE, is there a way to do it in Slade?

May 27, 2016, 03:08:44 PM
Reply #1

Offline Russel

  • MM8BDM Extender

  • Doc Croc
  • ***********
  • Date Registered: December 17, 2010, 11:11:25 PM

    • View Profile
Re: Help with DoomBuilder/Slade
« Reply #1 on: May 27, 2016, 03:08:44 PM »
I'm unsure how familiar you are with SLADE's UI, so I'm going to be really specific about locations of buttons and such. Please don't take this as me being condescending as that is not my intention.

In SLADE, open your wad file.
Click on import files, to the right of the new directory button. It looks like a piece of paper with two green arrows.
Locate and open your music file. It should appear in the file list.
Name the file whatever you like, so long as it is not the same as the file name of your map marker and the name is eight characters or less.

Next, click on New Entry. It's to the left of the new directory button and to the right of the close all button.
Name the entry MAPINFO.

Click on the entry in the file list to the left and click "edit as text."
Copy and paste the following code and edit the parameters to your liking:
Code: [Select]
map mapcode "map name"
{
   next = "MM1GUT"
   sky1 = "CUTSKY", 0
   music = "music lump name"
   aircontrol = 0.5
}

Ensure the MAPINFO and music files are not in between your map marker and ENDMAP files. If they are, then move the files up or down until they are not.
If there is any non-autogenerated file between your map marker and ENDMAP files, the map will not work.
Click save and load up your map. The song should now be playing and the map should show up in the Offline Skirmish menu.

As for boss music, you'd do the same as you did for the stage music in terms of importing it into the wad, just make sure it's under a different name.
In Doom Builder, click on the edit scripts button.
Copy and paste the following scripts into the text editor:
Code: [Select]
#include "zcommon.acs" // Only include this line if it is not already present in the file.

str BOSSSONG = "boss song";
str VICSONG = "victory song";
int bossMusic = 0;

script 25 DEATH
{
Delay(1);
int musiccheck = ACS_ExecuteWithResult(972);
if(bossmusic!=musiccheck)
    {
    bossmusic=musiccheck;
    if(bossmusic==1)
        {
        SetMusic(BOSSSONG);
        }
    if(bossmusic==2)
        {
        SetMusic(VICSONG);
        }
    }
}

script 26 (int who) DISCONNECT
{
ACS_Execute(25, 0);
}

Change nothing about these scripts except for the lines labelled BOSSSONG and VICSONG.
Click the compile button on the top right, then close the text editor and then click save.

Your map should now have fully functional boss and victory music in addition to custom stage music.


If you wish, you can find more information on the resources used via the following sites:
http://zdoom.org/wiki/MAPINFO
http://zdoom.org/wiki/ACS

May 27, 2016, 06:15:39 PM
Reply #2

Offline UltimateChimichanga

  • Standard Member

  • whoa
  • Date Registered: August 19, 2012, 03:51:22 AM

    • View Profile
    • me tumbl
Re: Help with DoomBuilder/Slade
« Reply #2 on: May 27, 2016, 06:15:39 PM »
Two problems: There's already a map marker file named mapinfo, and the thing that usually says MAP01 says MAPCODE and I can't open it unless its in doombuilder's test thing.

May 27, 2016, 06:19:14 PM
Reply #3

Offline Russel

  • MM8BDM Extender

  • Doc Croc
  • ***********
  • Date Registered: December 17, 2010, 11:11:25 PM

    • View Profile
Re: Help with DoomBuilder/Slade
« Reply #3 on: May 27, 2016, 06:19:14 PM »
Move MAPINFO to underneath the ENDMAP lump, save it, then close and reopen it in SLADE.

May 27, 2016, 06:30:57 PM
Reply #4

Offline UltimateChimichanga

  • Standard Member

  • whoa
  • Date Registered: August 19, 2012, 03:51:22 AM

    • View Profile
    • me tumbl
Re: Help with DoomBuilder/Slade
« Reply #4 on: May 27, 2016, 06:30:57 PM »

Which one of these i the endmap thing? I'm assuming it's reject, but I don't know. Sorry if I look like an idiot, I only just started messing with maps yesterday.

May 27, 2016, 06:33:51 PM
Reply #5

Offline Russel

  • MM8BDM Extender

  • Doc Croc
  • ***********
  • Date Registered: December 17, 2010, 11:11:25 PM

    • View Profile
Re: Help with DoomBuilder/Slade
« Reply #5 on: May 27, 2016, 06:33:51 PM »
oh whoops hexen format doesn't use endmap uhhh

Swap MAPINFO and MAGICA... then

May 27, 2016, 06:43:33 PM
Reply #6

Offline UltimateChimichanga

  • Standard Member

  • whoa
  • Date Registered: August 19, 2012, 03:51:22 AM

    • View Profile
    • me tumbl
Re: Help with DoomBuilder/Slade
« Reply #6 on: May 27, 2016, 06:43:33 PM »
Then?

May 27, 2016, 06:51:39 PM
Reply #7

Offline Russel

  • MM8BDM Extender

  • Doc Croc
  • ***********
  • Date Registered: December 17, 2010, 11:11:25 PM

    • View Profile
Re: Help with DoomBuilder/Slade
« Reply #7 on: May 27, 2016, 06:51:39 PM »
i didn't know the full file name so i just stated what was shown on screen

the file, as shown in the screenshot, is "MAGICA..."
that's all

May 27, 2016, 07:02:56 PM
Reply #8

Offline UltimateChimichanga

  • Standard Member

  • whoa
  • Date Registered: August 19, 2012, 03:51:22 AM

    • View Profile
    • me tumbl
Re: Help with DoomBuilder/Slade
« Reply #8 on: May 27, 2016, 07:02:56 PM »
Ok, when I have the 2 files named MAPINFO, doombuilder can't open it. Is there a certain way they should be listed, or is there maybe some way I could add the first code into doombuilder's script thing?

May 27, 2016, 07:33:31 PM
Reply #9

Offline Russel

  • MM8BDM Extender

  • Doc Croc
  • ***********
  • Date Registered: December 17, 2010, 11:11:25 PM

    • View Profile
Re: Help with DoomBuilder/Slade
« Reply #9 on: May 27, 2016, 07:33:31 PM »
The file MAGICA or whatever should be before the file labelled THINGS and the MAPINFO file should be at the very top of the wad.
Yes. The order does, in fact, matter.

May 27, 2016, 09:03:04 PM
Reply #10

Offline UltimateChimichanga

  • Standard Member

  • whoa
  • Date Registered: August 19, 2012, 03:51:22 AM

    • View Profile
    • me tumbl
Re: Help with DoomBuilder/Slade
« Reply #10 on: May 27, 2016, 09:03:04 PM »
I finally got it working, thank you.  One more question, though.  I used custom textures from a file separate from the map, will people without the texture pack be able to play the map without getting some sort of missing texture error?  Also that cut off filename was Magicant

May 27, 2016, 11:51:48 PM
Reply #11

Offline Russel

  • MM8BDM Extender

  • Doc Croc
  • ***********
  • Date Registered: December 17, 2010, 11:11:25 PM

    • View Profile
Re: Help with DoomBuilder/Slade
« Reply #11 on: May 27, 2016, 11:51:48 PM »
No, you would need to include the textures in the file yourself.
If it was in a wad file, simply copy and paste the contents into your wad.

If not, please take screenshots of the organization of the resource file you used so I can assist with transferring them into your wad.

Also be sure to supply a file giving credit to the original creators of your resources! People don't like seeing their work used without proper credit.