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
?set: Bot vs. Manually

 
Post new topic   Reply to topic Printable version
 View previous topic  Linux MERVBOT Post :: Post Bot with usergroups, users can send gr...  View next topic  
Author Message
ChalkEagle
Newbie


Joined: May 31 2004
Posts: 23
Offline

PostPosted: Sun Aug 08, 2004 4:20 pm    Post subject: ?set: Bot vs. Manually Reply to topic Reply with quote

I have been programming a bot, however there is a problem which I cant seem to figure out. In one portion of the code I am attempting to use ?set to kill rotation on the warbird at a certain time. The code executes fine, it changes the value as well as shipresets, however it dosnt actually make the WB not able to rotate until I warp.

Originally I figured that it may not be updating fast enough with ?set, so to test this I did the exact same commands as I made the bot do, but manually. So i typed ?set Warbird:InitialRotation:0 and I was disappointed to find that it didnt change anything. However, I then *shipreset myself and it worked. So i added a *shipreset to the bot and tested it with no luck.

Well at this point i was running out of ideas, so I figured it may be because the bot is a different "Player" in the arena, so maybe that could be preventing it from working. To test this I put two players into the arena, on 2 different computers. I ?set Warbird:initialrotation:0 and *shipreset the player and it worked.

So I am all out of ideas. Why isnt the bot functioning in this circumstance. The *shipreset does work, and the ?Set does work, but not the same as if I were to do it manually.

If anyone can shed light on this situation it would be greatly appreciate.

Regards,

Chalk Eagle
Back to top
View users profile Send private message Add User to Ignore List
Bak
?ls -s
0 in


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

PostPosted: Sun Aug 08, 2004 4:27 pm    Post subject: Reply to topic Reply with quote

my guess would be the player isn't receiving the shipreset, try to do it with a text command do right before you do it like

sendPrivate(p,"restting your ship");
sendPrivate(p,"*shipreset");

then see if the player ever gets the "resetting your ship" text.
Back to top
View users profile Send private message Add User to Ignore List AIM Address
ChalkEagle
Newbie


Joined: May 31 2004
Posts: 23
Offline

PostPosted: Sun Aug 08, 2004 4:49 pm    Post subject: Reply to topic Reply with quote

I had tried that before, and I had also attempted to prize my ship with lvl 3 bombs, on the *shipreset the bombs went back to level 1, so the actual commands do work. Thanks anyway

-Chalk Eagle
Back to top
View users profile Send private message Add User to Ignore List
Bak
?ls -s
0 in


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

PostPosted: Mon Aug 09, 2004 8:21 am    Post subject: Reply to topic Reply with quote

perhaps there's a delay between the time you change the settings and when he receives the settings change packet.

try changing the settings
wait 1 second
shipreset the player

I know I had to do this with sc than warpto... as scing seems to have a delay while warpto not as much so.
Back to top
View users profile Send private message Add User to Ignore List AIM Address
CypherJF
I gargle nitroglycerin


Gender:Gender:Male
Joined: Aug 14 2003
Posts: 2582
Location: USA
Offline

PostPosted: Mon Aug 09, 2004 2:17 pm    Post subject: Reply to topic Reply with quote

Maybe I'm just plain wrong, which I probably am icon_wink.gif I just know whenever I wanted new setts to appear quickly, everyone had to go into spec, then a *shipreset occur, then people could re-enter w/ the new setts.. :/

Not like this really helps you or anything; I just wouldn't rely on the ?set command for things such as this..
_________________
Performance is often the art of cheating carefully. - James Gosling
Back to top
View users profile Send private message Add User to Ignore List
ChalkEagle
Newbie


Joined: May 31 2004
Posts: 23
Offline

PostPosted: Mon Aug 09, 2004 2:35 pm    Post subject: Reply to topic Reply with quote

Ahh, wunderbar. Your second suggestion was on the mark BaK, all it needed was a delay before the shipreset. A 1 second delay didnt work, but when I put it to 2 seconds it worked like a charm. Thanks mate.

-Chalk Eagle
Back to top
View users profile Send private message Add User to Ignore List
Mr Ekted
Movie Geek


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

PostPosted: Mon Aug 09, 2004 2:57 pm    Post subject: Reply to topic Reply with quote

Interesting. That points to a subtle bug in the way Subgame handles those things.
_________________
4,691 irradiated haggis!
Back to top
View users profile Send private message Add User to Ignore List
D1st0rt
Miss Directed Wannabe


Age:37
Gender:Gender:Male
Joined: Aug 31 2003
Posts: 2247
Location: Blacksburg, VA
Offline

PostPosted: Tue Aug 10, 2004 7:28 pm    Post subject: Reply to topic Reply with quote

That was actually a bug in a bot I made a while ago, if you put setfreq and setship together for a lot of people, the ship changes didn't take effect
_________________

Back to top
View users profile Send private message Add User to Ignore List Visit posters website
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: 173 page(s) served in previous 5 minutes.

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