Skip to content

Conversation

@smurfix
Copy link

@smurfix smurfix commented Mar 29, 2023

This merges the slow-pace mod to OpenTTD Mainline.

Checklist for review

Some things are not automated, and forgotten often. This list is a reminder for the reviewers.

  • The bug fix is important enough to be backported? (label: 'backport requested')
  • This PR touches english.txt or translations? Check the guidelines
  • This PR affects the save game format? (label 'savegame upgrade')
  • This PR affects the GS/AI API? (label 'needs review: Script API')
    • ai_changelog.hpp, gs_changelog.hpp need updating.
    • The compatibility wrappers (compat_*.nut) need updating.
  • This PR affects the NewGRF API? (label 'needs review: NewGRF')

translators and others added 30 commits January 19, 2023 18:45
english (au): 6 changes by krysclarke
chinese (simplified): 3 changes by XiaoJi-Game, 1 change by ZZY2357
arabic (egypt): 11 changes by AviationGamerX
korean: 3 changes by telk5093
indonesian: 8 changes by K4smun1
For bridges, a max speed of 0xFFFF (i.e. no effective limit)
 is no longer displayed as a limit in the UI.

A max speed of 0 is also considered unlimited, for similarity to the
 roadtype and railtype interface.
dutch: 4 changes by Afoklala
english (au): 4 changes by krysclarke
…n those displayed in GUI (OpenTTD#10227)

* Change: Store "all time" and "since minimum age" last year profits on groups

* Fix: Update last year profit for groups when copying vehicle statistics on autoreplace

* Codechange: Refactor profit last year

* Change: Rename some group related items for clarity

* Change: Reorder the fields in GroupStatistics

That way less memory gets wasted.
english (us): 4 changes by 2TallTyler
romanian: 10 changes by bnegrut
russian: 4 changes by Ln-Wolf
portuguese: 4 changes by azulcosta
spanish: 4 changes by MontyMontana
finnish: 8 changes by hpiirai
polish: 4 changes by pAter-exe
korean: 4 changes by telk5093
This replaces C-style memory management.
Variable scope is also tweaked in a couple of cases reducing line count.
@smurfix smurfix changed the title Slow 13 Ported to OpenTTD mainline Mar 29, 2023
@kaomoneus
Copy link
Owner

Hello! Sorry, I didn't notice your pr, was a bit out of business. Are you still interested in it?

@smurfix
Copy link
Author

smurfix commented May 17, 2023

Yep.

@kaomoneus
Copy link
Owner

kaomoneus commented May 17, 2023

OK. Am I right, that this PR intended to sync SlowPace mod with latest OpenTTD version? If so, I think I'll have time to work on it at Sunday. Did you apply some additional custom changes? Could If so, could you please highlight first of them?
Thank you!

@smurfix
Copy link
Author

smurfix commented May 17, 2023

It's been some time but AFAIR no.

@pippin88
Copy link

I am also very keen to see Slow Pace updated to / merged with 13.1

@kaomoneus
Copy link
Owner

Hey guys! Sorry for latency. I started merging process. So far I visually checked for conflicts. Still have to compile/test it before release. Feel free to check it. All merging process will be here:
https://github.com/kaomoneus/OpenTTD/tree/slow_pace-merge-13

@kaomoneus
Copy link
Owner

@smurfix are here any chances that we merge it into mainstream repo?

@smurfix
Copy link
Author

smurfix commented Sep 15, 2023

Go ahead and play with it / merge / do whatever it takes.

As for myself I have roughly a negative month of free time until at least the end of the year, life being what it is, so I can't be of much help.

@kaomoneus
Copy link
Owner

negative month
ahah, same here.. this is why I slow-paced the work on slow-pace mod

@kaomoneus
Copy link
Owner

@smurfix , @pippin88 mostly done. It's only remained to fix builds for emscripten and Linux. Feel free to contribute with this. See https://github.com/kaomoneus/OpenTTD/actions/runs/6288959187 for details.

@pippin88
Copy link

Thank you - I'm sorry, I don't know enough programming to be any help

@S-Rafael
Copy link

The error on the Linux build seems to be from failing to build Python 3 and looks identical to this issue:
microsoft/vcpkg#33080
Perhaps some extra dependencies are needed (see comments on that issue).

@kaomoneus
Copy link
Owner

The error on the Linux build seems to be from failing to build Python 3 and looks identical to this issue: microsoft/vcpkg#33080 Perhaps some extra dependencies are needed (see comments on that issue).

Thank you for the hint! Will check it!

@kaomoneus
Copy link
Owner

kaomoneus commented Oct 1, 2023

The error on the Linux build seems to be from failing to build Python 3 and looks identical to this issue: microsoft/vcpkg#33080 Perhaps some extra dependencies are needed (see comments on that issue).

Well it doesn't help. Just checked it on mainstream master and release/13 branches, it also fails. No issues on mainstream bugtracker though. Looks weird.

@S-Rafael
Copy link

S-Rafael commented Oct 1, 2023

Well it doesn't help. Just checked it on mainstream master and release/13 branches, it also fails. No issues on mainstream bugtracker though. Looks weird.

I looked at the master branch in your fork and the Linux build was actually successful. A few pipeline steps are showing as failed but they seem to have been manually cancelled? See here for example:
https://github.com/kaomoneus/OpenTTD/actions/runs/6372056866/job/17294535505

@kaomoneus
Copy link
Owner

Well it doesn't help. Just checked it on mainstream master and release/13 branches, it also fails. No issues on mainstream bugtracker though. Looks weird.

I looked at the master branch in your fork and the Linux build was actually successful. A few pipeline steps are showing as failed but they seem to have been manually cancelled? See here for example: https://github.com/kaomoneus/OpenTTD/actions/runs/6372056866/job/17294535505

The latest build of master is this one:
https://github.com/kaomoneus/OpenTTD/actions/runs/6372060217

As I can see linux step fails
image

from logs I can see still the very similar message:

installed/x64-linux/share/vcpkg-cmake/vcpkg_cmake_configure.cmake:252 (vcpkg_execute_required_process)
    ports/dbus/portfile.cmake:24 (vcpkg_cmake_configure)
    scripts/ports.cmake:147 (include)
  
  
  error: building dbus:x64-linux failed with: BUILD_FAILED
  Elapsed time to handle dbus:x64-linux: 13 s
  Please ensure you're using the latest port files with `git pull` and `vcpkg update`.
  Then check for known issues at:
    https://github.com/microsoft/vcpkg/issues?q=is%3Aissue+is%3Aopen+in%3Atitle+dbus
  You can submit a new issue at:
    https://github.com/microsoft/vcpkg/issues/new?title=[dbus]+Build+error&body=Copy+issue+body+from+%2Fvcpkg%2Finstalled%2Fvcpkg%2Fissue_body.md
  
  Error: Process completed with exit code 1.

@kaomoneus
Copy link
Owner

Now I see, that rust and vcpkg caches are not found by workflow of my fork, and yet same workflow (and same commit) mainstream successfully restores cache for both cases...

@kaomoneus
Copy link
Owner

kaomoneus commented Oct 7, 2023

Finally I have fixed Linux(Generic), I have even created an issue on mainstream: OpenTTD#11356
It has been closed though...
Hopefully soon I'll publish SlowPace release for 13.4.

@kaomoneus
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.