UFO: Alien Invasion Issue Tracker
UFO: Alien Invasion
Go to the previous open issue
Go to the previous issue (open or closed)
star_faded.png
Please log in to bookmark issues
icon_project.png UFO: Alien Invasion / Closed Feature request #4050 unittest: record weapon firing data
action_vote_minus_faded.png
0
Votes
action_vote_plus_faded.png
Go to the next issue (open or closed)
Go to the next open issue
This issue has been closed with status "Closed" and resolution "WON'T FIX".
Issue basics
  • Type of issue
    Feature request
  • Category
    Engine
  • Targetted for
    Not determined
  • Status
    Closed
  • Priority
    3. Normal
User pain
  • Type of bug
    Not triaged
  • Likelihood
    Not triaged
  • Effect
    Not triaged
Affected by this issue (0)
There are no items
People involved
Times and dates
  • Posted at
  • Last updated
Issue details
  • Resolution
    WON'T FIX
  • Complexity
    Not determined
Attachments (0)
There is nothing attached to this issue
Duplicate issues (0)
This issue does not have any duplicates
Description
[http://sourceforge.net/p/ufoai/feature-requests/566 Item 566] imported from sourceforge.net tracker on 2013-01-28 20:22:06

mattn suggested this could be done with a unittest.

It would be nice if there were some way within the game to perform a series of weapon tests and record the data. In theory, the player could feed the game variables:

weapon, accuracy_value, skill_value, distance_to_target, stance, time_units

Then the game would run a series of simulations of a unit firing at a target using these variables, firing as many shots as it can within (time_units). Then it could log the outcome in a text file that could be parsed later for graphing the results:

weapon accuracy_value skill_value distance_to_target stance time_units damage_caused

Ideally it would automatically run with every item that had weapon=true and with every firedef for that weapon. It would be nice if range/accuracy/skill values are not hard-coded so that I could test several different values.
===== Comments Ported from Sourceforge =====

====== tlh2000 (2011-10-28 06:12:22) ======

looked into it - it's not that easy as i first thought, but doable.

testShooting in test_game.c
====== natewr (2013-01-22 16:33:35.209000) ======

Not really necessary or worth the time to implement.
Todos (0 / 0)
Issue created
footer_logo.png The Bug Genie 4.3.1 | Support | Feedback spinning_16.gif