Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] make beds colored #1794

Closed
wants to merge 13 commits into from
Closed

[WIP] make beds colored #1794

wants to merge 13 commits into from

Conversation

Desour
Copy link
Member

@Desour Desour commented Jun 23, 2017

This shall solve the problem of finding red dye.
Todo:

  • also make "fancy" bed colored
  • make textures good
  • choose the right colors (only 8 are allowed)
  • make colored bed item good
  • document
  • [ ] use "color" "..wallmounted" instead of "..facedir" for more colors?
screenshots

How it could be:
screenshot_20170625_202926
How it is:
screenshot_20170626_152820

@paramat
Copy link
Contributor

paramat commented Jun 23, 2017

I guess this will continue to support any beds that mods register (including the 2 registered in the mod itself) but add 8 that are hardware coloured.
Or maybe the mod's existing 2 beds will be aliased to the new red beds?
Is there any point in adding 8 coloured fancy beds, maybe just the simple ones are enough?

@Ezhh
Copy link
Contributor

Ezhh commented Jun 23, 2017

I'd much prefer to see coloured fancy beds than coloured simple beds. If you are going for anything decorative and care about appearance, you are much more likely to want fancy beds after all.

@paramat
Copy link
Contributor

paramat commented Jun 23, 2017

Yes i assume they will be popular, so that was probably a silly question. I don't object to coloured fancy beds.

@Desour
Copy link
Member Author

Desour commented Jun 24, 2017

Just to make it clear, there aren't 8 beds added but the existing nodes get "colorfacedir" as paramtype2, on craft the bed item is colored and on place the node is colored with param2 depending on the "palette_index" item meta field. But not all registered beds will be changed automatically, only if they have a palette.

@cx384
Copy link
Contributor

cx384 commented Jun 24, 2017

This is similar to #1566 ?

@Desour
Copy link
Member Author

Desour commented Jun 24, 2017

No, 1566 adds more nodes.

@Desour
Copy link
Member Author

Desour commented Jun 24, 2017

It already works pretty good.

For everything else on my todo list I think I need help in form of information.

@paramat
Copy link
Contributor

paramat commented Jun 24, 2017

I recommend staying with facedir for simplicity, 8 colours is enough.
White (of course, no dye needed)
Red, Orange, Yellow, Green, Blue, Violet (too match flowers and basic dyes).
Leaves 1 spare, any ideas?
Black to match the final basic dye?

@Desour
Copy link
Member Author

Desour commented Jun 25, 2017

colors
Ok, I currently have dark red (on first place and dark for backwards compatibility), blue, green, yellow, magenta, cyan, orange and a bright black.
I'll take instead of magenta and cyan white and violet.
Violet looks like blue. It's very easy to make the magenta bed be crafted out of violet wool and vice versa.
I will take a look how white looks.

@cx384
Copy link
Contributor

cx384 commented Jun 25, 2017

I think a dark green bed looks better than a light (normal) green bed.

@Desour
Copy link
Member Author

Desour commented Jun 25, 2017

Ok, white bed look bad, magenta is better than violet imo.
I will look for darker green.

@Desour
Copy link
Member Author

Desour commented Jun 25, 2017

some screenshots
  1. Current:
    screenshot_20170625_103559
  2. Paramat's suggestion:
    screenshot_20170625_103535
  3. Some colors a bit darker:
    screenshot_20170625_103457

@Ezhh
Copy link
Contributor

Ezhh commented Jun 25, 2017

I prefer paramat's suggestion,, but you are right about the white bed not looking good, so maybe switch that one to cyan or magenta, unless someone can think of a way to make white look better?

@Desour
Copy link
Member Author

Desour commented Jun 25, 2017

I think in 3 the grayish white looks ok.
I would like to take 3 but instead of violet magenta.

@Ezhh
Copy link
Contributor

Ezhh commented Jun 25, 2017

I really dislike how dark the orange is in option 3. The darker colours (apart from the green) look really drab and uninteresting to me. I also much prefer to have violet and match the flowers as paramat said.

