Dilly Tools |
Post Reply
|
Page <1 23456> |
| Author | |
Digioso
Forum Warrior
Joined: 09 Feb 2015 Location: Germany Status: Offline Points: 287 |
Post Options
Thanks(0)
Quote Reply
Posted: 12 Mar 2015 at 20:55 |
|
Short update: I've got the webinterface where you configure your search requests up and running.
Since my Odroid still hasn't arrived I'm looking for alternatives so that I can actually fullfill requests. One alternative would be a Mini-PC based on the Asrock Q1900 mainboard and an interimn solution is to use one of my laptops. I'm going for the latter probably for now. |
|
![]() |
|
Digioso
Forum Warrior
Joined: 09 Feb 2015 Location: Germany Status: Offline Points: 287 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 Mar 2015 at 16:33 |
|
Hm, nope I didn't consider that. Thanks a lot for the suggestion. :)
I'm not sure whether this would work for me or not, though. I would have to predefine on what I want to base those vectors around. It'll be 7food spots most likely but if someone is looking for something different for whatever reason I won't find it. Or I'd have to build vectors for all 7-resource spots which on the other hand would most likely result into having more database entries than I would have with simply loading the whole map into the database. My current approach is very open and you can define all variables. So far it takes only a couple of minutes to perform a search for a whole region. As soon as I get my Odroid (and install a database on it) it should be a lot faster. Then I know for sure how fast my approach is. If it doesn't match my expectations I'll look for another solution. :) Edited by Digioso - 09 Mar 2015 at 16:35 |
|
![]() |
|
IbnSenna
Postmaster
Joined: 20 Nov 2011 Location: Paris france Status: Offline Points: 632 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 Mar 2015 at 11:36 |
|
have you considered building vectors from 48 adjacent squares features for each square when loading the latest map, then feeding it into any sql db?
|
|
![]() |
|
Digioso
Forum Warrior
Joined: 09 Feb 2015 Location: Germany Status: Offline Points: 287 |
Post Options
Thanks(0)
Quote Reply
Posted: 09 Mar 2015 at 09:00 |
|
I'm using the approach to search for high resource spots with nearby spots with 7food (or rather: an amount of resources you can configure) to narrow down the total number of fields I've got to search.
And yep, I'm using Perl as well. My database will be MySQL. I've got most experience with MySQL and Oracle databases but Oracle is a bit too expensive. :) |
|
![]() |
|
RoundRobin
New Poster
Joined: 08 Mar 2015 Location: Norway Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 Mar 2015 at 18:03 |
|
He he, I know. No one knew, we kept it a secret.
And I'm the same as you, I would have finished the job you are doing. It's a nice challenge to be able to search sov in around 8.6 million squares without it taking to much power. I saw you were using perl, so did I. The database holding the data is postgres. |
|
![]() |
|
Digioso
Forum Warrior
Joined: 09 Feb 2015 Location: Germany Status: Offline Points: 287 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 Mar 2015 at 17:25 |
|
Oh, I didn't know that. Won't keep me from working on my tool I guess, though. I like to finish things I started. :)
|
|
![]() |
|
RoundRobin
New Poster
Joined: 08 Mar 2015 Location: Norway Status: Offline Points: 4 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 Mar 2015 at 16:11 |
|
Hi
I just wanted to tell you that Infamy[FAM] already has such a tool. You can search for spots on the map for basic res and surrounding sov bonuses. So if you want to find a spot with 48 spear production(yes, such a square exists), you only put in 7 food and 48 spear. You can search on any combination you want for all known sovs and resources. We've kept it as an internal tool, but we're discussing right now if we should make at least the sov search public as we will have no advantage as other people also make such tools. Best regards, RoundRobin. RR |
|
![]() |
|
Digioso
Forum Warrior
Joined: 09 Feb 2015 Location: Germany Status: Offline Points: 287 |
Post Options
Thanks(0)
Quote Reply
Posted: 08 Mar 2015 at 06:54 |
|
I managed to add all Sov bonusses (resources and stuff like +x% Beer production).
So far it's not possible to specify the latter as a search criteria (EG: The new spot should have +6% Beer production in the first ring around the city) but I'm working on that. On the topic on displaying Sov bonusses (resources and the other production bonusses): What would you prefer? a) It displays the specific bonusses per ring around your city (like in http://www.digioso.org/Tamarin_new.htm) b) It sums up the total bonusses. EG Ring 2 = All bonusses from Ring 1 + All Bonusses from Ring 2 (like in http://www.digioso.org/Tamarin.htm) My Odroid has not arrived yet unfortunately... But I hope it'll be here soon. Then I can open this to the public. Edited by Digioso - 08 Mar 2015 at 06:55 |
|
![]() |
|
Digioso
Forum Warrior
Joined: 09 Feb 2015 Location: Germany Status: Offline Points: 287 |
Post Options
Thanks(0)
Quote Reply
Posted: 24 Feb 2015 at 21:33 |
|
Here's an example for Tamarin on how the output of the tool looks right now.
http://www.digioso.org/Tamarin.htm The search was using my default parameters as described above. Basically: High food spot (at least 13 food), 7 food & 25 resource plots on the settlement directly next to it, no other cities in 10 squares distance. So far there are no excludes (EG no hill/mountain next to city spot) and as described above only resources are taken into account, no other bonusses. Edited by Digioso - 24 Feb 2015 at 21:33 |
|
![]() |
|
Digioso
Forum Warrior
Joined: 09 Feb 2015 Location: Germany Status: Offline Points: 287 |
Post Options
Thanks(0)
Quote Reply
Posted: 23 Feb 2015 at 17:52 |
|
Well, it's not that my webspace is free or anything. I have to pay for it of course. Sure, I've got some ads there but frankly speaking they pay for like 0,01% of the costs. :P
So yes, I don't have a dedicated server with lots of power there. It's shared webspace, nothing more, nothing less. I'm using it as my private website, providing stuff that's free to use by anybody. It's not for a company or to make money. Of course it would be nice to earn enough money to make a living from that, but I'm pretty sure I won't be a second Google anytime soon. So yes, I'm giving my spare time and cash for free here. You offered that you might be able help. I said that would be great. I didn't explictly ask for help in the first place. :) Well, anyway, back to topic I'd say. :) I think I found a pretty neat solution for the runtime memory consumption by pre-filtering the data I process. Let's see how that works out. Most likely it's not fast enough for a web application but, well, let's see. Edit: The time to scan a region is now down to a couple of minutes. Before it took between 30min and 1h. :) Edited by Digioso - 23 Feb 2015 at 20:02 |
|
![]() |
|
Post Reply
|
Page <1 23456> |
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |