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
n/m (ignore)

 
Post new topic   Reply to topic Printable version
 View previous topic  Merv Problem... Post :: Post LVZ Update Bitfield  View next topic  
Author Message
Underlord
Novice


Gender:Gender:Male
Joined: Feb 17 2004
Posts: 55
Offline

PostPosted: Sat Dec 11, 2004 6:12 pm    Post subject: n/m (ignore) Reply to topic Reply with quote

was having trouble with flying mervbot around using positionhook, but figured it out within few mins of posting, need a delete thread option :/

wasn't updating me->vel.x correctly

thx 50%


Last edited by Underlord on Sat Dec 11, 2004 6:37 pm, edited 4 times in total
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
50% Packetloss
Server Help Squatter


Age:40
Gender:Gender:Male
Joined: Sep 09 2003
Posts: 561
Location: Santa Clarita, California
Offline

PostPosted: Sat Dec 11, 2004 6:31 pm    Post subject: Reply to topic Reply with quote

Usually jumping around is caused by the velocity not being high enough. Maybe set it to 600 or 1000 and see what it looks like. Also if you want the bot to move then do tell(makeSendPosition(true)); instead of sending that function false. I havent done too much movement type bots so I never figured out the proper corrilation between the velocity and position variables.
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address
Mine GO BOOM
Hunch Hunch
What What
Hunch Hunch<br>What What


Age:41
Gender:Gender:Male
Joined: Aug 01 2002
Posts: 3615
Location: Las Vegas
Offline

PostPosted: Sat Dec 11, 2004 7:36 pm    Post subject: Re: n/m (ignore) Reply to topic Reply with quote

Underlord wrote:
need a delete thread option

The idea is that even if you figured it out yourself, it would still be archived for someone else who may have somewhat of a similar problem, and searched and found your thread. This same logic is also why you cannot close threads, as if that person who found the thread has a similar question, can bump the old thread and be able to continue from where the original poster left off.
50% Packetloss wrote:
the proper corrilation between the velocity and position variables.

Pixels per 10 seconds. So if you set it to 1000, you'll move 100 pixels per second. I figured that one out a long, long time ago.

Tiles are 16 pixels long, with 1024 tiles in a map. Set a portal at a very edge, set max speed to 16384, accelerate really fast, hit the portal and a stop watch at the same time. Ten seconds later, at the other edge of the map. This method is also how I remember it, since I remember setting max speed to the length of a map, and it taking only 10 seconds.
Back to top
View users profile Send private message Add User to Ignore List Send email
Dr Brain
Flip-flopping like a wind surfer


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

PostPosted: Sat Dec 11, 2004 9:45 pm    Post subject: Reply to topic Reply with quote

That doesn't make any sense. I've timed myself from one side of the map to the other in something like 6-7 seconds.
_________________
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
D1st0rt
Miss Directed Wannabe


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

PostPosted: Sun Dec 12, 2004 4:40 am    Post subject: Reply to topic Reply with quote

Hypertunnels don't count
_________________

Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Dr Brain
Flip-flopping like a wind surfer


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

PostPosted: Sun Dec 12, 2004 8:32 am    Post subject: Reply to topic Reply with quote

Actually, it does make sense. The max isn't 16384.
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
Underlord
Novice


Gender:Gender:Male
Joined: Feb 17 2004
Posts: 55
Offline

PostPosted: Sun Dec 12, 2004 1:25 pm    Post subject: Reply to topic Reply with quote

map = 1024 tiles * 16 pixels long = 16384 pixels wide
(warpto = tiles, position packets = pixels)

smallest relevent time unit in ss for speed/position/acceleration is 10ms

thrust (constant acceleration per 10ms)= 19 (example svs warbird) = 19 constant acceleration every 10ms = 190 in 100ms = 1900 in 1s

speed (pixels per 10s) = 3250 = travel 3.250 pixels every 10ms = 32.5 pixels 100ms = 325.0 pixels 1s = 3250 pixels 10s

position: increases/decreases by speed (+- thrust if acceleration) / 1000 pixels. the x,y position and velocity x,y are computed using sin/cos and a right triangle

results (svs wb settings)
from full stop to full speed is 3250/1900 = 1.71 seconds
distance traveled during that acceleration (same = ut + 1/2at^2 = 0 + 0.5 * 190.0 * 1.71 * 1.71 = 276.1 pixels
time to travel map length at full speed = 16384 pixels / 325 pixels/s = 50.4 seconds
if speed was 16384, time = 16384 pixels / 1638.4 pixels/s = 10 s (remember that speed from settings is a 10s measurement)
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
D1st0rt
Miss Directed Wannabe


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

PostPosted: Tue Dec 14, 2004 1:07 am    Post subject: Reply to topic Reply with quote

With a speed of 32767, it works out to 5.0002 seconds. This isn't starting from rest, but can easily be achieved with a portal
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
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 14, 2004 7:15 am    Post subject: Reply to topic Reply with quote

It turns out that 32767 isn't the maximum speed internally. Though it is the max in the packet. So you see someone going really fast, then they start to shudder because they're over the max and their velocity no longer syncs up with the distance between packet sends.
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
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: 109 page(s) served in previous 5 minutes.

phpBB Created this page in 0.527988 seconds : 34 queries executed (86.4%): GZIP compression disabled