daid / daid/EmptyEpsilon

PlayerSpaceship:getBeamSystemTargetName returns "UNKNOWN" for hull

Open
#1,804 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Lua
Stars
869
Forks
222
Avg merge
18h 33m
Merged PRs (30d)
1

Description

getBeamSystemTarget() returns -1 when a PlayerSpaceship targets the hull instead of a system, but the ESystem string conversion function getSystemName doesn't handle that value.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reading the ESystem string conversion function getSystemName in src/shipTemplate.cpp, linked in the issue, and trace how PlayerSpaceship:getBeamSystemTargetName uses the -1 result from getBeamSystemTarget(). Done means the hull target no longer produces "UNKNOWN" and the existing conversion behavior for system targets remains unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
game-dev
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.