youth flatriders much too expensive????

Bug report

Moderator: systemmods

bergwerk cycling
Posts: 1566
Joined: Tue Apr 06, 2010 10:21 am
Contact:

youth flatriders much too expensive????

Post by bergwerk cycling » Thu Mar 20, 2025 10:45 am

Look since a longer time for cheap flatriders ... And cant find one.
Example cheapest now:
50-72-59-50-48 with 41 Reg 1.54 Mio
46-74-55-53-48 with 51!!! Reg aporox 1.4 Hone Heke

Something changed there? Or only lottery?

Elaska
Posts: 700
Joined: Sun Feb 21, 2010 10:14 am
Contact:

Re: youth flatriders much too expensive????

Post by Elaska » Thu Mar 20, 2025 12:26 pm

Maybe value under 50 mountain is very cheap?

I think Alk gave the formula somewhere else, if someone can post it here again for discussion?
2024-01-30 Big Donkey Elaska 1 Good move, good reading of the race, just the sprint didn't work out. High quality racing.

Hansa
Posts: 1141
Joined: Wed May 19, 2010 8:27 pm
Contact:

Re: youth flatriders much too expensive????

Post by Hansa » Thu Mar 20, 2025 12:51 pm

My young flat rider 22 now

49-74-72-53-46-36 reg was bought for 1.309 M just to give an example, i think there are 0 riders close to this value currently
Hansa

est. 03.08.2009

Robyklebt
Posts: 10299
Joined: Thu Feb 11, 2010 6:50 pm
Contact:

Re: youth flatriders much too expensive????

Post by Robyklebt » Thu Mar 20, 2025 6:04 pm

I think not only flat riders, before somebody mentioned this, while looking at a sprinter, I thought: Damn, that expensive? 77 sprint for more than 2 millions, thought they were cheaper.

But yes, looking a bit closer seems between the start of Tirreno and now something somehow changed (before Tirreno I was bidding on a guy who seemed a normal price, of course in one of the countless improvements we don't see his skills anymore if he wasn't bought, we used to be able to do that).

Example:
unnamed x935630042 48 64 54 50 52 61 36 20 $25,000 $1,179,897

Compared to Youssef Metawea (who Elaska stole from me.. grr) that seems a bit expensive?

Youssef Metawea: 46 69 77 50 47 62.1 35. Elaska payed 1'099'999 for him. 100% probably was around 1'1440xxx. Why is this one cheaper then the one on the market now? 2 mountain, counts, yes, 1 reg a bit too, but while downhill is cheap, 23 normally makes a difference?
Seems to me something in the calculation got weird?
Kraftsystemrevision! Include the distance!
Basics reform: Give blue a chance!
Don't punish bugusers. We all have to use bugs, since most of them are declared as "features"!
Got a carrot from FL. But they threaten to take it away now.

Alkworld
Posts: 1311
Joined: Sat Feb 27, 2010 8:40 pm
Contact:

Re: youth flatriders much too expensive????

Post by Alkworld » Thu Mar 20, 2025 7:12 pm

the one and meanwhile only market value calculation:

Code: Select all

        $age = ($rider->age < 21) ? 21 : $rider->age;
        $pave = $paveReal * 0.3 + $flach * 0.7;
        $marketValue = $rider->marketValue == 0 ? 3000000 : $rider->marketValue;
        
        $preis = 0;
        $preis = $preis + pow(45 + ($zeit - 45) * pow($berg, 2.96) / 550000 + max($berg, 40) + $regeneration / 2, 3.9) * 200;
        $flachpreis = (pow($flach, 4.62)) * 20;
        $bergpreis =  (pow($berg, 5.75)) / 4;
        $zeitpreis = (pow($zeit, 7.28)) / 3436;
        $sprintpreis = (pow($sprint, 6.21)) / 35 + ($sprint - 45) * 100 * 29000 * 40;
        $regenerationpreis = (pow($regeneration, 2.3)) * 300;
        $abfahrtpreis = (pow($abfahrt, 3)) * 8000;
        $paveExtraPreis = 0;

        if ($pave > 70) $paveExtraPreis = pow($pave - 70, 2.1) * 60 * 29000 * 40;
        else $paveExtraPreis = - (70 - $pave) * 100 * 29000 * 40;
        
        $preis = ($paveExtraPreis + $preis + $flachpreis + $bergpreis + $zeitpreis + $sprintpreis + $regenerationpreis + $abfahrtpreis) / 29000;
        $preis = $preis - ((($age - 25) * 100000 - ((pow(($age - 21), 2.28)))) / (3000000 / $marketValue));
        $preis += $rider->pointsCurrentSeason * 150;

