Commit graph

589 commits

Author SHA1 Message Date
ROllerozxa
2c121ca597 Add world:set_gravity
Co-authored-by: griffi-gh <prasol258@gmail.com>
2023-04-19 22:02:12 +02:00
ROllerozxa
40ff23bdc6 Cleanup luascript source file, shuffle functions around and reduce repetition with version check macros 2023-04-19 21:55:45 +02:00
ROllerozxa
b5aa03ddfc Fix error(nil) crashing the game (#23) 2023-04-18 22:04:52 +02:00
ROllerozxa
e57729620d Load bit32 Lua library 2023-04-18 21:54:10 +02:00
ROllerozxa
ed627e4207 Block unsafe lua functions
Co-authored-by: griffi-gh <prasol258@gmail.com>
2023-04-18 21:38:54 +02:00
ROllerozxa
53b9de6317 Enable string, table and listen on input by default
All Lua scripts now have access to the string and table libraries by default, and if an `on_input` function is present it will listen on input without a flag needing to be toggled.
2023-04-18 15:42:14 +02:00
Francesco Gazzetta
60dab90a6c Link to NixOS package 2023-04-12 23:13:19 +02:00
ROllerozxa
af2cfda21b Reorganise lua and luasocket libs 2023-03-21 22:24:25 +01:00
Francesco Gazzetta
f5298f521b
Set foreign automake flavour (#99)
The project doesn't follow the gnu flavour
(no NEWS, AUTHORS, ... files), so "foreign" is more appropriate
2023-03-21 21:14:21 +01:00
ROllerozxa
c42b202f4a Fix Linux CI 2023-03-11 12:24:54 +01:00
ROllerozxa
9fa14d41ef Display build timestamp when pressing version label
Makes it easier to distinguish and date beta and in-dev builds
2023-03-09 23:18:35 +01:00
ROllerozxa
b642badd72 Remove redundant flags in buildfiles, use system GLEW on linux 2023-03-09 22:32:07 +01:00
ROllerozxa
80ecb2b681 Move opengl.h and print.h into the backend/ folder in the linux backends, rather than using a recursive symlink 2023-03-09 21:55:06 +01:00
ROllerozxa
e47a80f1fa Fixes to keybinds and add keybinds to tooltips 2023-03-09 21:01:22 +01:00
ROllerozxa
ea2bdb6efd Shorten "if WINDOWS || LINUX" preprocessor checks to "if PC" 2023-03-09 16:47:35 +01:00
ROllerozxa
93f557530c Fix Windows installer error 2023-02-25 22:26:15 +01:00
ROllerozxa
20ce6dddc5 Remove object and item help texts, open Wiki instead
The built-in object and item help texts have been removed. When clicking on an object or item help button, you're instead taken to the respective page on the Wiki now.
2023-02-25 22:09:12 +01:00
ROllerozxa
e03b14ed2b Raise target API, raise min API to 19 (4.4), explicitly use the latest r23 NDK
(NDK r25 segfaults within the vendored SDL library ugh)
2023-02-25 22:09:12 +01:00
ROllerozxa
c9adc57384
Add bug report form 2023-02-24 21:36:34 +01:00
ROllerozxa
d235ffd62d Toggle object lock on N 2023-02-13 22:23:21 +01:00
ROllerozxa
86db36a3d5 Fix various random bugs and freezes caused by tmath_sqrt returning NaN when x=0 with certain optimisations (fixes #69) 2023-02-13 22:22:42 +01:00
N Fakhrizal
de6b85e164
nix: fix build error (#81)
* nix: update input
* nix: remove missing patch requirement
2023-01-11 09:03:36 +01:00
ROllerozxa
3defe8fb53 Use in-game ui::message instead of system toasts on Android
Also remove some unused code relating to a GTK-based ui::message implementation. (Fixes #79)
2023-01-08 21:21:12 +01:00
ROllerozxa
5625332f27 Rename apparatus2 Linux executable to principia
Screenshotter has been renamed to principia_ss to not cause conflicts when building both
2023-01-07 15:27:32 +01:00
ROllerozxa
3b6d2bd022 Implement toggling GUI with F2, hide additional GUI elements
Makes it easier for nice screenshots/videos without the GUI in the way
2023-01-01 20:34:21 +01:00
ROllerozxa
003a041e29 Add hasFragileUserData, allow user data backups (hopefully?) 2022-12-31 22:09:48 +01:00
ROllerozxa
e10d80ed64 Comment out immersive/fullscreen mode for now 2022-12-31 22:09:48 +01:00
ROllerozxa
e19b228a79 Make Android LuaScript dialog usable again 2022-12-31 22:09:48 +01:00
ROllerozxa
ad619bbf16 Fix 1.5.1+ SFX Emitter dialog 2022-12-31 22:09:48 +01:00
ROllerozxa
2056388b68 Update Gradle plugins, other minor cleanups 2022-12-31 22:09:48 +01:00
ROllerozxa
8cdab6cb31 Fix cURL -> webview token cookie transfer for principia-web 2022-12-31 22:09:48 +01:00
ROllerozxa
cc21cb0ea6 Fix Android version forgetting you're logged in 2022-12-31 22:09:48 +01:00
Paramon, Yevstigneyev
d90e0bc87c
Missing 'libsurl-devel' for Fedora (#76)
When I was compiling Principia on another device with Fedora, I found that I was missing 'libcurl-devel'. And I didn't notice that missing dependency on my previous pull requests for build dependencies on Fedora.
2022-12-28 20:16:41 +01:00
ROllerozxa
9d658b761f
Refresh README 2022-12-28 11:26:10 +01:00
Paramon, Yevstigneyev
b6448ac425
Changed the command for Fedora (#75)
I found that 'sudo dnf install @developement-tools' is equivalent to 'sudo dnf groupinstall "Development Tools"'. And removed 'ncurses-devel' as I found it was added by mistake from one of my previous pull requests. And I added 'gcc-c++' as it is needed for Principia to compile on Fedora.
2022-12-28 09:04:00 +01:00
ROllerozxa
8713afeb2d
Merge pull request #73 from rollerozxa/bunch-of-stuff
Bunch of stuff
2022-12-27 22:32:02 +01:00
ROllerozxa
31f574e738
Merge branch 'master' into bunch-of-stuff 2022-12-27 21:58:59 +01:00
ROllerozxa
02b7119403 backslash 2022-12-27 21:58:09 +01:00
Emil Romanus
913687a151
Merge pull request #72 from ParamonPlay2205/patch-2
Some README formatting fixes?
2022-12-27 21:48:01 +01:00
Emil Romanus
13d97889a2
Merge pull request #71 from ParamonPlay2205/patch-1
Added dependencies for Fedora
2022-12-27 21:47:03 +01:00
ROllerozxa
d053175160 Add dwrite.dll to dll blacklist 2022-12-27 21:41:21 +01:00
Paramon, Yevstigneyev
3bff223251
Some formatting fixes
Not sure if the formatting for the commands to build on Android Studio and others were meant to be like that. But I went ahead and fixed some possible formatting errors. Credit to @rollerozxa for pointing out formatting errors on my pull request for specifying build dependencies for Fedora.
2022-12-27 12:17:02 -08:00
Paramon, Yevstigneyev
093102b5cd
Added 'gprof2dot' for 'create_png.sh
I found that on Fedora, 'create_png.sh' needs gprof2dot for it to work.
2022-12-26 21:38:42 -08:00
Paramon, Yevstigneyev
137534f41b
Added some missing dependencies
Added some missing dependencies for Fedora.
2022-12-26 17:38:58 -08:00
Paramon, Yevstigneyev
e68322e452
Added group install for Fedora
I forgot to add the package group to install development tools for building on Fedora.
2022-12-26 17:19:15 -08:00
Paramon, Yevstigneyev
5ba51cdaf6
Added dependencies for RedHat
Added the required build dependencies for building Principia on Redhat and Redhat based distros, such as Fedora. I figured since I am using a Redhat-based distro, I thought I would help since no one else spent time like me figuring out the right dependencies for it to build on Fedora. This has been tested on Fedora 37, and it was able to compile and run. However, it may not work for all Redhat based distros, as I tested this on a Redhat Enterprise virtual machine and some of the packages were not found.
2022-12-26 17:00:48 -08:00
ROllerozxa
6c1f6dad6b Change forgot password button to register in login dialog 2022-12-24 21:52:19 +01:00
ROllerozxa
79907bb04a Remove wiki object export and now unused socket descriptions
Redundant now as everything has been imported into the new wiki
2022-12-24 21:51:43 +01:00
ROllerozxa
309e81e069 Fix opening dialogs on Windows freezing the game 2022-12-24 20:40:06 +01:00
ROllerozxa
cc1244225d Build fixes 2022-11-29 22:58:09 +01:00