Jump to content
The Dark Mod Forums

Beta testing Bat2.0


STRUNK
 Share

Recommended Posts

25 minutes ago, STRUNK said:

Hmm ... I had all sorts of problems with aas where my map didn't even start: "can't use aas*"
When I change it to aas96 my map doesn't start again.
aas_96 is incorrect indeed so something is going wrong with aas things .. but where?

I fixed that the first time around by reducing the size / mins / maxs spawnargs of the bat to fit inside the maximum bounds allowed for that aas type. You can see the max bounds allowed by looking at the aas entities in the Create Entity menu.

  • Like 1
Link to comment
Share on other sites

9 hours ago, Dragofer said:

I fixed that the first time around by reducing the size / mins / maxs spawnargs of the bat to fit inside the maximum bounds allowed for that aas type.

I thought I fixed it too then, but aparently I typed aas96 wrong.
size above 94 94 94 doesn't seem to work .. ok. But I commentend out the mins and max now and the bats are getting in the ground a bit.
The mins and max prevent the bat from doing that so the bat needs that right?
But does it need the size?

Link to comment
Share on other sites

Not at the moment, but I have a large room (could try a smaller one)  and I have set it up for patrolling. Patrolling only works in a straight line, if you do corners in the path, the bat gets lost. Might be different in tight places.

I wonder why you used aas96. This seems more for big(ger) ai.

 

Edit: A request from people with more knowledge: A wiki page about the aas system with a graphic presentation of what it does and how it is used.

Edit2: Aah, there's some info over here: https://modwiki.dhewm3.org/The_Doom_3_AAS_system
and here: http://www.kbs.twi.tudelft.nl/docs/MSc/2001/Waveren_Jean-Paul_van/thesis.pdf  (page 24)
Well it's a bit technical though
 

Edited by datiswous
  • Like 1
Link to comment
Share on other sites

@datiswous

I've been looking at the aas and stuff again and came up with the following, that seems to be working as is should
For the Bat:

	"use_aas" 	            "aas48" 		
	"size"                	"48 48 48"
	"mins"					"-24 -24 0"
	"maxs"					"24 24 48"				

For the BatSmall:
 

	"use_aas" 	            "aas32" 		
	"size"                	"32 32 32"
	"mins"					"-16 -16 0"
	"maxs"					"16 16 32"	


I will update the download in the first post also

tdm_ai_bat.def

  • Like 1
Link to comment
Share on other sites

Looking at the rats anims there is no anim turn so I guess that is not needed for making turns when following paths? (Can rats follow paths?):
 

	anim idle			models/md5/chars/simple_animals/ratz/rat_idle2.md5anim
    anim idle2			models/md5/chars/simple_animals/ratz/rat_idle1.md5anim
	anim walk_blind		models/md5/chars/simple_animals/ratz/rat_idle2.md5anim // grayman #2469

	anim walk			models/md5/chars/simple_animals/ratz/rat_walk.md5anim
	{
		frame 1		footstep
		frame 11	footstep
	}
	
	anim walk2			models/md5/chars/simple_animals/ratz/rat_scamper_01.md5anim
	{
		frame 1		footstep
		frame 11	footstep
	}

	//anim run			models/md5/chars/simple_animals/ratz/rat_scamper_01.md5anim
	anim run			models/md5/chars/simple_animals/ratz/rat_walk.md5anim
	{
	   frame 1		footstep
	   frame 11		footstep
	}
	
	anim search			models/md5/chars/simple_animals/ratz/rat_walk.md5anim
	{
	   frame 3		footstep
	   frame 11		footstep
	}
	
	anim melee_attack1	models/md5/chars/simple_animals/ratz/rat_scamper_01.md5anim
	{
	   frame 1		footstep
	   frame 11		footstep
	}

	anim sight			models/md5/chars/simple_animals/ratz/rat_idle1.md5anim 
	{
		frame 2		sound_voice snd_sight
	}

@datiswous
Maybe with the half size aas and size the turning on paths works better?

Edited by STRUNK
Link to comment
Share on other sites

On 2/7/2022 at 10:54 AM, STRUNK said:

(Can rats follow paths?)

Rats can follow paths. But I can't get the (new) bat to follow a path. It just flies to a corner and then starts flying in a circle. Also in animal patrol mode it seems to get stuck.

