tModLoader
Оценок: 4,686
Subworld Library
4
3
5
2
5
2
2
2
2
   
Наградить
В избранное
В избранном
Удалить
Размер файла
Добавлен
Изменён
219.079 KB
26 мар. 2022 г. в 13:55
18 июн в 12:55
Обновлений: 17 (просмотреть)

Подпишитесь, чтобы загрузить
Subworld Library

Описание
NOTE
Cloud saving/Steam Cloud is known to cause freezes when entering subworlds that save in Singleplayer. If you're experiencing this, try disabling it for the time being (Steam Cloud isn't a reliable service anyway).
https://github.com/jjohnsnaill/SubworldLibrary/issues/43

An API for modders to easily add dimensions (referred to as subworlds) to their mods, making all the necessary code injections, handling Multiplayer and managing every subworld.

Report issues on the forum page or GitHub:
https://forums.terraria.org/index.php?threads/86283
https://github.com/jjohnsnaill/SubworldLibrary/issues

Wiki:
https://github.com/jjohnsnaill/SubworldLibrary/wiki

HOW IT WORKS
Subworld Library does a LOT of code injection, as Terraria was not made with subworlds in mind.
Subworlds are highly customisable; from how big or small they are, to what ModSystems can update inside of them and even how they are lit.
Subworld Library removes Space, both Oceans and the Underworld from subworlds, allowing them to be extremely small without issues.

LOADING
Loading a subworld is straightforward. Loading screens can be as simple as text on a plain background, or something complex, like an item selection menu.

SAVING
Subworlds save to a directory named after the main world. A subworld and/or changes to players inside it can be temporary. Deleting a world deletes all of its subworlds as well.

MULTIPLAYER
Subworld Library works in Multiplayer with little to no extra work required from modders. A "subserver" is opened for every subworld being occupied.
Автор сообщения: tModLoader
Developed By John Snail
Комментариев: 327
ravyn 20 окт в 16:45 
My issue earlier in the comments is the same as yours, so it definitely is still happening afaik
MercuryDoll 18 окт в 17:35 
Honestly i dont know if that was addressed since last i tried it somewhen in spring i think, i just had a discussion earlier today and had the modpage open so i thought i'd post my experience here as well.
John Snail  [создатель] 18 окт в 13:43 
That's odd, that shouldn't be happening. I guess I'll have to have another look, thanks for the report!
MercuryDoll 18 окт в 6:59 
Dedicated servers work, but its not recommended with larger modpacks. The dedicated server boots up a second instance automatically upon a player requesting to enter a subworld. The problem is if this bootprocess takes too long due to loading mods, the players can time out during the loading and be kicked from the server. If the subworld instance sees that noone is queued for the subworld anymore, it automatically shuts down the subserver again. So its kinda impossible to get into a subworld unless you shrink down on mods to shorten server boot time.
This could be remedied if we could tell the dedicated server to boot them after startup and keep them open, or even add separate process instances for each subworld. But at the moment all you can do is trim down modlists significantly.
Tsakaile 13 сен в 23:01 
Would something like this work on a dedicated server? This could be pretty amazing honestly
ravyn 13 сен в 22:39 
Update: After changing as far as I know literally nothing, it now doesn't work at all. When the person who 'created' the subworld tries to rejoin (and sometimes, anyone at all) it just said '0.0.0.0:0 was booted: Invalid operation at this state' in the console, and says the left instantly. On their game, they simply see the Saving Map Data 100% thing, except this time there is a cancel button. It does not matter how long you wait, you do not get in.
ravyn 8 сен в 5:29 
I have to add the important detail that while this is happening there is *no* cancel button, it just says Saving Map Data 100%, so you *have* to alt+f4 your game to get back in. It basically wouldn't be much of an issue at all otherwise.
Since it doesn't kill the subserver, however, you can simply
- Attempt to travel to the subworld, wait for the server to properly start the subserver
- ALT+F4 your game
- Reattempt to travel to the subworld
and it will work.
ravyn 8 сен в 5:24 
I figured out the workaround -- you just need to put your actual server files in the default save directory. The problem I have now is that when you're going to the subworld, during the process of the subserver booting up, it occasionally will boot you out of the server (printing Player has left.) to the console, but it doesn't seem to shut down the subserver, as, after it boots up, a second player can join it. It seems to happen basically every time you join a subworld with the subserver not yet being up. Maybe being timed out, or something?
John Snail  [создатель] 23 авг в 8:06 
Oh I see you commented previously lmao, maybe a month at most? I believe there are workarounds to that issue in the meantime.
LuxuriousFiji 22 авг в 13:19 
just the issue that was being fixed for the next update.

can't use the mod due to it not passing info to the subworlds on linux.