aliens

Author Topic: MISSING @MORE THAN 100% CHANCE  (Read 12270 times)

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9009
    • View Profile
Re: MISSING @MORE THAN 100% CHANCE
« Reply #15 on: July 31, 2018, 06:35:16 pm »
From what I've just read above, I can understand the "%" is misleading. However, I still can't believe the following case is not a bug... try out the attached save file (using OXCE+ build 2018-07-29). Aimed shots seem to pass right through the floater, as if he were a ghost or something. I think I've had it happen before with aliens standing in the exact same position (one square away from an abductor's entrance hatch) and trying to hit them from the side. This simply doesn't look like it can't be a bug... from a (mostly) casual player's point of view, at least.

Not a bug.
I attach the bullet trajectory (just start, relevant tile and end, because of post length restriction) and simple visualization in voxel space.
Orange color is the floater, red color is the bullet.

EDIT: the front view is a bit wrong, floater is floating 2 voxels above the ground... and has height of 21 voxels, so probably the topmost voxel row should also be empty... but it makes no difference since the bullet goes approximately through the vertical centre (voxel 12)

Code: [Select]
[31-07-2018_17-14-41] [INFO] Start trajectory
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[737,632,42]; tile[x,y,z]=[46,39,1]
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[736,632,42]; tile[x,y,z]=[46,39,1]
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[735,632,42]; tile[x,y,z]=[45,39,1]
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[734,632,42]; tile[x,y,z]=[45,39,1]
<snip>
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[163,620,13]; tile[x,y,z]=[10,38,0]
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[162,620,13]; tile[x,y,z]=[10,38,0]
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[161,620,13]; tile[x,y,z]=[10,38,0]
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[160,620,12]; tile[x,y,z]=[10,38,0]

[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[159,620,12]; tile[x,y,z]=[9,38,0]
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[158,620,12]; tile[x,y,z]=[9,38,0]
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[157,620,12]; tile[x,y,z]=[9,38,0]
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[156,620,12]; tile[x,y,z]=[9,38,0]
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[155,620,12]; tile[x,y,z]=[9,38,0]
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[154,620,12]; tile[x,y,z]=[9,38,0]
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[153,620,12]; tile[x,y,z]=[9,38,0]
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[152,620,12]; tile[x,y,z]=[9,38,0]
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[151,620,12]; tile[x,y,z]=[9,38,0]
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[150,620,12]; tile[x,y,z]=[9,38,0]
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[149,620,12]; tile[x,y,z]=[9,38,0]
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[148,620,12]; tile[x,y,z]=[9,38,0]
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[147,620,12]; tile[x,y,z]=[9,38,0]
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[146,620,12]; tile[x,y,z]=[9,38,0]
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[145,620,12]; tile[x,y,z]=[9,38,0]
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[144,620,12]; tile[x,y,z]=[9,38,0]

[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[143,620,12]; tile[x,y,z]=[8,38,0]
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[142,620,12]; tile[x,y,z]=[8,38,0]
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[141,620,12]; tile[x,y,z]=[8,38,0]
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[140,620,11]; tile[x,y,z]=[8,38,0]
<snip>
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[1,617,4]; tile[x,y,z]=[0,38,0]
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[0,617,4]; tile[x,y,z]=[0,38,0]
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[-1,617,4]; tile[x,y,z]=[0,38,0]
[31-07-2018_17-14-41] [INFO] voxel[x,y,z]=[-1,617,4]; tile[x,y,z]=[0,38,0]
[31-07-2018_17-14-41] [INFO] End trajectory
« Last Edit: July 31, 2018, 06:41:33 pm by Meridian »

Offline Player701

  • Sergeant
  • **
  • Posts: 40
    • View Profile
Re: MISSING @MORE THAN 100% CHANCE
« Reply #16 on: July 31, 2018, 09:22:31 pm »
Wow. Just... wow.

Then, I guess, the question is: why doesn't the trajectory go through the target? Would it hit something in between the shooter and the target if it did? If this is the case, then why does the game think there is a line of fire at all?

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9009
    • View Profile
Re: MISSING @MORE THAN 100% CHANCE
« Reply #17 on: July 31, 2018, 09:33:42 pm »
Then, I guess, the question is: why doesn't the trajectory go through the target? Would it hit something in between the shooter and the target if it did? If this is the case, then why does the game think there is a line of fire at all?

There is a perfect trajectory, the game finds it and thus allows firing.

The real trajectory doesn't go through the target, because even at perfect accuracy (110 or more), there is still deviation possible... very small deviation, but over longer distances it can accumulate enough.

Try turning on save scumming... I think after a few reloads, it will hit... RNG man :)

PS: the perfect trajectory might be very very narrow, I didn't check... so it might be very hard to hit... I can investigate more if you're reeeeally curious... but it takes time
« Last Edit: July 31, 2018, 09:40:22 pm by Meridian »

Offline Player701

  • Sergeant
  • **
  • Posts: 40
    • View Profile
Re: MISSING @MORE THAN 100% CHANCE
« Reply #18 on: July 31, 2018, 09:56:35 pm »
Try turning on save scumming... I think after a few reloads, it will hit... RNG man :)

