Commit Graph

238 Commits

Author SHA1 Message Date
WasabiRaptor
84fe2dfd4c Perfectly Generic Item improvements
spawnitem won't create generic items unless you intend to

generic items will retain the data for what item they were if a mod is uninstalled, and will attempt to restore themselves if re-installed
2024-03-08 18:14:40 -05:00
Kae
6c562470f3 Merge launcher branch 2024-03-08 20:09:27 +11:00
Niffe
4b4013e5c8 Dynamic sun image
Also adds access to sun scale, ray color, and fixes sun rendering in front of satellites
2024-03-01 18:28:13 +02:00
Kai Blaschke
cd23817bf1
Fixed remaining compiler warnings
Some warnings (e.g. in Opus and the tests) can't be fixed, only suppressed.
2024-02-28 18:30:27 +01:00
Kai Blaschke
28d486446c
Potential bugfix in quest coordinate matcher 2024-02-28 18:30:23 +01:00
Kae
a1addf1ec2
Merge pull request #22 from kblaschke/use-pragma-once
Use "#pragma once" instead of include guards
2024-02-26 13:57:22 +11:00
Kai Blaschke
3073a88cd1
Use "#pragma once" instead of include guards 2024-02-25 15:46:47 +01:00
Kae
ae3ecabcea loadstring shouldn't accept bytecode 2024-02-22 17:25:46 +11:00
Kae
aa987a2177
Merge branch 'main' into small-fixes 2024-02-20 09:49:42 +11:00
Kai Blaschke
d0099a6d79
Fixed some uninitialized members
May have caused undefined behavior in few cases, as most of the fixed members were used before being initialized.
2024-02-19 23:44:59 +01:00
Kai Blaschke
7c4fbad2ba
Removed some redundant std::move usages in return statements. 2024-02-19 18:39:01 +01:00
Kai Blaschke
431a9c00a5
Fixed a huge amount of Clang warnings
On Linux and macOS, using Clang to compile OpenStarbound produces about 400 MB worth of warnings during the build, making the compiler output unreadable and slowing the build down considerably.

99% of the warnings were unqualified uses of std::move and std::forward, which are now all properly qualified.

Fixed a few other minor warnings about non-virtual destructors and some uses of std::move preventing copy elision on temporary objects.

Most remaining warnings are now unused parameters.
2024-02-19 16:55:19 +01:00
yzh
1d23b7c1be
maybe fix the /run cmd 2024-02-14 22:39:35 +08:00
yzh
4e331c5404
fix memory leak 2024-02-13 14:49:00 +08:00
Kae
ddc64fb14c Fix up and add options menu slider 2024-01-03 20:08:57 +11:00
Bottinator22
91cf2d8251 Add fork changes (move instruments to their own audio group) 2024-01-02 23:08:51 -08:00
Kae
588065cfc3 Update StarRootLuaBindings.cpp 2023-11-30 21:48:43 +11:00
Kae
2a56c3f9e3 Fix constant tile entity space updates 2023-11-30 21:48:31 +11:00
Kae
2ffd83c283 Restore missing configuration keys from default 2023-11-29 13:37:08 +11:00
Kae
24c2820ce1 Update StarPlayerStorage.cpp 2023-11-27 10:13:21 +11:00
Kae
8181cff72e Hopefully fix the rare lightmap flicker 2023-11-25 23:36:36 +11:00
Kae
f3c7bd1d5e Directives fixes 2023-11-25 23:03:46 +11:00
Kae
9c7d35ee26 A TYPO!!!!! 2023-11-25 22:23:10 +11:00
Kae
1db9091f50 non-zero default for script.updateDt for cases when it's called outside update() 2023-11-24 20:44:43 +11:00
Kae
994b0fe3cf Fix TestUniverse 2023-11-24 20:35:45 +11:00
Kae
de53f8c7d7 fallback to hex string when a player UUID has no corresponding filename 2023-11-24 20:35:21 +11:00
Kae
74985240fc simplify necessary sbinit fields on Windows 2023-11-03 08:07:29 +11:00
Kae
5815a873a7 Add more root.asset* functions 2023-11-03 06:51:17 +11:00
Kae
1f5b954eb2 Fix (vanilla): Item disappearing from action bar after stacking identical item into it 2023-11-02 16:31:35 +11:00
Kae
f5c63fa189 Update StarInput.cpp 2023-11-02 11:13:12 +11:00
Kae
bea100bde9 Setting a configuration value to nil should actually erase it
also configurationVersion set is already checked in Configuration
2023-11-02 08:23:36 +11:00
Kae
0497048b44 Add input.mousePosition 2023-11-02 08:12:21 +11:00
Kae
2cf97d763c add root configuration getters & setters 2023-11-02 08:09:51 +11:00
Zithia Satazaki
213ce4bc0f quick pickupToActionBar manipulation 2023-11-01 15:10:34 -04:00
Kae
508e8f4304 Use invis material to fix constant re-placement of falling blocks 2023-10-31 08:32:20 +11:00
Kae
ae014e5b6f Revert bag slot index type to uint8_t for now
was causing incompatibility on vanilla servers - need to add net element filters for legacy/modified servers first
2023-10-31 08:13:12 +11:00
Kae
7d948f8839 Don't tile predict falling blocks for now
causes too many mispredictions due to not simulating falling blocks locally (and it might still be an issue even if we did simulate it due to slight timing differences between client/server)
2023-10-31 08:10:05 +11:00
Zithia Satazaki
332fb8430b avoid returnless fallthrough 2023-10-30 15:11:15 -04:00
Zithia Satazaki
86f02eab9b these need to be {} wrapped to compile for some reason 2023-10-30 15:05:42 -04:00
Kae
a0272c2189 WebHook test againnn 2023-10-31 06:02:25 +11:00
Kae
ad8c17e338 Merge branch 'main' of https://github.com/OpenStarbound/OpenStarbound 2023-10-31 06:00:11 +11:00
Kae
c8539fba95 WebHook test 2023-10-31 05:59:52 +11:00
Zithia Satazaki
8aeed2baa8 match prior case convention for swap and trash slots 2023-10-30 14:48:45 -04:00
Kae
7eb1cd8dd9 Simplify new player inventory functions 2023-10-31 05:34:26 +11:00
Zithia Satazaki
012572c199 more graceful failure mode for item bag functions 2023-10-30 01:30:25 -04:00
Zithia Satazaki
943729a20e player functions for direct item bag manipulation 2023-10-30 01:05:18 -04:00
Zithia Satazaki
fa6a770cfc add player.actionBarItem and player.setActionBarItem (still needs a bit of work) 2023-10-29 23:15:26 -04:00
Zithia Satazaki
7c29196eff fix player.description being player[" description"] instead 2023-10-29 20:50:38 -04:00
Kae
d425e8e15f Add world.isClient & isServer 2023-10-30 08:03:16 +11:00
Kae
3b0a3efc19 Alias short bind, key, mouse input functions 2023-10-30 06:56:23 +11:00