#ai lags when patroling

1 messages · Page 1 of 1 (latest)

charred portal
tight minnow
#

The original script was slow because it kept doing a lot of heavy work: it had lots of nested loops, it was constantly finding paths, it was casting rays for all players every 0.1 seconds, and it was checking for stuck or attacking players often. This made the game too busy and caused lag.

charred portal
#

it reduced lag a bit but there is still some

#

also the ai now has chaotic movements

#

and is also jumping at all times

#

could be due to the map

charred portal
#

@tight minnow

tight minnow
#

i'm currently working on a fix. i'll upload it shortly

zenith boneBOT
#

studio** You are now Level 1! **studio

tight minnow
charred portal
#

okay ill try i cant right now

tight minnow
#

i'll be on shortly since i've got to make a few python scripts for a school project

#

catch u later

charred portal
#

i can send a video

tight minnow
#

sure

charred portal
#

its jittering in a spot

#

wrong video

#

at first i thought it might have been the obstacles so i removed them temporarily

tight minnow
#

give me like 5 minutes to fix it

#

i think i made a mistake

#

this should do the trick

charred portal
#

nope

#

doesnt work

charred portal
#

it looks like its gravitating closer to waypoints now

tight minnow
#

if this doesn’t work

#

idk anymore

charred portal
#

it goes to a waypoint then gets stuck

#

atleast it doesnt jitter anymore

tight minnow
#

i’ll have to rework the entire script

#

it will take some time but it will probably work

charred portal
#

yeah ive thought about remaking this script from ground up

tight minnow
#

i can just rework a part of it

#

the rest seems good to me

#

it’s just the detection and stuff

#

it’s broken

charred portal
#

yeah

#

let me know when you finish reworking

#

this script has been broken for a month by now

tight minnow
#

ima try and fix it

charred portal
#

good luck

tight minnow
#

thanks

#

what kinda game is this?

#

seems a bit horror to me

charred portal
#

its my game

#

its based off pm 606

tight minnow
#

cool

zenith boneBOT
#

studio** You are now Level 3! **studio

charred portal
#

its a maze game

#

practically

tight minnow
#

once ur done with it i’ll love to play it

charred portal
#

well im constantly making more levels

#

currently 20 levels are out to public

#

tho the game might be unbalanced

charred portal
tight minnow
charred portal
zenith boneBOT
#

studio** You are now Level 12! **studio

charred portal
#

and also its still a bit laggy

#

when attacking

tight minnow
#

here

#

fixed

charred portal
#

okay ill try in a bit wait

tight minnow
#

oaky

#

okay

charred portal
#

also its a bit too smart compared to old

tight minnow
#

okay so the only issues is lag?

charred portal
#

yeah

tight minnow
#

this could just be a device issue