Page 1 of 2

Decorate Bot

Posted: Fri Apr 01, 2016 10:19 pm
by Bootleg Guy
Note: This thing is not very coop friendly, as in, it does not do a very good job as an ally, since it can still kill you and it doesn't do a good job at following you, and it was tested in a "deathmatch" like conditions. You can use this however you want, but if you do, please give credit.
Credits to: Lance for giving me the code so the decobots can strafe.


Decorate Bot!

It was about time I released this thing.

phpBB [media]

This is a video of an earlier version of the bot, too lazy to record a new one, since this one has all the important stuff you should need to see about these decobots

phpBB [media]

Another video of an earlier version, this one is a deathmatch (wich im not very good at) and also has a scrapped version of the decobot that spawns with different skins

What is this?

This is a bot. Made in decorate.

I want a more detailed explanation.

[spoiler]DecoBot Behaviour (Might not be very accurate, or it might be very accurate):

-They can strafe, jump, back up, and of course, go forward, altough it sounds more impressive here, its all RNG, so they might move "smartly" or stupidly

-They use different weapons at different ranges and depending on health

Healthy:

-Chaingun, Long Range

-Super Shotgun, Short Range

Low Health:

-Plasma Gun, Long Range

-Rocket Launcher, Short Range

EXTREMELY Low Health:

-Rocket Launcher spam, they wont move while doing this and have bad aiming[/spoiler]

Download Link

https://www.dropbox.com/s/7n2uzzrodh2m6 ... t.wad?dl=0

Re: Decorate Bot

Posted: Fri Apr 01, 2016 11:06 pm
by Gustavo6046
Can I upload the WAD to GitHub? I want to do some modifications that would allow for a line-of-sight check between the bot and the target, and make the bot be able to use the Use key. :)

I still don't know how to make it stop following the player at summonfriend. :(

Other than that, nice mod! Keep up the good work :)

Re: Decorate Bot

Posted: Fri Apr 01, 2016 11:09 pm
by Bootleg Guy
Sure, you can use this however you want as long as you want, just remember to give credit :biggrin:

Re: Decorate Bot

Posted: Fri Apr 01, 2016 11:44 pm
by Gustavo6046
O.K. Uploaded!

If you want you can just fork this to your version so your bot becomes open-source :^)

Do you know of something that makes the actor "Use" whatever is at it's front?

Re: Decorate Bot

Posted: Fri Apr 01, 2016 11:52 pm
by Bootleg Guy
Sure thing!

Also no, I don't know something that makes the actor use something it has in front :/

Re: Decorate Bot

Posted: Sat Apr 02, 2016 12:14 am
by Gustavo6046
Ok.

Do you have some idea what the bot should do once it's target is away?

Re: Decorate Bot

Posted: Sat Apr 02, 2016 12:23 am
by Bootleg Guy
It already does something when it's target is away, it will try to chase its target like a normal doom monster, just in running player speed

Re: Decorate Bot

Posted: Sat Apr 02, 2016 12:24 am
by Gustavo6046
Yes but, in Searching state, when it's further away, like 800 or so units.

It will go to a state, where it considers itself partially safe. Sometimes it goes to Idle state if a) there's no line of sight to monster and b) it's more than 1200 units away. So this makes it jump to Idle state.

Re: Decorate Bot

Posted: Sat Apr 02, 2016 12:41 am
by Bootleg Guy
That could work, when it can't catch its target and its the 1200 units away, it would go in the idle state as in it just stands there looking around?

Re: Decorate Bot

Posted: Sat Apr 02, 2016 12:53 am
by Gustavo6046
Yep, basically that.

However, right now the bot is often crashing when alerted by sounds and when I resurrect.

Re: Decorate Bot

Posted: Sat Apr 02, 2016 1:03 am
by Bootleg Guy
Crashing as in crashing the game or crashing into walls?

Re: Decorate Bot

Posted: Sat Apr 02, 2016 1:08 am
by Gustavo6046
Bootleg Guy wrote:Crashing as in crashing the game or crashing into walls?
Crashing the game. It gets into a window and Windows says it stopped working. Ugh, I really dislike when stuff crashes the game. I'm sure you do too. So let's work in the GitHub repo I shown.

Re: Decorate Bot

Posted: Sat Apr 02, 2016 1:12 am
by Bootleg Guy
mmh, it never crashed the game for me when I playtested it, so I don't know what might be causing the crashes :/

Re: Decorate Bot

Posted: Sat Apr 02, 2016 1:15 am
by Gustavo6046
You probably should take a look at the repository I linked. I just updated it. All you have to do is to package the folder into a WAD or PK3 and run it.

Re: Decorate Bot

Posted: Sat Apr 02, 2016 1:41 am
by Bootleg Guy
I think the crash might be caused by this

Code: Select all

SeeSound "misc/w_pkup"
There isn't any sound info lump or sound file in the wad

EDIT: It seem it isn't caused by it. Gonna look into it right now

EDIT 2: Removed this from the code

Code: Select all

TNT1 A 0 A_CheckSight("Searching")
It seems it caused the crash, since putting // or removing it makes the decobot not crash the game

Re: Decorate Bot

Posted: Sat Apr 02, 2016 1:10 pm
by Gustavo6046
Ok, I don't know why it would cause the crash, but I'll try to fix it ASAP.

Btw, great bot! :D

Re: Decorate Bot

Posted: Sat Apr 02, 2016 1:30 pm
by Monsterovich
Great idea, let's fix/replace these crappy skulltag bots.

and you have to support simple waypoints in the future.

Is that agh's track in the video?

Re: Decorate Bot

Posted: Sat Apr 02, 2016 3:49 pm
by Bootleg Guy
Monsterovich wrote:Is that agh's track in the video?
It's Exquisite by TSEC

Re: Decorate Bot

Posted: Sun Apr 03, 2016 10:07 pm
by Gustavo6046
Do you know if the bot could roam by itself, independent of the player, somehow? I have yet to implement this. Sadly I don't master it.

Re: Decorate Bot

Posted: Sun Apr 03, 2016 10:31 pm
by Bootleg Guy
I think replacing its spawn state with something like this could work

Code: Select all

	PLAY AAAA 1 A_Recoil(-2)
	TNT1 A 0 A_Look
	TNT1 AAAAAAAA 0 A_Wander
	PLAY BBBB 1 A_Recoil(-2)
	TNT1 A 0 A_Look
	TNT1 AAAAAAAA 0 A_Wander
	PLAY CCCC 1 A_Recoil(-2)
	TNT1 A 0 A_Look
	TNT1 AAAAAAAA 0 A_Wander
	PLAY DDDD 1 A_Recoil(-2)
	TNT1 A 0 A_Look
	TNT1 AAAAAAAA 0 A_Wander