Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Default colours have changed

A topic by Garry Francis created Sep 14, 2019 Views: 182 Replies: 15
Viewing posts 1 to 12
Submitted

I just did a refresh (currently version 1.0.0 Beta 5b) and noticed that the default text colors have changed, but they're not consistent. All the text used to be light grey, now it's white except for the list of exits, "You see:", the list of objects, the ">" prompt and the input. As soon as you press Enter, the grey prompt and input changes to white.

Submitted

I also noticed that the words "up", "down", "north" etc. are also in light grey when embedded in my own strings. Adventuron is apparently trying to do something smart here, but it's not so smart because "up" and "down" were not being used as directions. How do I change this?

Host

This is something that should not be enabled by default, and in-text direction linking is disabled for the very same reason that you state, that it's over-eager right now - so somehow you managed to activate it .  Can you send me the theme you are using , minus the system messages?

Submitted

I found where to change the colours. It's in:

themes {
   my_theme : theme {
      colors {
         exit_list_header_pen = 6
         exit_list_item_pen = 15
         exit_list_punctuation_pen = 15
      }
}

And so on. You just need to fix the defaults.

Host

Gary, can you try commenting out your theme and trying again. The defaults have not changed, and I can't replicate the error so I assume it's triggered by a certain theme config.

Submitted

I couldn't see how to send a personal message, so it's posted here. There doesn't appear to be anything unusual and this hasn't changed since before doing the upgrade.

themes {
   my_theme : theme {
      colors {
         header_bar_paper = 15
         header_bar_pen = 0
      }
      font = delta_10
      header_layout {
         : header_text;
         : dynamic_text "header_score";
      }
      lister_exits {
         exit_list_capitalization = lower
         experimental_enable_direction_arrows = false
         is_show_blocked_exits = false
      }
      lister_inventory {
         item_capitalization = original
         list_type = list
      }
      lister_objects {
         item_capitalization = original
         list_type = single_line
      }
      screen {
         paragraph_spacing_multiplier = 0.5
      }
      settings {
         experimental_enable_crt = false
         header_capitalization = original
         layout = G D X O
      }
}

Host

I'm not sure what's happening at all. On Chrome 77, everything looks fine for me using that theme.

Can you confirm which browser you are using? Maybe also post a screenshot?

Submitted

I'm using Firefox 69.0 (latest release). Screen shot attached. If you compare this one with the same screen in another thread, you might be able to see the difference. It's a bit hard to see, but "west.", "You see: a rowing boat." and the second "X LAKE" are grey and everything else is white. Previously, it was all grey. (White looks better, so I've changed the colours to white in my game.)

Host

I can't replicate this on my machine at all, not with the theme you supplied me. Can you make a one location version of the game (take all the game logic out), compile it, and send me a private link to it, as well as the source (on pastebin)?

I certainly can't fix it unless I understand what is going on.

Submitted

I've sent you a personal message on Facebook with the link to pastebin. It will be there for a week. This is the complete source code. Just comment out the color{} block in themes and you should be able to see the issue. I'd be interested to get your general comments anyway. I'll be uploading a beta version for testing to itch.io shortly. I haven't done this before, so hope I don't get too messed up.

Host

Hmmm, well, I've used it, and I still can't replicate the issue. Which version of Firefox are you using, and what operating system?

This is so annoying, sorry about this. 

Submitted

Firefox 69.0 on Windows 7 SP1. Also tried it on Chrome version 77.0.3865.75 and had the same symptoms. Both are the 64-bit versions.

Host

Is the issue still ongoing?

Submitted (1 edit)

I just upgraded to 1.0.0 Beta 5e, commented out all my colour settings and ran it and all the colours have reverted to light grey, as they were prior to raising this issue. So, unless it's coinicidental or something shows up later, it looks like it might be fixed.

Host

I think it was a style from the documentation css  overlapping with the game css. I started to see the issue on my computer, so I make the documentation css style more targeted, and it seemed to fix it on mine, so I assume this was the issue. I think then the autosave functionality was carrying forward the issue to the compiled game.

It's my best theory right now.

Submitted

Makes sense, although I still don't get the autosave thing. Autosave was saving the game state, but not redrawing the location image, so you saw the image of the first room, even though autosave had you somewhere deep in the bowels of the game.