Cutstuff Home
CMM's Twitter
MM8BDM Wiki
ZDoom Wiki
Zandronum
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Home
Help
Search
Login
Register
Advanced Search
Cutstuff Forum
»
Mega Man 8-bit Deathmatch
»
Tutorial Collection
»
[Tutorial] MAPINFO + Custom Music
Print
Pages:
1
[
2
]
Author
Topic: [Tutorial] MAPINFO + Custom Music (Read 27685 times)
0 Members and 1 Guest are viewing this topic.
April 10, 2014, 05:00:38 PM
Reply #15
Russel
MM8BDM Extender
Doc Croc
>
>
>
>
>
>
>
>
>
>
Date Registered: December 17, 2010, 11:11:25 PM
Re: [Tutorial] MAPINFO + Custom Music
«
Reply #15 on:
April 10, 2014, 05:00:38 PM »
Yes, you can change a sound or music or do basically anything to audio using Audacity.
Logged
April 10, 2014, 05:03:48 PM
Reply #16
PotatoStrike
Standard Member
Date Registered: March 12, 2014, 04:29:39 PM
Re: [Tutorial] MAPINFO + Custom Music
«
Reply #16 on:
April 10, 2014, 05:03:48 PM »
But I've done it and when I want to play the music, it mute it!
Logged
April 10, 2014, 05:05:01 PM
Reply #17
Russel
MM8BDM Extender
Doc Croc
>
>
>
>
>
>
>
>
>
>
Date Registered: December 17, 2010, 11:11:25 PM
Re: [Tutorial] MAPINFO + Custom Music
«
Reply #17 on:
April 10, 2014, 05:05:01 PM »
do you get any sort of error...?
Actually, let's move this to PMs, this getting a bit ludicrous.
Logged
October 17, 2014, 04:43:26 PM
Reply #18
BookofDobson
Standard Member
Date Registered: September 05, 2014, 11:04:24 PM
Re: [Tutorial] MAPINFO + Custom Music
«
Reply #18 on:
October 17, 2014, 04:43:26 PM »
"Script error, "Wep. wad: MAPINFO line 1
TOM01: Unknown top level key word"
FFFF what?
NVM got it However anytime I play the map it crashes my pc in such a way Zand won't close and I have to restart my pc
Logged
July 26, 2016, 04:59:18 PM
Reply #19
TheRealRoyale
Standard Member
Feels nice to be back.
Date Registered: June 11, 2016, 04:58:20 PM
Re: [Tutorial] MAPINFO + Custom Music
«
Reply #19 on:
July 26, 2016, 04:59:18 PM »
how do i make the "boss music"?
Logged
September 15, 2016, 10:09:25 PM
Reply #20
MarioHead
Standard Member
Date Registered: January 03, 2014, 06:55:26 AM
Re: [Tutorial] MAPINFO + Custom Music
«
Reply #20 on:
September 15, 2016, 10:09:25 PM »
¿Script for 1 vs 1 on LMS? Well, not 1 vs 1, I mean, when there remain 2 players on LMS
Logged
September 17, 2016, 12:55:18 AM
Reply #21
Russel
MM8BDM Extender
Doc Croc
>
>
>
>
>
>
>
>
>
>
Date Registered: December 17, 2010, 11:11:25 PM
Re: [Tutorial] MAPINFO + Custom Music
«
Reply #21 on:
September 17, 2016, 12:55:18 AM »
A lot of custom map packs use some variation on this script for non objective-focused maps:
(click to show/hide)
// This entire paste file is plug-and-go. Just copy everything below these comments
// replace BOSSMUS and VICMUS with the song file names of your choice.
str BOSSSONG = "BOSSMUS";
str VICSONG = "VICMUS";
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);
}
Just copy-paste that into the scripts of your map, change the song titles, make sure there's a line that says #include "zcommon.acs" and compile.
Logged
September 17, 2016, 09:06:53 PM
Reply #22
MarioHead
Standard Member
Date Registered: January 03, 2014, 06:55:26 AM
Re: [Tutorial] MAPINFO + Custom Music
«
Reply #22 on:
September 17, 2016, 09:06:53 PM »
I replaced the Bossmus with "MM7FBOS" but sends me an error
"mm7fbos: identifier has not been declared." | SCRIPTS (line 27)
(click to show/hide)
#include "zcommon.acs"
Script 1 Enter
{
if(GetCvar("duel")==1){terminate;}
if(PlayerFrags() == GetCVar("fraglimit") - 5){
SetMusic("MM7FBOS",0);
terminate;
}
Delay(1);
restart;
}
str BOSSSONG = "MM7FBOS";
str VICSONG = "VICMUS";
int bossMusic = 0;
script 2 DEATH
{
Delay(1);
int musiccheck = ACS_ExecuteWithResult(972);
if(bossmusic!=musiccheck)
{
bossmusic=musiccheck;
if(bossmusic==1)
{
SetMusic(MM7FBOS);
}
if(bossmusic==2)
{
SetMusic(VICSONG);
}
}
}
script 3 (int who) DISCONNECT
{
ACS_Execute(25, 0);
}
Logged
September 17, 2016, 09:46:35 PM
Reply #23
Russel
MM8BDM Extender
Doc Croc
>
>
>
>
>
>
>
>
>
>
Date Registered: December 17, 2010, 11:11:25 PM
Re: [Tutorial] MAPINFO + Custom Music
«
Reply #23 on:
September 17, 2016, 09:46:35 PM »
First, remove script 1
Second, BOSSSONG and VICSONG were supposed to stay as those two names.
Third, the script numbers were set up to be plug and play. There was no need to change them. Script 3 should be calling ACS_Execute(2, 0) if you're going to use those numbers.
The resulting scripts should look like:
The script should look like:
(click to show/hide)
#include "zcommon.acs"
str BOSSSONG = "MM7FBOS";
str VICSONG = "MM4VIC"; // This should be some existing song
int bossMusic = 0;
script 2 DEATH
{
Delay(1);
int musiccheck = ACS_ExecuteWithResult(972);
if(bossmusic!=musiccheck)
{
bossmusic=musiccheck;
if(bossmusic==1)
{
SetMusic(BOSSSONG); // This should stay as BOSSSONG
}
if(bossmusic==2)
{
SetMusic(VICSONG);
}
}
}
script 3 (int who) DISCONNECT
{
ACS_Execute(2, 0);
}
Logged
September 17, 2016, 10:37:15 PM
Reply #24
MarioHead
Standard Member
Date Registered: January 03, 2014, 06:55:26 AM
Re: [Tutorial] MAPINFO + Custom Music
«
Reply #24 on:
September 17, 2016, 10:37:15 PM »
Thank you! Now the map it works as it should
(click to show/hide)
#include "zcommon.acs"
str BOSSSONG = "MM7FBOS";
str VICSONG = "MM4VIC";
int bossMusic = 0;
script 1 DEATH
{
Delay(1);
int musiccheck = ACS_ExecuteWithResult(972);
if(bossmusic!=musiccheck)
{
bossmusic=musiccheck;
if(bossmusic==1)
{
SetMusic(BOSSSONG);
}
if(bossmusic==2)
{
SetMusic(VICSONG);
}
}
}
script 2 (int who) DISCONNECT
{
ACS_Execute(1, 0);
}
Script 3 Enter
{
if(GetCvar("duel")==1){terminate;}
if(PlayerFrags() == GetCVar("fraglimit") - 5){
SetMusic("MM7FBOS",0);
terminate;
}
Delay(1);
restart;
}
^ The script if you wanna see ^
Logged
September 17, 2016, 11:07:11 PM
Reply #25
Russel
MM8BDM Extender
Doc Croc
>
>
>
>
>
>
>
>
>
>
Date Registered: December 17, 2010, 11:11:25 PM
Re: [Tutorial] MAPINFO + Custom Music
«
Reply #25 on:
September 17, 2016, 11:07:11 PM »
No I mean... the script I told you to remove is redundant. The script I gave you was explicitly better as it applies to all game modes.
Logged
September 19, 2016, 05:43:41 AM
Reply #26
MarioHead
Standard Member
Date Registered: January 03, 2014, 06:55:26 AM
Re: [Tutorial] MAPINFO + Custom Music
«
Reply #26 on:
September 19, 2016, 05:43:41 AM »
Thanks again
Yeh
Logged
Print
Pages:
1
[
2
]
Cutstuff Forum
»
Mega Man 8-bit Deathmatch
»
Tutorial Collection
»
[Tutorial] MAPINFO + Custom Music