team fl
Posts: 5143
Joined: Tue Mar 02, 2010 10:43 am
Contact:

Re: youth flatriders much too expensive????

Post by team fl » Thu Mar 20, 2025 7:49 pm

So, could you please inform the players about the changes and tell us more about these changes? Its abit odd when they themselves find out about it without notice. About changes that have an impact on the economic system of the game...
I didn't mean to say it. But I meant what I said.

Robyklebt
Posts: 10299
Joined: Thu Feb 11, 2010 6:50 pm
Contact:

Re: youth flatriders much too expensive????

Post by Robyklebt » Thu Mar 20, 2025 8:01 pm

Or if you didn't do any changes (which is what I suspect from the silence, although the communication of course is reaching new lows here on a daily basis, so might be wrong) tell us that. No changes and you're not sure if either we all suffer from delusions or indeed something unexpected happened that changed something and the prices went up. And if we continue to claim that the prices went up, maybe check it?
Kraftsystemrevision! Include the distance!
Basics reform: Give blue a chance!
Don't punish bugusers. We all have to use bugs, since most of them are declared as "features"!
Got a carrot from FL. But they threaten to take it away now.

Alkworld
Posts: 1311
Joined: Sat Feb 27, 2010 8:40 pm
Contact:

Re: youth flatriders much too expensive????

Post by Alkworld » Thu Mar 20, 2025 10:10 pm

team fl wrote:
Thu Mar 20, 2025 7:49 pm
So, could you please inform the players about the changes and tell us more about these changes? Its abit odd when they themselves find out about it without notice. About changes that have an impact on the economic system of the game...
The last changes were in February (?) to fix the pave rider prices. If there's anything different, it wasn't intentional.

team fl
Posts: 5143
Joined: Tue Mar 02, 2010 10:43 am
Contact:

Re: youth flatriders much too expensive????

Post by team fl » Thu Mar 20, 2025 10:36 pm

Alkworld wrote:
Thu Mar 20, 2025 10:10 pm
team fl wrote:
Thu Mar 20, 2025 7:49 pm
So, could you please inform the players about the changes and tell us more about these changes? Its abit odd when they themselves find out about it without notice. About changes that have an impact on the economic system of the game...
The last changes were in February (?) to fix the pave rider prices. If there's anything different, it wasn't intentional.
what Mr. Klebt wrote. That's useful information, thanks :)
I didn't mean to say it. But I meant what I said.

Hansa
Posts: 1141
Joined: Wed May 19, 2010 8:27 pm
Contact:

Re: youth flatriders much too expensive????

Post by Hansa » Fri Mar 21, 2025 10:35 am

Alkworld wrote:
Thu Mar 20, 2025 7:12 pm
the one and meanwhile only market value calculation:

Code: Select all

        $age = ($rider->age < 21) ? 21 : $rider->age;
        $pave = $paveReal * 0.3 + $flach * 0.7;
        $marketValue = $rider->marketValue == 0 ? 3000000 : $rider->marketValue;
        
        $preis = 0;
        $preis = $preis + pow(45 + ($zeit - 45) * pow($berg, 2.96) / 550000 + max($berg, 40) + $regeneration / 2, 3.9) * 200;
        $flachpreis = (pow($flach, 4.62)) * 20;
        $bergpreis =  (pow($berg, 5.75)) / 4;
        $zeitpreis = (pow($zeit, 7.28)) / 3436;
        $sprintpreis = (pow($sprint, 6.21)) / 35 + ($sprint - 45) * 100 * 29000 * 40;
        $regenerationpreis = (pow($regeneration, 2.3)) * 300;
        $abfahrtpreis = (pow($abfahrt, 3)) * 8000;
        $paveExtraPreis = 0;

        if ($pave > 70) $paveExtraPreis = pow($pave - 70, 2.1) * 60 * 29000 * 40;
        else $paveExtraPreis = - (70 - $pave) * 100 * 29000 * 40;
        
        $preis = ($paveExtraPreis + $preis + $flachpreis + $bergpreis + $zeitpreis + $sprintpreis + $regenerationpreis + $abfahrtpreis) / 29000;
        $preis = $preis - ((($age - 25) * 100000 - ((pow(($age - 21), 2.28)))) / (3000000 / $marketValue));
        $preis += $rider->pointsCurrentSeason * 150;
