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
Insight into TM_Baw Plugin?

 
Post new topic   Reply to topic Printable version
 View previous topic  [need help] how do I start AI Bot in a... Post :: Post soccer ball friction  View next topic  
Author Message
wEaViL
Don't make me turn this forum around!


Age:45
Gender:Gender:Male
Joined: Feb 17 2003
Posts: 829
Location: nc usa
Offline

PostPosted: Wed Mar 29, 2006 4:20 am    Post subject: Insight into TM_Baw Plugin? Reply to topic Reply with quote

Ok I set it up the way I assume its supposed to be done. Problem is only the first warp point works [warp0] but none of the others will. Maybe someone here will know what I did wrong. Thanks


Code: Show/Hide

[Warp0]
#    ^------- Up to 256 warps

FromX1=497
FromY1=510
FromX2=501
FromY2=514
ToX=294
ToY=492
Ship=-1
Freq=-1

[Warp1]

FromX1=510
FromY1=523
FromX2=514
FromY2=527
ToX=513
ToY=689
Ship=-1
Freq=-1

[Warp2]

FromX1=523
FromY1=510
FromX2=527
FromY2=514
ToX=750
ToY=507
Ship=-1
Freq=-1

[Warp3]

FromX1=510
FromY1=497
FromX2=514
FromY2=501
ToX=514
ToY=355
Ship=-1
Freq=-1

#    ^------- Ship to warp. -1 = any
#    ^------- Freq to warp. -1 = any, -2 = any public, -3 = any private
# Macros you can use:
#   %name%   - Name of player
#   %points% - Points of player
#   %squad%  - Squad of player
#   %freq1%  - Freq of player. "(Private freq)" said if private
#   %freq2%  - Freq of player. Private freqs are said

PubAction0=
#        ^--- Up to 10 actions

PrivAction0=%name% Prepare to FIGHT
#        ^--- Up to 10 actions
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address Yahoo Messenger MSN Messenger
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Wed Mar 29, 2006 8:41 am    Post subject: Reply to topic Reply with quote

Did you want Warp3 to send that private message?
_________________
ss news
Back to top
View users profile Send private message Add User to Ignore List Visit posters website MSN Messenger
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 29, 2006 3:43 pm    Post subject: Reply to topic Reply with quote

Use ASSS.
_________________
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
wEaViL
Don't make me turn this forum around!


Age:45
Gender:Gender:Male
Joined: Feb 17 2003
Posts: 829
Location: nc usa
Offline

PostPosted: Wed Mar 29, 2006 10:11 pm    Post subject: Reply to topic Reply with quote

ASSS did nothing but crash :/
Im not worried about the messages right now since warps 1, 2, and 3 do not warp anyone but 0 does.
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address Yahoo Messenger MSN Messenger
wEaViL
Don't make me turn this forum around!


Age:45
Gender:Gender:Male
Joined: Feb 17 2003
Posts: 829
Location: nc usa
Offline

PostPosted: Wed Mar 29, 2006 11:33 pm    Post subject: Reply to topic Reply with quote

Ok I changed the coding a little and fixed all of the warps. Only problem now is that the private message is only being sent to warp3 and is sent 4 times but no message sent to the other 3 warps... heres the new code

Code: Show/Hide

[Warp0]
#    ^------- Up to 256 warps

FromX1=497
FromY1=510
FromX2=501
FromY2=514
ToX=294
ToY=492
Ship=-1
Freq=-1

[Warp1]

FromX1=510
FromY1=523
FromX2=514
FromY2=527
ToX=513
ToY=689
Ship=-1
Freq=-1

[Warp2]

FromX1=523
FromY1=510
FromX2=527
FromY2=514
ToX=750
ToY=507
Ship=-1
Freq=-1

[Warp3]

FromX1=510
FromY1=497
FromX2=514
FromY2=501
ToX=514
ToY=355
Ship=-1
Freq=-1

#    ^------- Ship to warp. -1 = any
#    ^------- Freq to warp. -1 = any, -2 = any public, -3 = any private
# Macros you can use:
#   %name%   - Name of player
#   %points% - Points of player
#   %squad%  - Squad of player
#   %freq1%  - Freq of player. "(Private freq)" said if private
#   %freq2%  - Freq of player. Private freqs are said

PubAction0=
PubAction1=
PubAction2=
PubAction3=
#        ^--- Up to 10 actions

PrivAction0=%name% Prepare to FIGHT
PrivAction1=%name% Prepare to FIGHT
PrivAction2=%name% Prepare to FIGHT
PrivAction3=%name% Prepare to FIGHT
Back to top
View users profile Send private message Add User to Ignore List Send email 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: Thu Mar 30, 2006 12:09 am    Post subject: Reply to topic Reply with quote

Sorry if I'm being stupid, but it looks kinda obvious... don't you need a privAction per section, rather than putting them all at the bottom?
_________________
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
wEaViL
Don't make me turn this forum around!


Age:45
Gender:Gender:Male
Joined: Feb 17 2003
Posts: 829
Location: nc usa
Offline

PostPosted: Thu Mar 30, 2006 12:28 am    Post subject: Reply to topic Reply with quote

Not sure... the technical documentation in this plugin sucked... the readme barely said anything about setting it up and the warps.ini had little to no comments about exactly how to do it. I'll see if that works though... didn't even cross my mind lol



