Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by sofuscraft · Jan 12, 2021 at 06:41 AM · networkingserversavesave dataworld

Building a survival game with dedicated servers?

Hey everyone. I want to create a procedurally generated survival game, with integrated dedicated servers to make playing with your friends easier. However, I haven't found any tutorials on how to actually save the world you are playing on, so you don't have to start over every time you connect to the server. Is this even possible, and do I use Photon, Mirror, or is there another networkings solution I can use? Thanks in in advance.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by Llama_w_2Ls · Jan 12, 2021 at 08:02 AM

You can use Photon Pun/ Pun 2/ Pun Classic, to create easy room joining across the internet, using Photon's dedicated servers. They have some example projects of creating and joining rooms over Wi-Fi.


If you want to save your world for everyone to access, there are multiple ways of going about this. For example, assuming your game is like Minecraft, you could create a text file of the perlin noise settings to proceduraly re-generate the same world as the host, and send that data across the network for all the players to share. Any edited blocks or destroyed blocks must also be saved, and dealt with accordingly. Preferably in the same manner.


Networking is not a simple thing. From experience, I've learnt that learning new things require a lot of effort and time. However, I'm willing to assist you if you choose to use Photon Pun Classic, to create your multiplayer game. @sofuscraft

Comment
Add comment · Show 5 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image sofuscraft · Jan 12, 2021 at 08:30 AM 0
Share

Hi, thanks for the reply! Right now the only thing I have setup in my game is Pun 2 and a simple character controller, so I haven't made the procedurally generated terrain yet.

I'd really like some help regarding this whole thing, as I can't find any videos or tutorials anywhere about this. I was also wondering if there is any way I can prevent the clients from having to regenerate a word, and just load it from a folder instead?

avatar image Llama_w_2Ls sofuscraft · Jan 12, 2021 at 08:52 AM 0
Share

Have you checked the official website? They walk you through the basics of implementing a networked character and joining rooms etc. Also there are example projects when you open up your Photon Pun folder, in the editor. Try them out, and I can try to explain any scripts for you if you want.


Procedurally generated terrain is another topic that there are plentiful of tutorials on. If you're looking for something voxel-like and blocky, you can follow a $$anonymous$$ecraft tutorial, but if it's using Unity's terrain system, with more realistic terrain, you can try check out Sebastian Lague's tutorial series on creating random and good-looking terrain. You can follow his tutorial series using this link: Procedural Landmass Generation: Tutorial Series 1

avatar image sofuscraft Llama_w_2Ls · Jan 12, 2021 at 09:46 AM 0
Share

Yeah I have all that under control. I just meant that I couldn't find any tutorials on how to do the save/load world part.

Show more comments

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

157 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Unity networking tutorial? 6 Answers

Upload/save player data to a tcp server 0 Answers

Is it possible to add a specific prefab and custom user text in in a multiuser web player? 0 Answers

Save system for a Motherload-like game. 1 Answer

Creating a multiplayer game. 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges