Jump to content

How to get ShardID in modworldgenmain?

Recommended Posts

Hi guys,

I need the ShardID in modworldgenmain.lua to help determine the number of setpieces. However, since TheShard has not been initiated here, I am not able to get it directly. I also tried GetPersistentString, but it is not able to read files without "KLEIĀ  1" header.

Does anyone know how to get the ShardID before worldgen, or the storage path for the shard, which can be used for direct IO operations? Thanks!

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...