[hlcoders] SetUnragdoll() Use + Help

2009-03-04 Thread Alexander Davidson
Hi their guys, i'v been lurking the list for quite some time now and have come across something i need some help with. Does anyone have any knowledge of how to use SetUnragdoll? also notes say it isnt fully implemented well how implemented is it? has anyone had a fiddle with it. and if so

[hlcoders] SetUnragdoll() Use + Help

2009-03-04 Thread Alexander Davidson
forgot to mention that im working on the OB multiplayer sdk... i have a ragdoll which i want to morph into a position. is this possible in multiplayer? -- Forwarded message -- From: Alexander Davidson aldavid...@gmail.com Date: Wed, Mar 4, 2009 at 10:47 AM Subject: SetUnragdoll()

Re: [hlcoders] RCON in VB.NET

2009-03-04 Thread Yaakov Smith
I'm trying to port the PHP code I found a while back and I can't get it to work. This is what I'm using to call the functions: Dim rcon As New rcon_php rcon.SetServer(127.0.0.1, 27015) rcon.SetPassword(rconpw) rcon.Auth() And my rcon_php class (or what I have so far)

Re: [hlcoders] RCON in VB.NET

2009-03-04 Thread Ronny Schedel
I never coded in .NET but your write functions looks a little bit overloaded. I have some experience in VBA, so is it not possible to concat the packet like this? private const SERVERDATA_EXECCOMMAND = 2 private const SERVERDATA_AUTH = 3 dim send_data as string send_data = chr(size_low) +

Re: [hlcoders] RCON in VB.NET

2009-03-04 Thread Ronny Schedel
I have to correct myself, the integers for size and request ID are 4 byte, not only 2 like in the example. I never coded in .NET but your write functions looks a little bit overloaded. I have some experience in VBA, so is it not possible to concat the packet like this? private const

[hlcoders] Compiling a complex static prop - Weird collision boxes

2009-03-04 Thread Aditya Gaddam
Hi, I am currently trying to compile a complex static prop. I say complex because it is basically the little stairway prop shown in this screenie: http://upload.pixelfaction.com/files/49ae7dad_stairs.jpg It is however being a PITA to export. Just exporting the same merged mesh as the ref, idle

Re: [hlcoders] RCON in VB.NET

2009-03-04 Thread Tom Leighton
You have also neglected the fact that the s2 string should ALWAYS be null (or Nothing in vb.net), as per the wiki. Ronny Schedel wrote: I have to correct myself, the integers for size and request ID are 4 byte, not only 2 like in the example. I never coded in .NET but your write

Re: [hlcoders] RCON in VB.NET

2009-03-04 Thread Ronny Schedel
No, it's there. It must be there, because of the terminating 0. Sure, currently the string itself is empty, but this is future future-proof. You have also neglected the fact that the s2 string should ALWAYS be null (or Nothing in vb.net), as per the wiki. Ronny Schedel wrote: I have to

Re: [hlcoders] Compiling a complex static prop - Weird collision boxes

2009-03-04 Thread Tobias Kammersgaard
Dumb question. Exactly why are you doing this with a model, and not brushes? /ScarT 2009/3/4 Aditya Gaddam adityagad...@gmail.com Hi, I am currently trying to compile a complex static prop. I say complex because it is basically the little stairway prop shown in this screenie:

Re: [hlcoders] Compiling a complex static prop - Weird collision boxes

2009-03-04 Thread Matt Hoffman
Why do you have multiple collision models too? Just use different smoothing groups for adjacent solids. On Wed, Mar 4, 2009 at 8:13 AM, Tobias Kammersgaard tobias.kammersga...@gmail.com wrote: Dumb question. Exactly why are you doing this with a model, and not brushes? /ScarT 2009/3/4

Re: [hlcoders] Compiling a complex static prop - Weird collision boxes

2009-03-04 Thread Aditya Gaddam
Tobias: Part of my mod requires me to. Brushes are not an option (I have tried). Matt: I obviously dont know what the hell I am doing. Couple of questions: 1. So if I have different smoothing groups in XSI when I export the SMD, it will see that and the collision meshes for the different parts

Re: [hlcoders] Compiling a complex static prop - Weird collision boxes

2009-03-04 Thread Matt Hoffman
Sorry, didn't realize you were using XSI. With XSI I am not so sure about the smoothing groups as XSI doesnt' really have smoothing groups. The reference does not need to be merged, atleast for 3ds max. It may depend on your exporter. You can try exporting without merging them, and using that as

Re: [hlcoders] Compiling a complex static prop - Weird collision boxes

2009-03-04 Thread Aditya Gaddam
I am not really trying to make a map in hammer. I am spawning these things on the fly where I need them, so they need to be models. I will look into this smoothing groups thing. Or maybe I will use 3dsmax instead. Anyone else have ideas who use XSI? Thanks much, Aditya On Wed, Mar 4, 2009 at

