Sorry, but a rather newbish issue.

10 views
Skip to first unread message

Morvis

unread,
May 2, 2010, 9:15:18 PM5/2/10
to lidgren-network
Hello, I've recently started messing with lidgren, piddling around
looking at the examples and such trying to get familiar with how
things work. I see mention in here of people using NetBuffer but when
i try to use it, i get an error that Lidgren.Library.NetBuffer is
inaccessable due to its protection level. Im not even sure if i got
this all set up right. I opened the library with visual studio 2k8,
and built the solution to produce the .dll and referenced that in my
project.

can anyone shine a light as to where i messed up here?

also, should i have some lidgren.library.network.xna.dll? i
downloaded an example of XnaRandyWalking or something, that uses that,
and when it hits the XNASerialization it pops an error about not
finding a file for XNA2.0 (i have 3.0), and wont run. I discovered it
was the XNASerilization causing the problem when i tried that in my
own project, and it gave the same error.

thanks for any help

--
You received this message because you are subscribed to the Google Groups "lidgren-network" group.
To post to this group, send email to lidgren...@googlegroups.com.
To unsubscribe from this group, send email to lidgren-netwo...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/lidgren-network?hl=en.

Chris Cowherd

unread,
May 2, 2010, 10:08:42 PM5/2/10
to lidgren...@googlegroups.com
There is no problem using NetBuffer but I noticed you referred to it as Lidgren.Library.NetBuffer. 

The namespace is actually Lidgren.Network so you would be using Lidgren.Network.NetBuffer.

The Lidgren XNA library just has a few handy helpers but it is not necessary.  

If you are still having trouble, send us a snippet of code your trying to get working.

Morvis

unread,
May 2, 2010, 10:31:57 PM5/2/10
to lidgren-network
o sorry i meant Lidgren.Library.Network.NetBuffer.

Thats how it shows up in my references... Lidgren.Library.Network,
and i have that in my 'using' as well.

Morvis

unread,
May 2, 2010, 10:40:43 PM5/2/10
to lidgren-network
ok i see what was wrong, i was using an old release, i had a couple
diff ones i had while hunting down tutorials for the library. I
removed all and re-did my lidgren stuff and its there now.

Seems i have quite a bit of syntax to change to be current =)

Matthew Overall

unread,
May 2, 2010, 10:46:02 PM5/2/10
to lidgren...@googlegroups.com
I think a little bit of code might be useful so we can see how it is being used. Are you planning on using Lidgren with XNA? If you want some one on one help getting started let me know since I now have some free time since school is out.

Morvis

unread,
May 2, 2010, 11:19:17 PM5/2/10
to lidgren-network
Right on i appreciate the offer.... Things seem to be lining up now..
Yea, im using this with XNA right now. I had only just started
( first day into using the networking), so there really wasnt much to
it but the establishing connections between the client and server,
which worked fine, but i was reading around in here and saw mention of
NetBuffer and using enum's to help separate data pack types or
whatever to help keep where what data goes where in order (from what i
understand with it anyway). So im basically starting over on my
network project to see how goes. I have a non-networked version in
the work and i decided where im at there is a good spot to get the
networking down, because im just wanting it to be just multiplayer.
I'll definitely pop a msg if i run into anthing that just totally
boggles (which im sure prob wont be too long ;)) I'll keep an eye on
this group too, seems to be some good info buried in the pages.

Michael Lidgren

unread,
May 3, 2010, 1:02:19 AM5/3/10
to lidgren...@googlegroups.com
In answer to your inaccessible due to protection level...

new NetBuffer(); // this is wrong

server.CreateBuffer(); // this is right
client.CreateBuffer(); // or this...

--michael
Reply all
Reply to author
Forward
0 new messages