x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Any other reference/guides? to C++ Networking?

This is all I have been able to find on the internet for Unreal 4 Networking. Here

Is there any other guides on C++ networking in unreal? Shootergame is like 1000000 lines of code and I don't even know which Cpp file to look at in it, so far I'm not noticing replication.

Thanks in advance.

Product Version: Not Selected
Tags:
more ▼

asked Sep 17 '14 at 07:45 AM in C++ Programming

avatar image

CJ31387
134 39 35 40

avatar image dzeligman Sep 18 '14 at 05:15 AM

Shooter game is really going to be your best bet. Its the simplest self contained example for multiplayer gameplay. It is a tiny amount of code compared to real projects.

avatar image CJ31387 Sep 18 '14 at 05:22 AM

which CPP file should I look at specifically in it?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

In shooter game ServerFireProjectile in ShooterWeapon_Projectile is a server only RPC function used to spawn projectiles on the server that get replicated to the client.

ShooterWeapon_Instant has code for doing client side effects of an instant hit ray trace that is verified on the server using the ServerNotifyHit related functions. It also replicates the FInstantHitInfo struct to other clients. Those two classes are pretty much the core behavior for server authoritative gameplay. The project also has code for multipler maps/loading/etc as does the Unreal Tournament code.

more ▼

answered Sep 18 '14 at 05:33 PM

avatar image

dzeligman
723 33 30 56

avatar image CJ31387 Sep 18 '14 at 10:23 PM

Thank you that's a very good example!

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question