PDA

View Full Version : [Tool] Economy management script



GacekSSJ4
11.02.12, 00:25
( edited it for you gacekssj4 :) ~MOD_Calen )
Hello Everyone,

Wrote this short script about 2 weeks ago, but finally added multi-user functionality, so everyone can use it. Available in polish and english.
Functions:
- Allows you to define buildings
- Let's you chose building lvl (lvl up or down a building)
- Let's you select if building is buffed or not

According to the above calculates some neat stats:
- Production per amount of time.
- How your stock will change in next hours
- Consumption of goods by buildings

What is it good for?
Planning! No need to sit over a paper sheet and calculate in how many hours you will be able to get following amount of resources.

Disadvantages:
You need to define each of your buildings as sepearate entity.
Did not find any way to import stats directly from game :(

No more disadvantages :) Thanks to Fenrisw0lf I Found awesome tool made by CrazyT and added support to import data format it exports!
Thanks for good work! And hope you do not mind :)
Tool and authors info: http://forum.diesiedleronline.de/threads/42435-Tool-DSO-Economics

>> You can find the script here! << (http://coolstuff.seigi.eu/settlersonline/index.php)

Feedback appreciated ;)

PS: Script uses translation files, if anyone interested in translation to their own language, PM me on forum so I can send you translation file.

UPDATES
Changes (18-02-2012)
- More real time functionality. For example mine resources are calculated in real time. That means you can refresh your panel after 5 minutes and you will see estaminated amount of resources that should be in mine at the moment :) Neat!!
- New Main page that includes most important notifications about your village. For ex. "Your Iron mine will deplete in 10 minutes!" or so :) You must see it ;) Can't describe how fabulous it is :P:P

Changes (14-02-2012)
- Small remakes to the UI
- Added tab "storag levels" which shows you your current stocks with bars (Only after you Import Stocks!).
- Data import/update moved to separate bar.

New functions (10-02-2012)
- Resource levels import
- Buff duration import (will show when buff ends) - After you export data from DSO, you need to import it asap into panel, or it will go bad!
- Storage level notifications! - After data import you can see for how many hours your supplies will last, if demand is higher than production.

Also, updated preview to newer one (and english): http://coolstuff.seigi.eu/settlersonline/online-calc.jpg

Risordo
11.02.12, 11:18
Cool,
nice tool, quick and simple, because the excel sheet from forum takes a hours to open, (at least on my computer).

Thanks mate, nice job.

Fenrisw0lf
11.02.12, 11:21
Cool,
nice tool, quick and simple, because the excel sheet from forum takes a hours to open, (at least on my computer).
Which one? Just write a feedback in the thread of it, and say which version of office you use ..

GacekSSJ4
11.02.12, 11:43
Just works differently :) its browser based calculator :) Thank for reply ;)

Risordo
11.02.12, 11:46
Which one? Just write a feedback in the thread of it, and say which version of office you use ..

The one that Calen posted, big, expanded excel sheet with images and stuff. It is really good, but i am using two or sometimes even three different computers to play TSO, so the Gaceks tool is convenient because i can use it wherever i want. I just open new tab in browser and its done. Thats the main advantage, in my opinion ofcourse.

And on my main computer, im using OpenOffice, so maybe thats why it works slowly, but anyway, its just my opinion :) and i have to try also Yours tool Fenris soon, heard its also good :)

GacekSSJ4
11.02.12, 14:09
Hey, I took a look at your excel, it's pretty neat :) However, I dont know who invented this method to import flashvars from SWOMMO but i'm gonna work on import option for this in my calc. That's what I was looking for quite time, but im not flash expert so I did not know how to get this info out :) If it's yours hope you do not mind :)

Fenrisw0lf
11.02.12, 14:19
If it's yours hope you do not mind :)

I would appreciate it if you would ask the programmer, if you are allowed to use his tool :) (the programmer is CrazyT in German Forums: http://forum.diesiedleronline.de/threads/42435-Tool-DSO-Economics )

GacekSSJ4
11.02.12, 15:09
TBH i'm not going to use it, only to allow import data it exports :) So users are going to use it. But will ask :)

Edit1: How can I ask him if I don't know German O.o....

Edit2: I added support for this awesome export tool :) Hope the authors wont hate me, I'm completly clueless when it comes to registering on german forums... sorry! But made info about you guys! :D

Reasumming, now data can be imported :)

