Seriously!
Go Back   Seriously! Forums > Gaming > Serious Sam Classic > Serious Sam Classic Workshop > Serious Sam Classic SDK

Serious Sam Classic SDK Discuss coding ideas & problems or show tutorials and code snippets.

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 05-04-2002, 05:57 AM   #1   Add To Ignore List  
Kamikaze
 
vv33's Avatar
 
Joined: Oct 2001
Location: Romania/Timisoara
 
vv33 is offline
Default Q:REgarding the netcode for sdk 1.05 SE and events

My problem

in renderhud in player.es
i did SendEvent(eRebirth())


in multiplayer during the game hapens the folowing thing:

1.for my local player the respawn take place->local the player change his positon and goes to the marker
2. for the others player from the network the respawn of the local player dfidnt take place
3.for the others player from the network the local player didnt change the positon remain in the same place
4.i get sync errors
why?

from what i understant an event is aplied to all the player in the network not only to the local player
__________________
programmer/Final Strike
  Reply With Quote
Old 05-04-2002, 10:52 PM   #2   Add To Ignore List  
Kleer
 
Joined: Feb 2002
Location: Buenos Aires, Argentina
 
Turbo is offline
Default

iirc renderhud is only called for the local players, and not for every player entity, that's why you get the desync. You should look for somewhere else more appropiate to call a Rebirth.
__________________
Do you think my being faster, or stronger, has anything to do with my muscles, in this place?
  Reply With Quote
Old 05-05-2002, 12:13 AM   #3   Add To Ignore List  
Special Delivery
 
Mailman's Avatar
 
Joined: Mar 2001
Location: Ft. Benning, GA
 
Mailman is offline Send a message via ICQ to Mailman
Default

This happens when you respawn on client side only. you have to send an action through ctl_composeactionpacket() to ensure that it happens on all client computers. You should set it up similar to a button press like fire or jump.
__________________
Mailman
[ Instagib: SE ]
  Reply With Quote
Old 05-07-2002, 05:40 PM   #4   Add To Ignore List  
Kamikaze
 
vv33's Avatar
 
Joined: Oct 2001
Location: Romania/Timisoara
 
vv33 is offline
Default

Mailman:
First i didn't understood what you told me, but i ve read entroper tutorial about
controls and now it works very well.
Thank You.
__________________
programmer/Final Strike
  Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:45 PM.