From 2ac235f762ef64d36eb483f43d2036fce13119cf Mon Sep 17 00:00:00 2001 From: MsrSgtShooterPerson Date: Thu, 26 Sep 2024 15:25:04 +0800 Subject: [PATCH 1/9] Random new shape rules, emphasizing elevation and unusual shapes. --- scripts/shapes.lua | 141 ++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 139 insertions(+), 2 deletions(-) diff --git a/scripts/shapes.lua b/scripts/shapes.lua index 9eeef00c2..65b2eb957 100644 --- a/scripts/shapes.lua +++ b/scripts/shapes.lua @@ -3101,6 +3101,51 @@ GROW_STAIR_5_MIRRORED_B = } }, +GROW_STAIR_ASKEW = +{ + prob = 20, + skip_prob = 50, + + structure = + { + "x...","xAAA", + "x...","xAAA", + "x...","x^^^", + "1...","1111", + "1...","1111" + } +}, + +GROW_STAIR_ASKEW_LONG = +{ + prob = 12, + skip_prob = 65, + + structure = + { + "x......","xAAAAAA", + "x......","xAAAAAA", + "x......","x^^^^^^", + "1......","1111111", + "1......","1111111" + } +}, + +GROW_STAIR_ASKEW_LONG_DIVISIONS = +{ + prob = 12, + skip_prob = 65, + + structure = + { + "x......","xAAAAAA", + "x......","xAAAAAA", + "x......","x^^1^^1", + "1......","1111111", + "1......","1111111" + } +}, + -- MSSP's Greek COLONNADE sort of things. [MSSPCOLONNADE] GROW_COLONNADE_1 = @@ -12333,6 +12378,60 @@ GROW_3x_C_CENT = }, }, +GROW_CBM = +{ + prob = 10, + skip_prob = 88, + + structure = + { + "xxx....xx","xxx/%/%xx", + "xx......x","xx/1111%x", + "x........","x/111111%", + "1........","111111111", + "1........","111111111", + "x........","x%111111/", + "xx......x","xx%1111/x" + }, + + diagonals = + { + ".1","1.",".1","1.", + ".1","1.", + ".1","1.", + + ".1","1.", + ".1","1." + } +}, + +GROW_CBM_STEEPNESS = +{ + prob = 8, + skip_prob = 92, + + structure = + { + "xxx....xx","xxx/%/%xx", + "xx......x","xx/11%A%x", + "x........","x/1111%A%", + "1........","111111>AA", + "1........","111111>AA", + "x........","x%1111/A/", + "xx......x","xx%11/A/x" + }, + + diagonals = + { + ".1","1.",".A","A.", + ".1","1A","A.", + ".1","1A","A.", + + ".1","1A","A.", + ".1","1A","A." + } +}, + GROW_3x_D = { prob = 40, @@ -13596,7 +13695,7 @@ GROW_3x_T = "xx..xx","xx11xx", "xx..xx","xx11xx", "xx11xx","xx11xx", - }, + } }, GROW_3x_T_LIQUID = @@ -13615,7 +13714,45 @@ GROW_3x_T_LIQUID = "......","~~11~~", "......","~~11~~", "xx11xx","xx11xx", - }, + } +}, + +GROW_CROSS_PILLARS = +{ + prob = 8, + skip_prob = 80, + + structure = + { + "xxxx11xxxx","xxxx11xxxx", + "..........","1111111111", + "..........","1111vv1111", + "..........","1111AA1111", + "..........","1111AA1111", + "..........","11#AAAA#11", + "..........","11#AAAA#11", + "..........","1111AA1111", + "..........","1111AA1111", + "..........","1111AA1111", + "..........","1111AA1111" + } +}, + +GROW_CROSS_PILLARS_SIDE = +{ + prob = 8, + skip_prob = 80, + + structure = + { + "xxxx11xxxxxx","xxxx11xxxxxx", + "............","AAAA11AAAAAA", + "............","AAAA11AAAAAA", + "............","AA#111111>AA", + "............","AA#111111>AA", + "............","AAAA11AAAAAA", + "............","AAAA11AAAAAA" + } }, GROW_3x_U = From be134a6b93eebb88d25eac165c564eb3879fed40 Mon Sep 17 00:00:00 2001 From: MsrSgtShooterPerson Date: Wed, 2 Oct 2024 01:35:16 +0800 Subject: [PATCH 2/9] Set all OTEX floors without matching textures to match against any urban-styled wall texture for material creation. --- modules/zdoom_otex.lua | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/modules/zdoom_otex.lua b/modules/zdoom_otex.lua index 4f6e20825..867592f8a 100644 --- a/modules/zdoom_otex.lua +++ b/modules/zdoom_otex.lua @@ -510,6 +510,7 @@ end function OTEX_PROC_MODULE.synthesize_procedural_themes() local resource_tab = {} + local r local function pick_unique_texture(table, tex_group, total_tries) local tex @@ -644,18 +645,9 @@ function OTEX_PROC_MODULE.synthesize_procedural_themes() for _,F in pairs(resource_group.flats) do local side_tex, group_pick -- hack fix to assign DMD flats a side texture rather than just a default - if string.find(group_name, "DMD") - or string.find(group_name, "PAVE") - or string.find(group_name, "TL16") - or string.find(group_name, "TL32") - or string.find(group_name, "TLMX") - or string.find(group_name, "TRHX") - or string.find(group_name, "BSKT") - or string.find(group_name, "LLLL") then - group_pick = rand.key_by_probs(group_pick_list["urban"].textures) + if not OTEX_MATERIALS[F] then + group_pick = rand.key_by_probs(group_pick_list["urban"].textures) side_tex = rand.pick(resource_tab[group_pick].textures) - else - side_tex = "BROWNHUG" end OTEX_MATERIALS[F] = { From adc302d2ca55a0e667fe19f35a5d8554b015e80c Mon Sep 17 00:00:00 2001 From: MsrSgtShooterPerson Date: Wed, 2 Oct 2024 01:36:30 +0800 Subject: [PATCH 3/9] Redid monsters-in-cage printout statement to use concatenation instead of print wildcard in attempt to prevent casting problem --- scripts/monster.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/monster.lua b/scripts/monster.lua index b9a2fd108..8d6013748 100644 --- a/scripts/monster.lua +++ b/scripts/monster.lua @@ -2256,7 +2256,7 @@ gui.debugf("wants =\n%s\n\n", table.tostr(wants)) want = math.clamp(min, rand.int(want), total) - gui.debugf("monsters_in_cage: %d (of %d) qty=%1.1f\n", want, total, qty) + gui.debugf("monsters_in_cage: %d (of " .. total .. ") qty=%1.1f\n", want, qty) for i = 1, want do -- ensure first monster in present in all skills From 71c10221f41cc3b0d594fe1c7b03aebdbe79dd5c Mon Sep 17 00:00:00 2001 From: MsrSgtShooterPerson Date: Fri, 4 Oct 2024 12:25:51 +0800 Subject: [PATCH 4/9] Attempted to fix extra lighting on some OTEX liquid sinks not working. --- modules/zdoom_otex.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/zdoom_otex.lua b/modules/zdoom_otex.lua index 867592f8a..6dbac18a0 100644 --- a/modules/zdoom_otex.lua +++ b/modules/zdoom_otex.lua @@ -420,15 +420,15 @@ OTEX_SPECIAL_RESOURCES = otex_goop = { mat="OGOOPY01", special=0}, otex_ice = { mat="OICYWA01", special=0}, - otex_lavaA1 = { mat="OLAVAA01", light_add=56, special=5, damage=10}, - otex_lavaA2 = { mat="OLAVAA02", light_add=56, special=5, damage=10}, - otex_lavaB1 = { mat="OLAVAB01", light_add=56, special=5, damage=10}, - otex_lavaC1 = { mat="OLAVAC01", light_add=56, special=5, damage=10}, - otex_lavaD1 = { mat="OLAVAD01", light_add=56, special=5, damage=10}, - otex_lavaE1 = { mat="OLAVAE01", light_add=56, special=5, damage=10}, - otex_lavaF1 = { mat="OLAVAF01", light_add=56, special=5, damage=10}, + otex_lavaA1 = { mat="OLAVAA01", light_add=24, special=5, damage=10}, + otex_lavaA2 = { mat="OLAVAA02", light_add=24, special=5, damage=10}, + otex_lavaB1 = { mat="OLAVAB01", light_add=24, special=5, damage=10}, + otex_lavaC1 = { mat="OLAVAC01", light_add=24, special=5, damage=10}, + otex_lavaD1 = { mat="OLAVAD01", light_add=24, special=5, damage=10}, + otex_lavaE1 = { mat="OLAVAE01", light_add=24, special=5, damage=10}, + otex_lavaF1 = { mat="OLAVAF01", light_add=24, special=5, damage=10}, - otex_nukage = { mat="ONUKEA01", light_add=56, special=7, damage=5}, + otex_nukage = { mat="ONUKEA01", light_add=16, special=7, damage=5}, otex_sludge = { mat="OSLUDG01", special=0}, otex_poop = { mat="OPOOPY01", special=0}, From e2a7a702c8698cae38d6b876af42a1e738df2a1d Mon Sep 17 00:00:00 2001 From: MsrSgtShooterPerson Date: Wed, 9 Oct 2024 00:40:18 +0800 Subject: [PATCH 5/9] Added Tudor window textures to direct exclusions in OTEX module. --- modules/zdoom_otex.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/modules/zdoom_otex.lua b/modules/zdoom_otex.lua index 6dbac18a0..0297f423d 100644 --- a/modules/zdoom_otex.lua +++ b/modules/zdoom_otex.lua @@ -233,6 +233,17 @@ OTEX_DIRECT_REMOVALS = "OMETLC94", "OMETLC95" } + }, + + TUDR = + { + textures = + { + "OTUDRA80", + "OTUDRA81", + "OTUDRB80", + "OTUDRB81" + } } } From 49ac3a70e2c8ccb8b6cf5a5d8d17c2a39cfc50b0 Mon Sep 17 00:00:00 2001 From: MsrSgtShooterPerson Date: Thu, 10 Oct 2024 23:50:21 +0800 Subject: [PATCH 6/9] New shape rules and fixed to some previous ones that caused inaccessible elevations. --- scripts/shapes.lua | 188 +++++++++++++++++++++++++++++++++------------ 1 file changed, 141 insertions(+), 47 deletions(-) diff --git a/scripts/shapes.lua b/scripts/shapes.lua index 65b2eb957..731ce0220 100644 --- a/scripts/shapes.lua +++ b/scripts/shapes.lua @@ -4451,6 +4451,7 @@ GROW_357_ROUND_ARCH_DOUBLE = "..........","1111111111", "..........","1/AAAAAA%1", "..........","AA##AA##AA", + "..........","AA##AA##AA", "..........","1%AAAAAA/1", "..........","1111111111", "..........","1111111111", @@ -4497,6 +4498,7 @@ GROW_357_ROUND_ARCH_DOUBLE_STAIRS = "............","111111111111", "............","vv/AAAAAA%vv", "............","AAAA#AA#AAAA", + "............","AAAA#AA#AAAA", "............","^^%AAAAAA/^^", "............","111111111111", "............","111111111111", @@ -7971,7 +7973,7 @@ GROW_CAGE_ROUND_RAFTERS_ONE_SIDE = GROW_CAGE_JAGGED = { prob = 10, - skip_prob = 90, + skip_prob = 80, structure = { @@ -7995,7 +7997,7 @@ GROW_CAGE_JAGGED = GROW_CAGE_JAGGED_DOUBLE = { prob = 8, - skip_prob = 90, + skip_prob = 85, structure = { @@ -8019,7 +8021,7 @@ GROW_CAGE_JAGGED_DOUBLE = GROW_CAGE_JAGGED_STAIRS = { prob = 10, - skip_prob = 90, + skip_prob = 85, structure = { @@ -10486,12 +10488,11 @@ GROW_WIDE_SPACE_PLATFORM_TINY = structure = { - "......","11AA11", - "......","11AA11", - "......","11>A11", - "......","111111", - "xx11xx","xx11xx", - }, + "......x","11AA11x", + "......x","11AA11x", + "......1","11>A111", + "......1","1111111" + } }, GROW_WIDE_SPACE_PLATFORM_TINY_LIQUID = @@ -10501,12 +10502,11 @@ GROW_WIDE_SPACE_PLATFORM_TINY_LIQUID = structure = { - ".......","11AA~11", - ".......","11AA~11", - ".......","11>A~11", - ".......","1111111", - "xx11xxx","xx11xxx", - }, + ".......x","11AA~11x", + ".......x","11AA~11x", + ".......1","11>A~111", + ".......1","11111111" + } }, GROW_WIDE_LOW_CEILING_SIDE = @@ -10522,7 +10522,7 @@ GROW_WIDE_LOW_CEILING_SIDE = "....","1AAA", "....","1AAA", "....","1#AA", - "11..","1111", + "....","1111", "11xx","11xx", }, }, @@ -10540,7 +10540,7 @@ GROW_WIDE_LOW_CEILING_SIDE_LIQUID = "....","1A~~", "....","1A~~", "....","1#AA", - "11..","1111", + "....","1111", "11xx","11xx", }, }, @@ -10560,7 +10560,7 @@ GROW_WIDE_LOW_CEILING_CENTER = "......","1AAAA1", "......","1.AA.1", "......","111111", - "xx11xx","xx11xx", + "11xxxx","11xxxx", }, }, @@ -10578,7 +10578,7 @@ GROW_WIDE_LOW_CEILING_CENTER_LIQUID = "......","1~~~~1", "......","1.~~.1", "......","111111", - "xx11xx","xx11xx", + "11xxxx","11xxxx", }, }, @@ -10631,11 +10631,11 @@ GROW_COLONNADE_3_PILLARS = structure = { - "xxx111xxx","xxx111xxx", - ".........","111111111", - ".........","11#A#A#11", - ".........","11AAAAA11", - ".........","11AAAAA11", + "1.........","1111111111", + "1.........","1111111111", + "x.........","x11#A#A#11", + "x.........","x11AAAAA11", + "x.........","x11AAAAA11", }, }, @@ -10768,7 +10768,7 @@ GROW_PILLAR_3X3_STAIRS = GROW_PILLAR_3x3_TOP_SLOPE = { - prob = 10, + prob = 5, structure = { @@ -10778,7 +10778,7 @@ GROW_PILLAR_3x3_TOP_SLOPE = ".....","1A#A1", ".....","1%A/1", ".....","11111", - "x111x","x111x", + "11xxx","11xxx", }, diagonals = @@ -10825,15 +10825,15 @@ GROW_PILLAR_BEAN = GROW_PILLAR_GATE = { - prob = 20, - skip_prob = 25, + prob = 15, + skip_prob = 35, structure = { "......","111111", "......","111111", "......","1#AA#1", - "11....","111111", + "......","111111", "11xxxx","11xxxx", }, }, @@ -10933,7 +10933,7 @@ GROW_WATER_STRIPES_SIDE = GROW_WATER_STRIPES_SIDE_SLOPE = { prob = 5, - skip_prob = 90, + skip_prob = 85, structure = { @@ -10953,7 +10953,7 @@ GROW_WATER_STRIPES_SIDE_SLOPE = GROW_WATER_STRIPES_SIDE_SLOPE_CAGED = { prob = 5, - skip_prob = 92, + skip_prob = 90, structure = { @@ -10971,8 +10971,8 @@ GROW_WATER_STRIPES_SIDE_SLOPE_CAGED = GROW_WATER_STRIPES_CURVE = { - prob = 5, - skip_prob = 90, + prob = 10, + skip_prob = 80, structure = { @@ -10989,8 +10989,8 @@ GROW_WATER_STRIPES_CURVE = GROW_WATER_STRIPES_RETICULE = { - prob = 5, - skip_prob = 90, + prob = 10, + skip_prob = 80, structure = { @@ -11009,8 +11009,8 @@ GROW_WATER_STRIPES_RETICULE = GROW_WATER_STRIPES_RETICULE_DIAGONAL = { - prob = 5, - skip_prob = 92, + prob = 10, + skip_prob = 85, structure = { @@ -11037,8 +11037,8 @@ GROW_WATER_STRIPES_RETICULE_DIAGONAL = GROW_WATER_STRIPES_RETICULE_half = { - prob = 5, - skip_prob = 90, + prob = 8, + skip_prob = 85, structure = { @@ -11065,8 +11065,8 @@ GROW_WATER_STRIPES_RETICULE_half = GROW_WATER_STRIPES_RETICULE_halfdiag = { - prob = 5, - skip_prob = 92, + prob = 10, + skip_prob = 90, structure = { @@ -11093,8 +11093,8 @@ GROW_WATER_STRIPES_RETICULE_halfdiag = GROW_WATER_STRIPES_RETICULE_PILLARED = { - prob = 3, - skip_prob = 92, + prob = 10, + skip_prob = 90, structure = { @@ -11113,8 +11113,8 @@ GROW_WATER_STRIPES_RETICULE_PILLARED = GROW_WATER_STRIPES_RETICULE_DIAGONAL_PILLARED = { - prob = 3, - skip_prob = 94, + prob = 10, + skip_prob = 90, structure = { @@ -13117,6 +13117,54 @@ GROW_3x_L = }, }, +GROW_3x_L_alt = +{ + prob = 25, + skip_prob = 80, + + structure = + { + "x..xxxx","x11xxxx", + "x..xxxx","x11xxxx", + "x..xxxx","x11xxxx", + "x..xxxx","x11xxxx", + "1......","1111111", + "1......","1111111", + }, +}, + +GROW_3x_L_CAGE = +{ + prob = 15, + skip_prob = 80, + + structure = + { + "x......","x11AAAA", + "x......","x11>AAA", + "x......","x11CCAA", + "x......","x11CC^A", + "1......","1111111", + "1......","1111111", + }, +}, + +GROW_3x_L_CAGE_alt = +{ + prob = 10, + skip_prob = 86, + + structure = + { + "x......","x11AACC", + "x......","x11>ACC", + "x......","x11AAAA", + "x......","x11AA^A", + "1......","1111111", + "1......","1111111", + }, +}, + GROW_3x_L_LIQUID = { prob = 20, @@ -13141,6 +13189,27 @@ GROW_3x_L_LIQUID = }, }, +GROW_3x_L_LIQUID_alt = +{ + prob = 8, + skip_prob = 82, + + structure = + { + "x......","x11~~~%", + "x......","x11~~~~", + "x......","x11~~~~", + "x......","x11~~~~", + "1......","1111111", + "1......","1111111", + }, + + diagonals = + { + "~.", + }, +}, + GROW_3x_L_UP_DOWN = { prob = 20, @@ -13393,6 +13462,31 @@ GROW_3x_O_UP_DOWN = }, }, +GROW_3x_O_LIQUID_PENINSULA = +{ + prob = 20, + skip_prob = 75, + + structure = + { + "xxx11xxx","xxx11xxx", + "........","/111111%", + "........","11111111", + "........","11~~~~11", + "........","11~AA~11", + "........","vv~AA~vv", + "........","vv~AA~vv", + "........","AAAAAAAA", + "........","%AAAAAA/", + }, + + diagonals = + { + ".1","1.", + ".A","A.", + }, +}, + GROW_3x_P = { prob = 40, @@ -13750,8 +13844,8 @@ GROW_CROSS_PILLARS_SIDE = "............","AAAA11AAAAAA", "............","AA#111111>AA", "............","AA#111111>AA", - "............","AAAA11AAAAAA", - "............","AAAA11AAAAAA" + "............","AAAAAAAAAAAA", + "............","AAAAAAAAAAAA" } }, From 420b90fbba16a8b4e2b82d6facf48cb267323300 Mon Sep 17 00:00:00 2001 From: MsrSgtShooterPerson Date: Tue, 15 Oct 2024 15:10:36 +0800 Subject: [PATCH 7/9] Added exclusions for tech hazard signs from being used as general wall textures in OTEX module. --- modules/zdoom_otex.lua | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/modules/zdoom_otex.lua b/modules/zdoom_otex.lua index 0297f423d..23ee88314 100644 --- a/modules/zdoom_otex.lua +++ b/modules/zdoom_otex.lua @@ -231,7 +231,14 @@ OTEX_DIRECT_REMOVALS = "OMETLC92", "OMETLC93", "OMETLC94", - "OMETLC95" + "OMETLC95", + + "OMETLN37", + "OMETLO37", + "OEMTLP37", + "ONDSTJ91", + "ONDSTJ93", + "ONDSTJ94" } }, From 7dbfdcf1686adf8762ba8ba855b9656ee7d240e4 Mon Sep 17 00:00:00 2001 From: MsrSgtShooterPerson Date: Thu, 17 Oct 2024 23:17:50 +0800 Subject: [PATCH 8/9] Added some large-sized park shape rules that focus on less stringy shapes. --- scripts/shapes.lua | 50 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) diff --git a/scripts/shapes.lua b/scripts/shapes.lua index 731ce0220..7b9b11bd2 100644 --- a/scripts/shapes.lua +++ b/scripts/shapes.lua @@ -1698,6 +1698,56 @@ PARK_GROW_3 = }, +-- MSSP: added these in order to lessen the tendency for parks +-- to be long and stringy, which feels really weird for natural outdoors +PARK_GROW_4 = +{ + prob = 1000, + + structure = + { + "11xx","11xx", + "....","1111", + "....","1111", + "....","1111", + "....","1111" + } +}, + + +PARK_GROW_5 = +{ + prob = 700, + + structure = + { + "11xxx","11xxx", + ".....","11111", + ".....","11111", + ".....","11111", + ".....","11111", + ".....","11111" + } +}, + + +PARK_GROW_6 = +{ + prob = 600, + + structure = + { + "11xxxx","11xxxx", + "......","111111", + "......","111111", + "......","111111", + "......","111111", + "......","111111", + "......","111111" + } +}, + + FILLER_1 = { pass = "filler", From 934c65033afbc351bdf46673157ef1fe65b222f6 Mon Sep 17 00:00:00 2001 From: MsrSgtShooterPerson Date: Thu, 17 Oct 2024 23:18:08 +0800 Subject: [PATCH 9/9] Added GLDEFS glowing flats for OTEX liquids. --- modules/zdoom_otex.lua | 32 +++++++++++++++++++++++++++++++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/modules/zdoom_otex.lua b/modules/zdoom_otex.lua index 23ee88314..1c05df9aa 100644 --- a/modules/zdoom_otex.lua +++ b/modules/zdoom_otex.lua @@ -836,6 +836,35 @@ function OTEX_PROC_MODULE.get_levels_after_themes() table.deep_merge(GAME.ROOM_THEMES, OTEX_ROOM_THEMES, 2) end + +function OTEX_PROC_MODULE.all_done() + SCRIPTS.gldefs = ScriptMan_combine_script(SCRIPTS.gldefs, +[[ +Glow +{ + Flats + { + OBLODA01 + OGOOPY01 + OICYWA01 + OLAVAA01 + OLAVAA02 + OLAVAB01 + OLAVAC01 + OLAVAD01 + OLAVAE01 + OLAVAF01 + ONUKEA01 + OSLUDG01 + OPOOPY01 + OTAR__01 + OWATER01 + } +} +]] + ) +end + ---------------------------------------------------------------- OB_MODULES["otex_proc_module"] = @@ -855,7 +884,8 @@ OB_MODULES["otex_proc_module"] = hooks = { setup = OTEX_PROC_MODULE.setup, - get_levels_after_themes = OTEX_PROC_MODULE.get_levels_after_themes + get_levels_after_themes = OTEX_PROC_MODULE.get_levels_after_themes, + all_done = OTEX_PROC_MODULE.all_done }, tooltip = _("If enabled, generates room themes using OTEX based on a resource table. "..