Ich versuche da grade durchzusteigen und paar Fahrerwerte nachzurechnen, ich verstehe aber nicht was diese Zeile tut,
$marketValue = $rider->marketValue == 0 ? 3000000 : $rider->marketValue;
Vorallem verstehe ich nicht welchen marketValue wert sie hier Überprüft, um am ende den Preis auszurechnen brauche ich aber den MarketValue wert, wo kommt dieser her?
$preis += $rider->pointsCurrentSeason * 150;
Und diese Zeile bedeutet dass der Preis eines Fahrers um 150 pro Punkte steigt? das ist gefühlt ziemlich viel.
Hansa

est. 03.08.2009

User avatar
flockmastoR
Posts: 3532
Joined: Thu Feb 18, 2010 11:42 pm
Contact:

Re: youth flatriders much too expensive????

Post by flockmastoR » Fri Mar 21, 2025 10:59 am

Hansa wrote:
Fri Mar 21, 2025 10:35 am
Alkworld wrote:
Thu Mar 20, 2025 7:12 pm
the one and meanwhile only market value calculation:

Code: Select all

        $age = ($rider->age < 21) ? 21 : $rider->age;
        $pave = $paveReal * 0.3 + $flach * 0.7;
        $marketValue = $rider->marketValue == 0 ? 3000000 : $rider->marketValue;
        
        $preis = 0;
        $preis = $preis + pow(45 + ($zeit - 45) * pow($berg, 2.96) / 550000 + max($berg, 40) + $regeneration / 2, 3.9) * 200;
        $flachpreis = (pow($flach, 4.62)) * 20;
        $bergpreis =  (pow($berg, 5.75)) / 4;
        $zeitpreis = (pow($zeit, 7.28)) / 3436;
        $sprintpreis = (pow($sprint, 6.21)) / 35 + ($sprint - 45) * 100 * 29000 * 40;
        $regenerationpreis = (pow($regeneration, 2.3)) * 300;
        $abfahrtpreis = (pow($abfahrt, 3)) * 8000;
        $paveExtraPreis = 0;

        if ($pave > 70) $paveExtraPreis = pow($pave - 70, 2.1) * 60 * 29000 * 40;
        else $paveExtraPreis = - (70 - $pave) * 100 * 29000 * 40;
        
        $preis = ($paveExtraPreis + $preis + $flachpreis + $bergpreis + $zeitpreis + $sprintpreis + $regenerationpreis + $abfahrtpreis) / 29000;
        $preis = $preis - ((($age - 25) * 100000 - ((pow(($age - 21), 2.28)))) / (3000000 / $marketValue));
        $preis += $rider->pointsCurrentSeason * 150;
Ich versuche da grade durchzusteigen und paar Fahrerwerte nachzurechnen, ich verstehe aber nicht was diese Zeile tut,
$marketValue = $rider->marketValue == 0 ? 3000000 : $rider->marketValue;
Vorallem verstehe ich nicht welchen marketValue wert sie hier Überprüft, um am ende den Preis auszurechnen brauche ich aber den MarketValue wert, wo kommt dieser her?
$preis += $rider->pointsCurrentSeason * 150;
Und diese Zeile bedeutet dass der Preis eines Fahrers um 150 pro Punkte steigt? das ist gefühlt ziemlich viel.
Das ist der Marketwert vor dem Update. Genau dieses iterative berechnen der Fahrerwerte macht das fast unmöglich durchzusteigen, da man dass nicht einfach so "nachrechnen" kann, wie hat sich der Fahrer in der Zwischenzeit verändert (Training, Punkte). Ja ich denke die Punkteberechnung ist so. Naja Tarabesh hat aktuell 1677 Punkte also dadurch einen Marktwert der um 250k höher ist als der selbe Fahrer ohne Punkte, finde ich eigentlich ok
Boaz Trakhtenbrot:
  • Winner Giro 2022
  • 10 GC wins
  • 16.609 Eternal Points
__________________
Schrödinger's Dogs: Alive & Dead

Hansa
Posts: 1141
Joined: Wed May 19, 2010 8:27 pm
Contact:

Re: youth flatriders much too expensive????

Post by Hansa » Fri Mar 21, 2025 11:13 am

flockmastoR wrote:
Fri Mar 21, 2025 10:59 am


Das ist der Marketwert vor dem Update. Genau dieses iterative berechnen der Fahrerwerte macht das fast unmöglich durchzusteigen, da man dass nicht einfach so "nachrechnen" kann, wie hat sich der Fahrer in der Zwischenzeit verändert (Training, Punkte). Ja ich denke die Punkteberechnung ist so. Naja Tarabesh hat aktuell 1677 Punkte also dadurch einen Marktwert der um 250k höher ist als der selbe Fahrer ohne Punkte, finde ich eigentlich ok
Für neu erstellte 20 Jährige ist der Marktwert dann aber 0? und wird dementsprechend auf 3000000 gesetzt? dann könnte ich wenigstens für Jugendfahrer nachrechnen

Außerdem sagt Alk ja das ist jetzt die einzige Berechnung für MarketValue, wenn das die einzige berechnung ist dürfte es ja keinen Vorherigen market Value mehr geben
Hansa

est. 03.08.2009

Hansa
Posts: 1141
Joined: Wed May 19, 2010 8:27 pm
Contact:

Re: youth flatriders much too expensive????

Post by Hansa » Fri Mar 21, 2025 11:35 am

Robyklebt wrote:
Thu Mar 20, 2025 6:04 pm


Example:
unnamed x935630042 48 64 54 50 52 61 36 20 $25,000 $1,179,897

hav tried to take the calculation alk posted and create a Google Sheet for calculating, used this rider as example and got a different value,

i also tried some other riders from Youth market and from the normal market, i got 0 Calculations with this correct.

Maybe someone who understand the code alk posted can try to check my Sheet for mistakes, or if there are no mistakes Alk should check why the Values dont fit.

https://docs.google.com/spreadsheets/d/ ... id=0#gid=0
Hansa

est. 03.08.2009

Drunkenbolds
Posts: 19
Joined: Mon Jan 20, 2025 8:41 pm
Contact:

Re: youth flatriders much too expensive????

Post by Drunkenbolds » Fri Mar 21, 2025 12:27 pm

Hansa wrote:
Fri Mar 21, 2025 11:35 am
Robyklebt wrote:
Thu Mar 20, 2025 6:04 pm


Example:
unnamed x935630042 48 64 54 50 52 61 36 20 $25,000 $1,179,897

hav tried to take the calculation alk posted and create a Google Sheet for calculating, used this rider as example and got a different value,

i also tried some other riders from Youth market and from the normal market, i got 0 Calculations with this correct.

Maybe someone who understand the code alk posted can try to check my Sheet for mistakes, or if there are no mistakes Alk should check why the Values dont fit.

https://docs.google.com/spreadsheets/d/ ... id=0#gid=0
To me this snippet looks like it doesnt modify the marketValue at all but rather the actual price you can buy the rider. Its impossible to get that right unless you know the value of $zeit from this line:
$preis = $preis + pow(45 + ($zeit - 45) * pow($berg, 2.96) / 550000 + max($berg, 40) + $regeneration / 2, 3.9) * 200;

Unless $preis actually is the marketValue of course and the current "preis" is calculated with another variable. But that would mean that $zeit also affects the marketValue.

This line looks maybe exists only to prevent riders to exist with no marketValue, it just checks if its 0 -> if true set value to 3.000.000, otherwise keep the value
$marketValue = $rider->marketValue == 0 ? 3000000 : $rider->marketValue;

