2 registered members (AndrewAMD, ozgur),
1,415
guests, and 7
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
passing panel update from client to server
#258445
03/30/09 16:48
03/30/09 16:48
|
Joined: Jul 2004
Posts: 74 Inside Maya
Sichlid
OP
Junior Member
|
OP
Junior Member
Joined: Jul 2004
Posts: 74
Inside Maya
|
Hello ,
I have made a working MP demo for my client. There is a voltage bar ( similar to a health bar) which increases as player presses a button.
All is working fine and the below Panel is working fine.
When Server player is increasing voltage , then client/Server PC's can see the panel bar increasing but when client is increasing voltage , then the panel is not updating on both the machines. the code is below which is for a standard panel.
" PANEL serverincreasingvoltagered { pos_x = 360; pos_y =40; window(0,0,240,20,redbar,display_ratio_output,NULL); flags = refresh; layer =10; }
"
Any help will be greatly appreciated.
Regards, Sichlid
Best Regards,
Sichlid
|
|
|
Re: passing panel update from client to server
[Re: Sichlid]
#258450
03/30/09 17:22
03/30/09 17:22
|
Joined: Nov 2007
Posts: 1,032 Croatia
croman
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,032
Croatia
|
you should send variable that moves that window/bar (display_ratio_output in your case, right?) from client to client and update each panel locally
Ubi bene, ibi Patria.
|
|
|
Re: passing panel update from client to server
[Re: Cowabanga]
#258779
04/02/09 03:58
04/02/09 03:58
|
Joined: Jul 2004
Posts: 74 Inside Maya
Sichlid
OP
Junior Member
|
OP
Junior Member
Joined: Jul 2004
Posts: 74
Inside Maya
|
Hi Cerberi,
thank you for your reply.
I am passing the display_ratio_output variable to the server and vice versa but not working.
Also when you say panel local updating , i belive panels are automatically updated locally as there is no command with which we can do it and since rest of the panels are working properly .. i think this is bug of A7 MP.
REgards, Sichlid
Best Regards,
Sichlid
|
|
|
Re: passing panel update from client to server
[Re: Sichlid]
#258839
04/02/09 12:21
04/02/09 12:21
|
Joined: Nov 2007
Posts: 1,032 Croatia
croman
Serious User
|
Serious User
Joined: Nov 2007
Posts: 1,032
Croatia
|
you'll find plenty of A7 MP bugs along the way so i suggest you start using some MP plugin like ANet(recommended) or GSTNet
Ubi bene, ibi Patria.
|
|
|
Re: passing panel update from client to server
[Re: croman]
#259273
04/05/09 08:13
04/05/09 08:13
|
Joined: Jul 2004
Posts: 74 Inside Maya
Sichlid
OP
Junior Member
|
OP
Junior Member
Joined: Jul 2004
Posts: 74
Inside Maya
|
Hi Cerberi_croman,
Thanks for the links and i am also of the opinion that there are certain bugs in A7 MP.
I shall try ANet and see how it goes.
Thanks, Sichlid
Best Regards,
Sichlid
|
|
|
Re: passing panel update from client to server
[Re: Tobias]
#259419
04/06/09 05:51
04/06/09 05:51
|
Joined: Jul 2004
Posts: 74 Inside Maya
Sichlid
OP
Junior Member
|
OP
Junior Member
Joined: Jul 2004
Posts: 74
Inside Maya
|
@slacer I have server and client only right now ( hence 2 players only).i would like to add more players in the future but for now i need to get 2 player game code working.
@Tobias
All other variables , panels ( comprising of digits and BMAP) are working properly.Except for this one which is a panel having a HBAR. only this HBAR panel which needs to increase/decrease based on display_ratio_output is not working. When the HBAR panel is increasing from server side ( by pressing Key1 for increasing the HBAR from right to left) ,it get updated properly on client. But when client side is pressing key 1 to increase HBAR , there is no change in HBAR even though display_ratio_output is getting updated properly on both instances of game ( i.e server and client).
Doka
Best Regards,
Sichlid
|
|
|
Re: passing panel update from client to server
[Re: Sichlid]
#260157
04/09/09 07:02
04/09/09 07:02
|
Joined: Jul 2004
Posts: 74 Inside Maya
Sichlid
OP
Junior Member
|
OP
Junior Member
Joined: Jul 2004
Posts: 74
Inside Maya
|
Ok guys .. i found out the bug . It was in my code as the variable to decide the BAR length on client side was not being updated.
Thanks for all the help to everyoone.
Sichlid
Best Regards,
Sichlid
|
|
|
|