Commit Graph

647 Commits

Author SHA1 Message Date
Kae
5f01d2d4d7 Update StarWorldServer.cpp 2024-03-18 23:25:44 +11:00
Kae
5a48b0383a fix StepUpdate typos (oops) 2024-03-18 22:09:48 +11:00
Kae
647cd45dd5 Update StarPlayerUniverseMap.cpp 2024-03-18 17:37:43 +11:00
Kae
5d1e118a19 better UniverseMap checks 2024-03-18 17:34:02 +11:00
Kae
7d717489a9 Update StarUniverseClient.cpp 2024-03-18 17:12:42 +11:00
Kae
f15d50ec07 oops!! 2024-03-17 23:09:42 +11:00
Kae
faae6e715a fix minor interp bug 2024-03-17 18:06:12 +11:00
Kae
758a900e51 Update StarWorldServer.cpp 2024-03-17 17:37:32 +11:00
Kae
9dc1eb7312 InterpolationTracker operates on time in seconds instead of steps now 2024-03-17 17:33:31 +11:00
Kae
4e0d7598e1 omg 2024-03-17 15:56:29 +11:00
Kae
3650add73a Update CMakeLists.txt 2024-03-17 15:38:35 +11:00
Kae
68b1632b92 Update CMakeLists.txt 2024-03-17 15:36:50 +11:00
Kae
8d1d278e7b Update CMakeLists.txt 2024-03-17 15:32:05 +11:00
Kae
b98b0334a9 Update CMakeLists.txt 2024-03-17 15:29:38 +11:00
Kae
b2b6c05968 Update StarWorldServer.cpp 2024-03-17 15:12:08 +11:00
Kae
8559a46df2 fix RPATH and object material spaces from old worlds getting stuck 2024-03-17 15:11:29 +11:00
Kae
252ce113a5 add missing vars to linux and macOS CMakePresets 2024-03-17 13:45:30 +11:00
Kae
e867822a70 whoops, setMetatable call was accidentally removed 2024-03-17 13:36:30 +11:00
Kae
53c7c3775f Lua: new Image userdata (& cursor mod fix) 2024-03-17 01:53:46 +11:00
Kae
463205c09c remove unnecessary SDL2 include
[skip ci]
2024-03-17 01:52:34 +11:00
Kae
d577a98980 Lua: allow jarray and jobject to convert existing tables
[skip ci]
2024-03-17 01:52:02 +11:00
ErodeesFleurs
c6a2f4fa7d add clipboard lua binds 2024-03-16 20:00:53 +08:00
Kae
a63707cc59 Update word_count.cpp 2024-03-16 11:07:41 +11:00
Kae
78a68b6a20 postLoad scripts too 2024-03-16 00:02:51 +11:00
Kae
7eec15098e asset onLoad scripts can add and patch assets now 2024-03-15 22:47:02 +11:00
Kae
13f91aa195 Songbook search improvements 2024-03-15 21:29:14 +11:00
Kae
6fa0afd758 experimental asset load scripts 2024-03-15 21:28:11 +11:00
Kae
696abcca71 fix late aimPosition 2024-03-15 16:26:12 +11:00
Kae
658fab846e change net debug logging to kB/s 2024-03-15 16:00:56 +11:00
Kae
6208636d69 Fixes 2024-03-15 15:26:38 +11:00
Kae
662b83ff92 Initial commit of experimental zstd network compression
currently a bit buggy
2024-03-14 21:41:53 +11:00
Kae
8164e5ae6f Game window respects Windows theme setting 2024-03-14 21:17:05 +11:00
Kae
3534067801 Tile Prediction: make refunds silent 2024-03-11 17:03:09 +11:00
Kae
caf7abebfe change tickNetInterpolation calls to use dt value 2024-03-11 16:31:20 +11:00
Kae
e6d2f5975b Merge branch 'main' of https://github.com/OpenStarbound/OpenStarbound 2024-03-11 11:30:49 +11:00
Kae
ce002fa0ef Update CMakePresets.json
[skip ci]
2024-03-11 11:30:45 +11:00
WasabiRaptor
e89a9af075 whoops 2024-03-09 18:58:25 -05:00
WasabiRaptor
21f9ab763e remove missing persistent effects 2024-03-09 16:26:13 -05:00
Kae
dc77061840 hopefully fix #33
in OpenStarbound, players can place blocks with their own collision type. this can cause objects to override the collision type if the object has material spaces and a previous attempt at accounting for this led to that bug: giving object collision its own field in the server tile should fix this
2024-03-09 12:18:22 +11:00
Kae
165bcbefee minor code polish 2024-03-09 11:09:04 +11:00
Kae
52a6f200ed
Merge pull request #27 from WasabiRaptor/main
Inventory and Hotbar size mismatch fixes
2024-03-09 10:24:10 +11:00
Kae
74072959c5
Merge pull request #32 from WasabiRaptor/Perfectly-Generic-Item-fixes
Perfectly Generic Item Improvements
2024-03-09 10:23:15 +11:00
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
a6a1cc7f42
Merge pull request #29 from WasabiRaptor/json-patching
improvement to iterating through patch arrays
2024-03-09 09:54:23 +11:00
Kae
4c2e75b585 sccache is autodetected now - optional in presets 2024-03-09 09:49:00 +11:00
Kae
7b556b33f8 More compact search patch parsing 2024-03-09 09:48:21 +11:00
JamesTheMaker
d26a7dbd18
Merge branch 'OpenStarbound:main' into Songbook 2024-03-08 15:18:23 -05:00
Kae
35dc974a8f
Merge pull request #28 from JamesTheMaker/main
Added many new patch features
2024-03-09 06:25:55 +11:00
Kae
1cf7baa317 Update CMakeLists.txt 2024-03-09 04:42:26 +11:00
JamesTheMaker
53c102b0c7 Added searchbar to songbook 2024-03-08 11:39:39 -05:00
Kae
6c562470f3 Merge launcher branch 2024-03-08 20:09:27 +11:00
WasabiRaptor
f8a6a3e57d inventory and hotbar size mismatch fixes
I realized why that was there