Hmm. I actually do have it on most of the time, and now that you mentioned it, I've tested it some more, and aimed shots actually do hit sometimes. For some reason, though, it feels as if auto shots hit much more often - though it might just be my imagination at play. I don't think I have the patience to test it enough times for the results to be statistically significant...

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9009
    • View Profile
Re: MISSING @MORE THAN 100% CHANCE
« Reply #19 on: July 31, 2018, 10:59:31 pm »
I did a couple thousand simulations, and there's roughly a 5% chance to roll a good RNG

Code: [Select]
[31-07-2018_21-55-45] [INFO] Out of 1000: 45
[31-07-2018_21-56-51] [INFO] Out of 1000: 52
[31-07-2018_21-57-26] [INFO] Out of 1000: 51
[31-07-2018_21-57-33] [INFO] Out of 1000: 44
[31-07-2018_21-57-38] [INFO] Out of 1000: 39

Means the perfect trajectory in this particular situation is VERY narrow.

EDIT: damn, one zero not enough, did only hundreds, not thousands

Code: [Select]
[31-07-2018_22-06-10] [INFO] Out of 100 000: 50212

It's actually 50% chance to hit, after doing hundred thousand simulations.
« Last Edit: July 31, 2018, 11:10:19 pm by Meridian »

Offline Player701

  • Sergeant
  • **
  • Posts: 40
    • View Profile
Re: MISSING @MORE THAN 100% CHANCE
« Reply #20 on: August 01, 2018, 07:02:55 am »
I see... well, 50% is much more than nothing. Thank you for wasting time on this, I guess :)

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1512
    • View Profile
Re: MISSING @MORE THAN 100% CHANCE
« Reply #21 on: August 03, 2018, 02:02:07 am »
I have found my soldiers in certain positions in which high accuracy shots will miss a clear shot several times in a row, generally by passing the target along the same or almost the same trajectory, ie. passing by the left side of the target every shot several times in a row.

What you described above could be attributed to the inherent inaccuracy of the weapon (bullet comes out a bit different every shot), unless the misses were almost always going on the same side of the target, in which case it would indicate maybe a positioning glitch of some kind.

I have had high-accuracy misses that went on the same trajectory several times in a row, on shots that were fairly short range. What I found would fix them was to move the soldier a bit and shoot again. I've also never seen it on angles that were a direct orthogonal or diagonal, rather it seems to happen mostly on angles that make a more complicated triangle on graph paper.

If I see it happen again, I'll attach a save file.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9009
    • View Profile
Re: MISSING @MORE THAN 100% CHANCE
« Reply #22 on: August 03, 2018, 11:32:51 am »
I'm 99.9% sure there's an explanation that doesn't involve bugs.

Feel free to upload a save (once in a while) and I'll explain.