Commit Graph

19490 Commits (master)

Author SHA1 Message Date
Webster Sheets 2a8c39f854
Switch to Libera.Chat in Readme.md (#5197)
* Change all mentions of Freenode to Libera.Chat

With the sale and subsequent takeover of freenode, the development team no longer uses that IRC network for collaboration. Update links to point to libera.chat instead.
2021-05-26 15:58:31 -04:00
Pioneer Transifex 93f2441b92 auto-commit: translation updates 2021-05-26 03:01:33 +02:00
Pioneer Transifex 222cd18d83 auto-commit: translation updates 2021-05-25 03:01:42 +02:00
Karl F 3032320d46 Update changelog 2021-05-24 13:17:41 +02:00
Karl F 663990ea51 Fix NewsEvent not doing it's thing after save/load cycle
The cargo to have its stock and price changed was saved as a EqupType object,
which is not a "deep save", but will have a new memory hash every new game,
thus price and stock for a commodity that was subject to high/low demand, was
unchanged.

This should be backwards compatible with older saves.
2021-05-24 11:50:54 +02:00
Armin Kretschmer a2a3b35227 Do not pick up cargo if too late 2021-05-24 11:18:11 +02:00
Pioneer Transifex 06972926d1 auto-commit: translation updates 2021-05-22 03:01:39 +02:00
Pioneer Transifex 42d4e30d05 auto-commit: translation updates 2021-05-21 03:02:04 +02:00
Pioneer Transifex 26ba68f5eb auto-commit: translation updates 2021-05-20 03:01:55 +02:00
Pioneer Transifex ba0f7d01ff auto-commit: translation updates 2021-05-19 03:01:45 +02:00
Pioneer Transifex 8d559e38d0 auto-commit: translation updates 2021-05-18 03:01:45 +02:00
Karl F 63e89bed8b Update changelog 2021-05-17 20:02:39 +02:00
Armin Kretschmer d555fa8834 Inform the player about the mission time
Warn if too far away

Spawn enemy ship in orbit
2021-05-17 20:00:47 +02:00
Karl F 6ade7d66ce Enable selecting star search results with duplicate names
Systems with shared names should be unique to imgui in selection menu
Fixes #5188
2021-05-17 14:54:06 +02:00
Pioneer Transifex 0c84df0211 auto-commit: translation updates 2021-05-13 03:01:07 +02:00
Webster Sheets e62cb5adad
Update Changelog.txt 2021-05-07 00:54:03 -04:00
Trung Lê 0cc652e72e Add constexpr to PiRngWrapper min() and max()
Fixes #5170
2021-05-07 00:45:58 -04:00
Pioneer Transifex a07ac89cee auto-commit: translation updates 2021-05-07 03:01:31 +02:00
Pioneer Transifex bbf46ecea6 auto-commit: translation updates 2021-05-06 03:01:22 +02:00
Pioneer Transifex 841be6937f auto-commit: translation updates 2021-05-05 03:01:38 +02:00
Karl F 76643bde16 Add rondel to translation system 2021-05-04 09:36:50 +02:00
Andrew Copland 2f5dd78451
Merge pull request #5169 from fluffyfreak/VS2019PrecalcPath
Add PrecalcPath files to VS2019
2021-05-03 11:52:32 +01:00
Andrew Copland caed00f25d Add PrecalcPath files and once again lament the lack of wildcard filesnames in VS 2021-05-03 11:51:43 +01:00
Andrew Copland 18b4d487e2 Warn about loading dead bodies, but handle safely. 2021-05-02 17:27:00 -04:00
Gliese852 9795b9deea Reduce the flow of tradeships
- reduce the flow to the most popular station in system by 40%.
- reduce the maximum station load by 25%
- reduce the maximum ships limit by 40%

This is to improve the performance. although these parameters are
independent, it is better to change them synchronously.  For example, if
you just reduce the allowable number of ships, in all systems this
number can become the same.  If the load on the station is not reduced,
the ships will stay there for too long.
2021-05-02 17:25:57 -04:00
Gliese852 6081f3e29a Fix some bugs appeared
- Move the drawing of the system map pigui to a separate handler to
  ensure that it will always be drawn strictly after the SystemView object
- Fix the setting of the m_colliding parameter of the ship during
  deserialization
2021-05-02 17:25:57 -04:00
Gliese852 20551ae2ea Improve Tradeships.lua
- Preparations:

Add method Ship:GetCargo
Add method Ship:GetDurationForDistance
Add method Ship:Create
Add method ui.treeNode & ui.treePop
Add method LuaObject::CreateInLua
Add functions for convenient selection of a random array element
Add some numerical utilites
Add a tool to easily draw a table from an array
Fix ui.Format.Number
Turn off the output when the ship changes frames
Reduce the detection range of hyperspace clouds
Remove the call LuaEvent::Emit immediately after exiting hyperspace
Split Tradeships.lua into 5 modules

- Tradeships

For current system, calculate all possible routes of tradeships,
durations, flows; arrange ships in space in such equilibrium state,
as if the have been flying about their business for a long time.

Calculate the average spawn interval for new ships, and parking
intervals, so that the stations are not overcrowded or empty.

Сreate a tab in the debug window with full information on
routes, ships, stations, remote systems.
2021-05-02 17:25:57 -04:00
Gliese852 31911813f8 Add function PutShipOnRoute
Function description:

The ship rearranged from its current position to a given body in space, for a
given part of the path, as if it were flying in a straight line, consuming
fuel and changing speed. The ship's current speed is ignored and is
considered to be equal to target's.
This function changes the coordinates, the mass of fuel in the tank, and the
speed of the given ship.

This function will be used so that when the game starts, or the player
jump into the system, the NPC ships looked as if they had been moving on
their routes for a long time.
2021-05-02 17:25:57 -04:00
Gliese852 11c8dffa0e Add class for pre-calculating spaceship path
A one-dimensional case is considered, given the parameters of the ship
and the length of the path, a flight plan is calculated, which allows
determining the time, speed, and mass of the ship at any point on the
way.

Also added a simple simulator for testing purposes.
2021-05-02 17:25:57 -04:00
Webster Sheets 68cfc2e28a Clean up useless profiling calls
- Flatten the Scenegraph LoadNodes tree to avoid unneeded callgraph depth
- Remove several useless (and counterproductive) profiling points in tiny Lua bindings
- Add wall-clock time to profiler reports
- Fix bug in debug-compilation of Frame.cpp
2021-05-01 17:50:24 -04:00
Webster Sheets fa1c786b5f Remove TabView legacy support, remember last tab 2021-05-01 17:50:24 -04:00
Webster Sheets f8eaffb304 Only update wheel animations when needed
Animation::Interpolate was getting called for all ships, and was
responsible for 1/3rd of the frame with 2500 ships.
Also stop profiling Frame::GetFrame, as the function is an order of
magnitude faster than the profiling overhead.
2021-05-01 17:50:24 -04:00
Webster Sheets 35dcbecac3 Add profiling points, optimize Ship::StaticUpdate
Add better profiling to identify frame slowdowns we have lots of ships (2000+)
Cache equipment capabilities between ship equipment updates
Improve Ship::StaticUpdate from 70mc to 40mc with 2500 ships
2021-05-01 17:50:24 -04:00
Webster Sheets f5a9a64436 Add profiling, refactor Model animation ticking
Only tick animations that are marked active.
More work needs to be done in Ship.cpp to support this,
but it should enable us to have far more ships in one system.
2021-05-01 17:50:24 -04:00
Pioneer Transifex 993ed15d11 auto-commit: translation updates 2021-05-01 03:01:22 +02:00
Pioneer Transifex 7e784de42c auto-commit: translation updates 2021-04-30 03:01:41 +02:00
WKFO 65390f4d64 Re-arrange map music 2021-04-29 15:46:43 -04:00
WKFO d52690adf5 map-unexplored and combat track 2021-04-29 15:46:43 -04:00
WKFO bdfe6ef873 Implement map view music, add tracks 2021-04-29 15:46:43 -04:00
arda-guler e7bebe9b56 Use IsSameSystem() instead of checking system name 2021-04-29 15:46:09 -04:00
WKFO c4238e5d5f Add prize for defeating the entire Haber force at Rondel 2021-04-29 15:46:09 -04:00
WKFO b221315d47 Copyright date update 2021-04-29 15:46:09 -04:00
WKFO 3c6df8947e Don't attempt to send message from a nonexistant ship 2021-04-29 15:46:09 -04:00
WKFO 8c33211cfc Use custom ship label for Rondel guards 2021-04-29 15:46:09 -04:00
WKFO ebd928c957 Add rumour about Rondel 2021-04-29 15:46:09 -04:00
WKFO 1166078a4a Move Rondel.lua to PolicePatrol 2021-04-29 15:46:09 -04:00
WKFO c0ed9447ee Restrict entry to Rondel system 2021-04-29 15:46:09 -04:00
Andrew Copland 625a3c7918 Update VS2019 to include imgui_demo.cpp file 2021-04-29 15:44:38 -04:00
Webster Sheets 4432e4594f Add new debug / editor colorscheme
Pretty much copied from the Limit Theory editor's colorscheme.
Some support is added to PiGui::Instance to allow swapping style objects on the fly.
2021-04-29 15:44:38 -04:00
Pioneer Transifex ae45b822f1 auto-commit: translation updates 2021-04-27 03:01:25 +02:00