|
Post by dendiee on Dec 13, 2017 18:32:17 GMT
Hey everyone , after monts of being absent from the forum i posted something yesterday and got quite a bit of messages on the multiplayer i got working with invector and photon. Allthough i love to answers questions and so on i think it will be alot to handle on my own...as there will be alot of questions probably... When i first started this project it was for my own and i was planning on selling the code for this but its almost christmas and decided thats a not cool thing to do for the community! if people would like it , i can plan the next weeks or months or whatever to make a small demo project with all the scripts included, and a working example scene... please note: i only do this if invector is approving it(as i would have to include his scripts too since some things are added to his scripts i (at this moment) do not intend to make it work for the shooter too , although with just half a brain u guys should be able to figure it out! I made this code based on an older version of invector (i think xD havent been following the updates alot lately , made in like august or so , so the version released at that time)
I only intend on doing this if people actually want/need this... cayse this will consume quite a bit of time since i will try to make it easy to use and understand.
Let me know!
Cheers!
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on Dec 13, 2017 20:00:59 GMT
I’m certainly interested!! I’ve been kind of stuck where I am on a photon integration I’m working on.
Thank you!!
Cheers! Xalo
|
|
|
Post by Invector on Dec 13, 2017 21:45:38 GMT
Hey dendiee glad to see you around here again! You're free to create and share your own custom add-ons with the community, as long as you don't share/expose any of our source code, at least the core scripts of the template like the controller, motor, animator, itemManager, meleeManager, etc...
|
|
|
Post by testuser26 on Jan 12, 2018 18:44:27 GMT
tell me, more things about this project, can you make them interact completely with shots / deaths / animations? I can buy from you, show-me
|
|
|
Post by Frosted Brain on Jan 27, 2018 4:38:16 GMT
Any news?
|
|
|
Post by dendiee on Feb 22, 2018 14:21:46 GMT
after a rollercoaster ride of work for own(paid) projects, work and school and recently a well awaited vacation...it safe to say ill dump some code on here soon with an explanation. Getting EVERY part explained and posted takes ages so ill do part by part. Expected within a week(code is ready since August so just need time to post and explain): Spawning objects , creating custom rooms , joining custom rooms , playernames , animations , melee combat(collision) (no weapons as they require to be insantiated on the network too) and some more things. follow up later : weapons on networks,handling death properly,score menu ,etc for these eagerly awaiting the project for months... sorry i just am very busy otherwise you could've gotten it in August already haha cheers
|
|
|
Post by dendiee on Feb 24, 2018 11:08:34 GMT
Alright the first part explanation and code Please note: This is the DIRTY way to implement later on ill explain how i got it working PROPERLY cause this works but u can expect a red console... as mentioned in a previous post all code and implementation is working but i divide in different pieces , in this we will -Spawning objects(player) -creating/joining custom rooms -playernames -melee combat -animations -setup for gamemodes and different maps
Requirements: Invector(duh) ,Photon , some basic unity knowledge Download the required C# Script files from this link drive.google.com/open?id=1lvuE2Qtr8j7wQ6kYqyTNMs8cAJFl0Mhf1: Copy C# scripts named LobbyScript and NetworkPlayerController into assets folder 2: LobbyScript manages the rooms and which room u connect to,it also allows us to choose game type and maps , make new UI elements (i used 2x input fields for gamename and playername,and used 2xinput field for choosing gametype and map. (drag and drop it) 3: Make a new camera , and disable the invector camera gameobject AND camera component. Add these camera's to the LobbyScript (drag and drop it) 4: make a player prefab for multiplayer, this is just a regular invector character, give it the name "Player" or change the name of the player in the LobbyScript (line 266). Make sure this prefab is in a Resources folder! 5: DISABLE all the invector components needed (vItemManager,vThirdPersonController,vShooterMeleeInput/vMeleeCombatInput,vThirdPersonMotor,vHeadTrack,vAmmoManager,vMeleeManager/vShooterManager) 6: to your player object for multiplayer that u created earlier : add these components: PhotonView,PhotonTransforView,PhotonAnimatorView 7: Add the NetworkPlayerController script to the player object. 8: The photonView has to observe these components: PhotonTransFormView,PhotonAnimatorView,invector manager(melee or shooter manager) and the VitemManager, also put the rigidbody and the script we just created under here 9:make sure settings of photonview are (from top to bottom) : fixed,unreliable on change, all 10: under the Photontransformview make sure to sync position and rotation 11: add your ui in the networkPlayerscript we made 12: in the PhotonAnimatorView under layers Disable all the layer weights 13: under the synchronize parameters make sure it is al set to Discrete 14: If all went well you should now be able to create and join custom rooms , use it to make gamemodes/map,go in game walk around and see others , animations should be synched , and normal (unarmed) combat should work. As said in the beginning it is not nearly done yet and u will have to turn a blind eye to the console when doing this cause it will be very red. 15: Have fun Cheers
|
|
|
Post by tharindu on Feb 24, 2018 12:56:16 GMT
dendiee The thread looked messy with lots of code around so I put your scripts into .cs files and uploaded them on google drive. Modified the description to suite the scripts Hope it's okay. Let me know if anything looks wrong. Cheers and thanks for sharing with the community!
|
|
|
Post by dendiee on Feb 24, 2018 14:01:07 GMT
dendiee The thread looked messy with lots of code around so I put your scripts into .cs files and uploaded them on google drive. Modified the description to suite the scripts Hope it's okay. Let me know if anything looks wrong. Cheers and thanks for sharing with the community! all fine dont worry i dont mind haha
|
|
|
Post by Frosted Brain on Feb 24, 2018 23:17:20 GMT
Could you put up an example scene when you get a chance? I can't seem to figure out where I messed up D :
|
|
|
Post by dendiee on Feb 25, 2018 12:18:28 GMT
Could you put up an example scene when you get a chance? I can't seem to figure out where I messed up D : sadly i cant,there is no way to put a scene online with everything working without it containing invector code , wich is not allowed... describe the problem and ill try to help
|
|
|
Post by Frosted Brain on Feb 25, 2018 15:02:07 GMT
Is there a way you could make a quick and dirty video of the steps to follow along? Some parts of your written instructions are a bit unclear
In the third step by make a new camera do you mean a new invector cam prefab?
I made a second new cam and left an example scene invector cam ; after disabling the components for it I realized there is only one camera slot in the lobby script. I ended up making a single invector cam instead but after following the rest of the steps I still don't have a working scene so I figured I must have misunderstood some steps
|
|
|
Post by tharindu on Feb 25, 2018 16:04:46 GMT
Is there a way you could make a quick and dirty video of the steps to follow along? Some parts of your written instructions are a bit unclear In the third step by make a new camera do you mean a new invector cam prefab? I made a second new cam and left an example scene invector cam ; after disabling the components for it I realized there is only one camera slot in the lobby script. I ended up making a single invector cam instead but after following the rest of the steps I still don't have a working scene so I figured I must have misunderstood some steps Doubt that's what he meant because he does ask to disable the invector camera. Make a new camera , and disable the invector camera gameobject
|
|
|
Post by dendiee on Feb 25, 2018 22:47:59 GMT
Is there a way you could make a quick and dirty video of the steps to follow along? Some parts of your written instructions are a bit unclear In the third step by make a new camera do you mean a new invector cam prefab? I made a second new cam and left an example scene invector cam ; after disabling the components for it I realized there is only one camera slot in the lobby script. I ended up making a single invector cam instead but after following the rest of the steps I still don't have a working scene so I figured I must have misunderstood some steps its a normal camera, for the ui as tharindu thought. the invectir cam is activated from the other script. i can not promise a video anytime soon,as i stated before a very busy schedule
|
|
|
Post by addictedgamer on Feb 27, 2018 15:53:17 GMT
I setup the PhotonView and sync the animations, they seem to be working except for the roll animations Any help on fixing would be great
|
|