Bio Engineer Archive

Thread: Sampling Macro

LiquidAvatar
Sat Jul 19, 2003 4:07 pm
#14

I have an idea for a wonderful sampling macro, but in order for it to work I need to know: how do you call a macro from within another macro? To make my question more clear, I need to start a macro and have that macro start another macro... is that possible? I've already tried just typing in /MacroName but it says that it isn't a command...
Pezman
Sat Jul 19, 2003 4:50 pm
#15

Alias's allow for longer macros. To my limited knowledge there is no way to call one macro from another. You can however make some pretty long aliases but you can't reuse numbers. (Example goto line 10 is the same as goto line 1). Most users overcome this by putting goto Line A and that way you can have up to 26 lines.


You cannot loop a macro or call a line above the one it is processing.


Thus you can't tell it to do line 1 to 10 then start over.


You also cannot STOP macros once started (other then logging out and relogging in)

LiquidAvatar
Sat Jul 19, 2003 5:35 pm
#16

actually, browsing about these boards, I found a site that has a lot of help for scrpiting:


http://www.geocities.com/raistlin60118/macros.htm


according to it, you can stop macros by filling the aliases with blanks instead of with commands. I'm still working on my script (I think I need to reset SWG to get it to recognize the new script properly, but I don't want to log off because I have a factory pumping out guns at the moment), so I'll post a reply with my success/failure story.

ByroTimere
Sat Jul 19, 2003 5:41 pm
#17

Ok... here's how I do it (and I only do it for water because I can't afford the moisture vaporator plus another wind generator at this point on top of my mineral,flora,chemical, and 2 other wind generators; I need the water for my medicines as I'm not getting enough tips to cover my medical supply costs forhealling all those lovely black holes on HAM bars for the jocks... but thats another issue).


Make a file with Notepad called "sample.txt" (without the quotes) and save it in your StarWarsGalaxies folder. The contents of that file will be:



sample01: /sample; /pause 630; /sit; /pause 390; /stand; /sample02
sample02: /sample; /pause 630; /sit; /pause 390; /stand; /sample03
sample03: /sample; /pause 630; /sit; /pause 390; /stand; /sample04
sample04: /sample; /pause 630; /sit; /pause 390; /stand; /sample05
sample05: /sample; /pause 630; /sit; /pause 390; /stand; /sample06
sample06: /sample; /pause 630; /sit; /pause 390; /stand; /sample07
sample07: /sample; /pause 630; /sit; /pause 390; /stand; /sample08
sample08: /sample; /pause 630; /sit; /pause 390; /stand; /sample09
sample09: /sample; /pause 630; /sit; /pause 390; /stand; /sample10
sample10: /sample; /pause 630; /sit; /pause 390; /stand; /quit


Make it as long as you need, and note that the /quit isn't necessary at the end but I don't like to remain logged in doing this for too long. The last command calls the next alias in the list.


