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

tile stack carpet bug #4278

Open
2 tasks done
Zbizu opened this issue Dec 22, 2022 · 6 comments
Open
2 tasks done

tile stack carpet bug #4278

Zbizu opened this issue Dec 22, 2022 · 6 comments
Labels
bug An issue describing unexpected behavior of code priority: low Issues with this label won’t have the immediate focus

Comments

@Zbizu
Copy link
Contributor

Zbizu commented Dec 22, 2022

  • This is a bug in the software that resides in this repository, and not a
    support matter (use https://otland.net/forums/support.16/ for support)
  • This issue is reproducible without changes to the C++ code in this repository

Summary

I was coding carpet system for houses and I discovered that there is something wrong with how they are being placed in stack

Steps to reproduce

create two carpets on same tile:

  1. /i blue carpet
  2. /i brown carpet

Expected behaviour

brown carpet on top

Actual behaviour

blue carpet on top

Another example:
placing two carpets in a house
obraz

after saving and restarting:
obraz

they get flipped every save+restart

@Tofame
Copy link
Contributor

Tofame commented Dec 22, 2022

I can confirm that this bug is indeed existing.

@Zbizu
Copy link
Contributor Author

Zbizu commented Dec 22, 2022

potential fix for house loading (needs testing):

parent->internalAddThing(item);

-				parent->internalAddThing(item);
+				parent->addThing(item);

@ArturKnopik
Copy link
Contributor

how this work with more carpets?
maybe we can use this behavior for "random houses", after each ss we can take top one and move it on bottom (ofc enabled by config)
#feature_not_bug

@ghost
Copy link

ghost commented Dec 25, 2022

how this work with more carpets?

well, you can (should) only put 3 carpets on same sqm, and they should keep the stack order that you added them, this is a very weird bug

@Zbizu
Copy link
Contributor Author

Zbizu commented Dec 26, 2022

how this work with more carpets? maybe we can use this behavior for "random houses", after each ss we can take top one and move it on bottom (ofc enabled by config) #feature_not_bug

It's a bug. Rather small sample size, but 3/3 of my testers arranged their carpet stack and found this annoying.

Answering the other question (can't quote because I'm on a phone) the placing script limits the carpets.

@Tofame
Copy link
Contributor

Tofame commented Dec 29, 2022

how this work with more carpets? maybe we can use this behavior for "random houses", after each ss we can take top one and move it on bottom (ofc enabled by config) #feature_not_bug

@ArturKnopik maybe u understood that this is a bug in a house, but this bug happens everywhere, not only in houses. Should be fixed, not implemented as a feature.

@EvilHero90 EvilHero90 added bug An issue describing unexpected behavior of code priority: low Issues with this label won’t have the immediate focus labels May 14, 2024
@github-project-automation github-project-automation bot moved this to Backlog in TFS 1.8 Jun 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug An issue describing unexpected behavior of code priority: low Issues with this label won’t have the immediate focus
Projects
Status: Backlog
Development

No branches or pull requests

4 participants