#ai lags when patroling
1 messages · Page 1 of 1 (latest)
this should do the job
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.
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
@tight minnow
i'm currently working on a fix. i'll upload it shortly
** You are now Level 1! **
@charred portal i've fixed the issues (i think). Please try it and tell me
okay ill try i cant right now
i'll be on shortly since i've got to make a few python scripts for a school project
catch u later
the jump issue is fixed but others arent
i can send a video
sure
its jittering in a spot
wrong video
at first i thought it might have been the obstacles so i removed them temporarily
give me like 5 minutes to fix it
i think i made a mistake
this should do the trick
its still jittery
it looks like its gravitating closer to waypoints now
i’ll have to rework the entire script
it will take some time but it will probably work
yeah ive thought about remaking this script from ground up
i can just rework a part of it
the rest seems good to me
it’s just the detection and stuff
it’s broken
yeah
let me know when you finish reworking
this script has been broken for a month by now
ima try and fix it
good luck
cool
** You are now Level 3! **
well im constantly making more levels
currently 20 levels are out to public
tho the game might be unbalanced
i meant 30 levels released not 20
here you go
so it doesnt move after reaching first waypoint
** You are now Level 12! **
okay ill try in a bit wait
okay so the only issues is lag?
yeah
this could just be a device issue