Page 1 of 2
some economic changes and more
Posted: 20 Apr 2004 16:41
by ks
at first, sorry for my englisch
why i post? the AI lose or dont loan more money to build his first train
a Suggestions to fix it is, ....
if (p->player_money > 1.1 * _economy.max_loan ) { // Decrease loan
else if (p->player_money < _economy.max_loan) { // Increase loan
are not optimal, but better as now(i think)
a 2nd mod are a new news(for the Player/AI, bases on a idea to implements shares&co),
it prints with startig a new year
revenue
operation profit
and compare it with the years before, ......a little statistic
the code work, only few text are missing
at last, it is unfortunate openTT are in C/C++, but it's not hard to modify it with new things(how i can help?). Only more documentation are need!
the 0.3.0 release are great, crash only sometimes,.......the best release

, few bugs i know only.....
Posted: 20 Apr 2004 17:50
by SF3
I would like the idea of a more detailed year balance than the one we get now. Including at least turnover, operation profit etc. And maybe more detailed economic stuff. The one we get now is so limited and doesn't really make me feel like I'm running a company.
Re: some economic changes and more
Posted: 20 Apr 2004 18:00
by Bjarni
ks wrote:at first, sorry for my englisch

Spelling English right might make it more understandable

(that was the only error I saw, so if you didn't wrote that, nobody would have said anything about poor spelling)
ks wrote:at last, it is unfortunate openTT are in C/C++, but it's not hard to modify it with new things(how i can help?). Only more documentation are need!

Why is it unfortunate, that OpenTT is written in C?
And the way you can help is getting the newest svn, modifying it and upload a diff to sourceforge patch section with a description of what it does
Re: some economic changes and more
Posted: 20 Apr 2004 18:40
by ks
Bjarni wrote:ks wrote:at first, sorry for my englisch

Spelling English right might make it more understandable

(that was the only error I saw, so if you didn't wrote that, nobody would have said anything about poor spelling)
ks wrote:at last, it is unfortunate openTT are in C/C++, but it's not hard to modify it with new things(how i can help?). Only more documentation are need!

Why is it unfortunate, that OpenTT is written in C?
And the way you can help is getting the newest svn, modifying it and upload a diff to sourceforge patch section with a description of what it does
i "hate" C/C++

but it is a other story
i have always the newst svn code

but, upload?! and a diff? i can try it

Posted: 20 Apr 2004 20:32
by ks
here, a png with a news

Re: some economic changes and more
Posted: 20 Apr 2004 20:33
by MagicBuzz
ks wrote:i "hate" C/C++

but it is a other story

ways the newst svn code

but, upload?! and a diff? i can try it

I agree, this language is too much permissive and can become quickly unmaintenable.
But it's a "high performance" level and very common language, so I is still a good choice.
Posted: 20 Apr 2004 21:05
by MagicBuzz
ks wrote:here, a png with a news

Could you post an english version of your picture

Posted: 20 Apr 2004 21:21
by ks
MagicBuzz wrote:ks wrote:here, a png with a news

Could you post an english version of your picture

here

Posted: 21 Apr 2004 02:32
by ChrisCF
For now:
1. You appear to be missing some control codes at the end of each line before the )
2. Revenue should be the sum of the four income values, plus any income from selling shares in another company. This last part is bundled into the "other" line, and can't easily be extracted, so you are looking at just using the four "income" lines and titling them "operating revenue". What you have done there is added up the unsigned values of all the rows, i.e. revenue + expenditure. There is another word for this, but I can't think what it is.
3. Similarly, "operating profit" = "operating revenue" - "running costs", which I think is similar to EBITDA. The figure you're probably aftre there is "total profit"
4. Disable display of the "last year" field for the first game year, or when the date is changed (should such a feature ever be incorporated).
For reference:
1. The usual name for such figures in English English is "Results" rather than "Values", so "That Company publishes their results for (period)"
2. Possibly include a change, as well as previous year figures, e.g. "Profit: £xxxxx (Last year: £xxxxx : +1.0%)" though this is easy enough to do.
Nide idea, though. That way, people can kill the balance sheet every year, and just look at some key figures. They cna pull up their balance sheet later if they need the details.
A more general suggestion for the team: any chance of (optionally) accounting the financial year rather than the calendar year, i.e. popping up the accounts on April 6, showing the figures from 06/04/Previous to 05/04/Current?
Posted: 21 Apr 2004 06:24
by ks
it was only a sample, not finished
1. atm ott draw each line, with out using {} = \n
because, better revenue/profit are printed in gold, worst in red, last year are allways in gray
2.-3. i change it, but it is hard to find in ott the right lines, .....
with the selling shares, the "other" line are other
Revenue = all icome + all running cost + other , should be better
pre-profit = all icome + other(if only it is profit)
profit = no change....
4. hm, but is more code

last year shows after the first game year allways 0,....
------
1. thanks
2. i try it to change it
A more general suggestion for the team: any chance of (optionally) accounting the financial year rather than the calendar year, i.e. popping up the accounts on April 6, showing the figures from 06/04/Previous to 05/04/Current?
atm no, should be possible

Posted: 21 Apr 2004 10:54
by ChrisCF
ks wrote:it was only a sample, not finished
We know, just providinde some helpful hints.
pre-profit = all icome + other(if only it is profit)
The problem here is that "Other" has +ve and -ve parts to it that we don't see, so it would be an underestimate, since any -ve costs would reduce the figure from what we need. A revenue figure (which is what that line *should* read) should be absolute, and include no deductions whatsoever, which is why I suggested not taking "Other" into account on that line
One more thing, typically we know which year a company started, but if we know in which quarter they started (since some AI companies will start maybe in Q2 or Q3), a possibility might be those companies publishing their results at the same time in the year as they were originally founded, i.e. a company started in September publishes results in September. Just a suggestion, and I'll see if I get time to actually work on it. In the meantime, drum up a set of patches so people can play with it (preferably against the latest code in the subversion repo), and try fiddling.
This news item could turn out ot be an interesting "feature"

Posted: 21 Apr 2004 13:41
by ks
the ai saved only his start year or? not the year and quartal?! (doku are missing

)
a next idea/proof of concept are creates some tax, why?(0%-50%)
a city has money to build own buildings

has own tax for each company(so earn money)
with captivate/bribery(babblefish *g*) you can move the tax down
city tax only for passengers, valubres and mail
all other have industry tax, are global..... i am working on a concept which are easy to implements and more economic

Posted: 21 Apr 2004 18:26
by ks
here the new "news"
profit should profit and not Profit (translation error only

.....)
Code: Select all
STR_C0060_UMSATZ_BETTER_BETTER :{BLACK}{STRING} meldet seitegenden Umsatz {GREEN}{COMMA32}% {BLACK} und Gewinn {GREEN}{COMMA32}%
STR_C0061_UMSATZ_BETTER_WORST :{BLACK}{STRING} setzte auf starke expansion und steigerte somit Umsatz {GREEN}{COMMA32}%{BLACK} aber verlor an Gewinn {RED}-{COMMA32}%
STR_C0062_UMSATZ_WORST_BETTER :{BLACK}{STRING} setzte auf optimierung und verlor damit an Umsatz {RED}-{COMMA32}%{BLACK} steigerte dafür den Gewinn {GREEN}{COMMA32}%
STR_C0063_UMSATZ_WORST_WORST :{BLACK}Schwere Krise bei {STRING} weder Umsatz {RED}-{COMMA32}%{BLACK} noch Gewinn über {RED}-{COMMA32}% {BLACK}stiegen sondern stürzten ab
german
Code: Select all
STR_C0060_UMSATZ_BETTER_BETTER :{BLACK}{STRING} announces more Revenue {GREEN}{COMMA32}% {BLACK} and profit {GREEN}{COMMA32}%
STR_C0061_UMSATZ_BETTER_WORST :{BLACK}{STRING} sets on expansion and get more Revenue {GREEN}{COMMA32}%{BLACK} but lose profit {RED}-{COMMA32}%
STR_C0062_UMSATZ_WORST_BETTER :{BLACK}{STRING} optimize his self and lose Revenue {RED}-{COMMA32}%{BLACK} but get more profit {GREEN}{COMMA32}%
STR_C0063_UMSATZ_WORST_WORST :{BLACK}Hard Crisis at {STRING}, it lose Revenue {RED}-{COMMA32}%{BLACK} and profit {RED}-{COMMA32}%{BLACK}
english worst translation

Posted: 21 Apr 2004 20:05
by m1lamb3r
in the last picture you have got -33,000,000% but it's imposibble to heve a minus lower than 100%.
Posted: 21 Apr 2004 21:00
by Lilman424
yes it is.
What if you go from $100 to -$100?
that's a -200% change.
Posted: 22 Apr 2004 11:48
by m1lamb3r
i meant the revenue, taht can't be under 0% (unless you pay people to get on your bus/train)
Posted: 22 Apr 2004 23:37
by Lilman424
hmm
what's the calculation for percent?
it should be this_year/last_year*100, which should provide correct percentage for zero...
(0/anynumber * 100) == 0, and if the last year has no revenue, it should have an exception, of course, because of division by zero....
Posted: 24 Apr 2004 17:22
by ks
right, but i add one zu old and new value => no division by zero

not 100% correct buy nobody recalculate it with a calculator
any more ideas? how to calculate ?

it is not easy :/
Posted: 06 Jul 2004 16:51
by Giggel
What happened with this idea until now?
I like this Idea very mutch...
By,
Giggel
Posted: 13 Jul 2004 00:08
by DavidPartay
Why not just tell it to test if the value it will divide by is zero before doing the calculation?
If you tell it to test, then you can tell it to 'assume' a value instead of doing that risky little calculation

.
Even if it's a float value of 0.0001, you can still divide by that number, you only need to test for true 0 unless it's rounded which I'm pretty sure float values aren't.