NOTE: The number in the first pause (that I have set to 630) should be double the number of seconds it takes you to start sampling with full HAM pools until just after the last effective sample (you don't have to go all the way until it stands you up after telling you that you don't have enough HAM to do the next sample attempt. The number in the second pause (that I have set to 390) should be double the number of seconds it take you to recover to full HAM from wherever you stopped sampling; again, I add on a couple seconds as "lag insurance". You need to double because each "tick" in the /pause command is equal to half a second real time.


You will also create another file called "stopsample.txt" in the same location that contains the lines:



sample01: /alarmaddin 0 0 Survey macro cancelled.

sample02: /alarmaddin 0 0 Survey macro cancelled.

sample03: /alarmaddin 0 0 Survey macro cancelled.

sample04: /alarmaddin 0 0 Survey macro cancelled.

sample05: /alarmaddin 0 0 Survey macro cancelled.

sample06: /alarmaddin 0 0 Survey macro cancelled.

sample07: /alarmaddin 0 0 Survey macro cancelled.

sample08: /alarmaddin 0 0 Survey macro cancelled.

sample09: /alarmaddin 0 0 Survey macro cancelled.

sample10: /alarmaddin 0 0 Survey macro cancelled.


Note that these two need to have the same number of lines; well, technically you don't need the sample01 line, but it doesn't hurt to have it there. This command creates an alarm entry that goes off in 0 hours and 0 minutes (immediately in other words) that tells you "Survey macro cancelled." in order to confirm that.


Now, here's what you need to do in game. Create a macro called "AutoSample" (or whatever you want) with the line:



/load sample.txt; /sample01


and another macro called "StopSample" with the line:



/load stopsample.txt


The beauty of this is that when you hit the StopSample macro, it loads in the new sample## aliases that no longer sample. It will not interrupt the currently running step, but it will break on the next step. In other words, not only do you have a sampling macro, you have a way to stop it (in a couple minutes) without logging out. So you can use this to sample a little for you while you run for a bio-break, to go see why your children are yelling at each other, go make supper, or (if you make it long enough) while you go to bed. Note that I don't really approve of doing it that long, but that's an issue for devs to decide, not me.


Finally, make sure that you disable the auto-AFK feature, as that seems to interrupt this chain.




Mehtee's Organics
Supplying the Animal Resources Needs of the Tempest Server
Member of the Tempest Resource Co-operative
Based in Fairfolk City, Dantooine (4380,6120) just North of the Jedi Temple ruins

Grypher
Wed Jul 23, 2003 6:00 pm
#18

Does anyone have a good Macro for Sampling? I have one that works but it will only do it one time. I dont want to have to rewrite it200 times just to get it to run all day. Copying and Pasting doesn't work either. I also tried naming the Macro "D" and then making a new Macro that did /D a bunch of time but that also didn't work. Has anyone found a way to sample non-stop?



I didn't just kill the goomba for fun... I did it for the 100 points
Divian3X
Wed Jul 23, 2003 6:06 pm
#19

In addition, does any Creature Handlers have an easy macro for TTR without using the radial or keyboard buttons? I have messed around with a couple things but the game just tells me that no such commands exist. If anyone knows, I would like to hear about it.



All hail the day!
www.blizzard.com/wow/
Vasbutin
Wed Jul 23, 2003 6:52 pm
#20

there is no safe way to sample nonstop continuously .. ie 24/7


however, if you set the timestamp on chat box, then sample until you can not sample anymore, then sit until your action bar is full you will have the timing for your sampling rate and can then succesfully macro mine.


if you can sample for 6 minutes and 15 seconds then that is 375 seconds


and if you sit for 2 minutes and 25 seconds until action bar is full then that is 145 seconds


so a macro mining script would look like this:


/stand;/sample;/pause 375;/sit;/pause 145


this will macro mine for a total of 8 minutes and 40 seconds so if you want to macro mine for 1 hour then you would repeat this line in the script 7 times




Vaslyn Hatul
Master Smuggler
Order of Keren Loyalists
Flurry
Grypher
Thu Jul 24, 2003 11:43 am
#21

Thats exactly what I have when I meant It did it one time (although my times are a little shorter during the sampling and longer durring resting to avoid any problems). I need some way to do it over and over without writting that over and over. I need to do it about 200 times to get it to go all day. The problem is that there's no Copy/Paste commands and no /repeat (or at least /repeat didnt work.. please tell me there is a diffrent command that does the same thing).



I didn't just kill the goomba for fun... I did it for the 100 points
Smitty5332
Thu Jul 24, 2003 11:45 am
#22

sorry bud, but i dont think there is, they took out copy/paste and /repeat for just those reasons...now im still pretty new, so i COULD be wrong (usually i am)



Shikazi Masamoto
Master Pikeman || Master Teras Kasi || Carbineer
Official IPS Pharmacist. Unofficially.
:: Shikazi's Smoke Shop! Now Open @ 2575, 6345 on tat! ::
::Ashtu Masamoto::
:: Aspiring Chef || Master Doc::


Adim
Thu Jul 24, 2003 1:04 pm
#23

I have the same problem. I found a 93% field of steel on Talus and mined it great for a few hours but after that I stopped coming up with resources! I re-surveyed and it still read at 93% but I wasnt getting anything anymore. Is this normal?
FelixDarque1
Thu Jul 24, 2003 1:05 pm
#24

I think it is possible to 'map' cut and paste commands in the ctrl+o menu. Under chats somewhere (all) you will see the copy, cut, and paste lines with no commands.


Try rebind and use ctrl+shift+ (c,x or v as appropriate).


Hope it works for you!




Darque
Ripchi
Thu Jul 24, 2003 1:06 pm
#25

Build your macro like you normally would, then add this bit of syntax at the end...


/ui action toolbarSlot00


Place your macro on your toolbar. toolbarSlot00 refers to the the first box in the top row of your toolbar (the one you use F1 to activate). If you place it in a different location, just modify the number at the end of toolbarSlot to match the appropriate location. The far right one on the top row (the one you use F12 to activate) is toolbarSlot11. Only place it in the top row. There is a way to designate it to the bottom row, but I can't be sure how it's done off the top of my head. I think it's maybe toolbarSlot12 through toolbarSlot23 are the bottom row, if I remember right...


Caps does matter! This macro will loop indefinitly. To stop it, just move the macro out of the location of the toolbar to a different location, or remove it all together. Then once the macro finishes running, it won't start up again. Also, do not switch toolbars after you start this macro or else when it goes to loop and the macro isn't in the right spot, it will activate whatever you have in that location, and then end the macro.




Ripchi (Master Swordsman) My Roleplay (RP) Threads
Agod (Artisan & Architect) My Interior Design Gallery
Citizen of Stars End on Lok, Tarquinas Galaxy (Located at 5205, 4457)

Visit the SEE 2cpu Bulk Resource Vendor outside Coronet at 245 -3585.
BomSquad
Thu Jul 24, 2003 8:38 pm
#26

I use the /load command to load a text file creating my sampling macros for me.


My sampling macro looks like this:


as0001: /sample; /pause 300; /sit; /pause 300; /stand; /as0002;
as0002: /sample; /pause 300; /sit; /pause 300; /stand; /as0003;
as0003: /sample; /pause 300; /sit; /pause 300; /stand; /as0004;
as0004: /sample; /pause 300; /sit; /pause 300; /stand; /as0005;
as0005: /sample; /pause 300; /sit; /pause 300; /stand; /as0006;
as0006: /sample; /pause 300; /sit; /pause 300; /stand; /as0007;
as0007: /sample; /pause 300; /sit; /pause 300; /stand; /as0008;
as0008: /sample; /pause 300; /sit; /pause 300; /stand; /as0009;
as0009: /sample; /pause 300; /sit; /pause 300; /stand; /as0010;
as0010: /sample; /pause 300; etc, etc, etc.....


You can repeat this as long as you like. What this does is when you use the macro /as0001 it will sample for 5 minutes then pause for 5 minutes and then move to the /as0002 macro which repeats the process. What this allows you to do is create a very long sampling time but be able to STOP the sampling process if you want to do something else. You stop it by creating another text file with the SAME macro names as your sampling macro text file, like this:


AS0001: /checkashell;
AS0002: /checkashell;
AS0003: /checkashell;
AS0004: /checkashell;
AS0005: /checkashell;
AS0006: /checkashell;
AS0007: /checkashell;
AS0008: /checkashell;
AS0009: /checkashell;
AS0010: /checkashell; etc, etc, etc.


Since there is no /checkashell command, it errors out and STOPS the sampling process.


I call the first file SAMPLE.TXT and the second file STOPSAMPLE.TXT


You need to copy both files to the \Program Files\Star Wars Galaxies directory for this to work.


When you want to start sampling, all you do is enter:


/load sample.txt


/as0001


To stop the cycle all you do is enter:


/load stopsample.txt




An EOD (Explosive Ordnance Disposal) Tech knows the right amount of explosives to pack up a bull's butt, to blow his horns off, without making his eyes water.
I take a lickin' if it stops tickin'.
If you see me running, you better keep up!
Page 2 of 6