Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (Ayumi, 1 invisible), 584 guests, and 1 spider.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 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 | chip programmers | 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