Jump to content

Beta testing Bat2.0


STRUNK
 Share

Recommended Posts

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?

  • Like 1
Link to comment
Share on other sites

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

I tried different things with the mins and max and non of it works ... so how to make sort of a box around the bats that does work?
When I also comment out the size, the map wil also not load with the message cannot use aas96

Link to comment
Share on other sites

9 hours ago, datiswous said:

This seems to work for me:


For me too, up to size 94 94 94. I don' understand but it works. Without the mins and max, do the bats in your map get in the walls/floor/ceiling with their bodies/wings sometimes?

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

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

    • STiFU

      Anyone here played Inscryption? At first, I was like "no, I am not going to play a stupid card game", but this game is so much more than that. It is so meta, full of 4th wall breaks, and feels so damn spooky and weird because of it. Absolutely recommended, if you can stand the visuals. I recommend not reading up too much on it, as that could easily spoil half the incredible surprises. Just know that what you see in the beginning is by far not everything.
      · 1 reply
    • freyk

      Tried to make a tdm advertisement commentpost at one of civvie11 youtube videos about T2. Post got marked as spam. His problem (to not discover TDM for himself),..not my problem.
      But some help of some fellow TDM yt-videocomment posters would be nice. To ask him and others, to play TDM. To get more players/creators. 
      · 2 replies
    • datiswous

      Currently Profile Information has 3 fields, these are shown in forum posts under your avatar:
      1. Gender
      2. Location
      3. Interests
      I think that it could be useful to have an extra field called "Operating system" (under location). It can be useful for tech support and to see what people use.
      Alternatively it could be a more general term, like PC system, so that you can for example state that you use an AMD gpu.
      · 2 replies
    • OrbWeaver

      Greetings fellow kids.
      · 11 replies
    • Crafty_Creeper

      Keep on Creeping on...
       
      · 3 replies
×
×
  • Create New...