Commit graph

508 commits

Author SHA1 Message Date
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
riperiperi
1eee680e08 Diagonal roofs, bugfixes 2023-08-31 18:43:05 +01:00
riperiperi
b3121268e5 Add Mansard roof, fix a few bugs 2023-08-31 00:11:16 +01: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
Ammar Askar
58ef199af7 Add tests for animations with multiple IK targets 2023-08-26 11:20:16 -04:00
Nahuel Rocchetti
1a9c5d2e6c Update LuaManager.cs 2023-08-25 23:35:57 -03:00
Nahuel Rocchetti
23fc55a843 clean up 2023-08-25 23:21:18 -03:00
Nahuel Rocchetti
724061df9e forgot to initialize lua in main 2023-08-25 22:23:47 -03:00
Nahuel Rocchetti
e06d56ed83 Initial Lua implementation 2023-08-25 22:22:18 -03:00
Nahuel Rocchetti
a0acde0273 VMStack -> VMThread 2023-08-25 18:51:26 -03:00
Nahuel Rocchetti
0229014e46 Merge branch 'master' of https://github.com/LazyDuchess/OpenTS2 2023-08-25 09:08:16 -03:00
Nahuel Rocchetti
4358bcfe5b vm better error handling, cleanup 2023-08-25 09:07:51 -03:00