0
Answered
Share the generated map between players
Hello,
First of all thanks for making this asset which is really a great job!
We are using Daedalus to develop a multiple user online games so we need to share the map. The idea we have so far is that we will have one of the player as the host and a map will be generated on his/her iphone. Afterwards the sigature of this map will be sent to other users and the same maps will then be generated on their devices. Could you help to provide some quick instructions here regarding where inside the lines I can get the "sigature" of the map? which method and the name of the variable?
Thank you very much!
First of all thanks for making this asset which is really a great job!
We are using Daedalus to develop a multiple user online games so we need to share the map. The idea we have so far is that we will have one of the player as the host and a map will be generated on his/her iphone. Afterwards the sigature of this map will be sent to other users and the same maps will then be generated on their devices. Could you help to provide some quick instructions here regarding where inside the lines I can get the "sigature" of the map? which method and the name of the variable?
Thank you very much!
Customer support service by UserEcho
Seed-based generation is what you're looking for.
In your scenario, you may want to have the server (be it a master server or a player acting as the server) make all the clients load the same scene, where you have set up the dungeon beforehand (e.g., plugging in art assets, set generation parameters, etc.); then the server generates a random seed (an int number) and passes it to the clients, which will then generate the same map.
You have to enable 'Use Seed' option in the Generator Behaviour inspector in order to do that.
Let us know if you need to know anything else. Also, please keep us updated about your game! We'd love to see how Daedalus is being used in other people's games.