Graineros
13.02.12, 02:01
Thank you! A really great tool! Lightweight and simple ;) Looking forward for its development! Keep up the good work.

Fierysxyredhead
13.02.12, 09:26
I am a fairly new player (level 18) I too am amazed there is not a drop down list of how many buildings you have what level there on and so forth, it would be so much easier to get a good production line running smoothly if could see in an instant how many I have of what. I've played other settlers before and I think this essential feature wasn't lacking then.

GacekSSJ4
13.02.12, 11:16
Thank you! A really great tool! Lightweight and simple ;) Looking forward for its development! Keep up the good work.
Thank you for kind words sire ;)


I am a fairly new player (level 18) I too am amazed there is not a drop down list of how many buildings you have what level there on and so forth, it would be so much easier to get a good production line running smoothly if could see in an instant how many I have of what. I've played other settlers before and I think this essential feature wasn't lacking then.
Right, that's the think i was missing too. As a substitute I added building count to filter list :) So you can see how many buildings of that type you have.

darthpaul
13.02.12, 12:27
Building count is an excellent addition to the list.

Out of interest is it possible to wipe your building list so you can re-import all buildings? I did a big import at the beginning but have to keep remembering to add buildings as I go. If i forget the list would be out of sync.

GacekSSJ4
13.02.12, 13:20
just press import without import data :) will wipe all buildings since they're counted as Razed in game

That applies ONLY to buildings that you imported. Buildings defined manually need to be removed manually (with X on right).

Also, Any data import will erase buildings that are no longer in Imported data. It is to keep your building list Up to date, so you do not need to delete any building manually.
So, There should be NO need for wipe of your data ;)


I did a big import at the beginning but have to keep remembering to add buildings as I go. If i forget the list would be out of sync.
So, if you use DSO-Economics to import, just import new batch of data, buildings Will not be doubled ;)

Suparatu
14.02.12, 23:46
the import thinggy doest work... :(
i installed the DSO script, went to "initiated game interface", -> gebaude -> kopieren
after that i went to online calculator, on data import/export page i clicked "import buildings" but still in the homepage i got nothing imported.

what am i doing wrong?

GacekSSJ4
15.02.12, 08:15
Not sure tbh.

You go to "Data Import/Update Tab".
Then according to the info there you copy firstly buildings. And press import buildings. You need to click apropriate button while importing. After you click a small log should show below.

Building update log should look like:

Zaktualizowano: RealWoodCutter lvl:1, Is unbuffed, Is active BUFF LEFT 0m
Zaktualizowano: CoalMine lvl:2, Is unbuffed, Is active BUFF LEFT 0m
Zaktualizowano: Hunter lvl:2, Is unbuffed, Is active BUFF LEFT 0m
[....]
Zaktualizowano: Well_03 lvl:1, Is unbuffed, Is active BUFF LEFT 0m
Zaktualizowano: Well_03 lvl:1, Is unbuffed, Is active BUFF LEFT 0m
Brak nowych budynków
Brak budynkow do usuniecia ;)

There were changes so maybe try to refresh your browser cache (but do not think that should be problem tho).

What shows to you after you hit import buildings button?

thomas1978
15.02.12, 14:39
I recieved the activation mail from the website, but even tho i use it, it still says that its not registered?

GacekSSJ4
15.02.12, 16:37
Judging by emails you created two accounts ;) Activated other one for you and found activation bug :)

Suparatu
18.02.12, 23:37
Not sure tbh.

You go to "Data Import/Update Tab".
Then according to the info there you copy firstly buildings. And press import buildings. You need to click apropriate button while importing. After you click a small log should show below.

Building update log should look like:


There were changes so maybe try to refresh your browser cache (but do not think that should be problem tho).

What shows to you after you hit import buildings button?

this is what i get after hitting the import buildings button:

go back!
Brak nowych budynków
Brak budynkow do usuniecia ;)

its like i didnt have copied anything. even the buildings i have introduced manually are still there.and yes clearing cache didnt do anything. :(

it looks like a really nice tool. too bad i cant make it work

Fenrisw0lf
19.02.12, 00:49
try my tool :)

GacekSSJ4
19.02.12, 08:02
Ok. What Operating System, what browser and browser version?


its like i didnt have copied anything. even the buildings i have introduced manually are still there.and yes clearing cache didnt do anything.
It's because each line have same format, and if required format is not met the line is skipped.
To be honest, i did not write any notifications about this *ashamed*. I just added code that will tell you why each line was skipped. Could you try building import again? I defined 3 new types of notifications when imported line is skipped. It should show now why your building was not added.

