Jump to content
The Dark Mod Forums

Recommended Posts

Posted

Finally got it working. It turns out that all the used_by stuff is a bust. There doesn't seem to be any way to stop it frobbing multiple times in rapid succession.

 

A better way is to make the receptacle an atdm:frobable_base and target it to a callscript that runs the following:

float objects_in_receptacle = 0;

void receptacle_script() {
    string curinv = $player1.getCurInvCategory();
    if(curinv!="Marbles") {return;}    //check to make sure you've selected the things that will
                                      //go into the receptacle. If not, go back
    $player1.changeInvItemCount("Glass Marble", "Marbles", -1);   //remove a marble from inventory
    $objects_in_receptacle+=1;                                    //increment count in bucket
    // DO ANYTHING ELSE THAT HAPPENS WHEN YOU DROP A MARBLE IN THE BUCKET
    return;
}

 

  • Like 2
  • Thanks 1

My missions:      Stand-alone                                                  Duncan Lynch series           Collabs                             

                                 Down and Out on Newford Road          the Factory Heist                  A Collector's Errand (with Bikerdude)

                           The Wizard's Treasure                          A House Call

                                                                                           The House of deLisle                                                                                                  

                              

Posted

Just thought I'd drop in an oddity about the trigger_sequencer entity:

Its targets are evaluated in lexicographical, rather than numerical, order. That is, target10 will fire before target2.

  • Like 1
  • Thanks 2

My missions:      Stand-alone                                                  Duncan Lynch series           Collabs                             

                                 Down and Out on Newford Road          the Factory Heist                  A Collector's Errand (with Bikerdude)

                           The Wizard's Treasure                          A House Call

                                                                                           The House of deLisle                                                                                                  

                              

Posted (edited)

OK, I'm tearing my hair out over an end-mission conversation cutscene. I'm activating a script along these lines

 

void gameover() {
    $badguy_atdm_teleport.activate($player1);
    sys.fadeTo('0 0 0', 1, 2);
    sys.wait(2);
    $gameover_cam.activate($player1);
    sys.fadeTo('0 0 0', 0, 2);
    sys.wait(2);
    $start_gloatconvo.activate($player1);

    sys.wait(7);
    $player1.missionFailed();
    return;
}

Basically I teleport the badguy into position, fade to black, transfer the view to the camera, fade back in, and begin his conversation. Unfortunately, he just stands there and won't do his monologue. Sometimes he even freezes completely, not even doing his idle movements. If I comment out the $gameover_cam.activate and noclip there, the conversation does work correctly.

What am I doing wrong?

 

camera_suppress.mapcamera_suppress.script

Here's a minimal example of the problem. Press the red button, the camera activates but the guy's conversation won't play. The green button triggers a script that's identical except that the camera is commented out- and his conversation does trigger.

Edited by thebigh
typo

My missions:      Stand-alone                                                  Duncan Lynch series           Collabs                             

                                 Down and Out on Newford Road          the Factory Heist                  A Collector's Errand (with Bikerdude)

                           The Wizard's Treasure                          A House Call

                                                                                           The House of deLisle                                                                                                  

                              

Posted
19 hours ago, thebigh said:

OK, I'm tearing my hair out over an end-mission conversation cutscene. I'm activating a script along these lines

 

void gameover() {
    $badguy_atdm_teleport.activate($player1);
    sys.fadeTo('0 0 0', 1, 2);
    sys.wait(2);
    $gameover_cam.activate($player1);
    sys.fadeTo('0 0 0', 0, 2);
    sys.wait(2);
    $start_gloatconvo.activate($player1);

    sys.wait(7);
    $player1.missionFailed();
    return;
}

Basically I teleport the badguy into position, fade to black, transfer the view to the camera, fade back in, and begin his conversation. Unfortunately, he just stands there and won't do his monologue. Sometimes he even freezes completely, not even doing his idle movements. If I comment out the $gameover_cam.activate and noclip there, the conversation does work correctly.

