Networking info

Ask questions, discuss ideas, get answers
Post Reply
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Networking info

Post by Vilespring »

As you know, I'm starting to help BotHunter and his buddy in developing the Area 51 mod. Since this mod is to be officially released (hopefully) it needs to have multipalyer support. That means networking info on things, and I have no idea how it works. if someone tells me these things I would be very happy;
What is it needed in?
How do I make it?
What is the best way to go about doing it?
Last edited by Vilespring on Sat Aug 03, 2013 8:06 pm, edited 1 time in total.
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: Networking info

Post by Swaffy »

The NetworkInfo is really easy to add to objects such as HandFireArms, FireArms and PCOs (and maybe more). Just compare them to the vanilla BF1942 and that's all you really need.

Hints:
- For objects with multiple copies of the same FireArm attached to it, just use NetworkInfo on the first FireArm. For example, I have a B-17 with 12 FireArms with one bomb each, set to a timer that way they all drop when the player hits the fire button. If they all had NetworkInfos the game would crash. So I only gave the first bomb NetworkInfo (and an AI template).
- If a projectile uses the isSticky code, don't give it a NetworkInfo. If it does the game can easily crash.
- Make sure you use the same general name of a NetworkInfo on the right object. For example, don't use "Ju88AWingInfo" on your sniper rifle or a Jeep, use it on your Ju88A.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
Vilespring
Posts: 740
Joined: Sat Nov 24, 2012 5:47 am
Location: Somewere in the United States

Re: Networking info

Post by Vilespring »

win! :D you hit it.
A picture is worth a thousand words, but takes up three thousand times the memory.

Area 51: http://battlefieldarea51mod.weebly.com/

Image
"I didn't steal your pizza"
User avatar
BotHunter
Posts: 480
Joined: Thu Jan 10, 2013 11:22 pm
Contact:

Re: Networking info

Post by BotHunter »

Everything so far has network info on it. Tho vilespring. Add a "Soul_Ripper" onto a test map. this is a air vehicle I started making.
Walk quietly and carry a sniper rifle
Post Reply