183 Commits

Author SHA1 Message Date
9e64a077e1
Rename unstring to parse 2023-06-21 15:18:55 -04:00
b3d646e040
Update script to Figura 0.1.0-rc.14 2023-05-09 00:31:53 -04:00
5fbea8ebd9
Make syncState rate limit stricter 2022-10-31 08:24:09 -04:00
a6367f64dd
Add debug logging for pings 2022-10-30 20:35:34 -04:00
58910fc16d
Add basic logging functions 2022-10-30 20:35:03 -04:00
df86b4cf2e
Add placeholder function for snore 2022-10-30 14:12:55 -04:00
419b8bd7f4
Disable snoring 2022-10-17 00:09:04 -04:00
96dd163f47
Add rate limiter to syncState 2022-10-17 00:04:21 -04:00
42c7847855
Re-enable pings 2022-10-17 00:03:57 -04:00
e346aafbfa
Modify debug print functions 2022-10-03 22:08:10 -04:00
79831d4ff7
Fix typo in armor_model table 2022-10-03 22:06:56 -04:00
64dc55f71a
Remove partial_vanilla, other optimizations
The code for adding partial_vanilla to PartsManager used an
unbelievably high instruction count. Removing it allows avatar to
properly load with low trust, and it will be replaced with something
better in the future anyway.
2022-09-27 22:44:01 -04:00
c6c2acb507
Optimize variables for using less instructions 2022-09-27 22:28:04 -04:00
9e126a06eb
Partial revert of "Remove unused commands section from script"
This reverts commit e82abe92f51bc72555d74f54d6ac7a4660365408.
Accidentally committed an adjacent line, this fixes it
2022-09-27 21:45:41 -04:00
e82abe92f5
Remove unused commands section from script 2022-09-27 20:02:32 -04:00
b01c184314
Fix action wheel and implement page scrolling 2022-09-26 23:06:35 -04:00
4700991a2c
PM: use actual objects as key instead of string
I should have been doing this from the start
2022-09-26 01:15:21 -04:00
fa11b3a3f6
Fix compatibility with Figura 0.1.0-rc8
- change player:exists() to player (nil if player doesn't exist)
- re-enable edit permission checks (meta.getCanModifyVanilla() ->
  avatar.canEditVanillaModel)
- resetVisible() -> setVisible(nil)
- fix init event register
2022-09-26 01:11:48 -04:00
ef6b307c0e
Add updated UVManager code
Still needs work, I don't know how matrices work and I am going to take
a 12 hour linear algebra course to fix that.
2022-06-23 16:20:55 -04:00
1aa10b7aa7
Fix torso not moving properly with tail 2022-06-22 23:13:46 -04:00
9a17550b74
Register wrapper functions for ticks/render
Apparently dying breaks player entity checks, this fixes that. The
function will only run the tick/render if the player is alive.
2022-06-22 22:26:48 -04:00
b88e98d9fb
Ported to Figura 0.1.0
A lot of stuff is disabled, commented out, etc.
Most main features are functional. Networking still needs to be done.
Changes include:
- Rewrite a lot of API calls for the new API
- Modify model groups to fit new version
- Add a LOT of TODO comments
- Add a ping placeholder table (allows pre existing ping code to work
  locally)
- Register all tick functions, render() and player_init() to new
  EventsAPI
- Disable avatar switcher until it can be implemented on the new version
- Disable code that is reliant on checking vanilla editing permission:
	- rotation of vanilla torso/armor in tail animation
- Disable code reliant on data.save() and data.load() (settings)
- UVManager: disable table to vector conversion, rely on proper usage
- UV(): use vectors instead of table
- Disable action wheel until it can be rewritten
- Disable snore
- Disable Blockbench animations
- Convert colors to vectors
- Disable custom commands
- Disable tail armor. need to optimize in prewrite before changing
  anything
- Potentially more things that I may have missed
2022-06-22 22:03:06 -04:00
3db9cded3e
Move pm_refresh check to function 2022-04-05 20:34:35 -04:00
290af757e9
Clean up code for initial PartsManager refresh 2022-04-05 20:26:32 -04:00
f178094762
Make pmRefresh run PartsManager in same tick 2022-04-05 20:11:29 -04:00
fa7aab7f1d
Fix color handling in setExpression() 2022-03-29 10:07:14 -04:00
7b51269f8b
Add model switcher
Requires https://github.com/dragekk/figura_avatar_api
2022-03-28 22:03:19 -04:00
3989dfaece
Fix emissives for arms and legs 2022-03-28 21:51:04 -04:00
ef7b997294
UwU 2022-03-28 13:16:26 -04:00
9e70916c0e
Implement color locking and state checks 2022-03-28 11:21:06 -04:00
b72b045f29
Change color for lava 2022-03-28 01:42:18 -04:00
62038dd44e
Add extra emissives to head 2022-03-28 01:39:30 -04:00
8b08face5a
Fix nether check 2022-03-28 01:30:53 -04:00
31aada06b8
Add color checking to tick 2022-03-28 01:26:12 -04:00
10a09c51a5
Rework expression handling code 2022-03-28 01:23:02 -04:00
28f02d2ce1
Basic conversion to layered face, currently broken 2022-03-27 23:51:13 -04:00
2efcf33b18
Changes to emissives, emdots
Convert some blue emissives to emdots and handle their color in script
2022-03-27 22:20:26 -04:00
c35a0fcc25
Fix armor not showing on tail due to optimization
Now the armor handler checks amror_enabled has been toggled as well as
the armor state itself
2022-03-27 18:48:39 -04:00
17aba8701e
Rearrange script (move some portable code to top 2022-03-27 00:16:17 -04:00
f3687a47a6
Replace rad() with math.rad()
This provides more accurate angle calculation and removes an unneeded
function
2022-03-26 16:06:21 -04:00
12c8ffd2c1
Enable tail in lava 2022-03-26 00:00:09 -04:00
297ab9e40a
Keep tail while sleeping if visible (why?) 2022-03-25 21:54:52 -04:00
5e20434c71
Add animation to regular tail 2022-03-25 21:30:14 -04:00
4598c74df3
Enable mertail by default 2022-03-25 19:05:43 -04:00
58e727445a
Revert "Remove unnecessary PartsManager refreshes"
This reverts commit 625e784c579163009bd1c6eacff5f83b9d73556d.
Partial revert, only prevents syncState from clobbering local_state
2022-03-25 19:03:07 -04:00
dc630c863a
Prepopulate local_state table
This should ensure variables always exist on non-host clients
2022-03-25 18:44:16 -04:00
dfb501a3c0
Change tail switch cooldown 2022-03-25 15:13:55 -04:00
7b86d87cc2
Tail animation: rotate vanilla torso instead 2022-03-25 14:17:50 -04:00
625e784c57
Remove unnecessary PartsManager refreshes 2022-03-25 14:17:25 -04:00
07536bc979
Reset angles when out of water 2022-03-25 12:35:16 -04:00