checking patch arrays in a more clean manner

also support for checking values in other files using a string in the patch arrays

Revert "checking patch arrays in a more clean manner"

sorry that wasn't supposed to be in this one
2024-03-07 19:18:28 -05:00
WasabiRaptor
c5e568e47c fine
goodbye nice syntax highlighting
2024-03-07 18:56:13 -05:00
WasabiRaptor
f5400e5877 improvement to iterating through patch arrays 2024-03-07 18:06:30 -05:00
JamesTheMaker
15a12c06a6 Added the search operand to the move and copy operations, and added the new merge operation 2024-03-07 17:28:34 -05:00
JamesTheMaker
9b4ca69e0e Added the search operand to the find, replace, and remove operations 2024-03-07 12:31:48 -05:00
JamesTheMaker
c808d207c9 Added search operator to the remove operation 2024-03-07 11:01:29 -05:00
JamesTheMaker
3c8a8619d5
Merge branch 'OpenStarbound:main' into main 2024-03-07 09:44:18 -05:00
JamesTheMaker
14ec64ace7 Added jsonCompare function 2024-03-07 09:43:36 -05:00
Kae
89fe1bf15b oops. 2024-03-07 14:43:23 +11:00
Kae
170b913caa fix fucked up line splits from cmake-format 2024-03-07 14:31:25 +11:00
Kae
edcefdc58b ran cmake-format on CMakeLists.txt
it all being uppercase was insane
2024-03-07 14:16:30 +11:00
JamesTheMaker
f1e3f6791d Multiple patch files 2024-03-06 12:40:38 -05:00
Kae
79cd235939 Update StarClientApplication.cpp 2024-03-05 16:22:13 +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
Kae
3453819837 fix debug logMap text stacking
bug was introduced in cd23817bf1
2024-02-29 19:22:22 +11:00
Kae
0b4119ce12 Fix possible Unicode exception in Directives parsing 2024-02-29 19:09:10 +11:00
Kae
33d696d505 pointless commit to run checks
I shouldn't have skipped CI on the prev commit :V
2024-02-29 14:47:10 +11:00
Kae
4534172c2f Fix build error compiling with Discord support
[skip ci]
2024-02-29 14:33:39 +11: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
7d9c9d3b32 move oddly placed player input code 2024-02-22 17:38:47 +11:00
Kae
9485aff8b8 minor input bug fix 2024-02-22 17:26:12 +11:00
Kae
ae3ecabcea loadstring shouldn't accept bytecode 2024-02-22 17:25:46 +11:00
Kae
f5ddb00675 Update CMakeLists.txt 2024-02-22 16:46:45 +11:00
Kai Blaschke
9029f897da
Support prefixed and non-prefixed JeMalloc functions
Note that linking a JeMalloc library without prefixed functions will replace all memory allocations, including any call to "new", not just the ones specifically called via Star::malloc etc.
2024-02-21 18:08:56 +01:00
Kae
e6f96cb2bd std::allocator::rebind is deprecated
Clang should no longer scream
2024-02-20 19:34:58 +11:00
Kae
43b2fa53e7 I hate Freetype 2024-02-20 17:44:53 +11:00
Kae
e891499a9f Update CMakeLists.txt 2024-02-20 17:39:16 +11:00
Kae
533ad7f943 Update CMakeLists.txt 2024-02-20 16:59:47 +11:00
Kae
33c61c540e Update CMakeLists.txt 2024-02-20 16:01:45 +11:00
Kae
442347d82e fix minor Image memleak 2024-02-20 10:00:35 +11:00
Kae
a7cfe73544
Merge pull request #18 from kblaschke/add-github-actions-workflow-files
Add initial GitHub Actions workflow files to run build checks
2024-02-20 09:50:40 +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
42fc1d6714
Fixed a memory leak in Image::readPngMetadata()
The memory allocated by png_create_read_struct() was not freed before exiting the function, wasting lots of memory over time.
2024-02-19 20:47:58 +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
Kai Blaschke
86106b06d6
Add StarFormat.h include to fix test compilation on UNIX
Linker otherwise can't find a specialized template instance for strf() in a test. Adding the include file will locally generate the missing specialization.
2024-02-19 14:13:33 +01:00
Kai Blaschke
c731eedeaf
Use memmove instead of memcpy as the blocks overlap. 2024-02-19 14:13:33 +01:00
Kai Blaschke
ef82ae3aeb
Add GitHub Actions build workflows 2024-02-19 14:11:19 +01:00
yzh
eb9564c3de
maybe fix /run cmd 2024-02-14 22:45:59 +08:00
yzh
1d23b7c1be
maybe fix the /run cmd 2024-02-14 22:39:35 +08:00
yzh
29dcec6afe
update CmakeSettings 2024-02-13 15:20:13 +08:00
yzh
2950259ede
semms fix the memory issue 2024-02-13 14:52:45 +08:00
yzh
4e331c5404
fix memory leak 2024-02-13 14:49:00 +08:00
yzh
33db825d04
fix world_benchmark update() param 2024-02-01 15:00:57 +08:00
yzh
98472dbb7b
vs config file 2024-02-01 14:58:32 +08:00
Kae
ea28fc8071
Merge pull request #12 from Bottinator22/main
Move instruments to their own audio group and volume setting
2024-01-03 20:09:39 +11:00
Kae
ddc64fb14c Fix up and add options menu slider 2024-01-03 20:08:57 +11:00
Kae
98b27f5f65 Update StarDirectives.cpp 2024-01-03 19:17:19 +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
8d0dcd11d7 Update StarMainApplication_sdl.cpp 2023-11-29 13:45:53 +11:00
Kae
65cf738832 Update StarMainApplication_sdl.cpp 2023-11-29 13:45:13 +11:00
Kae
b52d7405f2 Merge branch 'main' of https://github.com/OpenStarbound/OpenStarbound 2023-11-29 13:37:19 +11:00
Kae
2ffd83c283 Restore missing configuration keys from default 2023-11-29 13:37:08 +11:00
WereTech
6294e9ed1c add camera panning speed setting
- adds a setting that changes the speed of the camera when panning with the CameraShift keybind.
- fixes what I assume is a typo in the zoom slider that referenced the resolution list size instead of the zoom list size
2023-11-28 11:04:45 -06:00
Kae
24c2820ce1 Update StarPlayerStorage.cpp 2023-11-27 10:13:21 +11:00
Kae
ac66491b3f fix Opus options (the right way) 2023-11-26 23:01:02 +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
9bef78a737 make Image move assignment zero other variables 2023-11-24 20:39:41 +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
81198f091c fix Image not resetting properly after being moved from 2023-11-24 20:34:41 +11:00
Kae
eb4652b5f6 small CMake fix so Opus values set in extern/CMakeLists.txt work 2023-11-23 17:33:34 +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
ab7768a3f0 Remove x64-Release leaving just RelWithDebInfo 2023-11-03 06:42:15 +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
86f41b8450 Fix crash right clicking empty item slots with no swap item 2023-11-02 16:30:34 +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
38910aeead Skip generating tile pieces if a color variant is invalid 2023-11-01 12:41:02 +11:00
Zithia Satazaki
f09b54b7e9 pane isDisplayed binding 2023-10-31 15:01:39 -04:00
Zithia Satazaki
00eeb4a809 displayRegisteredPane 2023-10-31 00:31:53 -04:00
Kae
8122cc3e7f Update StarMainInterface.cpp 2023-10-31 08:53:18 +11: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
Zithia Satazaki
4da15c42e0 Merge branch 'main' of github.com:OpenStarbound/OpenStarbound 2023-10-29 20:23:31 -04:00
Zithia Satazaki
738e45079d fix incorrect relative pathing in tests 2023-10-29 20:21:54 -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
Kae
09e525fcf3 Fix script.updateDt in tech 2023-10-30 06:52:59 +11:00
Kae
fe2a8038d5 mouseWheel in input.events() matches SE now 2023-10-30 06:18:40 +11:00
Kae
b2a5bd00fb Fix minor escape code check issue 2023-10-27 12:24:22 +11:00
Kae
48b8d43ff8 Add player Lua functions from SE 2023-10-25 15:30:31 +11:00
Kae
ced12b62e0 Fix formatting in BTree Repacker 2023-10-23 04:39:15 +11:00
Kae
87ee948519 Add BTree Repacker 2023-10-19 05:44:32 +11:00
Kae
f5ce3fe7b3 Fix deployment light sources 2023-10-13 08:54:37 +11:00
Kae
991cf9df7e Add vertical speed support to parallax layers 2023-10-12 04:42:24 +11:00
Kae
be27a96505 Tweak tool suppression logic for vehicles 2023-10-10 19:38:29 +11:00
Kae
7c68b8f4af Make the profanity filter not as insanely strict as Warframe's
The profanity filter sucks. Male glitch have a possibility of generating with "Brass" at the start that is never allowed because "ASS"!! and human names Cassie and Cassidy also never pass because of this.
2023-09-05 17:47:11 +10:00
Kae
fd915ce672 Update StarLua.cpp 2023-09-05 17:00:04 +10:00
Kae
c992d4f72a Update StarDirectives.cpp 2023-09-05 16:42:44 +10:00
Kae
51d6e63dfe Only do spatial logging when spatial log is observed 2023-08-31 04:55:36 +10:00
Kae
182d3052c5 operator== for Directives, skips reparse if equal 2023-08-31 03:14:48 +10:00
Kae
6f7f3800d3 Don't forget to dirty collision on tile modification failure 2023-08-31 01:12:17 +10:00
Kae
ca21b29f92 Small cleanup 2023-08-21 21:22:25 +10:00
Kae
ce6cadd2a0 Store material item settings in player secret properties instead of parameters 2023-08-21 21:18:27 +10:00
Kae
bd4b1ed45c Update StarMaterialItem.cpp 2023-08-21 21:10:43 +10:00
Kae
a7ae034278 Objects can now be placed under tiles that have non-block collision 2023-08-21 00:59:02 +10:00
Kae
edbee201ee Command to adjust global timescale 2023-08-20 23:51:43 +10:00
Kae
33b7f17bb2 Material Item: Allow entity overlap on non-solid collision kinds 2023-08-20 20:52:56 +10:00
Kae
ecadfa7e44 Bump up prediction expiry time
Also added a new font
2023-08-20 20:48:18 +10:00
Kae
2fe62a178e Fix object color suffix not applying if it's the only directive 2023-08-20 19:25:52 +10:00
Kae
78945304b7 Update StarItemDrop.cpp 2023-08-20 19:07:30 +10:00
Kae
d0aa7c1279 Update StarItemDrop.cpp 2023-08-20 19:05:24 +10:00
Kae
6e7c0498ef Hook tile meshing up to Material Item drop and preview 2023-08-20 18:56:50 +10:00
Kae
0bb0bd30b0 Slight fix to PGI creation 2023-08-20 17:43:09 +10:00
Kae
e5c6d005d7 Add binds to modify material radius 2023-08-20 13:57:27 +10:00
Kae
7a220cae45 player.aimPosition 2023-08-20 12:09:03 +10:00
Kae
bda94556bb Improve item drop beam 2023-08-20 12:08:58 +10:00
Kae
9af6bfe60e Add ItemDrop glow 2023-08-20 11:56:37 +10:00
Kae
3990b196a2 Fix LiquidItem preview (again!) 2023-08-20 10:42:17 +10:00
Kae
572b492b93 Fix collision not refreshing on expired predictions and slight placement issue 2023-08-19 22:49:05 +10:00
Kae
3805db7722 oops: Fix sub-step material placement 2023-08-19 21:35:56 +10:00
Kae
2fb2616384 More accurate liquid collection prediction 2023-08-19 21:08:44 +10:00
Kae
d2ec7f37c1 Predict MiningTool liquid collection 2023-08-19 20:57:55 +10:00
Kae
d65bc3cc8d Add collision cycling to Material items 2023-08-19 20:47:58 +10:00
Kae
ec4f70340e Allow overriding placed collision kind ("""overground""") from world.placeMaterial 2023-08-19 18:26:52 +10:00
Kae
f22eed8304 Add player table to tech scripts 2023-08-19 15:54:52 +10:00
Kae
b7cddf4f0e Item inventoryIcon supports other drawable kinds now 2023-08-19 15:44:16 +10:00
Kae
9665048a9e fix drop prediction only working on drops from blocks 2023-08-19 15:30:27 +10:00
Kae
7ff3e0fecc Fix parallax and space dust jitter when lerping zoom level on very old universes 2023-08-19 15:09:00 +10:00
Kae
0c74c70475 Predict placed tile collision 2023-08-19 12:55:32 +10:00
Kae
1af5e5cc89 Material Item equip sound 2023-08-19 12:34:35 +10:00
Kae
d53379f6c2 blah 2023-08-19 12:15:22 +10:00
Kae
156c243360 improve applyTileModifications to be more aggressive 2023-08-19 00:18:51 +10:00