And don't get depressed :) We will work something out so you can also use the tool :)


try my tool :)
Do not steal my customer lol :>:>:> :D

Fenrisw0lf
19.02.12, 11:18
Do not steal my customer lol :>:>:> :D

You stole my import so :P :P

PS: No you didn't, was just a joke :)

GacekSSJ4
24.02.12, 12:51
:) You got me there :P
Anyway, bugs will not be tolerated :) I never had any import problem, so wonder what probalem Suparatu could have :(

Edit: @Spartau, did you solve your problem?

Luuk_The_Great
24.02.12, 14:37
It sounds pretty nice:)

Tycho91
25.02.12, 00:32
Why cant I select forresters?

GacekSSJ4
26.02.12, 23:59
I skipped foresters not to confuse production calculations. If you ask why then:
For example there are 10 foresters in Sector 9. and 1 Wood cutter.
Also, there is 1 woodcutter in sector 1 and no foresters.

Now, Overall there is overproduction of Trees, however woodcutter in sector one does not have trees to cut since they're not "produced" (planted) near him.

So any try to see production of trees is set to fail. I can add Foresters so the're in Building list, however will not set them to calculate their "tree production" since its pointless.

CoSpi
27.02.12, 10:47
can you include the foresters as well please? i have foresters and cutters on one place. so for my is not pointless

GacekSSJ4
28.02.12, 22:24
can you include the foresters as well please? i have foresters and cutters on one place. so for my is not pointless

Ok, since some accucaly seem to use it, then its added :) Trees are now in production chains.

kifru
29.02.12, 12:21
Nice job GacekSSJ4 ;) thx for this great tool, but you forgot the iron swords :(

GacekSSJ4
29.02.12, 13:20
Nice job GacekSSJ4 ;) thx for this great tool, but you forgot the iron swords :(

Yes and No :D I just set Iron Swordsmith to produce Steel Swords instead of Iron Swords :) But its fixed now ;) And thank you :)

kifru
29.02.12, 19:15
Hi ;) what do you think about putting some pictures like these
http://i44.tinypic.com/aca7bm.png
near the names of resources ?

Also would be a problem for you to reduce a little the distance as shown in the picture below ?
http://i42.tinypic.com/6pah39.png

Thanks again for the work you do ;)

GacekSSJ4
01.03.12, 00:04
They're there... I already put them but they're hidden. If you ask why, then its because Ubisoft did not answer my ticket about allowing me to use them. I think it's been 2 weeks already and none wants to answer if I can use them.

When I asked MOD_s and BB_s they told me I need to write to support about it, but none seems to care about it :(
And I do not want to be sued by them (remember this world is a one big money machine where none watch if I stole pics or not, but We can earn since you did not ask. It may not happen, but it may happen as well).

Copyright is frightening thing ;) If i get conscent it will look like:
http://img52.imageshack.us/img52/4451/settlersonlinescreen.png

kifru
01.03.12, 18:04
This tool is simply wonderful, I hope you will have permission to use images ;)

GacekSSJ4
01.03.12, 23:11
Thank you :) Next feature will be really cool and a real time-saver I think :)
But first need to finish all notifications and lanaguage thingies :)

Shame i can't live from writing this tool :D But life is hard :P

Ambrosianus
08.03.12, 20:59
Can you include the watermill and recycling plant too? The production of water and coal isn't correct if you have these buildings...

GacekSSJ4
09.03.12, 11:20
I do not have their in-game ids i think. Could you sent me your DSO Exports with these buildings? Not to spam here please do so via PrivateMessage ;) Then i will search their IDs and add to database :)

Divrox
13.03.12, 22:33
Hello, can u reply on my PM about translating?

Thillad
15.03.12, 18:47
First I would like to say thank you for developing this great tool GacekSSJ4. I was thinking of coding something similar to this before I found your tool. So that saved me the time of doing it myself :).

