GEschlosen
GEschlosen
Last edited by Blo0DAngel : 2010,May 6th at 15:23
Ignorance is bliss, but knowledge is power
What format do the input coordinates need to be?
Duke of KNT - World 8
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:
![]()
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![]()
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...
Last edited by Blo0DAngel : 2009,April 28th at 23:35
Ignorance is bliss, but knowledge is power
just set the deliminator to newline and space. It will split it when it comes across either.
Last edited by Blo0DAngel : 2009,April 29th at 00:19
Ignorance is bliss, but knowledge is power
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.
Ignorance is bliss, but knowledge is power
Doesn't work for me, just opens a blank page when I click on Plan Attacks.
Last edited by Blo0DAngel : 2009,April 29th at 22:09
Ignorance is bliss, but knowledge is power
Tried it now with few towns only, works ok. Maybe I inputed too much villages in the boxes last time