marcel-valdez / tibia_terminator

Auto-heal, auto-mana, auto-haste, auto-utamo, auto-amulet, auto-ring and auto-tank for Tibia Linux client.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create command line tool to generate color profile

marcel-valdez opened this issue · comments

Context

Currently the user has to manually get colors from the screen using the screen_reader.py tool and then copy-pasting values into python.

Problem

This processs is very slow, painful and error prone. Slow because the user has to interact with tibia manually and then execute an instruction manually multiple times to get the right color, painful because the user has to alt-tab multiple times between tibia and the terminator and error prone because the user is never certain whether they got the right pixel or not.

Solution

It'd be much better if there was a tool that generated the color profile in a format that terminator can understand and also put it in the correct repository (probably a JSON file).

Update

  • Created script that generates the section of the color profile that we're interested in for an item.

Note

Create a tool to manage the item repository in the JSON config file.

The way it should ADD an item is as follows:

  1. ncurses or GUI window
  2. show menu with options 'amulets' and 'repository'
  3. select one of the two
  4. show the list of items
  5. select add new item
  6. select action bar slot to use for colors [emergency, normal, tank]
  7. press enter to fetch colors
  8. show colors found (show the font in the color that corresponds)
  9. confirm that you want to add the new item

The way it should MODIFY an item's colors by adding more colors is as follows:

  1. ncurses or GUI window
  2. show menu with options 'amulets' and 'repository'
  3. select one of the two
  4. show the list of items
  5. select modify item
  6. select add matching colors
  7. select action bar slot to use for colors [emergency, normal, tank]
  8. press enter to fetch colors
  9. show colors found (show the font in the color that corresponds)
  10. confirm that you want to add the new colors

The way it should MODIFY an item's colors by removing colors is as follows:

  1. ncurses or GUI window
  2. show menu with options 'amulets' and 'repository'
  3. select one of the two
  4. show the list of items
  5. select modify item
  6. select remove matching colors
  7. show list of known colors (with color letters in their corresponding fonr color)
  8. select the color set to remove (preferably using arrow keys!)
  9. press enter to remove said color