• Mods are now organized as resources. Use the Mods link above to browse for or submit a mod, tool, or prefab.

    The TFP Official Modding Forum Policy establishes the rules and guidelines for mod creators and mod users.

Prefab Snafu

EverLee66

Refugee
When I generated a new world in World Editor (created when 2.0 dropped) - it put in an old prefab I forgot about and didn't want anymore - so I didn't upload the prefab to the server.
How much of an issue can this cause? So far, it has only "failed to load" them, but can it break the world?

I had forgotten about that prefab, and didn't realize it would add it automatically. I didn't even realize it was "not there" until I was watching my husbands console load the world and saw it failed to load.

What options do I have - or is it something I don't need to worry about?
I could load the prefab OR remove the lines for that prefab in the prefab.xml on the server - but I do NOT want to break the world (we recently had that happen with a mod - and I am not risking it again).

Thanks - Debi
 
What options do I have - or is it something I don't need to worry about?

I think it will just leave a blank plot on the map wherever it got placed, and throw the error. Removing it from prefab.xml should also work.

I think another option would be to provide a POI with that name and of the same size. For instance:
  • You, me, somebody updates the POI to the current version.
  • You copy the six files for POI of the same size and give them the same name as the missing POI.
Overall, I think a "give it what it wants" approach should work.

(Make a backup of the world.)
 
Removing it from prefabs.xml AND do a chunkreset on the spot where the poi was will fix it completely.

*** Command(s): chunkreset, cr ***
Usage:
1. chunkreset <x1> <z1> <x2> <z2>
2. chunkreset [f]
1. Rebuilds the chunks that contain the given coordinate range.
2. Can only be executed by a player in the ingame console! Behaviour depends on whether the
player is currently within the bounds of a POI:
Within a POI: The POI is reset.
Not within a POI: The chunk the player is in and the eight chunks around that one are
rebuilt. Not deco! Does not reload POI data!
d - regen deco
f - fully regenerates chunks (may cause double entities!)
u, utimed, ue - Unload chunks or entities
nq - Enqueue a 3x3 group of chunks centred around the player to be reset when unsynced, unless they are otherwise protected from the chunk reset system.
 
Back
Top