Commit graph

616 commits

Author SHA1 Message Date
Nahuel Rocchetti
c012057650 dont save onapplicationquit 2024-06-24 22:48:53 -03:00
Nahuel Rocchetti
bf63822e4f custom music, ability to map files to resource keys 2024-06-24 22:39:22 -03:00
Nahuel Rocchetti
02b1afeb35 add option to mute audio on focus loss 2024-06-24 21:03:47 -03:00
Nahuel Rocchetti
a4779995b8 Update GamePropertyAttribute.cs 2024-06-24 20:13:44 -03:00
Nahuel Rocchetti
46ff93ac9c Add props for volumes 2024-06-24 20:10:43 -03:00
Nahuel Rocchetti
e951228bcc refactor console props a bit 2024-06-24 20:01:51 -03:00
Nahuel Rocchetti
c37190eacf remove enableDecals property 2024-06-24 19:53:25 -03:00
Nahuel Rocchetti
8e8ed7365e ui notes 2024-06-24 19:48:42 -03:00
Nahuel Rocchetti
5dc979ff8f Fix UILayoutTest 2024-06-24 19:40:03 -03:00
Nahuel Rocchetti
5da0d555bc Audio mixers 2024-06-24 19:29:22 -03:00
Nahuel Rocchetti
51c4634b77 Fix MP3 volume 2024-06-24 19:19:17 -03:00
Nahuel Rocchetti
719740233c Load rest of music categories from ini files 2024-06-24 14:37:35 -03:00
Nahuel Rocchetti
71e55b733c Add state transitions for audio and music 2024-06-24 13:51:07 -03:00
Nahuel Rocchetti
67f5a08031 Fix musicmanager possible null ref 2024-06-24 02:34:05 -03:00
Nahuel Rocchetti
b6853eb140 Implement hitlist audio 2024-06-24 02:21:41 -03:00
Nahuel Rocchetti
600b9c9b11 Implement UI sound references 2024-06-24 00:40:29 -03:00
Nahuel Rocchetti
3ced75591d Add AudioManager 2024-06-24 00:05:07 -03:00
Nahuel Rocchetti
b833b56dd0 refactor audio type stuff 2024-06-23 23:43:41 -03:00
Nahuel Rocchetti
7a62d1afbc add note for text alignment 2024-06-23 15:13:24 -03:00
Nahuel Rocchetti
762661c04a Add support for Speex audio 2024-06-23 04:57:50 -03:00
Nahuel Rocchetti
6781cbcbf5 support wav audio, add cheat to play music categories 2024-06-23 03:04:14 -03:00
Nahuel Rocchetti
a8e9631029 small refactoring 2024-06-23 02:16:17 -03:00
Nahuel Rocchetti
dc715ffa5b Fix looping stuff, remove unused things 2024-06-23 02:06:43 -03:00
Nahuel Rocchetti
3440e9d9f3 improve audio source end detection a bit 2024-06-23 01:55:28 -03:00
Nahuel Rocchetti
f718a758ec handle single song playlists 2024-06-23 01:42:45 -03:00
Nahuel Rocchetti
500844aba5 make a wrapper for audio source that can handle mp3 and wav 2024-06-23 01:41:40 -03:00
Nahuel Rocchetti
ab861933ae Lazy music implementation 2024-06-23 00:43:37 -03:00
Nahuel Rocchetti
09fb6a82f0 Implement music playlists 2024-06-22 22:47:57 -03:00
Nahuel Rocchetti
9ee540836f Singleton -> Instance 2024-06-22 20:03:10 -03:00
Nahuel Rocchetti
c3fca9727f add musiccategory class, clean up singletons 2024-06-22 19:59:26 -03:00
Nahuel Rocchetti
81c54d2a1f Small refactor, log music categories 2024-06-22 19:53:20 -03:00
Nahuel Rocchetti
3bce65ed82 Fix compile warnings, remove unused stuff 2024-06-21 18:42:30 -03:00
Nahuel Rocchetti
c30f7af3d6 BuildPreProcessor -> ShaderBuildPreProcessor 2024-06-21 11:06:40 -03:00
Nahuel Rocchetti
78dea09f31 Update BuildPreProcessor.cs 2024-06-21 11:05:22 -03:00
Nahuel Rocchetti
4c4a365faf Automatically ship shaders on build 2024-06-21 11:04:56 -03:00
Nahuel Rocchetti
45d62d3211 Organization, don't ship editor-only code. 2024-06-21 09:57:27 -03:00
Nahuel Rocchetti
cb98f4ea5b Merge branch 'simulator' 2024-05-13 02:40:55 -03:00
Nahuel Rocchetti
a0f24ee06c
Merge pull request #52 from riperiperi/feat/architecture
Initial implementation of lot architecture
2023-09-18 22:17:37 -03:00
riperiperi
eed8dd0646 Address Feedback 2023-09-16 22:30:53 +01:00
Ammar Askar
547a516009 Animations are actually closer to 24 frames per second 2023-09-12 01:16:40 -04:00
Ammar Askar
380b83ad7f Fix rotation conversion to quaternions in animations 2023-09-12 00:22:35 -04:00
Ammar Askar
2475f1a8a5 Read flags for animation resources, test root_trans channel 2023-09-11 17:22:35 -04:00
Ammar Askar
a04b2955d4 Load and test IsBaseDataReturned from animation channels 2023-09-11 15:53:39 -04:00
Ammar Askar
fc3cd33a91 Load anim type for anim targets and test 2023-09-10 23:34:52 -04:00
riperiperi
074f2602c1 Base scene update 2023-09-05 19:56:42 +01:00
riperiperi
4cc3c4f736 Add WallsDown mode, various other changes. 2023-09-05 19:55:31 +01:00
riperiperi
19e0710556 Split by floor, add UI for choosing level and wall cut style
TODO walls down/cutaway
2023-09-05 10:41:01 +01:00
Nahuel Rocchetti
88c94bee2f Merge branch 'master' into simulator 2023-09-03 22:22:17 -03:00
Nahuel Rocchetti
5129ead942 improve lua exceptions 2023-09-03 19:25:50 -03:00
riperiperi
3649387afc Refactoring part 2
LotArchitecture class is now the source of truth for all architecture state.
2023-09-03 17:39:25 +01:00
riperiperi
d140fd57fe Refactoring part 1 2023-09-03 16:54:51 +01:00
riperiperi
323925c747 Improve 2D/3D Arrays with typed views 2023-09-03 14:54:36 +01:00
riperiperi
c7798a683b Improve decking 2023-09-03 00:41:16 +01:00
riperiperi
da03f1394b Various improvements, add basic water 2023-09-03 00:01:17 +01:00
riperiperi
a51d4e383e Work on half walls, start on water 2023-09-02 21:03:35 +01:00
riperiperi
a682ffd399 Add selection UI, fix bugs 2023-09-01 22:51:10 +01:00
riperiperi
e99dba16df Add pagoda roof types 2023-09-01 02:15:48 +01:00
Ammar Askar
5b696e64d9 Load and test animation locomotion type 2023-08-31 16:39:55 -04:00
riperiperi
1eee680e08 Diagonal roofs, bugfixes 2023-08-31 18:43:05 +01:00
Nahuel Rocchetti
08e55a3a1f Implement globals, fix EP mask 2023-08-31 00:27:04 -03:00
Nahuel Rocchetti
8dc7918ffe VM: Implement object data 2023-08-30 23:27:36 -03:00
riperiperi
b3121268e5 Add Mansard roof, fix a few bugs 2023-08-31 00:11:16 +01:00
Nahuel Rocchetti
f2c04ac012 Update objd fields 2023-08-30 19:49:31 -03:00
Nahuel Rocchetti
fb18928097 replace exception in lua object api with script exception 2023-08-30 18:57:05 -03:00
Nahuel Rocchetti
5409d1fecd Lua decomp: don't send self instance in calls 2023-08-30 18:39:51 -03:00
Nahuel Rocchetti
38a7750442 Implement object api for lua 2023-08-30 16:41:24 -03:00
Nahuel Rocchetti
3d56d8a924 Lua 5.0: Fix for loop for tables 2023-08-30 16:11:27 -03:00
Nahuel Rocchetti
f653782fcd basic hood view simulation 2023-08-30 14:37:04 -03:00
riperiperi
d27fcd9108 Remove unused wall cuts stuff
It's better to get this information from the VM, along with what objects actually exist.
2023-08-30 18:22:01 +01:00
riperiperi
ef0ee35977 Add working roof intersections 2023-08-30 18:22:01 +01:00
riperiperi
6699d6c9e3 Forgot to add this 2023-08-30 18:22:00 +01:00
riperiperi
a4d2d68cb8 Working roofs, WIP intersections 2023-08-30 18:22:00 +01:00
riperiperi
19eba265b4 Roof walls are now mostly functional 2023-08-30 18:21:59 +01:00
riperiperi
9cfe5078e1 Very WIP roof stuff 2023-08-30 18:21:58 +01:00
riperiperi
564f9cf6b3 Add wall caps, fix UVs 2023-08-30 18:21:57 +01:00
riperiperi
dc483ee796 Fix floor elevation 2023-08-30 18:21:57 +01:00
riperiperi
7e34743de2 Initial implementation of lot architecture
- Roofs, pools and water TODO
- Wall cutouts TODO, may require VM to exist
- Wall caps missing
- Terrain doesn't cut out tiles on bottom floor yet. (needed for pools)
- Some Z fighting on decking floors
- Some textures are missing or hallucinate a material
- Changed standard material with a UV scale, but should probably be a custom material.
- Not much effort has went into making things optimal to change in real time. Wall/Floor meshes should be split by floor and walls should be subdivided to do cutaway in the vertex shader.
2023-08-30 18:21:57 +01:00
Nahuel Rocchetti
54e2453170 Replace our compression with DBPFSharp's 2023-08-30 02:36:43 -03:00
Ammar Askar
b571c18656 Load and test locomotion params in animations 2023-08-29 15:49:41 -04:00
Ammar Askar
f795cd21d1 Add support for multiple ik chain targets 2023-08-29 15:49:40 -04:00
Nahuel Rocchetti
981013d1b1 Update CALL.cs 2023-08-29 00:24:05 -03:00
Nahuel Rocchetti
62b2273ff8 Lua: workaround for invalid CALL opcode 2023-08-28 23:57:32 -03:00
Nahuel Rocchetti
0c03daac0e add test scene for decompiling all lua 2023-08-28 22:21:25 -03:00
Nahuel Rocchetti
2fbb638ed5 handle lack of objectscripts 2023-08-28 15:17:18 -03:00
Nahuel Rocchetti
c05debaeaf Merge branch 'master' into lua 2023-08-28 14:54:30 -03:00
Nahuel Rocchetti
fa463b3b40 Clean up, load ObjectScripts, hook to simantics vm 2023-08-28 14:52:17 -03:00
Nahuel Rocchetti
e6181dd907 add returntable to lua local var 2023-08-28 13:01:12 -03:00
Nahuel Rocchetti
cac55b0593 lua disassembly - locals 2023-08-28 01:48:07 -03:00
Nahuel Rocchetti
0f7bac3311 lua: name return table depending on scope 2023-08-28 00:06:16 -03:00
Nahuel Rocchetti
e87aab799a Test Time script 2023-08-27 23:25:28 -03:00
Nahuel Rocchetti
304f22a679 Refactor Lua a bit 2023-08-27 23:12:01 -03:00
Nahuel Rocchetti
a77704388c Fix remaining syntax issues 2023-08-27 22:45:35 -03:00
Nahuel Rocchetti
63f1f40403 clean up lua tests 2023-08-27 21:49:20 -03:00
Nahuel Rocchetti
c800cf83e8 Finish Lua Disassembly 2023-08-27 21:29:11 -03:00
Ammar Askar
bffc0d18da Store heading offset from animation 2023-08-27 15:58:02 -04:00
Ammar Askar
6e8a031bad Add more tests for animation channel attributes 2023-08-27 15:44:40 -04:00
Ammar Askar
069f36e8ae Read animated attribute from animation channels 2023-08-27 13:44:55 -04:00
Nahuel Rocchetti
bf2ed7fe76 add a lot of opcodes 2023-08-27 14:22:08 -03:00
Nahuel Rocchetti
b349b87108 add a ton of opcodes 2023-08-27 04:36:11 -03:00
Nahuel Rocchetti
c84cee8b35 working on disassembler 2023-08-27 02:57:16 -03:00