Maybe taking the tdm_ai_monster_elemental.def which can be found in tdm_devs01.pk4 as a basis is an idea? Since that is a flying unit as well.

Edited by datiswous
Link to comment
Share on other sites

man1b.map

You can test with tdm_ai_showdest 1

 

For comparison I added a fast flying elemental

 

Edit: Actually the patrol mode seems to work better at lower speeds. Maybe if there are more path_corner entities added closer to each other it might work better. Still the fire elemental seems to have less issue following the path at higher speeds than the bat.

Maybe someone with more experience can test?

Edit: I updated the map file with a version with the now working bat.

Edited by datiswous
Link to comment
Share on other sites

fly_seek_scale seems to be important. The info says:

Quote

Has an effect on the flying behaviour. Should maybe be changed for small or large spaces

Default it is set to 0.5 . If I change it to 20 it has no problems following the path. Maybe this needs to be lower or higher in smaller areas. I don't know what the logic is here, but at 10 it is still not good enough for my map.

The fire elemental has fly_seek_scale set to 4, but the speed is set to 20..

Adding more path_corner entities has no influence.

 

Animal patrol mode also works. Weird enough it can be combined with a patrol route to get some random behavior added to the following of the route. So it flies around a bit and then flies to the next point, then flies around a bit again..

Also, in animal patrol mode (with a set patrol route) it can fly at different heights, by setting the path_corner entities at different heights. This doesn't work properly in normal patrol mode.

 

Edited by datiswous
Link to comment
Share on other sites

  • 9 months later...
On 2/9/2022 at 11:41 PM, datiswous said:

Animal patrol mode also works. Weird enough it can be combined with a patrol route to get some random behavior added to the following of the route. So it flies around a bit and then flies to the next point, then flies around a bit again..

Also, in animal patrol mode (with a set patrol route) it can fly at different heights, by setting the path_corner entities at different heights. This doesn't work properly in normal patrol mode.

 

So I simply use path nodes as for fire elementals to create a route for the bats?

Link to comment
Share on other sites

Did not really make good experiences with path nodes and fire elementals in the past, thus I would like to keep them on random patrol. I've placed four of them in two area (each area two), and at first it worked fine.

This is how it looks in the room where it still works ok (in a single event in four weeks one of the bats entered the cave (you can see the cave entrance at running time ca. 1:00) and got stuck. But this did not happen again since then.

Here comes the other area and it is so weird: when I first put the bats there, they worked as in the first video, but then suddenly they stopped moving...and I did not get them to move again since then. Every time I start the mission, they stay in a certain position (not sure whether this is the position at map start) as you can see in the video. Changing the positiond of the bats had no effect. 

I understand that small rooms may cause problems but I do not understand that at first it worked as it should, hm....

Anyway, I have wasted lots of time with this. I'll try again next year when I add gameplay, will keep you posted.

Link to comment
Share on other sites

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.

 Share

  • Recent Status Updates

    • peter_spy

      Perhaps an unpopular opinion: TDM team might benefit from someone with actual QA experience; someone with naturally and professionally developed curiosity, who is interested in how and why things work, how they break At least to me it's kind of mind-boggling how untested some rather important features are (first the absence alert feature for items, now the rope +body carry behavior).
      · 4 replies
    • nbohr1more

      The Dark Mod is hosting an Ask Me Anything thread on the PC Gaming reddit forum:  https://www.reddit.com/r/pcgaming/comments/10nfcwj/hello_we_are_the_international_development_team/
      Feel free to join the discussion there
      · 2 replies
    • stgatilov

      Bumped into an interesting piece of wisdom called Hyrum's Law:
      With a sufficient number of users of an API, it does not matter what you promise in the contract: all observable behaviors of your system will be depended on by somebody.
      · 5 replies
    • The Black Arrow

      I love playing The Dark Mod when it's cold in my place. Bonus points when it's a bit (or even very) dark and it's raining, too.
      · 2 replies
    • The Black Arrow

      I've been having stutters in Vulkan, apparently it's Nvidia Drivers' fault, so I reverted to 512 according to this: https://www.nvidia.com/en-us/geforce/forums/geforce-graphics-cards/5/505679/regular-microstutter-in-vulkan-applications-after-/?topicPage=40

      And no, that did NOT fix it. What's going on? My GPU is an RTX 2070, by the way.
      · 4 replies
×
×
  • Create New...