Advanced Search

Author Topic: How do "I" do THAT in Doom Builder?  (Read 218328 times)

0 Members and 1 Guest are viewing this topic.

January 08, 2015, 06:36:08 PM
Reply #675

Offline Megaman94

  • Standard Member
  • Date Registered: April 08, 2013, 08:49:51 PM

    • View Profile
    • http://sonicfansunited.forumotion.com/
Re: How do "I" do THAT in Doom Builder?
« Reply #675 on: January 08, 2015, 06:36:08 PM »
I try to use the new music script for my map pack but it says "Function getplayerlivesleft is used but not defined"

It is the one used in legopack-v1b

(click to show/hide)

January 08, 2015, 08:13:16 PM
Reply #676

Offline Thunderono

  • MM8BDM MM9 Contributor

  • The Treaded Treasury
  • *****
  • Date Registered: December 04, 2010, 11:20:27 PM

    • View Profile
    • KHAN
Re: How do "I" do THAT in Doom Builder?
« Reply #676 on: January 08, 2015, 08:13:16 PM »
Did you remember to include the line #include "zcommon.acs" at the top of your scripts file?  I had a similar issue a while back, and it turned out I was missing that piece.

January 08, 2015, 08:34:17 PM
Reply #677

Offline Megaman94

  • Standard Member
  • Date Registered: April 08, 2013, 08:49:51 PM

    • View Profile
    • http://sonicfansunited.forumotion.com/
Re: How do "I" do THAT in Doom Builder?
« Reply #677 on: January 08, 2015, 08:34:17 PM »
Quote from: "Thunder Electros"
Did you remember to include the line #include "zcommon.acs" at the top of your scripts file?  I had a similar issue a while back, and it turned out I was missing that piece.

Yeah, it is there

January 08, 2015, 09:40:35 PM
Reply #678

Offline Russel

  • MM8BDM Extender

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

    • View Profile
Re: How do "I" do THAT in Doom Builder?
« Reply #678 on: January 08, 2015, 09:40:35 PM »
The script in LegoPack is kind of finicky, it used a modified version of Core's boss music which required a special ACS compiler to set up. Since v4b is out, try compiling using the following script instead:

Code: [Select]
str BOSSSONG = "LDMBOSS2";
str VICSONG = "LDMVIC";
int bossMusic = 0;

script 25 DEATH
{
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
{
Delay(1);
ACS_Execute(25, 0);
}

January 09, 2015, 03:06:32 AM
Reply #679

Offline Megaman94

  • Standard Member
  • Date Registered: April 08, 2013, 08:49:51 PM

    • View Profile
    • http://sonicfansunited.forumotion.com/
Re: How do "I" do THAT in Doom Builder?
« Reply #679 on: January 09, 2015, 03:06:32 AM »
Quote from: "Lego"
The script in LegoPack is kind of finicky, it used a modified version of Core's boss music which required a special ACS compiler to set up. Since v4b is out, try compiling using the following script instead:

Code: [Select]
str BOSSSONG = "LDMBOSS2";
str VICSONG = "LDMVIC";
int bossMusic = 0;

script 25 DEATH
{
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
{
Delay(1);
ACS_Execute(25, 0);
}

The HUD keeps saying "P_startscript: unknown script 972" and it is not changing the music

January 09, 2015, 03:22:14 AM
Reply #680

Offline Russel

  • MM8BDM Extender

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

    • View Profile

January 09, 2015, 03:31:33 AM
Reply #681

Offline Megaman94

  • Standard Member
  • Date Registered: April 08, 2013, 08:49:51 PM

    • View Profile
    • http://sonicfansunited.forumotion.com/
Re: How do "I" do THAT in Doom Builder?
« Reply #681 on: January 09, 2015, 03:31:33 AM »
Quote from: "Lego"
Try loading with v4b since that's the version of the game we're using now.


That is what I did...
I used the V4b launcher to open MM8DM

January 09, 2015, 03:36:07 AM
Reply #682

Offline Knux

  • Standard Member
  • *
  • Date Registered: September 04, 2009, 06:56:01 AM

    • View Profile
Re: How do "I" do THAT in Doom Builder?
« Reply #682 on: January 09, 2015, 03:36:07 AM »
You're supposed to start the game by just clicking on Start if you wanna play it with no mods whatsoever.

January 09, 2015, 03:46:15 AM
Reply #683

Offline Russel

  • MM8BDM Extender

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

    • View Profile
Re: How do "I" do THAT in Doom Builder?
« Reply #683 on: January 09, 2015, 03:46:15 AM »
Make sure v4b is loaded as a resource for Doom Builder and run the game from there.
Do not load v4a alongside it.

January 09, 2015, 02:48:33 PM
Reply #684

Offline Megaman94

  • Standard Member
  • Date Registered: April 08, 2013, 08:49:51 PM

    • View Profile
    • http://sonicfansunited.forumotion.com/
Re: How do "I" do THAT in Doom Builder?
« Reply #684 on: January 09, 2015, 02:48:33 PM »
Quote from: "Lego"
Make sure v4b is loaded as a resource for Doom Builder and run the game from there.
Do not load v4a alongside it.

Yup, I am doing that too.


January 09, 2015, 03:08:20 PM
Reply #685

Offline Russel

  • MM8BDM Extender

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

    • View Profile
Re: How do "I" do THAT in Doom Builder?
« Reply #685 on: January 09, 2015, 03:08:20 PM »
Why is the pk3 loaded before the iwad?
I mean...that might not impact anything, but...

try changing the load order so that the iwad is first.

January 09, 2015, 03:23:56 PM
Reply #686

Offline Megaman94

  • Standard Member
  • Date Registered: April 08, 2013, 08:49:51 PM

    • View Profile
    • http://sonicfansunited.forumotion.com/
Re: How do "I" do THAT in Doom Builder?
« Reply #686 on: January 09, 2015, 03:23:56 PM »
Quote from: "Lego"
Why is the pk3 loaded before the iwad?
I mean...that might not impact anything, but...

try changing the load order so that the iwad is first.

No, didn't do anything

January 09, 2015, 03:52:35 PM
Reply #687

Offline Russel

  • MM8BDM Extender

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

    • View Profile
Re: How do "I" do THAT in Doom Builder?
« Reply #687 on: January 09, 2015, 03:52:35 PM »
Hmm.
Paste full script code here, please.
Every single line. If you don't want to publicly, then PM me.

January 09, 2015, 04:20:29 PM
Reply #688

Offline Megaman94

  • Standard Member
  • Date Registered: April 08, 2013, 08:49:51 PM

    • View Profile
    • http://sonicfansunited.forumotion.com/
Re: How do "I" do THAT in Doom Builder?
« Reply #688 on: January 09, 2015, 04:20:29 PM »
Quote from: "Lego"
Hmm.
Paste full script code here, please.
Every single line. If you don't want to publicly, then PM me.


(click to show/hide)

January 09, 2015, 04:33:15 PM
Reply #689

Offline Russel

  • MM8BDM Extender

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

    • View Profile
Re: How do "I" do THAT in Doom Builder?
« Reply #689 on: January 09, 2015, 04:33:15 PM »
Couple things to note first.
1) Change "bool bossmusic" to "int bossmusic"
2) Remove "int servermax=32" and "int maxfrags"

Are you running the game through the launcher or through doom builder to test?