Gamestudio Links
Zorro Links
Newest Posts
SGT_FW
by Aku_Aku. 11/30/26 08:19
Removing outliers from files
by JeyKey II. 11/29/26 10:01
Experiences with cTrader
by JeyKey II. 11/27/26 09:04
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
2 registered members (AndrewAMD, Quad), 6,065 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
send_var crash #44066
04/11/05 02:02
04/11/05 02:02
Joined: Sep 2004
Posts: 157
J
jakeshields Offline OP
Member
jakeshields  Offline OP
Member
J

Joined: Sep 2004
Posts: 157
Hi, I'm making a fighting game and am currently making the multiplayer componenet. At this point i am trying to synchronise the move array and the character stats array between the client and the server. The connection is made and all is fine there, but when i try to sync the arrays i get a crash.

Here is the code that causes the crash.

Code:
 function init_remote_player(button_number,pan)  {
snd_PLAY(click_sound,100,0);
if (button_number == 1) {
i = 0;
j = 0;
if (connection == 3) {
while (i < human_stats.length) {
human_stats[i] = balanced_human[i];
send_var(human_stats[i]);
i+=1;
}
}
if (connection == 2) {
while (j < human2_stats.length) {
human2_stats[j] = balanced_human[j];
send_var(human2_stats[j]);
j+=1;
}



The code continues in a similar fashion for the other buttons.

If i click the button from the server, the client crashes.
If i click the button from the client, the server crashes.

Any ideas?

I've used send_var in prior code and it works great.

TIA,

JakeShields

Re: send_var crash [Re: jakeshields] #44067
04/11/05 02:25
04/11/05 02:25
Joined: Sep 2004
Posts: 157
J
jakeshields Offline OP
Member
jakeshields  Offline OP
Member
J

Joined: Sep 2004
Posts: 157
Hehe, solved it myself, the manual says that send_Var will send the whole array so i tried send_var without the index indicator

so send_Var(human_stats) works
send_Var(human_stats) crashes

the problem is that the doesn't give compile errors.

jakeShields


Moderated by  HeelX, Spirit 

Gamestudio download | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1