Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AI Camera Rework
#40
Zamujasa Wrote:I tried playing AI last night and it's like the camera system has gotten even worse since a few months ago. The thing will just randomly jump way the fuck out to the mining magnet for no obvious reasons sometimes.

You can kind of get around the bullshittery if you're willing to use the mouse. Clicking on the screen will (as much as I can tell) try to focus on that area with a nearby camera. It works a lot better than the directional keys, but not by much.

All I can say is that it's very frustrating to try to be an effective AI, because the camera movement isn't really predictable. I'm pretty sure there's a few places where pushing down then up (or any other similar combo) won't take you back to where you came from.

I've been working on camera optimizations recently so that switching cameras will be a lot faster than before, which should reduce some AI pains. I also did some other tweaking to the camera switching behaviour, so let's talk about this for a bit.

Arrow key camera movement
This works by selecting the nearest camera to your current one in the direction you want to go.
A large part of why it was being really weird in the past was because it was actually weighted to prefer cameras in the same area as your current location. Hence it'd select a camera that's not quite in the right direction and also further away because it was in the same general area.

I removed this weighting, so camera movement should now behave more like you would expect. Going left will pick a camera to your left, rooms be damned.

Mouse camera movement
As Zamujasa found, sometimes a misclick would take you to the mining magnet. This is because the mouse camera movement works by selecting the nearest camera to where you clicked in the area that you clicked. Hence, everything is fine, so long as you click some room on the station. If you click space however...
Awesome Cylon "I'm gonna click this space tile up in security to bring focus back to the game screen."
:downs: "Aw, man, it's time to do some work! I see you're looking for a camera in space, lessee here! Oh, there's only one! I bet you wanted to go to the mining magnet, here ya go!"
This fracking show! "You utter fuck..." *initiate grumppost.exe*
:downs: "I'm help"

I changed this to ignore any instances where you click space. Camera movement using the mouse should now be a neat tool to use if you see a room you want to go to straight away, without camera-hopping.

Camera Networks
Removed the Prison network (lol)

Show Camera List
It will now display every instance of a camera-equipped bot instead of only the last one (lol)

What's next
As mentioned, sometimes cameras will map differently, so if you head SOUTH from one camera, then immediately NORTH you might not get the original camera. I'm looking into fixes for this as well, but the removal of area weighting should help tremendously here.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)