Hiranus Posted October 18 Share Posted October 18 I am working on a mod that lets player configure things in UI per world. What is the easiest way to get something that is truly unique per save that: Will correctly work for caves & surface (its same world) Will work even if player changes character via celestial portal (it's still same world for that player) Will work for clients (its client mod) Link to comment Share on other sites More sharing options...
myxal Posted October 18 Share Posted October 18 I don't have a working solution or experience with such, but I'd recommend checking out Joe's DST bingo mod. It saves its data under <DST_data_folder>/<steam_ID>/client_save/session/<world-specific-ID>/... Link to comment Share on other sites More sharing options...
_zwb Posted October 18 Share Posted October 18 You could use the world seed and current time stamp combined for unique IDs Link to comment Share on other sites More sharing options...
Hiranus Posted October 18 Author Share Posted October 18 Does not fulfill point 1 - while it keeps all worlds separate is doesn't work across surface/caves. Do you have any clever idea to get other "layer" session Id? Link to comment Share on other sites More sharing options...
_zwb Posted October 18 Share Posted October 18 1 hour ago, Hiranus said: Do you have any clever idea to get other "layer" session Id? Use TheWorld.prefab to tell which layer it is Link to comment Share on other sites More sharing options...
Hiranus Posted October 18 Author Share Posted October 18 Yea, but both surface and caves have their own session id. it looks like guid. Is there a way to get that guid for other layer - from surface to get that guid of caves? Link to comment Share on other sites More sharing options...
Hiranus Posted October 18 Author Share Posted October 18 Alternative would be to send some data when player clicks on cave entrance and receive it when he will be in caves. this way I could pass some identifier from one to another. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now