Discussion in 'Scripts & Independent Tools' started by Blo0DAngel, Apr 28, 2009.
What format do the input coordinates need to be?
now any format is supported
I'll gie it a try
Nice tool, looks like it may have some potential.
However, when I enter in all the information and hit the 'plan attack' the results tell me to send attacks on the time i entered in to be my landing time, as seen below:
Nice ;-) But to get different travel times you need field "Attack Unit (time to travel square):" > 0
Feel free to post whole screenshot
Would it accept data in the same form as we input it into the fake script?
We could use then the one for exporting coords from that thread :icon_surprised:
It will soon, right now i parse only for
regular expressions in C are not very suppoted so i will need to implement bit wiser and genraly apliable reading of coordinates.
should be done in day or so...
If you're working in C just use string tokenizers. (That's C, not C++, yes?) Just break it up by whitespace, regardless of what that whitespace is.
im using strtok already im strtoking for | and \n ... what looks as whitespace in twstats coord output is really a new line sign and in html \n means nothing ... so parsing for whitespace gets me nowhere ...
after spliting on newline and | (pipe) i atoi and no problem... but i will need to write function to go through whole input and strcpy to new array only \d+|\d+
now im looking to implement some regex extension library because covering all options with strtok is hell...
just set the deliminator to newline and space. It will split it when it comes across either.
Very good! Fixed it ;-) must say didnt cross my mind strtok can accept multiple delimiters.
now it supports input in
(xxx|yyy) and xxx|yyy both all in same row or in multiple rows.
the default deliminator for most string tokenizers is space, newline, and tab...
(It is in Java, I know that it is anyways, and the >> operator for iostreams in C++ which use tokenizers underneath.)
It automatically defaults as 30 does it not?
Anyways, i had already closed that page and didn't save the full screenshot.
So, i repeated the process, without changing anything, and did infact get different results, however still incorrect.
I've only censored the coordinates because I do plan on attacking these villages.
Here is what I entered:
here is result:
Obviously I can't send an attack on the 15th.
If I am doing something wrong please let me know.
Yeah world time didnt support floating type my bad... so 0.75 was rounded on 0
fixed it now, now it works right for speeds that have floating point.
Doesn't work for me, just opens a blank page when I click on Plan Attacks.
well you need to fill in something to get something out of it ;-)
Same thing happ with me too. Im using FF and filled in all the details.
Lol, dont know i used it a lot... if you could fill me in with data you put in boxes i might be able to track it.
Also, there is private msg, so please send me private msg if you have problems rather than spamming thread about it.
Tried it now with few towns only, works ok. Maybe I inputed too much villages in the boxes last time