# How to change colour of cursor (ultica tileset)

**URL:** https://discourse.cataclysmdda.org/t/how-to-change-colour-of-cursor-ultica-tileset/25146
**Category:** The Toolbox
**Created:** [November 3, 2020, 6:04am UTC](https://discourse.cataclysmdda.org/t/how-to-change-colour-of-cursor-ultica-tileset/25146 "2020-11-03T06:04:47Z")
**Posts on this page:** 19
**Page:** 1

<div class="post-metadata">

### Author: ![Creature](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/creature/32/10183_2.png) [@Creature](https://discourse.cataclysmdda.org/u/Creature)
#### Post date: [November 3, 2020, 6:04am UTC](https://discourse.cataclysmdda.org/t/how-to-change-colour-of-cursor-ultica-tileset/25146/1 "2020-11-03T06:04:47Z")

</div>

Hi , so it’s hella snowy on the map right now, and the white cursor on white snow is making it super dangerous for us to drive on high speeds, rigged a motorcycle to do over 200mph and it’s downright deadly when you can’t see where you’re aiming without being hella zoomed in lol. was wondering if I could just change the colour of the cursor to be able see it better. If someone could walk me through step by step on how to do that , I would be extremely grateful. 🙂

---

<div class="post-metadata">

### Author: ![Valase](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/valase/32/6972_2.png) [@Valase](https://discourse.cataclysmdda.org/u/Valase)
#### Post date: [November 4, 2020, 3:54am UTC](https://discourse.cataclysmdda.org/t/how-to-change-colour-of-cursor-ultica-tileset/25146/2 "2020-11-04T03:54:15Z")

</div>

Well, let me quickly write up a guide for this…  
This guide assumes that you’re playing on the newest experimental version of the game as of now (build 0.E-11133). A different version might doesn’t have the stuff at the place where I state that they are, but should behave similar.

- Navigate to your Cataclysm: DDA folder.
- Open the gfx folder and the UltimateCataclysm inside of it.
- Open the `normal.png` file in a graphic editor that can handle transparent layers (`Photoshop` or `Gimp` are fine, `Paint.NET` should support them too as far as I know, _Paint_ on Windows 7 - and maybe other Windows versions - does not).
  - This file might just be called `normal`, if you don’t have file extentions turned on.

- In the 15th row and 4th column there’s your crossair - change the color to something of your liking and save/overwrite the file.
  - Depending on the game’s version, this might be in a different place in that file. You might have to search for a bit, but it should be close to other (coloured) cursors.

- Switch to a different tileset and back or restart Cataclysm, if you had it running.

Since you’re an artist, I’m sure you have a software that supports transparency, but just in case someone else wants to follow this guide I’ve included the hint nonetheless.

---

<div class="post-metadata">

### Author: ![Creature](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/creature/32/10183_2.png) [@Creature](https://discourse.cataclysmdda.org/u/Creature)
#### Post date: [November 4, 2020, 6:39am UTC](https://discourse.cataclysmdda.org/t/how-to-change-colour-of-cursor-ultica-tileset/25146/3 "2020-11-04T06:39:46Z")

</div>

Awesome 😃 thank you , I really appreciate this. 🖤yeah I’m pretty sure I’m running the most recent experimental version so these instructions should help alot. I’ll mess with it tomorrow and let you know if I have any other questions 🙂 great instructions by the way

---

<div class="post-metadata">

### Author: ![GiggleGrassGatherer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/gigglegrassgatherer/32/7743_2.png) [@GiggleGrassGatherer](https://discourse.cataclysmdda.org/u/GiggleGrassGatherer)
#### Post date: [November 4, 2020, 11:01am UTC](https://discourse.cataclysmdda.org/t/how-to-change-colour-of-cursor-ultica-tileset/25146/4 "2020-11-04T11:01:27Z")

</div>

Ultica cursor is the single (and therefore, most) horrible part of the tileset. It’s the singular reason I’m still on RD+.

---

<div class="post-metadata">

### Author: ![Creature](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/creature/32/10183_2.png) [@Creature](https://discourse.cataclysmdda.org/u/Creature)
#### Post date: [November 4, 2020, 5:49pm UTC](https://discourse.cataclysmdda.org/t/how-to-change-colour-of-cursor-ultica-tileset/25146/5 "2020-11-04T17:49:09Z")

</div>

@Valase it worked perfectly, cursor is teal colored now 💙 thanks again.

@GiggleGrassGatherer it was surprisingly easy to change, took all of half a minute to do once I knew how to do it. I thought it would be alot more complicated, as I’ve never modded anything in my life.

---

<div class="post-metadata">

### Author: ![GiggleGrassGatherer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/gigglegrassgatherer/32/7743_2.png) [@GiggleGrassGatherer](https://discourse.cataclysmdda.org/u/GiggleGrassGatherer)
#### Post date: [November 5, 2020, 7:16am UTC](https://discourse.cataclysmdda.org/t/how-to-change-colour-of-cursor-ultica-tileset/25146/6 "2020-11-05T07:16:24Z")

</div>

the problem is, every time you update the game, you have to fix it again

---

<div class="post-metadata">

### Author: ![Valase](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/valase/32/6972_2.png) [@Valase](https://discourse.cataclysmdda.org/u/Valase)
#### Post date: [November 5, 2020, 7:24am UTC](https://discourse.cataclysmdda.org/t/how-to-change-colour-of-cursor-ultica-tileset/25146/7 "2020-11-05T07:24:26Z")

</div>

You could make it into a mod, similar to how “sees-player icon”-mods do it…

---

<div class="post-metadata">

### Author: ![GiggleGrassGatherer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/gigglegrassgatherer/32/7743_2.png) [@GiggleGrassGatherer](https://discourse.cataclysmdda.org/u/GiggleGrassGatherer)
#### Post date: [November 5, 2020, 7:28am UTC](https://discourse.cataclysmdda.org/t/how-to-change-colour-of-cursor-ultica-tileset/25146/8 "2020-11-05T07:28:13Z")

</div>

and then, when Ultica is updated, I won’t have those updates because normal.png contains pretty much all of the tileset…

---

<div class="post-metadata">

### Author: ![Valase](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/valase/32/6972_2.png) [@Valase](https://discourse.cataclysmdda.org/u/Valase)
#### Post date: [November 5, 2020, 7:31am UTC](https://discourse.cataclysmdda.org/t/how-to-change-colour-of-cursor-ultica-tileset/25146/9 "2020-11-05T07:31:02Z")

</div>

I think you misunderstood. You can literaly make a mod, separate from the normal.png, that adds these stuff in.

Let me… I’ll write one up, but I need to grab some food that will keep me awake for at least a few more minutes…  
'Be right back. Falling asleep, will take longer.

---

<div class="post-metadata">

### Author: ![GiggleGrassGatherer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/gigglegrassgatherer/32/7743_2.png) [@GiggleGrassGatherer](https://discourse.cataclysmdda.org/u/GiggleGrassGatherer)
#### Post date: [November 5, 2020, 8:49am UTC](https://discourse.cataclysmdda.org/t/how-to-change-colour-of-cursor-ultica-tileset/25146/10 "2020-11-05T08:49:42Z")

</div>

How do you make a mod that applies changes to only a part of a .png file?  
I know you can make a mod that changes an item but even that replaces the item as a whole - if the item is changed in main game, you’d still have your old modded version.  
I thought it’s the same thing here - the only way to make a mod that changes a .png is to make a new .png with your edits. Which of course will be used instead of main .png even if that main was updated.

---

<div class="post-metadata">

### Author: ![Valase](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/valase/32/6972_2.png) [@Valase](https://discourse.cataclysmdda.org/u/Valase)
#### Post date: [November 5, 2020, 9:10am UTC](https://discourse.cataclysmdda.org/t/how-to-change-colour-of-cursor-ultica-tileset/25146/11 "2020-11-05T09:10:42Z")

</div>

> [@GiggleGrassGatherer](#):
>
> How do you make a mod that applies changes to only a part of a .png file?

Well, as stated, I imagined something similar as the “sees-player icon” mods (take a look at the “sees\_player\_hitbutton” and “sees\_player\_retro” folders inside the mod folder to get a closer look): They add in just a single tile, not overwrite all; just one (or four) specific tile(s) that gets changed and is independent from how the tileset evolves.

However, as I was writing up the guide to do that, I noticed a flaw in my plan: It seems like already set tiles can not be overwritten by this method, only previously undefined ones.

I’ll try some more things and ways to bypass this, but not right now, as I’m really tired and will fall asleep on my keyboard, if I’d play around a bit more right now…

Edit:  
I just realized something before drifting away into my dreams; the tileset is loaded after the mods. This means the problem isn’t that the mod can’t overwrite the tileset, but that **it gets overwritten by the tileset**.  
I doubt that I can do anything about that, but I’ll check… when I wake up.

---

<div class="post-metadata">

### Author: ![GiggleGrassGatherer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/gigglegrassgatherer/32/7743_2.png) [@GiggleGrassGatherer](https://discourse.cataclysmdda.org/u/GiggleGrassGatherer)
#### Post date: [November 5, 2020, 10:44am UTC](https://discourse.cataclysmdda.org/t/how-to-change-colour-of-cursor-ultica-tileset/25146/12 "2020-11-05T10:44:42Z")

</div>

Just checked, and “tiles-new” in mod\_tileset.json doesn’t work for tiles defined in original tileset. Just “tiles” doesn’t work either. Only direct editing of the source file has an effect.

---

<div class="post-metadata">

### Author: ![Valase](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/valase/32/6972_2.png) [@Valase](https://discourse.cataclysmdda.org/u/Valase)
#### Post date: [November 6, 2020, 5:13am UTC](https://discourse.cataclysmdda.org/t/how-to-change-colour-of-cursor-ultica-tileset/25146/13 "2020-11-06T05:13:44Z")

</div>

> [@Valase](#):
>
> I just realized something before drifting away into my dreams; the tileset is loaded after the mods. This means the problem isn’t that the mod can’t overwrite the tileset, but that **it gets overwritten by the tileset**.

To correct myself here after some testing; it’s not a problem of load order, but actually that a once defined tile cannot be redefined…

Alright, I was really, really close to admit my failure here… nonetheless, I’ve managed to get it working.  
This isn’t the cleanest solution (and I’m pushing the boundaries), but it works.

Here we go:

- Create a new folder inside the data/mods or mods folder, call it however you like (I suggest to name it so you’ll find it again later).
- Inside that folder, create a file called `modinfo.json` (or copy one over from an other mod).
- Copy-paste the following text into that file:

```auto
[
  {
    "type": "MOD_INFO",
    "id": "better_cursor",
    "name": "Ultica cursor replacement",
    "description": "Changes the cursor of the UltiCa tileset.",
    "category": "graphical",
    "dependencies": ["dda"]
  },
  {
    "type": "mod_tileset",
    "compatibility": ["UltimateCataclysm"],
    "tiles-new": [
      {
        "file": "ultica_cursor.png",
        "tiles": [
          { "id": "cursor_season_spring", "fg": 0 },
          { "id": "cursor_season_summer", "fg": 0 },
          { "id": "cursor_season_autumn", "fg": 0 },
          { "id": "cursor_season_winter", "fg": 0 }
        ]
      }
    ]
  }
]

```

- Open the graphic editor of your choise (that supports transparency), create a new image with dimensions of 32 x 32 pixel, design a cursor of your choice and save it as `ultica_cursor.png` into the same folder the modinfo.json sits in.
- (Re-)start your game, create a new world and add in the mod called `Ultica cursor replacement`.
  - Alternatively, you can modify the `mods.json` of an [existing world](http://cddawiki.chezzo.com/cdda_wiki/index.php?title=Mod_manager#Adding_mods_to_an_already_running_world) and add in the `better_cursor` mod.

What this does is replacing the default cursor with **one for every season**.  
This would also allow you to just overwrite it for the winter (as an example) if you remove all entries save for `"cursor_season_winter"`.

While unlikely, it is possible that this hack will at some point cease to function, either because the support for what I’ve done here is dropped or because UltiCa adds seasonal cursors on its own.  
I do hope that at that point we’ll have another way to do this, maybe an overwrite function for tiles…

---

<div class="post-metadata">

### Author: ![GiggleGrassGatherer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/gigglegrassgatherer/32/7743_2.png) [@GiggleGrassGatherer](https://discourse.cataclysmdda.org/u/GiggleGrassGatherer)
#### Post date: [November 6, 2020, 7:47am UTC](https://discourse.cataclysmdda.org/t/how-to-change-colour-of-cursor-ultica-tileset/25146/14 "2020-11-06T07:47:26Z")

</div>

So, it’s… uh… strange. I made this file  
 ![ultica_cursor](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/3/397a2f4651c9624325a979cb9409bedb4a26d5f5.png)  
with cursor and a line dot (because default line is effectively invisible too).  
This is my “tiles” part of config:

```auto
    "tiles": [
          { "id": "cursor_season_spring", "fg": 0 },
          { "id": "cursor_season_summer", "fg": 0 },
          { "id": "cursor_season_autumn", "fg": 0 },
          { "id": "cursor_season_winter", "fg": 0 },
          { "id": "animation_line_season_spring", "fg": 1 },
          { "id": "animation_line_season_summer", "fg": 1 },
          { "id": "animation_line_season_autumn", "fg": 1 },
          { "id": "animation_line_season_winter", "fg": 1 }
    ]

```

edit: okay, it still doesn’t quite work. it replaces the line but not the cursor. Ideas?  
edit2: wait a minute. look cursor is replaced. “V” menu uses different cursor than ‘x’ menu? So, what’s its name, then? Judging by original tileset and it being a yellow cursor, it should have index 431 but there’s nothing in UltiCa’s `tile_config.json` with that index…

---

<div class="post-metadata">

### Author: ![Valase](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/valase/32/6972_2.png) [@Valase](https://discourse.cataclysmdda.org/u/Valase)
#### Post date: [November 6, 2020, 9:03am UTC](https://discourse.cataclysmdda.org/t/how-to-change-colour-of-cursor-ultica-tileset/25146/15 "2020-11-06T09:03:41Z")

</div>

> [@GiggleGrassGatherer](#):
>
> “V” menu uses different cursor than ‘x’ menu? So, what’s its name, then?

Sigh, why do you always come up with stuff like this when I want to go to bed? Or no, actually, why do I always want to answer questions like this on my way to bed?

Yes, “cursor” is shared for “`x`”, “`;`”, shifted views and the orientation indication while driving, but not for shooting or throwing (which actually show both cursors at the same time), or the “`V`” menu.

Anyway, you’re probably looking for “line\_target” (index 432, “cursor” is 435 (as of build 0.E-11133)).

---

<div class="post-metadata">

### Author: ![GiggleGrassGatherer](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/gigglegrassgatherer/32/7743_2.png) [@GiggleGrassGatherer](https://discourse.cataclysmdda.org/u/GiggleGrassGatherer)
#### Post date: [November 6, 2020, 10:49am UTC](https://discourse.cataclysmdda.org/t/how-to-change-colour-of-cursor-ultica-tileset/25146/16 "2020-11-06T10:49:25Z")

</div>

> [@Valase](#):
>
> Anyway, you’re probably looking for “line\_target”

\*sigh\* which I should’ve already understood based on my experience (see 1st edit of previous post). Oh, well. At least it is working now. Thanks again 🙂

---

<div class="post-metadata">

### Author: ![redxlaser15](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/redxlaser15/32/1573_2.png) [@redxlaser15](https://discourse.cataclysmdda.org/u/redxlaser15)
#### Post date: [November 8, 2020, 5:41am UTC](https://discourse.cataclysmdda.org/t/how-to-change-colour-of-cursor-ultica-tileset/25146/17 "2020-11-08T05:41:46Z")

</div>

You monster, using your cursor in CDDA instead of just your keyboard. Heresy I say, HERESY!

---

<div class="post-metadata">

### Author: ![Creature](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/creature/32/10183_2.png) [@Creature](https://discourse.cataclysmdda.org/u/Creature)
#### Post date: [November 8, 2020, 6:29am UTC](https://discourse.cataclysmdda.org/t/how-to-change-colour-of-cursor-ultica-tileset/25146/18 "2020-11-08T06:29:20Z")

</div>

Oh, don’t worry, I use the keyboard, not the mouse. But I do use the cursor symbol that shows up to aim the vehicles and avoid obstacles. It’s just a little white square about six tiles ahead of my vehicle that shows where it’s heading next. Maybe cursor wasnt the right word to use idk, everyone seemed to understand what I meant lol

---

<div class="post-metadata">

### Author: ![Valase](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/valase/32/6972_2.png) [@Valase](https://discourse.cataclysmdda.org/u/Valase)
#### Post date: [November 8, 2020, 7:21am UTC](https://discourse.cataclysmdda.org/t/how-to-change-colour-of-cursor-ultica-tileset/25146/19 "2020-11-08T07:21:11Z")

</div>

> [@Creature](#):
>
> Maybe cursor wasnt the right word to use idk […]

Well, even the game calls it cursor, so it is the right word…  
Unless whoever has programmed that used the wrong word for it and everyone just rolled with it (which I doubt, see below).

> [@redxlaser15](#):
>
> You monster, using your cursor in CDDA instead of just your keyboard.

Joke aside, the “blinking position indicator” in a keyboard only console is called cursor. So even with the first Commodore 64 and no mouse support you had to use the cursor if you used the computer at all…