Grey looks okay, but it just seems a pity to lose a colour for it. Losing a colour for white would be fine if it looked nice, but I think losing one for grey isn't worth it.

@Desour
Copy link
Member Author

Desour commented Jun 25, 2017

@Ezhh Don't forget, since only 8 colors are easily possible, bedcolors have more than one possible crafting recipe. Eg. gray bed can be crafted with white or grey wool, green bed with green or dark green dye, orange bed with orange or brown dye…

@Ezhh
Copy link
Contributor

Ezhh commented Jun 25, 2017

I didn't comment on the crafting, only on which colours I like... If you are using the orange in the option 3 screenshot, it is really, really ugly in my opinion, but the choice isn't mine, so I'll leave it to you and the devs.

@Desour
Copy link
Member Author

Desour commented Jun 25, 2017

The colors can be changed with a texturepack, so brightness shouldn't be a problem.
I'll take magenta instead of violet because magenta has the same values of blue and red, violet is to bluish.

The real problem is with the item. At the moment it looks very bad. And I don't know how I could make it better. :/

Edit: Screenshot on first comment changed to newest colors.

@paramat
Copy link
Contributor

paramat commented Jun 25, 2017

Please can we keep violet? it does not look like blue at all. Then we will have colours matching the 8 basic dyes.
Black, white, red, orange, yellow, green , blue, violet.
Note a white or creamy-natural wool colour is essential because the point of changing beds is that we have a white bed that does not need dyes to craft. How about a cream-white instead of a grey-white (which is ugly i agree).
My request: replace magenta with violet, replace grey-white with cream-white.

@paramat
Copy link
Contributor

paramat commented Jun 25, 2017

The thing about pink being essential for girls is a bit of a stereotype. In MTG the basic colours are the basic colours of the spectrum (rainbow) so beds should perhaps follow that, pink items can and are added by mods.

@paramat paramat reopened this Sep 25, 2017
@paramat paramat added the WIP label Sep 25, 2017
@Desour
Copy link
Member Author

Desour commented Sep 25, 2017

Hm, having 16 colors maybe wouldn't be too hard using the bed api to register more beds with the same defs apart from the palette.

@Ezhh
Copy link
Contributor

Ezhh commented Sep 25, 2017

