Server Help

Bot Questions - Insight into TM_Baw Plugin?

wEaViL - Wed Mar 29, 2006 4:20 am
Post subject: Insight into TM_Baw Plugin?
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

Smong - Wed Mar 29, 2006 8:41 am
Post subject:
Did you want Warp3 to send that private message?
Cyan~Fire - Wed Mar 29, 2006 3:43 pm
Post subject:
Use ASSS.
wEaViL - Wed Mar 29, 2006 10:11 pm
Post subject:
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.
wEaViL - Wed Mar 29, 2006 11:33 pm
Post subject:
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

Dr Brain - Thu Mar 30, 2006 12:09 am
Post subject:
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?
wEaViL - Thu Mar 30, 2006 12:28 am
Post subject:
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
BDwinsAlt - Thu Mar 30, 2006 7:15 pm
Post subject:
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.
Purge - Thu Mar 30, 2006 7:43 pm
Post subject:
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
Anonymous - Thu Mar 30, 2006 8:28 pm
Post subject:
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.
Cyan~Fire - Fri Mar 31, 2006 3:49 pm
Post subject:
Java sucks processor cycles.
Muskrat - Fri Mar 31, 2006 5:23 pm
Post subject:
And think of all the poor ethiopian children whose processor cycles you are wasting. Do you really not have any to spare cyan?
Smong - Fri Mar 31, 2006 6:54 pm
Post subject:
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.
Dr Brain - Fri Mar 31, 2006 8:26 pm
Post subject:
Cyan~Fire wrote:
Java sucks processor cycles.


Better than sucking brain cycles.
wEaViL - Sat Apr 01, 2006 12:30 am
Post subject:
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

Smong - Sat Apr 01, 2006 6:17 am
Post subject:
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).
All times are -5 GMT
View topic
Powered by phpBB 2.0 .0.11 © 2001 phpBB Group