There is however a few things I would like to see on the tool that I have thought of so far (As I'm new to this game), which could make it even easier to manage production. Also a bug which I will note below.

Features that could be added:

On the production page it would be good to have a column to see the average production per hour per building. For example if you was making 200 Firwood per hour and you had 10 firwood cutters. The average production per hour per building would be 200/10 = 20 per hour per building. This would make it easier to see how many building you need to add or remove to get your desired production value.
On the production page again it would be nice to have a detailed overview for each resource of which buildings are consuming the resource and how much per hour. This would help to see where all the resources are going per hour for each resource.


Bug:

On the production page it doesn't show bows in the list of resources



Just one last thing to note is that if you need any help with developing your tool or implementing the ideas I have suggested, just let me know as I am also a web developer. I have developed a few tools in the past for some other browser games such as Travian and The West. Send me a PM if you need any help or just want to chat about the development of the tool.

Look forward to hearing from you.

Flaxarn
16.03.12, 13:08
Hi, must say wonderful tool ;)

came up with some ideas
-can you implement that i can see not just /h production but also /10h & /24h prodution?
-and also a tab maybe in the home page there you can select a adventure or manual input for r,b,c,lb and such on afterwitch a summary comes upp recources needed and time left to make em :) if you can implement it with storehouse functions you should be able to get it rather accurate and also count the bread witch is needed for every settler used.
/ flaxarn

Thillad
16.03.12, 13:30
Hi, must say wonderful tool ;)
can you implement that i can see not just /h production but also /10h & /24h prodution?
best regards

You can see other hourly production rates by hovering your cursor/mouse over the question mark (?) too the left of the name of each resource.

GacekSSJ4
18.03.12, 10:35
First I would like to say thank you for developing this great tool GacekSSJ4. I was thinking of coding something similar to this before I found your tool. So that saved me the time of doing it myself :).

There is however a few things I would like to see on the tool that I have thought of so far (As I'm new to this game), which could make it even easier to manage production. Also a bug which I will note below.

Features that could be added:

On the production page it would be good to have a column to see the average production per hour per building. For example if you was making 200 Firwood per hour and you had 10 firwood cutters. The average production per hour per building would be 200/10 = 20 per hour per building. This would make it easier to see how many building you need to add or remove to get your desired production value.
On the production page again it would be nice to have a detailed overview for each resource of which buildings are consuming the resource and how much per hour. This would help to see where all the resources are going per hour for each resource.


Bug:

On the production page it doesn't show bows in the list of resources



Just one last thing to note is that if you need any help with developing your tool or implementing the ideas I have suggested, just let me know as I am also a web developer. I have developed a few tools in the past for some other browser games such as Travian and The West. Send me a PM if you need any help or just want to chat about the development of the tool.

Look forward to hearing from you.

AD Feature 1:

It's even easier now :) Just filter buildings by desired building nad increase its level by one. Then production calculation goes by one up. If you level up by 2 to get desireable production, then it means you need 2 buildings at lvl one or 1 new building at level 2 or upgrade 2 existing buildings by 2 levels :)
Think its simplier than having to look and compare ;)
Also, I'm planing to remake production page to allow it to have list of buildings producing and cosuming below each resource :).

AD2 :) Yep, miss that too :):)

AD BUG: Bowsa re in database, reason could be that you do not produce them or produce them at 0 rate. There is a small check not to display resources that ar not being produced, however it sometimes works sometimes not :) So your bows are probably hidden untill you start producing them :)

Thank you for your thoughts :)

GacekSSJ4
18.03.12, 10:39
Hi, must say wonderful tool ;)

Thank you



-and also a tab maybe in the home page there you can select a adventure or manual input for r,b,c,lb and such on afterwitch a summary comes upp recources needed and time left to make em if you can implement it with storehouse functions you should be able to get it rather accurate and also count the bread witch is needed for every settler used.

Dont get it :) What is r,b,c,lb?


You can see other hourly production rates by hovering your cursor/mouse over the question mark (?) too the left of the name of each resource.
Exacly :) I know this view is not best but will get better as I rewrite it :)

Best regards :)

hades8840
16.04.12, 01:43
how do i import information the dso economic page does nothing has this at top Derzeit nicht mehr funktionsfδhig ... Installation laut Anleitung daher nicht mehr mφglich. which i think says no longer working...

redgoldgreen
17.04.12, 02:17
It also doesnt load anymore for me. It stops at 75%.
Anyone else has the same problem?/does know how to fix it?

Aerys_TarGaryen
17.04.12, 10:37
It also doesnt load anymore for me. It stops at 75%.
Anyone else has the same problem?/does know how to fix it?

the problem is not fixed and may never be fixed but the developer of the app is working on it

Telletto
27.06.12, 08:42
There are news?