Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upAdded dungeon rooms finisher. #1345
Conversation
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
NiLSPACE
Aug 26, 2014
Member
Vanilla doesn't check if the chests would form a double chest, so do we want to do the same?
|
Vanilla doesn't check if the chests would form a double chest, so do we want to do the same? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
NiLSPACE
Aug 26, 2014
Member
Double chests are noted in the trivia from the wiki.
EDIT:
Maybe Mojang does some meta magic to make them look good?
|
Double chests are noted in the trivia from the wiki. |
madmaxoft
added some commits
Aug 26, 2014
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
madmaxoft
Aug 26, 2014
Member
I think I'll use the path-of-least-resistance for the dblchest - I will make it so that no single dungeon generates its chest next to each other. This will fix the vast majority of the bad cases, the only remaining problems will be with overlapping dungeons; I will ignore them for the time being, because a proper solution might be impossible to implement (imagine someone setting the generator to generate a dungeon for each column, there would be so many chests that it might be impossible to place them properly)
|
I think I'll use the path-of-least-resistance for the dblchest - I will make it so that no single dungeon generates its chest next to each other. This will fix the vast majority of the bad cases, the only remaining problems will be with overlapping dungeons; I will ignore them for the time being, because a proper solution might be impossible to implement (imagine someone setting the generator to generate a dungeon for each column, there would be so many chests that it might be impossible to place them properly) |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
"...profiling for x64..." Hm. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
I know I know, I'm turning into a tigerw :P |
madmaxoft
added some commits
Aug 27, 2014
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
I think this is now feature-complete. Comments? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Yea it looks nice. I'd say that we can merge. |
added a commit
that referenced
this pull request
Aug 27, 2014
madmaxoft
merged commit 4a907c9
into
master
Aug 27, 2014
1 check passed
madmaxoft
deleted the
DungeonRoomsFinisher
branch
Aug 27, 2014
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
madmaxoft
Aug 27, 2014
Member
No, all sides should be accounted for. Can you give me the coords and world.ini for that screenshot?
|
No, all sides should be accounted for. Can you give me the coords and world.ini for that screenshot? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
NiLSPACE
Aug 27, 2014
Member
I don't think that I can find the exact spot because I already moved on, but I'll search for another occurrence.
|
I don't think that I can find the exact spot because I already moved on, but I'll search for another occurrence. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
Found it. An off-by-one error in the fast-bail-out checking. |


madmaxoft commentedAug 26, 2014
This implements #1260.
The DungeonRooms finisher adds dungeon rooms to the generated worlds. The rooms' placement is based on a GridStructGen, the rooms will contain 2 chests each.