Commit Graph

19366 Commits (2c4fb54afdcda83ca2a3ae0c18e8b0b0c27d14af)

Author SHA1 Message Date
Karl F 2c4fb54afd Be explicit about clang-format.sh operating on staged files 2021-01-13 16:37:35 -05:00
Karl F 0ff82d38eb clang-format prints its version
This helps debugging when result when local and remote runs disagree,
so when looking at the log of the github action, we see which version
of clang it used.
2021-01-13 16:37:35 -05:00
Karl F 54dba831f1 Use Ubuntu-20.04 in github actions 2021-01-13 16:37:35 -05:00
Karl F b15d7ae49d Fix utils round, to handle negative numbers, and fix doc string 2021-01-13 16:35:18 -05:00
Karl F b5dcfc8e85 Add math.sign() function 2021-01-13 16:35:18 -05:00
Gliese852 b8f255f8d2 Add search for the geometrically closest jumpable
In case the systembody does not have a jumpable parent.
This can happen if it revolves around several stars at once.
At the moment this situation leads to a segfault.
2021-01-13 16:34:41 -05:00
Karl F bd24b4694c Update changelog 2021-01-08 10:23:54 +01:00
WKFO 04d2d17d3f Stop planet ambient sound once player is flying 2021-01-08 10:21:16 +01:00
Karl F 229d907439 Merge branch 'happynewyear' 2021-01-03 19:44:35 +01:00
Karl F 9e44b09314 Happy new year!
HAPPY MERRY 2021!
2021-01-03 19:40:16 +01:00
Karl F 7933619577 Add copyright header to forgotten files 2021-01-03 19:40:11 +01:00
Webster Sheets 7c9753af16 Fix guns needing combat target, modelviewer config
Fixes #5103
Fixes #5099
2021-01-02 18:31:37 -05:00
Karl F 64af79af0b Update changelog 2020-12-31 09:19:40 +01:00
Karl F a7d1f7a599 Fix soldout module using onDelete before it was defined
Fixes #5089
2020-12-31 09:15:23 +01:00
Karl F 0738ad22f6 Fixes #5090 of template string after save/load 2020-12-25 12:10:03 +01:00
Karl F 78406e21c1 Update changelog 2020-12-22 12:12:29 +01:00
Webster Sheets c5c9f1f62f
Update Changelog.txt 2020-12-22 03:57:13 -05:00
Karl F 3034803279 Round BBS adverts to closest sensible price 2020-12-22 03:56:08 -05:00
Karl F b08ca7eb0e Function to round number to closest increment
To be used when calculating mission rewards
2020-12-22 03:56:08 -05:00
Karl F a56d4302a2 Make FOSS "donate to cranks" advert more rare
This will simply mute many of them,
giving some BBS without any of these adverts at all
2020-12-22 03:56:08 -05:00
Webster Sheets 59cfed1555 Fix leaving to menu with chat form open 2020-12-22 03:55:30 -05:00
Webster Sheets 151fd74c0b Fix incorrect tooltip and behavior in fx-window 2020-12-22 03:55:30 -05:00
Webster Sheets d0084dab26 Save binding state when toggling axis invert 2020-12-22 03:55:30 -05:00
Webster Sheets 0499ee0005 Fix camera detaching when console is open 2020-12-22 03:55:30 -05:00
Webster Sheets 475a808b3e Fix unintended text wrapping at low resolutions 2020-12-22 03:55:30 -05:00
Webster Sheets 54303f789f
Update Changelog.txt 2020-12-21 23:48:15 -05:00
Webster Sheets b054832aa0 Scale gauges with window resolution 2020-12-21 23:40:33 -05:00
Taylor Talkington 84ecd807cc Fixup VS Solution for added and removed files
Added
 - src/TransferPlanner.cpp
 - src/TransferPlanner.h
 - src/pigui/LuaRadar.cpp
 - src/pigui/Radar.cpp
 - src/pigui/Radar.h

Removed
 - src/ShipCpanel.cpp
 - src/ShipCpanel.h
 - src/ShipCpanelMultiFuncDisplays.cpp
 - src/ShipCpanelMultiFuncDisplays.h
