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
Problem with changing settings with bot and getting checksum

 
Post new topic   Reply to topic Printable version
 View previous topic  Bot problem. Post :: Post Bot Plugins/Core Site  View next topic  
Author Message
Nickisis
Guest


Offline

PostPosted: Wed Mar 23, 2005 10:50 pm    Post subject: Problem with changing settings with bot and getting checksum Reply to topic Reply with quote

Hey guys, I've rewritten Vampz football bot for use in HZ, with a million new additions. I'm nearing the end of completing the bot, but I've come across a problem.

I have to change settings for various ships throughout the game (especially on punts and field goals). I change things such as ball friction, prox, ball speed, etc. The problem that keeps happening is that checksum errors are created and sent to the sysops. This normally causes people that get the checksum error on them to be disconnected.

We enabled the *set security:securitykickoff:1 to stop people from being kicked, but I still get the checksum errors. My question is, it seems the changing of all the settings during play is what is causing the checksum errors to be produced. Vampz original football bot caused these checksum errors to be produced as well, although without the same frequency since he was only doing settings changing during certain times (punts).

Does anyone know how to cause these checksum errors to not be produced when changing settings? I tried doing a *shipreset after settings changes, but that didn't seem to work. As well, if not, is there any way to get the checksum errors to not be sent to the sysops?

Thank you so much in advance for your responses.
Back to top
Cyan~Fire
I'll count you!
I'll count you!


Age:37
Gender:Gender:Male
Joined: Jul 14 2003
Posts: 4608
Location: A Dream
Offline

PostPosted: Wed Mar 23, 2005 11:31 pm    Post subject: Reply to topic Reply with quote

Subgame has always had problems with these things. It seems to load the security checks from the settings at first and then not update them even if the settings are updated. You'll have to find what settings changes are generating the checksum and simply not make those changes.
_________________
This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Thu Mar 24, 2005 12:00 am    Post subject: Reply to topic Reply with quote

That's not the issue. When you change the settings on the server, the server must send them to all clients. This is a 1428-byte structure which gets broken into several pieces, each of which is sent reliably. If, during this time, a security check is triggered--which happens every 2 minutes--any clients that haven't received the full settings packet still use the old settings to generate the checksum.

The way around it is to have the server either 1) not trigger security checks near changes to settings, or 2) be tolerant of replies with the old checksum and requery those clients once all settings change packet acks are received.
_________________
4,691 irradiated haggis!


Last edited by Mr Ekted on Thu Mar 24, 2005 2:22 am, edited 2 times in total
Back to top
View users profile Send private message Add User to Ignore List
Guest



Offline

PostPosted: Thu Mar 24, 2005 1:44 am    Post subject: Reply to topic Reply with quote

Yea, this is what I was afraid of. Thank you very much for your time and responses. I reduced the amount of times settings are changed to attempt to minimize the impact and affect on sysops.

As for controlling anything server side, unfortunately I don't have control of the HZ server icon_sad.gif Although if I talk with the sysops anytime soon I'll mention it.
Back to top
Mr Ekted
Movie Geek


Gender:Gender:Male
Joined: Feb 09 2004
Posts: 1379
Offline

PostPosted: Thu Mar 24, 2005 2:25 am    Post subject: Reply to topic Reply with quote

It's possible to do even better. The security check is sent to all clients at the same time. Your bots will get this packet (S2C 0x18). If the bot core ahndles it and passes it to the modules, you can predict when the good times and bad times are to modify settings. If your zone can tolerate delayed changes, this could work perfectly.
Back to top
View users profile Send private message Add User to Ignore List
Maverick
broken record


Age:40
Gender:Gender:Male
Joined: Feb 26 2005
Posts: 1521
Location: The Netherlands
Offline

PostPosted: Thu Mar 24, 2005 3:45 am    Post subject: Reply to topic Reply with quote

Yea and then *shipreset everybody so they use the new ship settings?

Nickisis, I am very interested in this bot. Do you release it when its finished? (That would be awesome icon_wink.gif)
Also, has Vampz released its source to the football bot? icon_surprised.gif

icon_smile.gif
_________________
Nickname: Maverick (I changed my name!)
TWCore developer | Subspace statistics
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Bak
?ls -s
0 in


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

PostPosted: Thu Mar 24, 2005 4:00 am    Post subject: Reply to topic Reply with quote

http://www.angelfire.com/film/clips1/newFootball.html
_________________
SubSpace Discretion: A Third Generation SubSpace Client
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Display posts from previous:   
Post new topic   Reply to topic    Server Help Forum Index -> Bot 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: 57 page(s) served in previous 5 minutes.

phpBB Created this page in 0.523808 seconds : 32 queries executed (95.4%): GZIP compression disabled