Skip to content

ai.client.debug_text_3d uses RGB values in wrong order #166

Open

Description

@DuncanDHall

When I set the color to (255, 0, 0), the resulting text is blue. (0, 0, 255) is red. (0, 0, 255) is green.

self.client.debug_text_3d(test, some_unit, (0, 0, 255), size=16)

Activity

  1. BurnySc2 commented on Feb 18, 2026

    @BurnySc2
    Owner

    Unable to reproduce. In this screenshot, I tried to debug draw both a box and a text at the same position and with the same color using ramp_wall_bot:

    Image
        def draw_ramp_points(self):
            for ramp in self.game_info.map_ramps:
                for p in ramp.points:
                    h2 = self.get_terrain_z_height(p)
                    pos = Point3((p.x, p.y, h2))
                    color = Point3((255, 0, 0))
                    if p in ramp.upper:
                        color = Point3((0, 255, 0))
                    if p in ramp.upper2_for_ramp_wall:
                        color = Point3((0, 255, 255))
                    if p in ramp.lower:
                        color = Point3((0, 0, 255))
                    self.client.debug_box2_out(pos + Point2((0.5, 0.5)), half_vertex_length=0.25, color=color)
                    self.client.debug_text_3d("ASD", pos + Point2((0.5, 0.5)), color=color)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions