Chill's patchpack v14_7

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

User avatar
NekoMaster
Tycoon
Tycoon
Posts: 4001
Joined: 16 Aug 2008 22:26
Skype: neko-master
Location: Oshawa, Ontario, CANADA

Re: Chill's patchpack v11_5

Post by NekoMaster »

Cadde wrote:
NekoMaster wrote:Im wondering if the code for train acceleration can be edited to provide the new acceleration code and the previous one because the new acceleration code is p***ing me off in that I can even use a single SD40-2 or two 1,600 HP SAR Class 19D steam locos to haul a 32 car train at 65 MPH.
There is always the Weight multiplier for freight to simulate heavy trains setting.

Doesn't that suffice?
Nope, because even on 1, my trains still struggle to get speed
Image Proud Canadian Image
Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
Cadde
Transport Coordinator
Transport Coordinator
Posts: 290
Joined: 07 Oct 2004 12:51

Re: Chill's patchpack v11_5

Post by Cadde »

NekoMaster wrote:Nope, because even on 1, my trains still struggle to get speed
Ah, you meant the other way around! That wasn't immediately clear to me...
With that said, what does a 32 cart fully loaded train weigh anyways? I am running with weight multiplier 2 and i don't see a problem with it at all. When i am using 2 E04-01 locos which gives me a combined 5870 hp for 21 carts. Total weight is ~4200 tons.
The max speed when fully loaded is 96 Km/H (59 MPH) which makes sense to me. Unloaded they travel at the full 109 Km/H (67 MHP).

I am using the 2CC trainset.
User avatar
NekoMaster
Tycoon
Tycoon
Posts: 4001
Joined: 16 Aug 2008 22:26
Skype: neko-master
Location: Oshawa, Ontario, CANADA

Re: Chill's patchpack v11_5

Post by NekoMaster »

I was using 2 SAR Class 19D (each 1600 HP/125KN TE) from the tropical rail set to haul a 32 car train hauling 870 tonnes of FIRS Stone. I was using OpenGFX trains for the wagons. In earlier nightlies and in the stables thats enough to get the train moving at full speed after some distance but now with the new code the same train can barely get past 52 MPH. Similar things happen when using 2 44 Class Locos, 1 SD40-2, 3 EMD F7's, 3 Alco FA-2's or Baldwin RF16's
Image Proud Canadian Image
Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
User avatar
ChillCore
Tycoon
Tycoon
Posts: 2858
Joined: 04 Oct 2008 23:05
Location: Lost in spaces

Re: Chill's patchpack v11_5

Post by ChillCore »

Sorry for not replying sooner.
Instead of frying my CPU, my modem was frozen, or something, it was defenatly broken. :(
Luckily all it took was one phonecall and a replacement was arranged, no questions asked, but as it happened during the weekend it took a little longer than normal to send it to me ...
Anyhoo Jack is back. :)


I had a little looksie at the changelog and it will take quite some merging to get the patchpack updated to trunk.
Devs have been quit busy this week it seems ...
Partial refit is in trunk and there is a new version of CargoDist and a few patches are broken again against recent trunk. Update will follow soon, I hope.

Anyone noticed something broken in the last version? Something else needs adjusting to daylenght?



@NekoMaster:
If you want to have the (broken) acceleration back, as an extra option, I will have to know when it changed exactly, so I can have a looksie at the exact change in the code.
As has been mentioned in the thread you made about this, some vehicle sets need adjusting to trunk for them to work correctly again which makes me wonder if adding the old acceleration is worth the effort. Maybe adjusting the default value for vehicle sets that do not provide the required values might improve the situation a bit and may be a better solution in the long run for sets that will not be updated.

Do you happen to know in what revision some vehicle sets stopped behaving as you expected?
Also, and this may sound like a stupid question, you have not enabled the "wagon speeds" in the advanced settings have you?
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.

Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
User avatar
NekoMaster
Tycoon
Tycoon
Posts: 4001
Joined: 16 Aug 2008 22:26
Skype: neko-master
Location: Oshawa, Ontario, CANADA

Re: Chill's patchpack v11_5

Post by NekoMaster »

ChillCore wrote: @NekoMaster:
If you want to have the (broken) acceleration back, as an extra option, I will have to know when it changed exactly, so I can have a looksie at the exact change in the code.
As has been mentioned in the thread you made about this, some vehicle sets need adjusting to trunk for them to work correctly again which makes me wonder if adding the old acceleration is worth the effort. Maybe adjusting the default value for vehicle sets that do not provide the required values might improve the situation a bit and may be a better solution in the long run for sets that will not be updated.

Do you happen to know in what revision some vehicle sets stopped behaving as you expected?
Also, and this may sound like a stupid question, you have not enabled the "wagon speeds" in the advanced settings have you?
I have enabled speed limits but even sometimes the train can't reach the max speed of the cars it hauls. Aparently air drag was added into the acceleration equation and I think that it could be moved to a new option "Air Drag" which can be enabled or disabled depending on what set(s) your using, so far I believe only the DB set has proper air drag values while other sets dont which means openttd assumes a default air drag value and thus comes the problem with not being able to get full speed.
Image Proud Canadian Image
Nekomasters Projects! (Downloads available on BaNaNaS!) \(>^w^<)/
# NARS ADD-ON SET 2CC | 2cc Rapid Transit For Me! (2ccRTFM) | 2cc Wagons In NML (2ccWIN)
# NML Category System (Organize your GRFS!) <- TT-Forums Exclusive Download!
User avatar
DJ Nekkid
Tycoon
Tycoon
Posts: 2141
Joined: 30 Nov 2006 20:33

Re: Chill's patchpack v11_5

Post by DJ Nekkid »

most recent 2cc-nightly have removed all airdrag, i.e. all is set to 00 :)
Member of the
ImageImage
User avatar
Lord Aro
Tycoon
Tycoon
Posts: 2369
Joined: 25 Jun 2009 16:42
Location: Location, Location
Contact:

Re: Chill's patchpack v11_5

Post by Lord Aro »

DJ Nekkid wrote:most recent 2cc-nightly have removed all airdrag, i.e. all is set to 00 :)
Sorry, but why? :?
AroAI - A really feeble attempt at an AI

It is practically impossible to teach good programming to students that have had a prior exposure to BASIC: as potential programmers they are mentally mutilated beyond hope of regeneration. --Edsger Dijkstra
User avatar
kamnet
Moderator
Moderator
Posts: 8705
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: Chill's patchpack v11_5

Post by kamnet »

Running chipp_v11_5_1_r25332 Win32 binary from ColdIce, I've noticed that buses are no longer receiving payment when unloading passengers.
Is this a bug or did something change that I've not caught on to?
Attachments
Whitchester Falls Transport, 1965-01-06.sav
(1.48 MiB) Downloaded 89 times
User avatar
ChillCore
Tycoon
Tycoon
Posts: 2858
Joined: 04 Oct 2008 23:05
Location: Lost in spaces

Re: Chill's patchpack v11_5

Post by ChillCore »

Yes and no.

Vehicle income is devided by daylength factor.
The route is so short that the vehicle income seems to be less than 1 with your current daylength setting of 40.
When reduced to 19 the income of your bus is $14 per trip ...

Something to check ... After I have fixed my current version. I have a crash when giving a bus orders.
After clicking the goto button the game exits when the pointer goes over a tile. Many codechanges in copypaste patch and other. Highlighting tiles is kaput somewhere. (Trunk at he same revision is fine in this case.)
It is not really obvious to me where it is broken for the moment as the tilehighlighting codechanges are spread over a few revisions while they were being fixed in trunk.

Thank you for the report.


Edit:
Would it be acceptable if the revenue is forced to 1 in case of being less than 1?
In that case you are still payed too much with very high daylenght settings but still less then 40 times the normal income.
That would be the easiest solution. Not ideal I know.
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.

Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
User avatar
kamnet
Moderator
Moderator
Posts: 8705
Joined: 28 Sep 2009 17:15
Location: Eastern KY
Contact:

Re: Chill's patchpack v11_5

Post by kamnet »

Another thing I've noticed - when starting a new game, the "Random Seed" isn't random anymore. It appears to be stuck on 1579221248.
User avatar
ChillCore
Tycoon
Tycoon
Posts: 2858
Joined: 04 Oct 2008 23:05
Location: Lost in spaces

Re: Chill's patchpack v11_5

Post by ChillCore »

That is my doings, it is a "feature" that I quite like.

It allows to start the same map with different parameters without having to search for the seed first in the console. eg more or less water, higher or lower terrain, number of towns, ...
I would like to have a random seed chosen when clicking "Ctrl + NewGame" from the mainmenu, but I have not yet done so ...

Just hit the button next to the random seed a few times if you want a different one.
-- .- -.-- / - .... . / ..-. --- .-. -.-. . / -... . / .-- .. - .... / -.-- --- ..- .-.-.-
--- .... / -.-- . .- .... --..-- / .- -. -.. / .--. .-. .- .. ... . / - .... . / .-.. --- .-. -.. / ..-. --- .-. / .... . / --. .- ...- . / ..- ... / -.-. .... --- --- -.-. .... --- --- ... .-.-.- / ---... .--.

Playing with my patchpack? Ask questions on usage and report bugs in the correct thread first, please.
All included patches have been modified and are no longer 100% original.
User avatar
Dwight_K._Schrute
Traffic Manager
Traffic Manager
Posts: 209
Joined: 01 Sep 2010 11:29

Re: Chill's patchpack v11_5

Post by Dwight_K._Schrute »

ChillCore wrote:That is my doings, it is a "feature" that I quite like.
And it's a great one ;)
Cadde
Transport Coordinator
Transport Coordinator
Posts: 290
Joined: 07 Oct 2004 12:51

Re: Chill's patchpack v11_5

Post by Cadde »

ChillCore wrote: Edit:
Would it be acceptable if the revenue is forced to 1 in case of being less than 1?
In that case you are still payed too much with very high daylenght settings but still less then 40 times the normal income.
That would be the easiest solution. Not ideal I know.
It's a tough one. If payment below $14 isn't possible (I.E below 1) then we could do something like:

X = daylength - 18
if X < 1 then X = 1
Y = random between 1 and X
if X = Y then pay 1 else pay 0.

Sorry, can't code it...

EDIT: The idea here is to pay on average 1 out of X times to get paid a little but not excessively much either.
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: Chill's patchpack v11_5

Post by Eddi »

obviously, the real solution is to implement fractional money.

there was a commit implementing fractional cargo production recently, it may be viable to reuse the concepts used there.
dimon22_g
Engineer
Engineer
Posts: 38
Joined: 17 Aug 2007 05:42
Location: Moscow

Re: Chill's patchpack v11_5

Post by dimon22_g »

I am playing rev 21532 with a few newgrfs on and started to crash at about the same time with the following message:

"Assertion failed at line 116 of c:\users\hotsteel\desktop\new folder (3)\src\cargotype.h: index < lngthof(CargoSpec::array)"

Happens when I click on the "show vehicles" on the map screen.
Save file is attached.
Attachments
crash.sav
emergency savegame
(860.55 KiB) Downloaded 92 times
User avatar
Dwight_K._Schrute
Traffic Manager
Traffic Manager
Posts: 209
Joined: 01 Sep 2010 11:29

Re: Chill's patchpack v11_5

Post by Dwight_K._Schrute »

Hey Chill,

is there an easy way for me to save the ticks per minute setting in my savegame or is that a bigger hack?

I have two games. One with 130 ticks and one with 100 and everytime I change between them I forget the damn setting.

It would be nice If you could help me with that :)
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: Chill's patchpack v11_5

Post by Eddi »

it's an easy thing. just change the flag in src/table/settings.h

note that additional effort is needed if you want to keep your old savegames.
User avatar
Dwight_K._Schrute
Traffic Manager
Traffic Manager
Posts: 209
Joined: 01 Sep 2010 11:29

Re: Chill's patchpack v11_5

Post by Dwight_K._Schrute »

Ok, thank you Eddi. I'm going to try that with a new game.

What happens if I start a game with my modified CPP 11_5 and want to continue it with a modified (possible) CPP 11_6. Does that work?
Eddi
Tycoon
Tycoon
Posts: 8289
Joined: 17 Jan 2007 00:14

Re: Chill's patchpack v11_5

Post by Eddi »

yes, that should work. you just can't mix modified and unmodified. might have to pay attention to the SAVEGAME_VERSION used in the definition of the setting.
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: No registered users and 17 guests