• Developing in SinglePlayer's 'Local Server'?
    5 replies, posted
As far as developing addons for all environments (multiplayer, singleplayer, etc), how identical is my own personal dedicated server to the built in Local Server option under Main Menu > Singleplayer? https://files.facepunch.com/forum/upload/710/85e94ddb-d2b7-4407-bfaa-3466ec2d6d3a/image.png Should I bother to install a dedicated server and develop there? I know that in the past the answer would be yes, but - and correct me if I'm wrong - in the past we didn't have the built in local server option under singleplayer.
For the most part I think you shoud be fine. The difference between SP and MP is that in SP, some things don't get called on the client, and in MP, be it local or dedicated server, things should be the same (stuff runs on client and server how it should). Somebody please correct me if I am wrong.
Best way to develop locally is to host an srcds server on your machine, you can read the installation guide here. Downloading a Dedicated Server The difference can be minor, but it is better to take your timw and set up a good environment than having angry customers complaining their addon won't work at 5. AM
I did some tests about server tickrate, and seems like it behaves just like a dedicated server My main issue with hosting a listen server were concommands running in both realms at the same time, it's a good, bad and ugly thing
mp runs as a normal server would but the host pc is obviously the server and the client. idk exactly how sp works but dont develop ur gamemode in sp unless u plan for it to be an sp gamemode.
When testing in a Singleplayer Local Server, I recommend using the command net_fakelag (requires cheats) to fake your ping to high levels. This lets you see how your addon plays for laggy clients and lets you optimize it for them. A lot of people don't do this but it's highly appreciated when you do.
Sorry, you need to Log In to post a reply to this thread.