Register for your free account! | Forgot your password?

You last visited: Today at 09:10

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



REDUX -> Help please?

Discussion on REDUX -> Help please? within the CO2 Private Server forum part of the Conquer Online 2 category.

Reply
 
Old 05/17/2024, 17:43   #16
 
pintinho12's Avatar
 
elite*gold: 0
Join Date: Jul 2009
Posts: 943
Received Thanks: 408
Quote:
Originally Posted by kkz View Post
Thanks for the help i appreciate it. I'm a bit confused by what you mean.. So I don't send the broadcast packet at all? Or I do - but after I send the individual packets?

So -> UpdateSurroundings (sort visibledictionaries etc)
Send -> individual packets to all objects on screen..
-> No need to broadcast as everyone gets the individual packets?

Is that right?

Thanks again!
You must make sure that everyone receives your movement packet:
1. If I'm on your screen already, I receive the movement packet
2. if I'm enterinig your screen, I receive the movement packet
3. If Ii'm leaving your screen, I receive the movement packet

If you broadcast your movement before UpdateSurroundings, only who's on your screen will receive the movement packet;
If you broadcast your movement after UpdateSurroundings, only who's on your screen after the movement will receive the movement packet;
If you broadcast twice (before and after), some actors who already received the movement packet will receive it again.

Reminder: do not send MsgAction:RemoveEntity to remove users from screen, unless the actor is leaving the map (teleport, disconnect).

If someone do not receive your movement packet, you'll have a desync between entities and the client will request a spawn packet.

I would suggest you to:
1. Read Spirited doc about Screen system
2. Understand what it means, without thinking about code, just understand how it works
3. Create an algorithm in your head (or somewhere)
4. Recheck your code and find what's missing

And perform the jump before executing the update, you must update your surroundings only if the jump succeed.
pintinho12 is offline  
Thanks
2 Users
Reply


Similar Threads Similar Threads
[Selling] Saints Row 4, Metro Redux, Metro Last Light Redux Keys
12/14/2014 - Steam Trading - 1 Replies
---
[Buying] Metro 2033 Redux, Metro LL Redux, Fallout NV, Fallout 3, S.T.A.L.K.E.R: SoC
12/07/2014 - elite*gold Trading - 4 Replies
Suche diese Spiele für e*g (Steam).
PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE PLEASE
06/21/2011 - Metin2 Private Server - 5 Replies
HELP WITH THIS PLEASE ON MY DEDICATED SERVER :-( http://www.youtube.com/watch?v=UyKOTLb960Q log_file_delete_old: stat: No such file or directory connect: Connection refused Timed out Connection refused



All times are GMT +1. The time now is 09:10.


Powered by vBulletin®
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2025 elitepvpers All Rights Reserved.