What am I doing wrong?

 

camera_suppress.map 14.85 kB · 0 downloads camera_suppress.script 609 B · 0 downloads

Here's a minimal example of the problem. Press the red button, the camera activates but the guy's conversation won't play. The green button triggers a script that's identical except that the camera is commented out- and his conversation does trigger.

Give the AI the property

cinematic - 1

 

 

  • Thanks 1
Posted

Aha! Not sure how I missed that...

My missions:      Stand-alone                                                  Duncan Lynch series           Collabs                             

                                 Down and Out on Newford Road          the Factory Heist                  A Collector's Errand (with Bikerdude)

                           The Wizard's Treasure                          A House Call

                                                                                           The House of deLisle                                                                                                  

                              

  • 2 weeks later...
Posted (edited)

Hello TDM-ers.

I am encountering an issue where textures seem to partially disappear.  I tried searching the forums, but, I don't know what to search for.

The missing textures are a worldspawn brush acting as a roof with {for now} flat iron texture.  There are other worldspawn brushes right below to create an attic ceiling with roof framework board texture.

These gaps appeared a few edits ago.  I can't "undo" to get back before whatever edit did this.  The gaps are only visible during play and are not visible during editing.  Closing and reopening DR and TDM do not fix anything.

Some of the brushes overlap in areas behind the play area but I have never seen an issue doing that.

The attached image has the effect I am now seeing.

Ideas on where to start debugging this?

Very much appreciated.

Clint

TextureLoss001.jpg

Edited by cvlw
Posted (edited)
On 9/9/2023 at 11:37 AM, AluminumHaste said:

Usually this is due to not snapping your brushes to the grid.

Ok thanks.  Yeah this roof build seems to defy the grid by its shape, so will look at that and see if I can create it better with the grid in mind.

What is the minimum grid?  Should I avoid the fractional grids and  go with 1 or above?

EDIT>>>  Thanks AluminumHate.  I think this is the exact advice I needed.  I selected each roof brush and hit control-G to align to grid (grid 1 in this case), and it corrected all of the missing textures in game play.  I now need to address roof brushes better as there is now a lot of misalignment.  I will try and keep gridding in mind going forward.

Clint

Edited by cvlw
Posted
50 minutes ago, cvlw said:

Ok thanks.  Yeah this roof build seems to defy the grid by its shape, so will look at that and see if I can create it better with the grid in mind.

What is the minimum grid?  Should I avoid the fractional grids and  go with 1 or above?

EDIT>>>  Thanks AluminumHate.  I think this is the exact advice I needed.  I selected each roof brush and hit control-G to align to grid (grid 1 in this case), and it corrected all of the missing textures in game play.  I now need to address roof brushes better as there is now a lot of misalignment.  I will try and keep gridding in mind going forward.

Clint

Grid 1 is fiddly, prone to vertex drifts. Honestly, that grid size is something I would use to make details on a door. A sloping roof should be snapped to grid8

  • Like 1
  • Thanks 1

I always assumed I'd taste like boot leather.

 

Posted

Yes, and anything under 1 I tend to use only to nudge decals off the surface they're Z-fighting with

  • Like 1

My missions:      Stand-alone                                                  Duncan Lynch series           Collabs                             

                                 Down and Out on Newford Road          the Factory Heist                  A Collector's Errand (with Bikerdude)

                           The Wizard's Treasure                          A House Call

                                                                                           The House of deLisle                                                                                                  

                              

  • 2 weeks later...
Posted

Try unchecking the "Boolean NOT" box, but adding "Failure Logic: 1" (see my screengrab). That way the objective fails if the AI is killed, and since it is a Mandatory objective, the mission fails.

Posted

Here's another question (the last for this mission, I'm sure)!

I'm using info_location for the ambient sounds, which works quite nicely, but I don't really want the sound to loop endlessly. I tried adding s_looping 0 to one of the info_locations, but the sound still loops there. I also tried that on the global atdm:location_settings, but it still loops. Is it bugged or is it just me?

