Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 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
2
Question by Pandiux · Aug 06, 2012 at 10:51 PM · multiplayerrenderingserverdedicated

How to run a dedicated server?

Hey, so I've got my multiplayer FPS, but I'm trying to make a dedicated server were no rendering or low rendering is being done because its not necessary as theres no player. How can I network instantiate objects and make the server process all their actions without requiring the rendering?

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

3 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by LeopardX · Sep 17, 2015 at 12:13 PM

As of Unity 5.2, and if you want to run your dedicated server on say a VPS server, then -batchmode -nographics as the command line arguments are needed, HOWEVER!, unity has sadly not suported a proper console window dedicated server and as a result, when you use bachmode, there is NO window or any indication other than looking at task manager to see if the server is running.. i find this totally insane by Unity..

However what I would sugest, is to code your own launcher, pass the arguments to it, then monitor the proccess, and give the option to shut the proccess down by sending the proccess handel a PostMessage(app, WM_CLOSE, 0, 0); or similar like:

[DllImport("user32.dll", EntryPoint = "PostMessageA", SetLastError = true)] private static extern bool PostMessage(IntPtr hwnd, uint Msg, long wParam, long lParam);

For more info google: send message to close process c#, or things like how to embed a proccess into a window would give you a good start also, not that you need to do that, but it dose show how to run programs and get there handel.

Then you can give your users some kind of professional look when running your dedicated server, unlike how Unity dose it.

Comment
Add comment · 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
2

Answer by ScroodgeM · Aug 06, 2012 at 10:53 PM

http://docs.unity3d.com/Documentation/Manual/CommandLineArguments.html

-batchmode

-nographics

Comment
Add comment · Show 3 · 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 Pandiux · Aug 06, 2012 at 11:33 PM 0
Share

Hey, is there a mac solution? I see there is no -nographics option for mac.

avatar image ScroodgeM · Aug 07, 2012 at 04:07 AM 0
Share

for mac standalone

-batchmode

only

avatar image HuskyPanda213 · Oct 11, 2013 at 02:10 PM 0
Share

Will I need to run the start server code first. Or can batch mode be typed after starting.

avatar image
-2

Answer by Dr.Yueh · May 07, 2014 at 03:36 PM

Hello ! some time has passed since the last posts. does a game server in Unity 4 really run without gui or directx installation when purchasing a pro license ? And if so - are rigidbody movement and collisions on server for examples doen correctly without rendering ? I have found concurrent information about this topic and before purchasing pro just to get a feature that will not work out would make me pretty angry .... I really would appreciate a comment from a pro user or a unity mod. Thank you all ....

Comment
Add comment · 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

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

12 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

Related Questions

Unity networking tutorial? 6 Answers

CMD-Based Dedicated Server 1 Answer

How to Send RPC from One Client to anther while the server isn't in the same scene 1 Answer

Unity 3d dedicated server 0 Answers

Can I create a separate server and use the Unity game objects in it? 0 Answers


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