1
0
mirror of https://github.com/CFC-Servers/material-editor-tool.git synced 2025-03-04 03:13:00 -05:00
Commit Graph

17 Commits

Author SHA1 Message Date
Redox
278a3400a1
Stop using net.WriteTable, improve net efficiency (#14)
* Stop using net.WriteTable, improve net efficiency

* Up precision, remove len

* Use Write/ReadInt

* Fix rounding issue

---------

Co-authored-by: StrawWagen <64710817+StrawWagen@users.noreply.github.com>
2024-10-31 14:15:14 -07:00
StrawWagen
a2f4942ff8 Tweaks
Smaller batch size, 200 > 50
Properly cleanup the serverside syncing timer and tables
Make syncing wait 1s after a save load

Client error stomp.
2024-10-25 14:40:17 -07:00
StrawWagen
af1c6eb2aa
Stepsounds (#10)
Add step sound changing support.
Entirely clientside, only changes them for the localplayer.
( stepsounds on props for other players didn't seem to work by default, so feature parity with vanilla )

By default, the step sound system checks the actual texture for a sound, then checks the noise texture for a sound.
Can be overridden though in the tool's settings.

Can be enabled/disabled by serverside & client convars.

+ Rework bumpmap system, so it actually works

---------

Co-authored-by: Redox <mail@redox.to>
2024-05-16 17:59:11 -07:00
StrawWagen
0ef227228b Fix small err 2024-05-06 10:25:30 -07:00
StrawWagen
84e97326de
Preview fixes (#9)
Fix preview not displaying sometimes
+ rework preview material changing
2024-04-24 12:54:49 -07:00
StrawWagen
19a20d33e4
Fix noise copying
- use ints to store if noise is on/off
- only pass around "untranslated" noise, never the actual texture paths.
- converts old "advanced materials" to this new standard
- some style/name tweaks for readability
2024-04-22 19:39:22 -07:00
StrawWagen
6f79f84f1a
Polish (#7)
Add detail/noise texture rotation

Tool now ""dynamically"" builds preview materials as needed, less hard coded.
Alphatype is now properly previewed
Noise textures are now properly copied
2024-04-22 11:24:12 -07:00
Redox
bc7ae04c7b
Use ipairs instead of pairs (#6) 2024-01-14 11:48:14 -07:00
Redox
9038f4315e Fix crc logic better 2024-01-04 02:13:52 +01:00
StrawWagen
0d39a5861f
Pre workshop polish (#4)
* Catch advmat 2 rotation + an error.

* Add alphatype support.

+ tweak style & var names

* Polish the tool.

Allow admins to change advanced material of players

Clean up + tweak the material copying logic.
Allow for the copying of "innate" prop materials.
So copy the explosive barrel texture off of a barrel.

Remove silly bool and material or material logic, put it into a function instead.

* Fixes

Fixed the preview not drawing sometimes.
Fixed a potential crash issue, according to the wiki at least.

* Style

* Add convar to block materializing players.

* Change filename

Change filename to avoid potential conflicts

* Fix stupid.

* Re-impliment vertexalpha

* Fix wrong number

* Material Removal Polish

* Use IsEffectActive
2024-01-03 15:42:35 -07:00
Redox
8eb027f7d2 Fix dumb NW2 bug 2024-01-03 23:38:01 +01:00
StrawWagen
096c5ff392
Tweaks+Improvements (#3)
* Catch advmat 2 rotation + an error.

* Add alphatype support.

+ tweak style & var names

* Apply suggestion + style
2023-11-27 14:01:53 -07:00
Redox
11242b80f7
Net optimization (#1)
* Turbo optimize networking

* Remove debug print

* Small limit edit

* Check for old value properly

* Apply hack to fix race condition

* Clear material flag

* Rename nw2 var
2023-11-19 01:51:21 +01:00
StrawWagen
43c4eb34d3 noise > concrete 2023-11-18 15:14:59 -07:00
StrawWagen
9820f15abb Return early if iTexture is nil
+ a comment
2023-11-18 12:28:10 -07:00
StrawWagen
651dfb7d4a Fix a small stupid 2023-11-17 15:13:37 -07:00
StrawWagen
2202533310 Add fixed advmat
No longer crashes every client when trying to validate advmats.

Advanced materials are actually removed when you hit R with the tool.

Added rotation.

Added "Wood" noise option.

Cleaned up the code.

Tested, works.
2023-11-17 15:10:41 -07:00