My guess is that the initial marketValue gets calculated when youth riders are generated and maybe recalculated at season change?

I could be wrong though, I´m no PHP guy and rather new to the game still ^^
Cheers

Hansa
Posts: 1141
Joined: Wed May 19, 2010 8:27 pm
Contact:

Re: youth flatriders much too expensive????

Post by Hansa » Fri Mar 21, 2025 1:34 pm

Drunkenbolds wrote:
Fri Mar 21, 2025 12:27 pm


To me this snippet looks like it doesnt modify the marketValue at all but rather the actual price you can buy the rider. Its impossible to get that right unless you know the value of $zeit from this line:
$preis = $preis + pow(45 + ($zeit - 45) * pow($berg, 2.96) / 550000 + max($berg, 40) + $regeneration / 2, 3.9) * 200;

Unless $preis actually is the marketValue of course and the current "preis" is calculated with another variable. But that would mean that $zeit also affects the marketValue.

This line looks maybe exists only to prevent riders to exist with no marketValue, it just checks if its 0 -> if true set value to 3.000.000, otherwise keep the value
$marketValue = $rider->marketValue == 0 ? 3000000 : $rider->marketValue;

My guess is that the initial marketValue gets calculated when youth riders are generated and maybe recalculated at season change?

I could be wrong though, I´m no PHP guy and rather new to the game still ^^
Cheers
the price is set to 0 in the line above that,
$zeit is the timetrial skill, so this line just adds some value dependent on Reg,Mountain and time trial.

the market value is just needed once
$preis = $preis - ((($age - 25) * 100000 - ((pow(($age - 21), 2.28)))) / (3000000 / $marketValue));
if its set to 3000000 this part just is 1
(3000000 / $marketValue)
but as i dont know if its set to 3000000 because i dont know where this value comes at all (espacially for new created riders) if its 0 for new created riders then this would make sense, but alk needs to tell me where this comes from because if its not 0 i need the calculation for this one too.
Hansa

est. 03.08.2009

Alkworld
Posts: 1311
Joined: Sat Feb 27, 2010 8:40 pm
Contact:

Re: youth flatriders much too expensive????

Post by Alkworld » Fri Mar 21, 2025 1:55 pm

The value calculation is done for new riders and on month change. For new riders, there's no marketValue initially, so it's defaulted for the calculation to 3M, on month change, this variable is set to the previous value.
However, I never really analyzed this calculation, so I don't know why Buh and leso did it that way. So thanks for looking a bit deeper here :)

Hansa
Posts: 1141
Joined: Wed May 19, 2010 8:27 pm
Contact:

Re: youth flatriders much too expensive????

Post by Hansa » Fri Mar 21, 2025 1:57 pm

Alkworld wrote:
Fri Mar 21, 2025 1:55 pm
The value calculation is done for new riders and on month change. For new riders, there's no marketValue initially, so it's defaulted for the calculation to 3M, on month change, this variable is set to the previous value.
However, I never really analyzed this calculation, so I don't know why Buh and leso did it that way. So thanks for looking a bit deeper here :)
so if its set for 3M for new riders my google sheet document should be correct with the forumla you gave us, but the value i get and the values on the market dont add up then
Hansa

est. 03.08.2009

Hansa
Posts: 1141
Joined: Wed May 19, 2010 8:27 pm
Contact:

Re: youth flatriders much too expensive????

Post by Hansa » Fri Mar 21, 2025 3:22 pm

so i now even threw the code in an online php sandbox and the values the code gives match my excel sheet (except for small rounding differences) but it doesnt fit at all the Market Value of the riders on the market (differences of up to 400K in both directions)
Hansa

est. 03.08.2009

Drunkenbolds
Posts: 19
Joined: Mon Jan 20, 2025 8:41 pm
Contact:

Re: youth flatriders much too expensive????

Post by Drunkenbolds » Fri Mar 21, 2025 4:50 pm

Did the same thing now as Hansa. Got the same numbers as in his XL sheet.

Alkworld
Posts: 1311
Joined: Sat Feb 27, 2010 8:40 pm
Contact:

