Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

[1.8.0] Compiling & Running on Arch Linux 2 years 4 months ago #6694

It's pretty easy, make a file called "PKGBUILD" with the following contents, then run "makepkg -si". After installing, you can start openttd by running "openttd" like usual. The packages "openttd-opengfx", "openttd-openmsx" and "openttd-opensfx" are necessary for graphics, music and sound, respectively.

Warning: Spoiler! [ Click to expand ]


EDIT: PS: Thank you, once again, BTPro devs for making this wonderful client.
The following user(s) said Thank You: ST2
  • gentz
  • Topic Author
  • Offline
  • Fresh BTPro Poster
  • Fresh BTPro Poster
  • Posts: 6
  • Thank you received: 6

Please Log in or Create an account to join the conversation.

Last edit: by gentz.

[1.8.0] Compiling & Running on Arch Linux 2 years 4 months ago #6699

I found that powerfunnding was broken, so I wrote this first patch bellow. Apply with:
patch -p1 < "../powerfundfix.diff"

I'm working on a smart leveler, which will continually retry to level your land for you. Patch for that is also includes bellow.
patch -p1 --ignore-whitespace < ../gentz-leveler-patch.diff
It's got a couple issues:
- If the highest/lowest tile can not be leveled (radar tower, bridge, road, nearby mountain, ect are in the way) it will keep trying to level that place.
- On servers, there is some sort of command throttling. This manifests in a delay to all your actions, including chatting. 300MS delay added.
- Command issuing delay means we don't see the new height of a tile till a couple calls latter. Causes wasted money, as we do unneeded terraforming operations.
- It will fallback to decreasing/increasing height one tile at a time. Optimizations could allow more, but meh.

The last two problems could probably fixed by putting my code in the write place. If you know where that right place is, please tell me.
  • gentz
  • Topic Author
  • Offline
  • Fresh BTPro Poster
  • Fresh BTPro Poster
  • Posts: 6
  • Thank you received: 6

Please Log in or Create an account to join the conversation.

Last edit: by gentz.

[1.8.0] Compiling & Running on Arch Linux 2 years 4 months ago #6700

Powerfund fix:
diff --git a/src/lang/english.txt b/lang/english.txt
index 4a8b4a1..e646b08 100644
--- a/src/lang/english.txt
+++ b/src/lang/english.txt
@@ -5221,7 +5221,5 @@ STR_TTE_STATION                                                 :{WHITE}{STRING}
 STR_LAND_AREA_INFORMATION_POP                                   :{BLACK}Population: {LTBLUE}{NUM}
 
-STR_CONFIG_SETTING_POWERFUND_MONEY                              :Powerfund minimum needed money for fund: {STRING2}
-STR_CONFIG_SETTING_POWERFUND_HOUSES                             :Maximum amount of houses to powerfund up to
 
 ######## Zoning toolbar
 
diff --git a/settings_type.h b/settings_type.h
index 6a84a11..4419e22 100644
--- a/src/settings_type.h
+++ b/src/settings_type.h
@@ -170,7 +170,5 @@ struct GUISettings {
 	bool   enable_extra_tooltips;            ///< enable extra tooltips when hovering over various elements
         uint8  cb_distance_check;                ///< zoning cb distance
-        uint32 powerfund_money;                  ///< minimum amount of money for powerfund to work
-        uint16 powerfund_houses;                 ///< powerfunding maximum houses limit
 
 	uint8  community;                        ///< chosen community nice=0, btpro=1
 	uint32  btpro_version;
index 568cfe8..a9e8d3a 100644
--- a/src/town_cmd.cpp
+++ b/src/town_cmd.cpp
@@ -836,8 +836,4 @@ static void DoRegularFunding(Town *t)
        bool fund_regularly = HasBit(t->fund_regularly, _local_company);
        bool do_powerfund = HasBit(t->do_powerfund, _local_company);
 
-       if (do_powerfund && (_settings_client.gui.powerfund_money > Company::Get(_local_company)->money ||
-                   _settings_client.gui.powerfund_houses < t->cache.num_houses)) {
-           do_powerfund = false;
-       }
 

Smart leveler v2:
 

Changes:
v2:
Only issue one command per z level. Decreases chance of "throttling" on large mountains.
The following user(s) said Thank You: Frank
  • gentz
  • Topic Author
  • Offline
  • Fresh BTPro Poster
  • Fresh BTPro Poster
  • Posts: 6
  • Thank you received: 6

Please Log in or Create an account to join the conversation.

Last edit: by gentz.
  • Page:
  • 1
Time to create page: 0.078 seconds
Best hosting deal on hostgator coupon or play poker on party poker
Copyright 2020 [1.8.0] Compiling & Running on Arch Linux - BTPro - OpenTTD Community.