Re: [hlcoders] RCON in VB.NET

2009-03-04 Thread Sebastian Staudt
I was a bit quick on my first reply. Forgot to add the packet size (long) at the beginning and the packet type has to be long to. Back to the posted code: Argument s1 of _Write should not be optional, but I think that's not the problem. Like Ronny said before the problem is the conversion from

Re: [hlcoders] RCON in VB.NET

2009-03-04 Thread Tom Leighton
In VB.NET, the datatype Long is 8 bytes (64 bits), and the datatype Integer is 4 bytes (32 bits). If he uses Long in VB.NET, it won't work. Sebastian Staudt wrote: I was a bit quick on my first reply. Forgot to add the packet size (long) at the beginning and the packet type has to be long to.

Re: [hlcoders] RCON in VB.NET

2009-03-04 Thread Sebastian Staudt
Yes, I left that out as I mentioned it before. I'm always thinking in C++ data types. :) Same applies to Java / C#. So be sure to use Integer. 2009/3/4 Tom Leighton tomrleigh...@googlemail.com In VB.NET, the datatype Long is 8 bytes (64 bits), and the datatype Integer is 4 bytes (32 bits). If

Re: [hlcoders] RCON in VB.NET

2009-03-04 Thread Yaakov Smith
This is what is being sent: 13 0 0 0 1 0 0 0 51 114 99 111 110 112 119 0 0 0 (decimal). The test server is launched with -port 27016. When I send it to 27015 TCP I get this error: An existing connection was forcibly closed by the remote host On this line: m_socket.Receive(buffer, 16,

Re: [hlcoders] RCON in VB.NET

2009-03-04 Thread Ronny Schedel
First of all, your packet size is wrong. This is what is being sent: 13 0 0 0 1 0 0 0 51 114 99 111 110 112 119 0 0 0 (decimal). The test server is launched with -port 27016. When I send it to 27015 TCP I get this error: An existing connection was forcibly closed by the remote host On

Re: [hlcoders] RCON in VB.NET

2009-03-04 Thread Sebastian Staudt
The right port to use is 27016 when your server is started with -port 27016. Is your server bound to localhost (127.0.0.1)? Maybe it uses another IP. Check your server console using status. 2009/3/4, Yaakov Smith m4ngr...@gmail.com: This is what is being sent: 13 0 0 0 1 0 0 0 51 114 99 111

Re: [hlcoders] RCON in VB.NET

2009-03-04 Thread Ronny Schedel
Okay, let's take a deeper look: 1. Packet size for this packet is wrong, should be 14. 2. SERVERDATA_EXECCOMMAND must be send as 4 byte integer, not as char 51. 3. Then you send rconpw, wtf? 4. The second string is empty, but terminated with 0, but you send two zeros. This is what is being

Re: [hlcoders] RCON in VB.NET

2009-03-04 Thread Ronny Schedel
I see the problem on the wiki page. The packet on the end of the page does not match the description above. The values of SERVERDATA_AUTH and SERVERDATA_EXECCOMMAND in the description does not match the packet in the bottom of the page. From an older post in the hlds_apps list, I see these

Re: [hlcoders] Compiling a complex static prop - Weird collision boxes

2009-03-04 Thread Jay Stelly
You should only have one $collisionmodel statement. Studiomdl does not support aggregating those. You didn't post any output. studiomdl must be reporting an error if it's falling back to a single convex hull. What is the error? Post the output. There are two likely cases: 1) The smoothing

Re: [hlcoders] RCON in VB.NET

2009-03-04 Thread Yaakov Smith
I changed the code to send SERVERDATA_AUTH as an integer. and to send 00 00 instead of 00 00 00 after rereading the sample packets on the wiki page. @Sebastian: thanks, I'll try it against 10.0.0.3 when I get home. ___ To unsubscribe, edit your list

Re: [hlcoders] SetUnragdoll() Use + Help

2009-03-04 Thread Ryan Sheffer
I don't see why it wouldn't be possible. Its been awhile since I dabbered in ragdolls, but while exploring cbaseanimating and cbaseanimatingoverlay the whole process of creating a ragdoll was very clear. Turning off ragdoll on all bones, and resetting poses shouldnt be a problem. It would be best

Re: [hlcoders] RCON in VB.NET

2009-03-04 Thread Yaakov Smith
OK, finally I got it. Thanks to everyone who helped. One more problem, I have this code in a button's OnClick() function: Try curServer = New Server(txt_serverAddress.Text, txt_serverPort.Text) Catch ex As Exception MsgBox(ex.Message) End Try

Re: [hlcoders] RCON in VB.NET

2009-03-04 Thread Yaakov Smith
Nevermind, I got it. The other project was a .dll with the same name as the .exe Thanks again to everyone who helped. ___ To unsubscribe, edit your list preferences, or view the list archives, please visit: