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
1 registered members (TipmyPip), 18,586 guests, and 6 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: dplay_id BUG? [Re: Superku] #431528
10/17/13 19:33
10/17/13 19:33
Joined: Aug 2011
Posts: 42
F
fabiomartins Offline OP
Newbie
fabiomartins  Offline OP
Newbie
F

Joined: Aug 2011
Posts: 42
running two or more instances on same machine...
Ex. 1 server and one o more clients on same machine, the dplay_id will be the same...

corretly?







Last edited by fabiomartins; 10/17/13 19:35.
Re: dplay_id BUG? [Re: fabiomartins] #431529
10/17/13 19:40
10/17/13 19:40
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: dplay_id BUG? [Re: Superku] #431530
10/17/13 21:58
10/17/13 21:58
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
The Server will manage the ids and send them to the clients...
It will start with 0 as usual for the server and 1+ for the clients.
Server: 0 <- started a new empty server
Client: 1 <- a client connected
Client: 2 <- a second client connected
...

Not very hard, IDK wheres your actual problem.
I would also suggest to use ANet, I simply love it tongue

Last edited by Ch40zzC0d3r; 10/17/13 21:59.
Re: dplay_id BUG? [Re: Ch40zzC0d3r] #431531
10/17/13 22:13
10/17/13 22:13
Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
Superku Offline
Senior Expert
Superku  Offline
Senior Expert

Joined: Sep 2003
Posts: 6,861
Kiel (Germany)
That's not how dplay_id works, though. (It seems to use the server's system time instead or something like that.)


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends
Re: dplay_id BUG? [Re: Superku] #431577
10/18/13 17:53
10/18/13 17:53
Joined: Aug 2011
Posts: 42
F
fabiomartins Offline OP
Newbie
fabiomartins  Offline OP
Newbie
F

Joined: Aug 2011
Posts: 42
I´m understanding
I can show the dplay_id corretly in the screen with:
var test

main loop....
draw_text(str_printf(NULL,"bps: %.0f",(double)dplay_id),20,40,COLOR_WHITE);

But, I can´t get put this inside a variable... ;(

Re: dplay_id BUG? [Re: fabiomartins] #431578
10/18/13 18:20
10/18/13 18:20
Joined: Oct 2011
Posts: 1,082
Germany
C
Ch40zzC0d3r Offline
Serious User
Ch40zzC0d3r  Offline
Serious User
C

Joined: Oct 2011
Posts: 1,082
Germany
What the hell are you doing xD
Its simply a var no double or float <_<

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