2020-12-21 23:40:33 -05:00
Webster Sheets f708225c03 Remove CPanel and oldUI radar 2020-12-21 23:40:33 -05:00
Webster Sheets d181a8e2f9 Port planar radar to pigui 2020-12-21 23:40:33 -05:00
Webster Sheets f8c91ade0b Port NavTunnel widget to pigui 2020-12-21 23:40:33 -05:00
Webster Sheets b480e22c36 Refactor screen projection functions
Fixes issues with directions being projected as positions.
Clean up several now-unused functions.
Move screen projection functions from Body to Engine where they belong.
2020-12-21 23:40:33 -05:00
Karl F e0a83756e4 Swap alternative names for Alpha Centauri <--> Toliman 2020-12-21 17:48:58 -05:00
Karl F b617c51c92 Make use of system's alternate names, as original author intended 2020-12-21 17:48:58 -05:00
Taylor Talkington 72a9e320fe Add GitHub Action for building VS 2019 Solution 2020-12-21 04:19:52 -05:00
Webster Sheets 25688d06b6 Significantly slash savefile sizes
This change drops the average savefile from 2MB to 500KB.
We're smarter about what data we actually need to serialize -
MatrixTransform is only ever positioned by animations, and we don't
(yet) need to know about every space station market in the system at once.
2020-12-19 15:25:47 -05:00
Gliese852 3b76572336 Remove SetDepthRange calls from SectorView.cpp
This function was used to prevent the indicators from overlapping the
stars, Now they just move a little beyond the stars.
2020-12-19 15:22:52 -05:00
Karl F 705525b8a0 Show import/export in commodity description in commodity market
This should maybe be shown in a separate column, and could be placed better,
but it's a start.
2020-12-19 15:22:29 -05:00
Karl F d64f923565 Change limit for minor import/export
Economy widget in system-econ-view.lua, shown in sector view, changed
price alteration threshold for showing icon for minor import/export from
 +/- 2 to +/- 4. This changes space station (amount in stock), and
what trader ships haul.
2020-12-19 15:22:29 -05:00
gunchleoc c31548557e
Scottish placename revision (#5052)
- Some linguistic fixes for world names

- Fix spelling error in Portuguese placename
- Use Scotttish Gaelic spelling for Scotttish Gaelic placenames
- Replace invented placenames with ones that work in scottish
- Carndow was a duplicate, so I replaced one of those with a new name
- More Norn & Scots for linguistic consistency
- Shift Edinburgh

Co-authored-by: gunchleoc <fios@foramnagaidhlog.net>
2020-12-19 04:50:27 -05:00
Karl F 14cc922c81 Update changelog 2020-12-19 09:51:24 +01:00
Karl F bd46f74670 New BBS advert, offering double price on sold out commodity
If there are any commodities that are sold out (e.g. major imports),
then 50% chance of generating a BBS advert with buyer offering twice
the price, for some fixed amount of the commodity.
2020-12-19 09:48:10 +01:00
Taylor Talkington 334990c70f Fix copying dlls to install folder for windows install target 2020-12-16 07:03:18 -05:00
Taylor Talkington 58ddd30812 Trigger Build Pioneer github action on pushes to master
Trigger build on any push to master
Re-enable cmake 'install' messages since github actions separates the build process out.
2020-12-16 07:03:18 -05:00
Gliese852 775bb689a9
Fix SIGSEGV on switch to system map after HJ (#5077)
If you turn on the ships in the system map, turn off the system map and
jump into another system, then pointers to the ships from the previous
system remain in m_projectables, which cause the a segfault. Now clear
this when switching from view.
2020-12-15 12:17:06 -05:00
gunchleoc d3c991566d
Localize header strings on ship information screen (#5063)
* Fix header translations on ship information screen
2020-12-15 11:50:44 -05:00
Karl F 372df708e8 Let Cranks suggest how much player donates, based on reputation
There is currently no way the player to know:
1. How close they are to next jump in reputation status, nor,
2. Difference between the donation causes (some are more cranks than others)

With this, each donation indicates how much money is needed to gain next level
of reputation. Thus, it still obscures directly knowing reputation points and
the "force multiplier" factor for the particular donation cause on reputation.
2020-12-14 23:45:01 -05:00
Karl F c8f383e3a6 Donate to crank message user inside advert, instead of comms
The comms that was used before, is rendered to world view,
so messages there are not seen. Update message in chat box instead
2020-12-14 23:45:01 -05:00
Karl F 0a0558dd08 Make crank face persistent at least for the current BBS spawn
New pigui chat-form did not support explicitly setting seed, giving new face
every time the advert is clicked.
2020-12-14 23:45:01 -05:00
Karl F e4ec09b1a1 Reduce probability for imported goods to be sold out
In general: Just because something is imported, doesn't mean it will be sold
out, rather that depends on demand exceeding supply (which can happen for
imported and exported products).

For the likelihood of outcome computed from the probability distribution,
consider: although it is uniform, shifting it one unit left/right gives
no-uniform change in likelihood, since the distribution not uniform.
2020-12-14 16:55:58 -05:00