Skip to content
This repository was archived by the owner on May 5, 2021. It is now read-only.

Commit 163c012

Browse files
committed
- Attempted to fix issue with street room entries being shorn off by the street shape clean-up rules, resulting in joiner or direct connections being unable to meet (therefore causing an assert)
- Decreased maximum seed grid size again.
1 parent e1880a1 commit 163c012

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

src/scripts/defs.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ LENGTH_CHOICES =
111111
SEED_SIZE = 128
112112

113113
-- largest map size
114-
SEED_W = 96 --112
115-
SEED_H = 96 --112
114+
SEED_W = 90 --112
115+
SEED_H = 90 --112
116116
-- MSSP: the absolute maximum size is tightened down to the largest
117117
-- agreed map size for performance's sake. Current agreed maximum is 74 W.
118118
-- any higher will cause skyboxes and teleporter rooms to start merging with

src/scripts/seed.lua

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1061,9 +1061,17 @@ function Edge_new(kind, S, dir, long)
10611061
-- add it into each seed
10621062
for i = 1, long do
10631063
if not S then
1064-
print(table.tostr(R))
1065-
print(table.tostr(A))
1064+
gui.printf(kind .. "\n")
1065+
gui.printf(table.tostr(R .. "\n"))
1066+
gui.printf(table.tostr(A .. "\n"))
1067+
-- note: this mostly only happens when a
1068+
-- room-to-room connection (direct or via joiner)
1069+
-- does not perfectly meet
1070+
-- each other on the edge
1071+
-- check shape rules for misbehaved shapes
1072+
error("OH GOD I CAN'T COMPUTER PLS TO HELP")
10661073
end
1074+
10671075
assert(S)
10681076

10691077
if S.edge[dir] then

src/scripts/shapes.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6814,10 +6814,10 @@ STREETS_ENTRY_RSVOL_4 =
68146814

68156815
structure =
68166816
{
6817+
"....","1111"
68176818
"11..","1111"
68186819
"11..","1111"
68196820
"....","1111"
6820-
"....","1111"
68216821
}
68226822
}
68236823

@@ -6829,6 +6829,7 @@ STREETS_ENTRY_RSVOL_6 =
68296829

68306830
structure =
68316831
{
6832+
"....","1111"
68326833
"11..","1111"
68336834
"11..","1111"
68346835
"11..","1111"
@@ -6844,10 +6845,12 @@ STREETS_ENTRY_RSVOL_8 =
68446845

68456846
structure =
68466847
{
6848+
"....","1111"
68476849
"11..","1111"
68486850
"11..","1111"
68496851
"11..","1111"
68506852
"11..","1111"
6853+
"....","1111"
68516854
}
68526855
}
68536856

0 commit comments

Comments
 (0)