EDIT... Dam brain you smart lol Yeah that fixed it... can't believe I didn't even think about that. I'll blame all the work i've been doing lately for it icon_smile.gif
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address Yahoo Messenger MSN Messenger
BDwinsAlt
Agurus's Posse


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

PostPosted: Thu Mar 30, 2006 7:15 pm    Post subject: Reply to topic Reply with quote

LOL! Just so you know, when programming and doing w/e, you always put what you want to happen with everything else that it belongs with.

So if you want to make the bot say "BDwinsAlt is so sexy!"

DO NOT do this:

Code: Show/Hide

public void sexymsg(String name, String msg){

}

m_botAction.sendPrivateMessage( name, "BDwinsAlt is so sexy!" );


DO this
Code: Show/Hide

public void sexymsg(String name, String msg){
m_botAction.sendPrivateMessage(name, "BDwinsAlt is so sexy!");
}


I hope that helps some. Put the stuff that happens with tm_mer, or in this case warp, with the section you want it to happen in. I know you figured it out now. I just want to make sure you understand why.
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
Purge
Episode I > Eposide III
Jar-Jar is kool


Age:35
Gender:Gender:Male
Joined: Sep 08 2004
Posts: 2019
Offline

PostPosted: Thu Mar 30, 2006 7:43 pm    Post subject: Reply to topic Reply with quote

I don't think that'll help a non-programmer, especially since he requested help with an INI file...

Oh yeah, Java sucks. sa_tongue.gif
Back to top
View users profile Send private message Add User to Ignore List
Hookerella89
Guest


Offline

PostPosted: Thu Mar 30, 2006 8:28 pm    Post subject: Reply to topic Reply with quote

Purge+ wrote:
I don't think that'll help a non-programmer, especially since he requested help with an INI file...

Oh yeah, Java sucks. sa_tongue.gif


Only when you suck. Java rocks.
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: Fri Mar 31, 2006 3:49 pm    Post subject: Reply to topic Reply with quote

Java sucks processor cycles.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website
Muskrat
Server Help Squatter


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

PostPosted: Fri Mar 31, 2006 5:23 pm    Post subject: Reply to topic Reply with quote

And think of all the poor ethiopian children whose processor cycles you are wasting. Do you really not have any to spare cyan?
Back to top
View users profile Send private message Add User to Ignore List AIM Address
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Fri Mar 31, 2006 6:54 pm    Post subject: Reply to topic Reply with quote

wEaViL wrote:
didn't even cross my mind
You also didn't say how you got the warps working or why they didn't seem to be working originally.
Back to top
View users profile Send private message Add User to Ignore List Visit posters website 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: Fri Mar 31, 2006 8:26 pm    Post subject: Reply to topic Reply with quote

Cyan~Fire wrote:
Java sucks processor cycles.


Better than sucking brain cycles.
Back to top
View users profile Send private message Add User to Ignore List AIM Address Yahoo Messenger MSN Messenger
wEaViL
Don't make me turn this forum around!


Age:45
Gender:Gender:Male
Joined: Feb 17 2003
Posts: 829
Location: nc usa
Offline

PostPosted: Sat Apr 01, 2006 12:30 am    Post subject: Reply to topic Reply with quote

Smong wrote:
[..]

You also didn't say how you got the warps working or why they didn't seem to be working originally.


They didn't work becuase of the way I had the Ini file setup. Scroll up and compare the last one to this one to see whats different.

Code: Show/Hide

[Warp0]

FromX1=497
FromY1=510
FromX2=501
FromY2=514
ToX=294
ToY=492
Ship=-1
Freq=-1

PubAction0=
PrivAction0=%name% Prepare to FIGHT

[Warp1]

FromX1=510
FromY1=523
FromX2=514
FromY2=527
ToX=513
ToY=689
Ship=-1
Freq=-1

PubAction1=
PrivAction1=%name% Prepare to FIGHT

[Warp2]

FromX1=523
FromY1=510
FromX2=527
FromY2=514
ToX=750
ToY=507
Ship=-1
Freq=-1

PubAction2=
PrivAction2=%name% Prepare to FIGHT

[Warp3]

FromX1=510
FromY1=497
FromX2=514
FromY2=501
ToX=514
ToY=355
Ship=-1
Freq=-1

PubAction3=
PrivAction3=%name% Prepare to FIGHT
Back to top
View users profile Send private message Add User to Ignore List Send email AIM Address Yahoo Messenger MSN Messenger
Smong
Server Help Squatter


Joined: 1043048991
Posts: 0x91E
Offline

PostPosted: Sat Apr 01, 2006 6:17 am    Post subject: Reply to topic Reply with quote

So in conclusion after staring hard at all 3 ini's you posted the warps did work, only the messages didn't.

I suspect where you have PubAction3 in Warp3, that is supposed to be PubAction0. (Reason: There's a number so you can have 10 different public actions for one warp. Each action must have a unqiue name for it to work with the windows ini reader. So simply putting "PrivAction=%name% Prepare to FIGHT" 10 times wouldn't send the message 10 times).
Back to top
View users profile Send private message Add User to Ignore List Visit posters website 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: 54 page(s) served in previous 5 minutes.

phpBB Created this page in 0.441313 seconds : 40 queries executed (91.9%): GZIP compression disabled