aliens

Author Topic: How can I attach savefiles and screenshots to bugs in bugtracker?  (Read 4137 times)

Offline tkzv

  • Commander
  • *****
  • Posts: 583
    • View Profile
I created a ticket https://openxcom.org/bugs/openxcom/issues/1369 (pathfinding is wrong for grain field), but can't attach the example files. I'll leave them here for now.

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: How can I attach savefiles and screenshots to bugs in bugtracker?
« Reply #1 on: November 05, 2017, 06:41:25 pm »
for traceable straight lines, we use bresenham stroke, otherwise we fall back to A*.
bresenham finds the most direct route, A* finds the most TU-efficient.
this is why you're seeing this difference.

Offline ivandogovich

  • Commander
  • *****
  • Posts: 2381
  • X-Com Afficionado
    • View Profile
    • Ivan Dogovich Youtube
Re: How can I attach savefiles and screenshots to bugs in bugtracker?
« Reply #2 on: November 05, 2017, 10:52:26 pm »
Just to clarify: Grainfields have a higher TU cost to traverse than grass (6 TU vs 4 TU).  Thus, given the opportunity to skirt it, the second path walks on the grass beside it, then around the wall through one tile of grain.  In this situation, you might have troops in Flying Armor go up one level and fly over the grainfield and land on the otherside as their preferred path, as well.
« Last Edit: November 05, 2017, 10:54:01 pm by ivandogovich »

Offline tkzv

  • Commander
  • *****
  • Posts: 583
    • View Profile
Re: How can I attach savefiles and screenshots to bugs in bugtracker?
« Reply #3 on: November 05, 2017, 11:51:06 pm »
Just to clarify: Grainfields have a higher TU cost to traverse than grass (6 TU vs 4 TU).  Thus, given the opportunity to skirt it, the second path walks on the grass beside it, then around the wall through one tile of grain.  In this situation, you might have troops in Flying Armor go up one level and fly over the grainfield and land on the otherside as their preferred path, as well.
I know they slow you down. The game picks the slower route, and I considered this a bug.

for traceable straight lines, we use bresenham stroke, otherwise we fall back to A*.
bresenham finds the most direct route, A* finds the most TU-efficient.
this is why you're seeing this difference.
Why pick direct path if it's slower?

P.S. And my question here was "How or where to post files, if I need to attach something to a bug?"
« Last Edit: November 05, 2017, 11:52:52 pm by tkzv »

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: How can I attach savefiles and screenshots to bugs in bugtracker?
« Reply #4 on: November 06, 2017, 04:27:36 am »
to attach something to a bug report, you need to be logged in when you initially file the report. this was filed by "guest" so it's not possible

Offline tkzv

  • Commander
  • *****
  • Posts: 583
    • View Profile
Re: How can I attach savefiles and screenshots to bugs in bugtracker?
« Reply #5 on: November 06, 2017, 11:41:19 am »
to attach something to a bug report, you need to be logged in when you initially file the report. this was filed by "guest" so it's not possible
Is only the original poster allowed to attach?

Offline Warboy1982

  • Administrator
  • Commander
  • *****
  • Posts: 2333
  • Developer
    • View Profile
Re: How can I attach savefiles and screenshots to bugs in bugtracker?
« Reply #6 on: November 06, 2017, 12:59:13 pm »
yes