Re: youth flatriders much too expensive????

Post by Alkworld » Fri Mar 21, 2025 7:06 pm

The marketValue is not defaulted in the code when creating new riders (something like $rider->marketValue = 0), maybe on the server it's filled with random values (such things are sometimes different on different infrastructure). I'll have to try that one out.

Alkworld
Posts: 1311
Joined: Sat Feb 27, 2010 8:40 pm
Contact:

Re: youth flatriders much too expensive????

Post by Alkworld » Sat Mar 22, 2025 10:50 am

I created a small script that everybody can use for testing. Don't worry, nothing can happen in that script, it's just printing data, not saving anything to the database. You can change the values in the URL to the values you want to test with.
And yes, this initial value thing is what made the flat riders expensive. Now we have to find the right setting.

https://cycling4freaks.com/c4f-3.0-test ... ue=1000000

Alkworld
Posts: 1311
Joined: Sat Feb 27, 2010 8:40 pm
Contact:

Re: youth flatriders much too expensive????

Post by Alkworld » Sat Mar 22, 2025 11:10 am

I was trying to find out why I added this initial value in the calculation, but couldn't find any reason :D In the old code, it's always set to 0, so it's just unnecessary. I guess the solution is just to remove that again.

Edit: I think I found the issue now, the test script now shows the value both for how it is now and with the potential fix

Alkworld
Posts: 1311
Joined: Sat Feb 27, 2010 8:40 pm
Contact:

Re: youth flatriders much too expensive????

Post by Alkworld » Sun Mar 23, 2025 10:57 am

If what I wrote before is correct, cheap riders were too expensive and the closer the value gets to 3M, the less it mattered. I did a fix now, but it'll only apply to newly created riders and on month change. So on 1st of April, all riders should again have the expected value.

Hansa
Posts: 1141
Joined: Wed May 19, 2010 8:27 pm
Contact:

Re: youth flatriders much too expensive????

Post by Hansa » Fri Mar 28, 2025 11:08 am

Alkworld wrote:
Sun Mar 23, 2025 10:57 am
If what I wrote before is correct, cheap riders were too expensive and the closer the value gets to 3M, the less it mattered. I did a fix now, but it'll only apply to newly created riders and on month change. So on 1st of April, all riders should again have the expected value.
Can you tell us what exactly was changed to your earlier posted code now? because if i try it the value i get still doesnt fit the code you gave us there.
and you quick script you gave us is also borken now so i cant even check with that script if the values now fit.
Hansa

est. 03.08.2009

Alkworld
Posts: 1311
Joined: Sat Feb 27, 2010 8:40 pm
Contact:

Re: youth flatriders much too expensive????

Post by Alkworld » Fri Mar 28, 2025 3:24 pm

$preis = 0;
$preis = $preis + pow(45 + ($zeit - 45) * pow($berg, 2.96) / 550000 + max($berg, 40) + $regeneration / 2, 3.9) * 200;
$flachpreis = (pow($flach, 4.62)) * 20;
$bergpreis = (pow($berg, 5.75)) / 4;
$zeitpreis = (pow($zeit, 7.28)) / 3436;
$sprintpreis = (pow($sprint, 6.21)) / 35 + ($sprint - 45) * 100 * 29000 * 40;
$regenerationpreis = (pow($regeneration, 2.3)) * 300;
$abfahrtpreis = (pow($abfahrt, 3)) * 8000;
$paveExtraPreis = 0;

if ($pave > 70) $paveExtraPreis = pow($pave - 70, 2.1) * 60 * 29000 * 40;
else $paveExtraPreis = - (70 - $pave) * 100 * 29000 * 40;

$preis = ($paveExtraPreis + $preis + $flachpreis + $bergpreis + $zeitpreis + $sprintpreis + $regenerationpreis + $abfahrtpreis) / 29000;
$preis = $preis - ((($age - 25) * 100000 - ((pow(($age - 21), 2.28)))) / (3000000 / $preis));
$preis += $rider->pointsCurrentSeason * 150;
The change is marked bold (almost at the end, original value (or 3M) replaced by $preis)

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest