OpenXcom Forum

OpenXcom => Troubleshooting => Topic started by: tkzv on November 05, 2017, 03:18:53 am

Title: How can I attach savefiles and screenshots to bugs in bugtracker?
Post by: tkzv on November 05, 2017, 03:18:53 am
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.
Title: Re: How can I attach savefiles and screenshots to bugs in bugtracker?
Post by: Warboy1982 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.
Title: Re: How can I attach savefiles and screenshots to bugs in bugtracker?
Post by: ivandogovich 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.
Title: Re: How can I attach savefiles and screenshots to bugs in bugtracker?
Post by: tkzv 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?"
Title: Re: How can I attach savefiles and screenshots to bugs in bugtracker?
Post by: Warboy1982 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
Title: Re: How can I attach savefiles and screenshots to bugs in bugtracker?
Post by: tkzv 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?
Title: Re: How can I attach savefiles and screenshots to bugs in bugtracker?
Post by: Warboy1982 on November 06, 2017, 12:59:13 pm
yes