Meta World Type
简介
MetaWorldType 在世界创建界面中添加了一种世界类型,它会调用 其他 世界类型在世界的各自区域中进行生成。这使您能够在主世界中拥有多个不同的世界类型甚至其他维度,它们都在各自的区域内生成!例如,您可以步行穿梭于默认区域、放大区域、暮色森林区域等之间。
世界被划分为一个区域网格,每个区域的长度和宽度均可配置。每个区域都会从可配置的世界类型或维度列表中按权重随机抽取一个进行生成。
本模组本身不包含任何世界生成功能,它只是根据世界坐标将生成任务委托给其他生成器。
要在服务器上使用,请在服务器配置中将世界生成器设置为 MetaWorldType。
配置(读取)
当使用 MetaWorldType 加载进入世界时,日志中会输出一系列可能的生成器字符串列表。例如:
[com.kpabr.GeneratorSplicer.SplicedWorldType:getChunkGenerator:68]: worldtype 4: owg.world.WorldTypeOWG@c444117 , 4 ; OWG
[20:21:58] [Server thread/INFO] [STDOUT]: [com.kpabr.GeneratorSplicer.SplicedWorldType:getChunkGenerator:68]: worldtype 5: ttftcuts.atg.ATGWorldType@17e992f7 , 5 ; ATG
[20:21:58] [Server thread/INFO] [STDOUT]: [com.kpabr.GeneratorSplicer.SplicedWorldType:getChunkGenerator:68]: worldtype 9: biomesoplenty.common.world.WorldTypeBOP@7c36f936 , 9 ; BIOMESOP
[20:21:59] [Server thread/INFO] [STDOUT]: [com.kpabr.GeneratorSplicer.ChunkProviderSpliced:<init>:255]: Dimension: 20, Name: thebetweenlands.world.WorldProviderBetweenlands
[20:21:59] [Server thread/INFO] [STDOUT]: [com.kpabr.GeneratorSplicer.ChunkProviderSpliced:<init>:255]: Dimension: 7, Name: twilightforest.world.WorldProviderTwilightForest
[20:21:59] [Server thread/INFO] [STDOUT]: [com.kpabr.GeneratorSplicer.ChunkProviderSpliced:<init>:255]: Dimension: -127, Name: net.tropicraft.world.WorldProviderTropicraft
有效的生成器名称始终是打印输出的最后一个字符串,例如:OWG、ATG、BIOMESOP、thebetweenlands.world.WorldProviderBetweenlands、twilightforest.world.WorldProviderTwilightForest、net.tropicraft.world.WorldProviderTropicraft 都是有效的生成器名称。
还有一些内置的生成器选项,均来自原版游戏。它们是 DEFAULT、AMPLIFIED、LARGE_BIOMES、FLAT、DEFAULT_1_1、HELL 和 END。
所有行 必须 以生成概率结尾,概率格式为 n/1。@ 字符用于分隔概率值,因此 AMPLIFIED@0.25 将使每个世界区域有约 25% 的概率生成为放大地形。请注意,我使用的是噪声函数而非纯随机数,因此列表中相邻的相同条目更有可能彼此相邻生成。您可能希望所有概率之和等于 1。
所有生成器类型后面都可以选择性地跟随一个自定义生成器字符串,用 + 分隔。例如,OWG 模组允许用户设置类似 INFDEV#1 的生成器字符串以选择 infdev 地形生成器。因此,如果您希望某个区域有约 10% 的概率生成雪原版 infdev,而有约 20% 的概率生成普通 infdev,则应添加条目 OWG+INFDEV#1@0.1 和 OWG+INFDEV#0@0.2。生成器字符串必须位于生成概率之前。
列表中的第一个条目也将用于世界出生点。它必须是一个非来自维度模组的原始世界类型,因此 DEFAULT、BIOMESOP、HELL 和 ATG 可以是有效的首个选项,但不能是暮色森林之类的维度。如果您希望第一个条目仅在出生点生成,而在其他地方不生成,可以将其生成概率设为 0。
常见问题
帮助!我的内存占用变高了!!
由于该模组的编写方式,它在服务端使用的内存会比原版 Forge 更高。较新版本的 Java(如 17 或 21)基本上消除了该模组的内存占用问题(并提高了整体性能)。是的,您可以通过安装 lwjgl3ify 在 Forge 1.7.10 上运行现代 Java,这将使您的内存占用降至 Java 8 时代的零头。
RTG 无法正常工作
是的,由本模组生成的上游 RTG 将没有人口填充器(即没有树木、矿石等)。我在我的 GitHub 上有一个分叉版本,“修复”了这个问题。RTG 会根据相邻区块更改其装饰器。它有一个检查机制,只有在所有邻居都存在时才进行填充,正如您所料,在本模组中这种情况很少发生。我的补丁使其按需加载所有其他区块,这将在进入 RTG 区域时导致服务器最多冻结 30 秒。是的,这不是理想的解决方案,但至少每个区域只会出现一次(大部分时间)卡顿尖峰,因为它会一次性生成大量区块。我对这个解决方案并不满意,但这是我目前找到的解决办法。
Betweenlands 无法正常工作
说实话,我已经忘了当初是怎么修复它的,但您可以在我的 GitHub 上找到分叉版本。在主世界的 Betweenlands 区块中,自定义的 Betweenlands 着色器和音乐将无法播放。人口填充器的填充效果似乎不佳,怪物也几乎不生成。我会尝试最终修复这个问题。
Tropicraft 无法正常工作
在我修复了一个 Bug 后,它现在应该可以工作了。不过,我在我的 GitHub 上提供了一个更新版本,修复了一些无关的 Bug,并包含比上一个官方 1.7.10 Tropicraft 版本更新的特性。总之,正常的 Tropicraft 应该可以正常运行。
Mystcraft 无法正常工作
我知道,如果它能与我的模组兼容那就太棒了。也许有一天我会为此投入精力。
Twilight Forest 无法正常工作
请使用 GTNH 分叉版。请注意,您不能在主世界中使用魔法地图(我曾尝试允许它,但这会导致附近区块损坏),并且只能在 TF 维度中获得成就。
Biomes O Plenty 无法正常工作
BOP 似乎只生成约 5% 的生物群系,这是为什么?我打算修复这个问题。
为什么有这么多分支,而不是直接混入这些模组?
因为我比较懒。我希望在第一个稳定版本发布前能完成所有修复的 mixin 化。不保证能做到。
区域之间的边界相当难看且粗糙,你有计划像 1.19 那样平滑处理边界区域吗?
这听起来工作量很大,连 mojang 都没能平滑处理,而且我也不打算这么做,因为我喜欢这种粗糙的边界。
为什么是 1.7.10?它已经十年了,过时、被遗弃,没人用它,请移植到 1.30,啥时候能好,还没有 sodium,也没有 create,还有还有还有还……
因为我玩这个版本。代码是开源的,如果你想把它移植到现代 Minecraft,非常欢迎。不过建议如下——如果你在乎自己的理智,就别这么做。各个版本的地图生成机制变化很大,而这个模组依赖于每个角落的各种奇怪且不稳定的行为。如果你真想移植,可能需要先熟记 Minecraft 所有的地图生成代码。
你有 Discord 或 IRC 吗?
我在 Legacy Modding discord 的 #mods 频道有一个讨论串。没有 IRC 房间,但我在 libera 和 OFTC 上的用户名是 'rrogalski'。或者直接用 GitHub issues 也行,我不介意。
Meta World Type
About
MetaWorldType adds a world type in the world creation screen, that calls other world types to generate all in their own regions of the world. This allows you to have several other world types and even other dimensions, all generated in their own areas in the overworld!! For example, you could walk on foot between default areas, amplified areas, twilight forest areas, et al.
The world gets divided into a grid of regions, regions having a configurable length x width. Every region is weighted-randomly picked from a configurable list of possible world types or dimensions to generate from.
This mod doesn't have any world generation of its own, it just defers the generation to other generators depending on world coordinates.
To use on a server, set the world generator to MetaWorldType in the server config.
Config (read)
When loading into a world using the MetaWorldType, a list of possible generator strings will be spewed into the log. For example:
[com.kpabr.GeneratorSplicer.SplicedWorldType:getChunkGenerator:68]: worldtype 4: owg.world.WorldTypeOWG@c444117 , 4 ; OWG
[20:21:58] [Server thread/INFO] [STDOUT]: [com.kpabr.GeneratorSplicer.SplicedWorldType:getChunkGenerator:68]: worldtype 5: ttftcuts.atg.ATGWorldType@17e992f7 , 5 ; ATG
[20:21:58] [Server thread/INFO] [STDOUT]: [com.kpabr.GeneratorSplicer.SplicedWorldType:getChunkGenerator:68]: worldtype 9: biomesoplenty.common.world.WorldTypeBOP@7c36f936 , 9 ; BIOMESOP
[20:21:59] [Server thread/INFO] [STDOUT]: [com.kpabr.GeneratorSplicer.ChunkProviderSpliced:<init>:255]: Dimension: 20, Name: thebetweenlands.world.WorldProviderBetweenlands
[20:21:59] [Server thread/INFO] [STDOUT]: [com.kpabr.GeneratorSplicer.ChunkProviderSpliced:<init>:255]: Dimension: 7, Name: twilightforest.world.WorldProviderTwilightForest
[20:21:59] [Server thread/INFO] [STDOUT]: [com.kpabr.GeneratorSplicer.ChunkProviderSpliced:<init>:255]: Dimension: -127, Name: net.tropicraft.world.WorldProviderTropicraft
Valid generator names are always the last string printed, for example: OWG, ATG, BIOMESOP, thebetweenlands.world.WorldProviderBetweenlands, twilightforest.world.WorldProviderTwilightForest, net.tropicraft.world.WorldProviderTropicraft would all be valid generator names.
There are also a few builtin generator options, all from vanilla. These are DEFAULT, AMPLIFIED, LARGE_BIOMES, FLAT, DEFAULT_1_1, HELL, and END.
All lines must end with a probability to spawn, probability being n/1. The @ character deliminates the probability chance, so AMPLIFIED@0.25 will give each world region an ~25% chance to be amplified. Note that I use noise instead of random, so the same entry / entries next to each other in the list are more likely to spawn next to each other. You will probably want the sum of all the probabilities to be equal to 1.
All generator types can optionally be followed with a custom generator string, delimited by a +. For example, the mod OWG has generator strings the user can set like INFDEV#1 to select an infdev terrain generator. So if you want a ~10% chance for a region to be snowy infdev, and a ~20% chance for regular infdev, you would have the entries OWG+INFDEV#1@0.1 and OWG+INFDEV#0@0.2. The generator string has to be before the spawn chance.
The first entry in the list will also be used for world spawn. It has to be a world type not from a dimension mod, so DEFAULT, BIOMESOP, HELL, and ATG would be valid first options, but not say, twilight forest. If you want the first entry to spawn only in world spawn, and not elsewhere, you can give it a spawn chance of 0.
Q & A
Help! My RAM usage is higher!!
From how the mod is written, it will be using higher ram serverside than base forge. A newer version of java, say 17 or 21, basically eliminates the ram useage of this mod (and makes it more performant in general). Yes, you can install modern java on forge 1.7.10 with lwjgl3ify, which will make your ram useage a fraction of what it is with java 8.
RTG is broke
Yeah, upstream RTG will have no populator when spawned by this mod (meaning, no trees, no ores, etc). I have a forked version on my GitHub that 'fixes' this. RTG changes its decorator depending on the neighboring chunks. It has a check to only populate when all its neighbors are, which as you can tell, doesn't really happen with this mod. My patch just makes it, load all other chunks on demand, which will make the server freeze for up to 30 seconds when entering an RTG region. Yes, this isn't ideal, but at least it's only a (mostly) one time lagspike per region, as it goes and generates a whole boatload of chunks at once. Not happy with this solution but it's the solution I got.
Betweenlands is broke
I honestly forgot what I did to fix this one, but have a forked version on my GitHub. The custom betweenlands shaders and music won't play when in betweenlands chunks in the overworld. The populator doesn't seem to populate as much, and mobs really don't spawn. I'll try to fix this eventually.
Tropicraft is broke
It shouldn't be now that I fixed a bug, but I have an updated version on my GitHub that fixes a few unrelated bugs, and has features newer than the last official 1.7.10 tropicraft release. But yeah normal tropicraft should be working.
Mystcraft is broke
I know, it would be really cool if it worked with my mod. I might work on it one day.
Twilight Forest is broke
Use the GTNH fork. Note that you cannot use the magic map in the overworld (i tried to allow it but it just kinda corrupts nearby chunks), and you can only gain achievements while in the TF dimension.
Biomes O Plenty is broke
BOP only spawns like 5% of its biomes for some reason when they're spawned by this mod? I'm planning a fix.
Why a million forks and not just directly mixin to the mods?
Because I'm lazy. I'll hopefully get around to mixin-ifying all my fixes before the first stable release. No promises.
The borders between regions are fairly ugly and rough, do you have plans to smooth out border regions like 1.19 does?
That sounds like a lot of work, something even mojang couldn't do smoothly, and something I wouldn't use as I like the rough borders.
Why 1.7.10 it's ten years old and outdated and abandoned nobody uses it and please port to 1.30 eta wen and there's no soydium and doesn't have create and and and and an
Because I play it. The code is open source, if you want to port it to modern minecraft, you're more than welcome to. Word of advice though-- if you care about your sanity, don't. World generation has changed a lot over versions, and this mod relies on weird erratic behavior of every corner. If you do want to port it, memorizing all of minecraft's world generation code is a probable prerequisite.
Do you have a discord or IRC?
I have a thread in the #mods room on the Legacy Modding discord. No IRC room but I'm 'rrogalski' on libera and OFTC. Or just use github issues idc.
评论 0
登录后参与评分
还没有评论,来抢沙发吧