Posted (edited)

You might just be better off triggering a speaker when you want it played. I could be wrong, but I don't think the location system ambients work like how you want them to

Edited by Amadeus
  • Thanks 1
Posted (edited)
On 8/13/2023 at 7:11 PM, thebigh said:

It would also be possible to use a script to move a speaker.

Say your river is running straight west-east. Put the river noise speaker in the river somewhere. Then set up a trigger-timer to fire every 0.1 of a second and target it to a callscript. The script will then get the player's X-coordinate and set the speaker's X-coordinate to that value. In this way the speaker will always be level with the player and it should sound as though the river noise is coming directly from the river.

Great idea. I just added this to my upcoming mission. chatGPT helped me with the script.  Works like a charm.

vector playerPosition;
vector riversoundPosition;

void sound_follow(entity zone)  // have river sound speaker ($river_sound) follow the player along the river when in the yard
{
	playerPosition = $player1.getOrigin();
	riversoundPosition = $river_sound.getOrigin();
	riversoundPosition_y = playerPosition_y;  // river runs north-south, only need to change y
	$river_sound.setOrigin(riversoundPosition); 
	sys.wait(0.2);
	thread sound_follow($player1);
}

void kill_sound_follow(entity zone) // stop river sound following player when they leave the yard 
{
	sys.killthread("sound_follow");
}

 

Edited by grodenglaive
  • Like 1
Posted (edited)

Hello again TDMers.

I am using Text entities to make notes on the map of things I need to do.  However, I constantly need to manually add the TEXT property every time I add one.  The Text is the basic reason I am adding these things.

Is there a way to make the TEXT property show up by default when I create the Text entity?  Maybe also the Force property (defaulted to 0) and playerOriented (defaulted to 0)?  I use these three properties regularly, but they are not present by default.

Appreciated.

Clint

 

Edited by cvlw
Posted (edited)

 

Quote

Is there a way to make the TEXT property show up by default when I create the Text entity?

yes but this requires that you make a copy of the original .def file where the text entity is defined, that I personally don't know where in TDM (in Doom 3 is in misc.def) and make a def folder for your own mission where you put the .def file copy (your copy will override the original def file, when your mission is played).

see the new "text" default var

entityDef text {
	"editor_color"			"1 1 0"
	"editor_mins"			"-4 -4 -4"
	"editor_maxs"			"4 4 4"
	"editor_showangle"				"1"
	"editor_rotatable"				"1"

	"editor_usage"					"Used to display debug text in a level"
	"editor_var text"				"text to print"
	"editor_bool force"				"if set to 1 prints always otherwise only in developer mode"
	"editor_bool playerOriented" 	"if set to 1 text always faces the player"
	"editor_var scale"				"text scale"
	
	"scale" 				"0.25"
	"text"				"default text shown for all text entites"

	"spawnclass"			"idTextEntity"
}

 

Edited by HMart
  • Thanks 1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recent Status Updates

    • JackFarmer

      Happy Labour Day, my taffing taffers & hard working mapping friends!
      And remember the poor souls who, within the Inventors’ organization, labor under Jonus’s yoke to ensure the success of that very guild! Always remember the hard workers!
      · 2 replies
    • datiswous

      Is there a script command to make a screenshot?
      I just though it could be interesting to be able to create a screenshot at a certain point in time. Then use that screenshot possibly in a debrief.
      I guess the second question is: Can you use a (in-game made) screenshot in a (debrief) gui?
      · 1 reply
    • Bikerdude  »  Display Cement

      So what type, and what ratio of portland to sand 😏
      · 1 reply
    • JackFarmer

      Our esteemed professional mapping predecessors from 20 years ago faced the same challenges we do today!
      · 2 replies
    • snatcher

      TDM Modpack 5.1 is out!
      · 0 replies
×
×
  • Create New...