Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DLL Talk / Does anyone have a straightforward example of Tempest?

Author
Message
Willie Mundermuffin
19
Years of Service
User Offline
Joined: 5th Jan 2006
Location:
Posted: 2nd Apr 2006 11:20
Hello,

I was looking to use the tempest multiplayer .dll. I am able to host and connect easy enough, but I was looking at the example that comes with the .dll to figure out the workings of connecting new players, sending, and recieving info. Unfortunelty, the example isn't very straight forward... It creates custom command functions and does a bit of running around in the code, therefore making it kinda difficult to get a clear picture of how things are working. I was wondering if anyone has a clear (linear-like) example(s) of how to use the tempest .dll in a game. If so, it would be greatly appreciated.

Thank you,
Jared C. Matthews

"I would rather attempt something big and fail than to never attempt anything at all." -Pastor Michael Youseff
Willie Mundermuffin
19
Years of Service
User Offline
Joined: 5th Jan 2006
Location:
Posted: 2nd Apr 2006 11:23
I want to mention that I'm still pretty new to complex networking. I'm learning...

"I would rather attempt something big and fail than to never attempt anything at all." -Pastor Michael Youseff
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 2nd Apr 2006 11:52
I wrote the example like that because I thought it would be easier to understand(doh). Well, I don't know if it's exactly what you want, but I have changed the format of it so you might understand it better now:



Tempest - P2P UDP Multiplayer Plugin - 70%
Download the free version
Willie Mundermuffin
19
Years of Service
User Offline
Joined: 5th Jan 2006
Location:
Posted: 2nd Apr 2006 12:40
It's still pretty confusing... It's the sending and recieving code that confuses me...

Example: TPutFloat object position x(OURID) - shouldn't OURID be the object number?

Also: if rnd(10)<5 then TSendAll 1 else TSendAll
LASTSENT = timer()
inc MSGAMOUNTS - I have no idea what these lines are all about???

Thanks!
,Jared C. Matthews

"I would rather attempt something big and fail than to never attempt anything at all." -Pastor Michael Youseff
Benjamin
22
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 2nd Apr 2006 14:28
Quote: "shouldn't OURID be the object number?"

OURID is the object number.

Quote: "I have no idea what these lines are all about???"

Ah sorry about that, I forgot to change part of that back after testing something. Replace with this:



LASTSENT is the variable that keeps track of when the data was last sent, so sending is limited to a certain amount of time(It sends once every 100ms). MSGAMOUNTS is the amount of messages sent.

Tempest - P2P UDP Multiplayer Plugin - 70%
Download the free version
Willie Mundermuffin
19
Years of Service
User Offline
Joined: 5th Jan 2006
Location:
Posted: 3rd Apr 2006 09:02
Thank you very much Ben! I appreciate it!

"I would rather attempt something big and fail than to never attempt anything at all." -Pastor Michael Youseff

Login to post a reply

Server time is: 2025-05-18 22:06:34
Your offset time is: 2025-05-18 22:06:34