Forum

> > CS2D > General > [RELEASE] Custom CS2D Server a0.1
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch [RELEASE] Custom CS2D Server a0.1

79 Antworten
Seite
Zum Anfang Vorherige 1 2 3 4 Nächste Zum Anfang

alt Re: [RELEASE] Custom CS2D Server a0.1

FlooD
GAME BANNED Off Offline

Zitieren
^^^the last time i compiled, no

about server fps...
1
2
3
4
timeout.tv_usec = 1000; //1ms
while (1)
{
	...
if i am reading the code correctly, this means the while(1) loop is supposed to be repeated every 1000microsecond i.e. 1000fps

when i throw
1
printf("%d\n",time(NULL));
into the while(1) loop,
i get around 480 outputs per second.
this probably isn't the best way to measure fps but it's the simplest one i can think of.

anyway i set tv_usec to 1000000, and as expected, the time was outputted once every second. however when the server received packets (such as when i joined the server), the number of time outputs (which is equal to cycles of the while loop) per second jumped up.

is it possible to make server fps independent of the packet somehow? i think that a constant fps would make implementing lag compensation (which i desperately want :D) much easier
3× editiert, zuletzt 28.10.10 06:40:51

alt Re: [RELEASE] Custom CS2D Server a0.1

Jermuk
User Off Offline

Zitieren
FlooD hat geschrieben
is it possible to make server fps independent of the packet somehow? i think that a constant fps would make implementing lag compensation (which i desperately want :D) much easier


Ok, the FPS can now be changed in the settings. It has a tolerance range from +-1ms per run. It comes with the next version.

EDIT: new version released with fps control.
EDIT2: again new version. now with kill message
2× editiert, zuletzt 28.10.10 20:23:49

alt Re: [RELEASE] Custom CS2D Server a0.1

FlooD
GAME BANNED Off Offline

Zitieren
awesome
i'm working on lag compensation right now
http://github.com/FloooD/custom_cs2dsrv/issues#issue/1

also workin on something that makes fps more stable..

random question: when the program is sleeping, what happens to any packets it receives???

note on Sleep(...)
the sleep function seems to be very unpredictable... sometimes it works in intervals of 15/16ms and other times it can go to like 1 ms...
so basically the fps goes up whenever i'm on cs2d or loading a webpage in my browser... WTF???

http://rabbit.eng.miami.edu/info/functions/dos.html
look at delay/sleep
http://msdn.microsoft.com/en-us/library/ms686298(VS.85).aspx
basically, windows = gay.
6× editiert, zuletzt 29.10.10 05:29:35

alt Re: [RELEASE] Custom CS2D Server a0.1

Jermuk
User Off Offline

Zitieren
FlooD hat geschrieben
awesome
i'm working on lag compensation right now


Some tips:
Don't use player[id].latency. It's too inaccurate. Better will be player[id].lastpacket. And the fps is accurate, but it don't fit with the FPS in the settings (always lower). Can you send me your messenger id/s, so we must not use this forum?

alt Re: [RELEASE] Custom CS2D Server a0.1

FlooD
GAME BANNED Off Offline

Zitieren
kk
xfire: apersonn
msn: - E-Mail Adresse (nur mit Login sichtbar) - (i'm not on msn too much though)

btw my computer got about 400000 fps without the sleep LOL

update:
i got lag compensation XDDDDDDDDDDDDDDDDD

unfortunately it is impossible to test at the moment. a bug or something (NOT IN MY LAG COMP CODE) causes the server to lag horribly when two players are in the server and one shoots.

here's the list of the changes i made:
http://pastebin.com/pqJNmduE
(the line numbers may not match up perfectly)
3× editiert, zuletzt 30.10.10 03:05:36

alt Re: [RELEASE] Custom CS2D Server a0.1

Jermuk
User Off Offline

Zitieren
kNedLiik hat geschrieben
how to make server with it?


Compile the source? If you don't know how to do that, please don't post here again. It's one of the last mid-level discussion in this forum.

alt Re: [RELEASE] Custom CS2D Server a0.1

FlooD
GAME BANNED Off Offline

Zitieren
Jermuk hat geschrieben
kNedLiik hat geschrieben
how to make server with it?


Compile the source? If you don't know how to do that, please don't post here again. It's one of the last mid-level discussion in this forum.


actually it took me a day to figure out how to compile
(i never did any c before this lol)

@kned: i'll post a package with the latest release + de_cs2d.map sometime soon so people can test

here's the latest version from jermuk's source
changes:
port to 36963
on respawn, you get 54321 money
fps to 50. (1000 is not stable)

http://www.mediafire.com/?3fikg6n2tjza55z <-- THIS FILE DOES NOT HAVE LAG COMPENSATION
--------------------------------------------------
LAG COMPENSATION WORKING
http://www.youtube.com/watch?v=dIK8yPJ0wX8
3× editiert, zuletzt 31.10.10 17:54:16

alt Re: [RELEASE] Custom CS2D Server a0.1

Jermuk
User Off Offline

Zitieren
Which files did you changed with adding lag compensation?
I can just see what is in your list, but where is the lag compensation? btw: using low fps is bad, THAT causes to lags.
1× editiert, zuletzt 31.10.10 12:18:00

alt Re: [RELEASE] Custom CS2D Server a0.1

CappaCappa
BANNED Off Offline

Zitieren
FlooD hat geschrieben
Jermuk hat geschrieben
kNedLiik hat geschrieben
how to make server with it?


Compile the source? If you don't know how to do that, please don't post here again. It's one of the last mid-level discussion in this forum.


actually it took me a day to figure out how to compile
(i never did any c before this lol)

@kned: i'll post a package with the latest release + de_cs2d.map sometime soon so people can test

here's the latest version from jermuk's source
changes:
port to 36963
on respawn, you get 54321 money
fps to 50. (1000 is not stable)

http://www.mediafire.com/?3fikg6n2tjza55z

LAG COMPENSATION WORKING
http://www.youtube.com/watch?v=dIK8yPJ0wX8
WATCH


Nice, would be cool if you could simultaneously play the video of Skull, see if he really hits you. Anyway nice job, I think in the future this custom server will really be a substitute for the current cs2d_dedicated.exe.

alt Re: [RELEASE] Custom CS2D Server a0.1

FlooD
GAME BANNED Off Offline

Zitieren
Jermuk hat geschrieben
@All:

The source in his file is not the lag compensation! There are no really differences! So it cannot work!

i didn't upload the stuff yet...

alt Re: [RELEASE] Custom CS2D Server a0.1

Torque
User Off Offline

Zitieren
Except noone will dare to host it uprate, because you've just said you'd found about 5000 exploiting possibilities in the code

Btw, there should be some documentation about how heavy the lag compensation is for the server and something like mp_lagcompensation in future versions. I wish I could help guys, but I'd probably just break stuff :S.
Zum Anfang Vorherige 1 2 3 4 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht