Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (AndrewAMD, TipmyPip), 12,420 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 2 of 2 1 2
Re: Testing MP with Commercial on one PC (German and English) [Re: JokeSpeaker] #215293
07/10/08 10:38
07/10/08 10:38
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
and what about own_setted? does it changes when you send_var(own_setted);?



Ubi bene, ibi Patria.
Re: Testing MP with Commercial on one PC (German and English) [Re: croman] #215294
07/10/08 10:52
07/10/08 10:52
Joined: Mar 2007
Posts: 151
JokeSpeaker Offline OP
Member
JokeSpeaker  Offline OP
Member

Joined: Mar 2007
Posts: 151
yes, it changes.

Re: Testing MP with Commercial on one PC (German and English) [Re: JokeSpeaker] #215295
07/10/08 10:57
07/10/08 10:57
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
can i see the whole code if its not a problem? it would be easier for me to see the error...



Ubi bene, ibi Patria.
Re: Testing MP with Commercial on one PC (German and English) [Re: croman] #215296
07/10/08 11:03
07/10/08 11:03
Joined: Mar 2007
Posts: 151
JokeSpeaker Offline OP
Member
JokeSpeaker  Offline OP
Member

Joined: Mar 2007
Posts: 151
Hmm, can you please first say, what the requirements for an errorless sending of arrays are? In the manual I cant read useful infos.

Re: Testing MP with Commercial on one PC (German and English) [Re: JokeSpeaker] #215297
07/10/08 11:25
07/10/08 11:25
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
well...you make global array, then you have function that runs on server and one that runs only on client...when you send array from sv you make that sending in function that runs only on server and when you send from cl you send it from function that runs only on client...maybe it sounds silly but i dont know how to explain it...that's why i'm not writing tutorials smile



Ubi bene, ibi Patria.
Re: Testing MP with Commercial on one PC (German and English) [Re: croman] #215300
07/10/08 11:32
07/10/08 11:32
Joined: Mar 2007
Posts: 151
JokeSpeaker Offline OP
Member
JokeSpeaker  Offline OP
Member

Joined: Mar 2007
Posts: 151
Quote: you send it from function that runs only on client

Does it means if{}s that only run on client, too?
For example:
function function_sending() //only on server
{
send_var(var_a);
}
function main()
{
something;
if(connection == 2)
{
while(var_a == 0) wait(1);
etc;
}
if(connection == 3)
{
function_sending();
}
}

Re: Testing MP with Commercial on one PC (German and English) [Re: JokeSpeaker] #215308
07/10/08 12:00
07/10/08 12:00
Joined: Nov 2007
Posts: 1,032
Croatia
croman Offline
Serious User
croman  Offline
Serious User

Joined: Nov 2007
Posts: 1,032
Croatia
i dont understand what you tried to say. just post the whole code. if you dont want that everyone can see your code you can send it on my PM, except you dont want me to see it either laugh



Ubi bene, ibi Patria.
Re: Testing MP with Commercial on one PC (German and English) [Re: croman] #216031
07/14/08 19:17
07/14/08 19:17
Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
TSG_Torsten Offline

User
TSG_Torsten  Offline

User

Joined: Mar 2005
Posts: 564
/www/europe/ germany/index.php
The problem you may have is the limited size an udp-package can have. Often larger udp packages will be dropped by some routers. Also, udp will drop a package if it was not send without errors, and it can easily become errors if it has a large size. But udp doesn't send packages again, so the data will not receive correctly, as you noticed.

What you can do is to send in reliable mode (if you don't do this already) or you have to send smaller packages (by making smaller arrays). There is also a dplay_ var in gamestudio where you can set the size of a package, but i don't know wheter it helps or not. But may you can give it a try wink

But you should also know that when you using udp you never have any gurantee that data, which was send really arrive the target. Especially at high latency or small bandwidths.
This is one of the most problems, but also the reason why udp is very fast wink

Regards
TSGames

Last edited by TSG_Torsten; 07/14/08 19:22.
Re: Testing MP with Commercial on one PC (German and English) [Re: TSG_Torsten] #216202
07/15/08 17:44
07/15/08 17:44
Joined: Mar 2007
Posts: 151
JokeSpeaker Offline OP
Member
JokeSpeaker  Offline OP
Member

Joined: Mar 2007
Posts: 151
I also think that the problem was the big array. I tried to save all ships in simple vars. And this has functioned ^^
Thanks to all who wanted to help me.
If I have new problems, I will post again.

Page 2 of 2 1 2

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