Server Help Forum Index Server Help
Community forums for Subgame, ASSS, and bots
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   StatisticsStatistics   RegisterRegister 
 ProfileProfile   Login to check your private messagesLogin to check your private messages   LoginLogin (SSL) 

Server Help | ASSS Wiki (0) | Shanky.com
How to make server check spec coordinates more often?

 
Post new topic   Reply to topic Printable version
 View previous topic  eLVL and 24bit bitmaps? Post :: Post isBase and Turf setup  View next topic  
Author Message
gilder
Novice


Age:36
Gender:Gender:Male
Joined: Sep 02 2006
Posts: 35
Location: Finland
Offline

PostPosted: Tue Dec 19, 2006 12:31 pm    Post subject: How to make server check spec coordinates more often? Reply to topic Reply with quote

I am making spec controlled strategy game and player.pos.x refresh rate is about 2 seconds. If i want to send a fake where i am, i have to wait 2 seconds before i can send the command.

How can i change the refresh rate?
_________________
Hockey Zone
Back to top
View users profile Send private message Add User to Ignore List
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Tue Dec 19, 2006 3:29 pm    Post subject: Reply to topic Reply with quote

I think that it comes down to lag. If your ping is 2000ms, then you've found your issue.
_________________
Hyperspace Owner

Smong> so long as 99% deaths feel lame it will always be hyperspace to me
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
gilder
Novice


Age:36
Gender:Gender:Male
Joined: Sep 02 2006
Posts: 35
Location: Finland
Offline

PostPosted: Tue Dec 19, 2006 3:36 pm    Post subject: Reply to topic Reply with quote

I run it in my own computer, so the average ping is 8ms.
Back to top
View users profile Send private message Add User to Ignore List
BDwinsAlt
Agurus's Posse


Age:34
Gender:Gender:Male
Joined: Jun 16 2003
Posts: 1145
Location: Alabama
Offline

PostPosted: Tue Dec 19, 2006 8:28 pm    Post subject: Reply to topic Reply with quote

A ghetto way you shouldn't do it is by timers that keep repeating at rates like 100 ms or so.

Hehe. Just do w/e you need to get it done, i usually don't care if people don't like my methods, as long as it works.
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
Dr Brain
Flip-flopping like a wind surfer


Age:39
Gender:Gender:Male
Joined: Dec 01 2002
Posts: 3502
Location: Hyperspace
Offline

PostPosted: Tue Dec 19, 2006 9:26 pm    Post subject: Reply to topic Reply with quote

Ah, is this when you're in spectator mode? Because Cont only sends position updates every so often when speccing. There may be a setting that controls that, but I don't recall seeing one.
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Muskrat
Server Help Squatter


Age:38
Joined: Aug 24 2004
Posts: 829
Location: Swamp
Offline

PostPosted: Wed Dec 20, 2006 2:03 am    Post subject: Reply to topic Reply with quote

And if that's true, BD may have posted something useful..... maybe.....
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Bak
?ls -s
0 in


Age:26
Gender:Gender:Male
Joined: Jun 11 2004
Posts: 1826
Location: USA
Offline

PostPosted: Wed Dec 20, 2006 3:59 am    Post subject: Reply to topic Reply with quote

no, his way wouldn't work if brain is right. The server can't get more data than what it's sent.
_________________
SubSpace Discretion: A Third Generation SubSpace Client
Back to top
View users profile Send private message Add User to Ignore List AIM Address
gilder
Novice


Age:36
Gender:Gender:Male
Joined: Sep 02 2006
Posts: 35
Location: Finland
Offline

PostPosted: Wed Dec 20, 2006 10:32 am    Post subject: Reply to topic Reply with quote

Dr Brain wrote:
Ah, is this when you're in spectator mode?

Yes.

BDwinsAlt, what i need to do in that timer function? Because i got already a timer function that is called many times in a sec.
Back to top
View users profile Send private message Add User to Ignore List
BDwinsAlt
Agurus's Posse


Age:34
Gender:Gender:Male
Joined: Jun 16 2003
Posts: 1145
Location: Alabama
Offline

PostPosted: Wed Dec 20, 2006 12:33 pm    Post subject: Reply to topic Reply with quote

Is this python or C? I don't really know much about fake players since I never use them. Smong will probably know more about this though. If you need to know anything simple, it's probably on the ASSS guide, but fake players... I've never really messed with it.

C: http://wiki.minegoboom.com/index.php/Writing_Modules_In_C
Python: http://wiki.minegoboom.com/index.php/Writing_Modules_In_Python
Back to top
View users profile Send private message Add User to Ignore List Send email Visit posters website AIM Address Yahoo Messenger MSN Messenger
gilder
Novice


Age:36
Gender:Gender:Male
Joined: Sep 02 2006
Posts: 35
Location: Finland
Offline

PostPosted: Thu Dec 21, 2006 2:06 am    Post subject: Reply to topic Reply with quote

C. I understood your message wrong...

I got an idea how to make this problem littlebit smaller. I think the delay is more near to one second. If the module takes player coordinates 0.5s after the command is done, the difference between real coords and those what module will get is smaller. Same thing that when you add 0.5 to float number before you make it integer.
Back to top
View users profile Send private message Add User to Ignore List
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Thu Dec 21, 2006 3:04 pm    Post subject: Reply to topic Reply with quote

Well in C you can just watch the position packet directly, in python (I assume this is what bd was talking about), you need a timer to check the position periodically.

Anyway it looks like you are checking the position when a command is given so it doesn't matter.

Finally, yes in cont spec sends positions once every second no matter what the Misc:SendPositionDelay setting is. This is most likely done to save bandwidth.

What you can try is use x-radar as a command toggle for spectators. Toggling x-radar may force the client to send its position immediately instead of waiting up to a second. Additionally the player doesn't have to type anything.
_________________
ss news
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
gilder
Novice


Age:36
Gender:Gender:Male
Joined: Sep 02 2006
Posts: 35
Location: Finland
Offline

PostPosted: Thu Dec 21, 2006 5:11 pm    Post subject: Reply to topic Reply with quote

Then you can't choose what unit you are moving, but i'll test it. It might be useful, if i'll find a way...
Back to top
View users profile Send private message Add User to Ignore List
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> ASSS Questions All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum
View online users | View Statistics | View Ignored List


Software by php BB © php BB Group
Server Load: 279 page(s) served in previous 5 minutes.

phpBB Created this page in 0.451316 seconds : 36 queries executed (93.0%): GZIP compression disabled