Introduction
Have a question? Need some help? This is the place.
Frequently Asked Questions
When I choose option X in tribe_intel.py, there's so much output that I can't see it all! How do I fix this?
- All you need to do is increase your terminal's buffer space, so that it doesn't "forget" about the output. Note that doing so will use a bit more of your computer's memory, but that won't be a problem for modern computers. Besides, you'll get the memory back once you're done using the tribe_finder script.
In Windows, click on the icon in the upper-left corner of the command prompt and open the properties. Go to the Layout tab and find the Screen Buffer Size area. Change the value of Height to a larger value (the max is 9999). Click OK. Select "Save properties for future windows with the same title" and click OK again.
In Mac OS X with Terminal open, open the Terminal menu (next to the Apple menu) and select Window Settings. In the combo box, select Buffer. Then either increase the number of lines or simply select "Unlimited scrollback."
In Linux, the exact procedure depends on which terminal your using (gnome-terminal, konsole, xterm, aterm, etc etc). The general steps should be similar to the above: find the settings and increase the buffer size. If you're using gnome-terminal, go to Edit > Current Profile > Scrolling.
The tribefinder.py works very well but the tribalwars.py closes immediately when i click on it. I completely support the development of this tool, and if I could, I'll try to help but my knowledge about Python is near to null. Thank you, I hope this feedback gives you motivation.
@bap - Thanks for your comments! As far as running tribalwars.py goes, this script isn't actually meant to be executed. I've added a new message to make this clear. I also renamed tribefinder.py to tribal_intel.py, which I think is a better name. Check out the new version on the downloads page.
welcome. i think you're doing a great job. that i can't help but notice how underappreciated your code is. but it's also a nice way to not make it convenient for other players who want to get tools the easy way. personally, i had to search abit to end up here.
This is probably a stupid question, but...
Is the continent included in one of the columns in any of these 3 data files retrieved? I can find village / tribe name, x,y coordinates, points...but can't find continent.
Sorry...found it!
I'm glad you found it. Just to make sure, here's the code: self.continent = self.y / 100 * 10 + self.x / 100
One last question...I've been struggling with this for a few hours...how to create an actual file .txt.gz of option #2? That would be extremely useful!!
@voss3.charlie
What do you what the .txt.gz file for? Are you just trying to save the info into a file so that you can look through it at a later time? Or do you want to do some further processing on the tribe info?
If you're just trying to save the info to a file, then I suppose you could copy and paste for now. Come to think of it, saving the output would probably be a useful feature. +) I'll get on that.
Our tribe is having everyone do trip wires, and it's a chore maintaining who has done what so far. I'm maintaining everything in an Excel spreadsheet, and every time a new member joins the tribe I'm having to manually input their player name vs. village name, x & y coords, continent...all that stuff. Saving the output would be a HUGE time saver!
@voss3.charlie
You can now save info to a CSV file (open with Excel or other spreadsheet program). Check out version 0.8 on the downloads page. Hope this helps you out.
Skawaii -
Thank you very much for this, and for making it available so quickly! I do have a couple of questions.
First, the calculation for quadrant...I'm finding a village in 218,504 coming up as NW, but shouldn't that be SW because the y is > 500? IF(x<500,IF(y<500,"NW","SW"),IF(y>500,"SE","NE"))
Second, the new option 5 ... the ability to save an individual member...that is extremely useful because it shows each village name the coords...is there any way to save a file like this for all the villages of all the tribe members? It would also be helpful if we could append the player's name to this save. This will become even more useful when players have multiple villages.
I've tried to make these changes myself but I'm not having any luck. I don't know Python, so I clearly don't know what I'm doing.
@voss3
For the first item, can you create an issue for this with steps to reproduce it? That will help me to be much quicker if figuring out what's going on. There is a link for the issues page at the top, right next to the Wiki link.
For the second item, let me make sure I'm understanding you correctly. What you're asking for is the ability to save all villages (with owner's name) belonging to a tribe to a single CSV file, yea? If so, then that's definitely possible.
Thanks for your questions and feedback. If you don't mind, could you put your suggestions on the suggestions wiki page from now on? It just helps to keep things in the right place. You can even submit issue tickets, if you'd like. Thanks!
Version 0.8.1 released. You can now view and save all the villages in a tribe.
can i use this programma on a .nl server?
Right now, no you can't. But your comment makes me realize that I really should enable the program for international users. I'll work on that and make a new release (probably later today), so be sure to check back.
data_dir = DATA_DIR_PREFIX + world + "/" ==> here will the file be saved ?
how do i change it so the file will be saved in data/w4/"time it was downloaded"/
You'd want to use Python's time module, which you can read about here.
After importing the time module (import time), you could do something like data_dir = DATA_DIR_PREFIX + world + "/" + str(time.time()). There are other ways to format the time, which you can read about at the above link.
hey the link doesn't work :-(
i have change what you say (data_dir = DATA_DIR_PREFIX + world + "/" + str(time.time())
the program will download the file but as soon as the file has been downloaded the program exits .
Sorry about that. The link should be http://docs.python.org/lib/module-time.html.
Is there an easy way to export the info with bbcodes?
No, there isn't, but I'll add that into a future release.
Please, help me, what should i write in the "Tribes Tag"?
PS: I am Brazilian and my language is Portuguese, if possible, could receive support in my language, if you can not, receive support in your language without any problem, but so that I can understand, i will use the translator google . I hope your answer.
I don't speak Portuguese, but "Tribe Tag," if I'm not mistaken, is "Abreviação" in the Portuguese version of Tribal Wars.
Thanks for reply!
I made a change in tribalwars.py for it to run the brazilian server. I Changed the line 328, please, analyze this:
-Before: base_url = "http://en" + world + ".tribalwars.net/map/"
-After: base_url = "http://br" + world + ".tribalwars.com.br/map/"
Now I have two questions, know if what I did is right? How can I identify the version of the Tribal Wars?
When i turned on the tribe_intel.py, in the console, i write in World, "11" (because my world is br11.tribalwars.com.br) and so far I do not know what to write in Tribe Tag ..
Please, help me...
Your change to line 328 of tribalwars.py looks correct.
As for the "tribe tag", it's the tribe "Abreviação" of the tribe you want info on. So, for example, if I were in the tribe GoonEatingDragons?, and the tribe tag were GED, then I would type GED for the tribe tag.
Hope that helps.
Thanks for help me, my Tribe Tag is "SD-K24".
I am currious what you are doing to deal with the %codes that are lined through out the names to represent special characters in the database files from TW. as well as the + to represent the spaces. If there is something that I am missing please do inform me. I looked through the visible code to see if I could figure it out, but saw nothing that caught my eye.
I use the urllib.unquote_plus() function. For example, in the constructor of the Tribe class, you'll see:
Hope that helps.
PS. Sorry for the delay in responding. For some reason, my email notifications were getting sent to the trash. +\