Strongly in favour of all colours, and the colours matching the wool. For example, orange that looks like orange instead of brownish orange as in the screenshots. (Using a texture pack just to get nice colours isn't an answer.)

@C1ffisme
Copy link

Would it be impossible to make a second set of bed items for the last few dye colors we have? Minecraft already does this with minecraft:wood (For Oak, Birch, Jungle and Spruce) and minecraft:wood2 (Which is meant for Dark Oak and Acacia).

@Desour
Copy link
Member Author

Desour commented Sep 29, 2017

@C1ffisme That's what I meant.

@paramat
Copy link
Contributor

paramat commented Oct 2, 2017

Wut? Are you suggesting 8 colours using param2 colouring, then add the remaining colours using static colouring? That's really hacky, they should all be one or the other.

Note we have a rule that we close PRs that have no response from the author in a month, so this could have been closed by now. Please let us know if you are happy to use static hardware colouring for all 14 15 colours.

Actually if you would add more nodes instead, it won't only be a few nodes. There are 2 nodes per bed and 2 beds and there are 16 colours => 2x2x16 = 64 => many nodes imo.

What i mean is that 64 nodes is not enough for param2 hardware colouring to be of any significant advantage over static hardware colouring, all that happens is you save 60 nodedefs (not even textures) being sent to the client.

How these new beds relate to the existing registeration code needs careful consideration, the registration code probably needs changing. Or maybe these new beds should be completely separate?
Also, is the existing red bed replaced by the new red bed or does it stay separate?
You also need to consider the beds that mods and subgames have registered and the effect on those, they need to be supported.

@Desour
Copy link
Member Author

Desour commented Oct 3, 2017

Are you suggesting 8 colours using param2 colouring, then add the remaining colours using static colouring?

No. The remaining colours simply use another bed which has another palette.

How these new beds relate to the existing registeration code needs careful consideration, the registration code probably needs changing. Or maybe these new beds should be completely separate?
Also, is the existing red bed replaced by the new red bed or does it stay separate?
You also need to consider the beds that mods and subgames have registered and the effect on those, they need to be supported.

oberlay_tiles = { -- optional
	bottom = {'Tile definition'}, -- the overlay_tiles of the bottom part of the bed.
	top = {Tile definition} -- the overlay_tiles of the top part of the bed.
},
color = "white", -- optional
palette = "beds_palette.png", -- optional. hardware coloring with param2 is possible if specified

The new things in the api are all optional, the subgames can support themselves if they want to. In palette red is the first color, so old beds won't be actively replaced.

@paramat
Copy link
Contributor

paramat commented Oct 3, 2017

No. The remaining colours simply use another bed which has another palette.

I see, that's still very messy and there's no advantage to param2 colouring.

@Fixer-007
Copy link
Contributor

Can you explain how exactly it works from usability standpoint? There will be tons of beds in creative inventory or they will be hidden with a hint "coloured" in classic ones descriptions?

@Desour
Copy link
Member Author

Desour commented Oct 3, 2017

@Fixer-007 In creative are only items that are in minetest.registered_items (or …_nodes, …_craftitems or …_tools, depending on the selected tab). Ergo in creative will only be red beds.

@paramat
Copy link
Contributor

paramat commented Oct 3, 2017

Multiple red beds that have the varying colours described in the tooltip? Or just 1 red bed?
I thought item stacks could display colours now?

@Desour
Copy link
Member Author

Desour commented Oct 4, 2017

Two red beds, one "simple" and one "fancy".

@paramat
Copy link
Contributor

paramat commented Oct 4, 2017

How would a player use creative to place coloured beds?

@Desour
Copy link
Member Author

Desour commented Oct 4, 2017

Filling the creative inventory with beds would be meh.
Maybe an on_rightclick or on_punch could be added that colors the bed depending on the color of the dye, the player is holding, if player is in creative and holds a dye.

@Desour Desour closed this Oct 4, 2017
@Desour
Copy link
Member Author

Desour commented Oct 4, 2017

Oops. >_<

@Desour Desour reopened this Oct 4, 2017
@Fixer-007
Copy link
Contributor

And how coloring works in game? You hit bed with the dye?

@paramat
Copy link
Contributor

paramat commented Oct 4, 2017

Filling the creative inventory with beds would be meh.

Only 14 15. The whole idea of creative is that it contains every node, all colours of wool, all colours of dye, why would beds be different?
In creative players want to find and place a colour of bed instantly, they do not want to have to colour each one individually.

This PR is a mess with many issues of bad implementation 👎

@ghost
Copy link

ghost commented Oct 4, 2017

There's 15 dye colors including white. We will have white beds, too, I hope? Otherwise colored beds would support all dye colors, except one.

@paramat
Copy link
Contributor

paramat commented Oct 4, 2017

Oops 15 ok, yes white too.

So is there anyone else who is interested in doing this job correctly with static hardware colouring for 15 bed colours? If so i will support your PR. I've lost hope for this one.

@Desour
Copy link
Member Author

Desour commented Oct 6, 2017

@Fixer-007 You get a bed of the same color as the one the wool has that was used at crafting.

@paramat Showing all colored beds in creative would only be possible by changing something in creative api (which could also be good for other mods but should be done by another PR) or by adding the beds to minetest.registered_items and co..

@paramat
Copy link
Contributor

paramat commented Oct 7, 2017

.. or by using static hardware colouring as i request, or even normal texture colorisation which is fine also. For only 30 nodes hardware colourisation really isn't essential It tends to make things more complex, best avoided if reasonably possible.

@paramat
Copy link
Contributor

paramat commented Oct 8, 2017

Sorry but this PR is unacceptable and neglected, and you seem unwilling to respond to requests for improvement, but instead suggest other unacceptable ideas. This needs to be done by someone else. Closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants