Author Topic: [Nomad - Can you help?] Enemy not releasing his turn  (Read 51849 times)

Nomad

  • Sr. Member
  • ****
  • Posts: 453
[Nomad - Can you help?] Enemy not releasing his turn
« on: July 22, 2017, 04:01:27 AM »
*facepalm*
I broke it straight away again.
Firstly, I started this mission by accident (I was clicking Surveillance quickly and accidentally hit Start Mission).
Then, luckily for me, it was only three guys.
Unluckily for me I only had 3 med kits and 2 spare bullets for my pistol.
I was doing ok... but then the guy ran in front of me, took a shot... and then nothing. I think he's just forgotten to hit End Turn.


Edited to add the picture (because I forgot).
« Last Edit: August 23, 2017, 05:31:52 PM by Daithi »

Nomad

  • Sr. Member
  • ****
  • Posts: 453
Re: Enemy not releasing his turn
« Reply #1 on: July 22, 2017, 08:22:03 AM »
Happened again.
I had Sam and Ray on punching Overwatch. Ray took his shot.
The Mafioso is not relinquishing her turn.

Note in the background (just under Sam's initiative portrait) there are 3 Mafioso. The one in the middle is the one whose turn it is.
« Last Edit: July 22, 2017, 08:50:50 AM by Nomad »

Nomad

  • Sr. Member
  • ****
  • Posts: 453
Re: Enemy not releasing his turn
« Reply #2 on: July 22, 2017, 08:53:32 AM »
The first time it happened I wasn't using Overwatch. The second time I was. So, I don't believe Overwatch is the culprit.

The first time I was solo and the second I wasn't.
The first time was Survivalists and the second Mafia.
The first time the guy shot at me before freezing, the second time I think the person was just moving (I don't know if they moved but they didn't have a gun in their hand).

Both times it was my turn next, so it looks like an issue with the hand-off.

Nomad

  • Sr. Member
  • ****
  • Posts: 453
Re: Enemy not releasing his turn
« Reply #3 on: July 24, 2017, 05:44:05 AM »
Ok... this time it was a little different (possibly an Overwatch issue?).

My people laying in ambush, testing Overwatch.
Soldier comes around the corner. Elena is set to Lethal, everyone else is set to subdue.
Elena opens fire when he clears the corner. She hits him for 40.
Then the Cop fires twice and hits him twice for 24 each.
Then the Survivalist forgets to fall over. In forgetting to fall over, he's forgotten to end his turn.

I don't know if it's a problem with the Overwatch or the combination of lethal versus non-lethal or just the same issue as above (even though it wasn't my turn next).


Daithi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1250
Re: Enemy not releasing his turn
« Reply #4 on: July 24, 2017, 09:35:08 AM »
Thanks for the info. I'd expect a few issues with overwatch I didn't dig up on my own testing. This looks like it might be a few different things - I'll get started on finding these.

Daithi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1250
Re: [Fix Req] Enemy not releasing his turn
« Reply #5 on: July 24, 2017, 02:12:01 PM »
Long shot here: was the danger level of (any/all of) these tiles 1? I added in the code to prevent enemies healing in danger level 1 tiles, and just had something similar happen. It's possible part of the problem, perhaps in the non overwatch instance?

ushas

  • Hero Member
  • *****
  • Posts: 661
Re: [Fix Req] Enemy not releasing his turn
« Reply #6 on: July 24, 2017, 09:39:03 PM »
So you've decided to cripple the AI after all?  :(

@Nomad, do you happen to have logs saved from any of those instances? It often contains errors like out of range exceptions, also the danger lvl info, or so. So many freezes, kudos to your breaking skills!  :D

Nomad

  • Sr. Member
  • ****
  • Posts: 453
Re: [Fix Req] Enemy not releasing his turn
« Reply #7 on: July 25, 2017, 02:11:30 AM »
I believe that these are all Danger 1 level tiles.
I also believe you've already got it sorted... as I've read your post in the "Vigilantes Version 19: What's Happening?" thread.

@Ushas: lol... I have no idea. If saving the log involves actually doing something, then no.  =}

Daithi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1250
Re: [Fix Req] Enemy not releasing his turn
« Reply #8 on: July 25, 2017, 07:18:07 AM »
So you've decided to cripple the AI after all?  :(

@Nomad, do you happen to have logs saved from any of those instances? It often contains errors like out of range exceptions, also the danger lvl info, or so. So many freezes, kudos to your breaking skills!  :D

Just for danger level 1 - it's likely that there will be a larger range of danger levels going forward. You think it's a bad idea?

To get the log, exit the game when the bug happens, and check here: C:\Users\username\AppData\Local\Unity\Editor\Editor.log

If you don't want to sift through the log for the error, often a null pointer exception, or argument out of range, send it on to me :)

Daithi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1250
Re: [Fix Req] Enemy not releasing his turn
« Reply #9 on: July 25, 2017, 07:19:18 AM »
I'll try to turn up the overwatch issues today - it looks like they mostly occur when multiple characters are in overwatch

Daithi

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1250
Re: [Fix Req] Enemy not releasing his turn
« Reply #10 on: July 25, 2017, 12:06:26 PM »
Most probably a combination of the healing error, and this bug: http://timeslipsoftworks.com/forum/index.php/topic,354.0.html

Closing for now, will move back if there are any further problems.

ushas

  • Hero Member
  • *****
  • Posts: 661
Re: [Resolved] Enemy not releasing his turn
« Reply #11 on: July 25, 2017, 01:33:20 PM »
I've downloaded the win version, installed and run under wine on linux, but haven't found such tree created yet.

Nomad, just in case you want to look up the log in future and only if can't find it where Daithi said, maybe trying the player's log locations would work. It can be something like:
C:\Program Files (x86)\VigilantesV18Win\Vigilantes18_Data\
or:
C:\Users\username\AppData\LocalLow\Timeslip Softworks\VigilantesV18\

The name of the file:
output_log.txt    or    Player.log
etc.

Usually, I quick-quit and rename the log into something colorful describing what happened (otherwise the game will overwrite the log next time), then open in text editor and search for "exception" word:) An error will be probably somewhere near the end. Sending to Daithi is perhaps the most effective though.

Nomad

  • Sr. Member
  • ****
  • Posts: 453
Re: [Resolved] Enemy not releasing his turn
« Reply #12 on: July 26, 2017, 02:49:13 AM »
Ok. No worries. Thanks for the info.
Next time I get a crash I'll try to remember to catch the log (I'm sure it will become second nature after I've done it a few times).

Nomad

  • Sr. Member
  • ****
  • Posts: 453
Re: [Resolved] Enemy not releasing his turn
« Reply #13 on: August 20, 2017, 12:00:01 AM »
I've revealed all of the map (minus any intel that has degraded).
I went back to the top and picked a Danger 1 Cult map.
They had pistols (so I assume they've got a facility nearby).
I put all my team on overwatch.
The cultists moved, were fired upon and returned fired.
The last cultist refused to hand over her turn (she wasn't injured).

Nomad

  • Sr. Member
  • ****
  • Posts: 453
Re: [Resolved] Enemy not releasing his turn
« Reply #14 on: August 20, 2017, 07:51:04 AM »
Mafia enemy failed to finish turn.
Danger 3 Mafia map.

No one was on Overwatch. My team started, surrounded, in the middle of the map and we've had a couple of rounds fighting our way toward a defensible position.

Edit: I forgot which key brings up the map name. I thought it was M, but that doesn't do anything.