Coder Social home page Coder Social logo

outfitter's Introduction

Coming straight from the Meta Construct Labs

Now you can wear workshop playermodels also in multiplayer! (Yes, others will see what you wear too!)


You can test the addon on Meta Construct servers.

Download

Main Feature

Allows wearing many of the playermodels from workshop in multiplayer so that others will also see them. This happens during gameplay and not while connecting to server.

Notice

Although the main functionality is working many additional features are not implemented yet.

Known working gamemodes

  • Sandbox
  • Base

How to use?

how to use

Screenshots

Planned extra features

  • Documentation!
    • Hooks
    • High performance mode (allows preventing loading more outfits during gameplay)
    • How to enforce models on players instead of letting them decide
  • Chat commands integration for admin mods
  • Further protections to make things less crashy and less exploitable (10% done)
  • Bodygroups support! (30% done)
  • Automatic wearing of outfit on join (0% done)
  • Hooks for servers to control various aspects of the addon (0% done)
  • Player Appearance Customizer 3 (PAC3) linking to autowear outfit with PAC! (0% done)
  • Blacklisting workshop addons based on title text (0% done)
  • Ignoring players (0% done, you can ignore non-steamfriends)
  • An external addon to make outfits lag-free in a VAC-safe way! (0% done)

Questions / Support / Troubleshooting

Planned bug fixes

  • Make blacklist less aggressive (20% done)
  • Disable debug printing (90% done)
  • Make certain outfits not lag when player dies (0% done)
  • Improve finding hands model for a model (0% done)

Credits

License

The addon and all contributions to it are licensed to Meta Construct for use as seen fit (including selling under a more permissive license) to ensure further development (including relicensing the whole addon and all contributions under a more permissive license such as AGPL/MIT in the future). Meta Construct may also transfer (not duplicate) its rights.

The addon is licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International Public License.

Contributing

By committing you put your code under the license above.

Alternatively, declare your contributions under Unlicense. We will attempt to honor attribution the best we can.

outfitter's People

Contributors

edunad avatar python1320 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

outfitter's Issues

Syncing Issues

I understand this is fairly early in its planned development. Just wanted to point out the syncing is nearly non-existent with this. Seems like it only tries once, wouldn't it make more sense to write the outfit to something and have it constantly sync up every 15-30 seconds if it's not currently loaded on a client? Also, !outfit send doesn't seem to actually do anything. When we have syncing issues it never works. This is also reminiscent of PAC, PAC does the same thing as outfitter with these syncing problems, it's just not as common it seems.

Me and 6 people were testing this all morning on a sandbox server with PAC and whatnot. Outfits like to constantly and randomly unwear for random people. For instance, sometimes you can wear an outfit and send it directly in front of someone, and they won't see it, but the person standing next to them will see it.

Every time I go into first person for awhile and back to third, it will unwear for me on my screen only.

Every time I encountered one of my friends on the server, his outfit would always be gone. The only way to fix it was for him to completely unwear it, and to go back into the workshop and find it again from step 1.

Great job on outfitter regardless, I will likely be getting back into rigging just for the purpose of using models I want instead of cutting up OBJs for PAC.

Progress/Errors on right side wont disappear

"playermodel name" Playermodel(oversize)
"playermodel name" playermodel(finished)
outfit mounted
"playermodel name" playermodel(finished)
"playermodel name" playermodel(finished)

That's currently the list of green progress bars on the right side of my screen. They wont go away it just keeps doing the loading animation.
If I request another playermodel it will just add to the top of list and stay there.

Bugs in Murder.

In Murder playermodels glitch out in the camera and show a distorted default model, but in-game the model is fine. When a player is killed the playermodel ragdoll defaults to the standard murder playermodels.

For some reason I can't select a distance mode it just reverts to Automatic when I select enabled or disabled.

Incompatible with complex playermodel addons (required base-packs)

Love this project. I'm just going to post some issues regarding incompatibility with a few other player model related addons/ appearances.

There are a few player model packs on the workshop - some are developed by one of my friends. These playermodel packs require other base-packs to be subscribed to as a prerequisite. Example:

Universal Sangheili Playermodel || Base
USP || Halo 3
USP || Halo: Reach

Perhaps there can be an option to load multiple addons one at a time through Outfitter.

Playermodel stop working

So yesterday, I downloaded a playermodel from the workshop, the first time I used it, it worked perfectly well.
Today, I can a million times if I want, it just prints an error :

EnforceModel CRASH models/player/bobert/mkxcassie.mdl 468972568
DoChangeOutfit Setting model failed, but file.Existed crash models/player/bobert/mkxcassie.mdl

Many of my players also got this error sometimes.
How can I fix it ?

"Too many verts."

I can't download a certain model and it gives a reason of "too many verts." Then the bottom line ends with "no models?!". So my questions are:

  1. What does this mean?
  2. Where is outfitter data stored on the PC?
  3. What can I do about it?

outfitter is not displayed

Hey. I have a small problem, after uninstalling, re-installed, my Outfitter does not show in my context menu that it is in private or servers or metaconstruct that are the only server where it works.
I spent 3 days looking for the addon file and not on the workshop,

Did you know where I could find it or if you have an alternative I'm not against thank you

Model size

Hi everyone I changed outfitter_maxsize to 10
And players can still download models larger than 10 MB
Can someone help?

This addon works in TTT?

Hello I have a question this addon works in trouble in terrorist town and support all gamemodes?

How to restrict this addon per groups?

Hey there, so I need to do this on my server with this great addon. I have this code (something easy) but I just need to find the right outfitter's lua script to apply this code.

local allowedgroups = {
"owner",
"superadmin",
"admin",
"mod",
"vip3",
"vip2",
}

if (table.HasValue(allowedgroups, ply:GetUserGroup())) then
	--code code code...
else
        ply:SendLua("GAMEMODE:AddNotify(\"You have no access to this addon!\",NOTIFY_ERROR, 5)")
end

addon 904294092 not working

this addon (Amatsukaze model made by dewobedil) has 3 models and one is a playermodel (Default_P) but otfitter doesn't see it
on other similar (again made by dewobedil) addons that has 3 models outfitter works

t posing animations

when i jump or reload or do something, the playermodel flickers while t-posing. any help?

Client side Invisible Multiplayer Playermodels

Issue: Client side Invisible Multiplayer Playermodels

I have had this ongoing issue for a fair while now, on every server that I play on that has Outfitter mounted. I have never be able to get it working after 2 reinstalls of Garry's Mod and numerous unsubscribe and resubscribes of the addon.

The Issue

Basically, On every server I go on, No matter what model. Outfitter works for on my playermodel (and everyone else can see it too)
But I can not see other players outfits - They go invisible. While the player is still there and you can see their Name & Health but there playermodel is completely gone.

With Outfitter Disabled:

With Outfitter Disabled

With Outfitter Enabled:

With Outfitter Enabled

This Happens no matter what playermodel is selected or being used. And if it is worn before with it disabled or enabled.

Adding On

I have not gotten any Lua issues or warning in console from Outfitter, while downloading, loading, or seeing people with Outfitter enabled and wearing some playermodel.

How I have tried to Fix it (and failed)

Currently all I have done is:

  • Uninstalled my game twice - And Reinstalled it after one restart.
    I have unsubscribed and closed my game, opened it until it fully un-mounts from my system directory. Closed my game and restarted my PC shortly after. And then doing it in reverse for installing & re-mounting.
  • Done a full Garry's Mod File System Integrity Check (Plus a full CRC Check)
  • Deleted the config files related to the addon, and downloaded them again.
  • Deleted the workshop cache files

Conclusion

In conclusion, this would be an excellent fix for the few people I know who have also experienced this issue - and the few who it still continues to this day. As I'm staff on a few Garry's Mod servers these days with Outfitter Installed, and I need to keep an eye on people who "Minge" around. And with the mass use of it on our servers it would help others and I to be able to see people and what they really what people to see themselves as - try not to see that as stupidly weird.

How To Contact Me

If a possible fix on my side is found, if I'm just stupid and forgot to install or setup something, or if this is a bug and if it needs to be fixed (I would like to know what was the problem was if its a bug, As I do a fair bit of Lua myself)

Contact Me Thru

Changelog

[16/04/19] Made the original post. Issue not fixed yet.
[17/04/19] Updated the post with trying to remove workshop cache. (Didn't work)

Incompatible with player ragdolls

Love this project. I'm just going to post some issues regarding incompatibility with a few other player model related addons/ appearances.

When a player is rag-dolled by using admin tools - like the ragdoll command in ULX - or by another addon like Hoverboards or Bail-Out, the ragdoll is represented by the last applied vanilla player model from the gmod player model selector.
I'm not entirely sure where gmod is referencing the ragdoll's model, but I bet Outfitter can be tweaked to overwite or properly pass that reference.

Crash to Desktop

-Lua Stack Traces-
  Client
    0. MountGMA - [C]:-1
      1. MountWS - addons/outfitter/lua/outfitter/cows.lua:333
        2. worker - addons/outfitter/lua/outfitter/cows.lua:345
          3. worker - addons/outfitter/lua/includes/modules/co.lua:604
            4. worker - addons/outfitter/lua/includes/modules/co.lua:584
              5. (null) - addons/outfitter/lua/includes/modules/co.lua:531
                6. xpcall - [C]:-1
                  7. func - addons/outfitter/lua/includes/modules/co.lua:544
                    8. (null) - addons/outfitter/lua/includes/modules/co.lua:218

  Server
    Lua Interface = NULL

  MenuSystem
    *Not in Lua call OR Lua has panicked*

The CTD seems to happen when I retry on a server with it... rarely happens if I properly disconnect and then connect. Changelevel is also bad.

"Web Browser" opening simultaneously with context menu toggle

A "Web Browser" window opens when I press my context menu toggle key. It appears under the context menu, pressing the key (my key is F1) once more closes the context menu but not the web browser. The window can be used for navigation. Both windows close if the escape key is pressed (Garry's Mod menu key.) It will be brought to the front if clicked from under the context menu. It can be jarring for some people who often use the context menu key, especially for actions "in a pinch."

The browser:
web browser

It works:
loaded google.com into web browser and it worked

UX is garbage

  • Chat can't be read while using the workshop browser
  • Which workshop addons have usable models? WHO THE FUCK KNOWS

"Too many verts, decals on model might cause crashes, use r_drawmodeldecals 0 to avoid this.."

So there is this new playermodel that came out yesterday and I've been wanting to try it out with Outfitter on Meta Construct #1 but it suddenly gave me this:

[Outfitter] CheckVVD ValidateVVDVerts models/player/dewobedil/danganronpa/ibuki_mioda/default_e too many verts, decals on model might cause crashes, use r_drawmodeldecals 0 to avoid this 63399
[Outfitter] CheckVVD ValidateVVDVerts models/player/dewobedil/danganronpa/ibuki_mioda/default_f too many verts, decals on model might cause crashes, use r_drawmodeldecals 0 to avoid this 63399
[Outfitter] CheckVVD ValidateVVDVerts models/player/dewobedil/danganronpa/ibuki_mioda/default_p too many verts, decals on model might cause crashes, use r_drawmodeldecals 0 to avoid this 63399
[Outfitter] GMAPlayerModels cache/workshop/924794017162576952.cache 0 0 1
[Outfitter] GMABlacklist cache/workshop/924794017162576952.cache
UIChoseWorkshop GMAPlayerModels 1255982644 no models!?

If you can really help me how to fix this I would greatly apperciate it. I hope you get this soon!

Whitelist

Is there anyway to make this whitelist only?

teaxture problem while loading a model

While Using the Outfitter everytime i try a new model is has this tear effect while just sitting around and running around i dont know if its on my end or the mod

hi me help

me problems crash Players Outfitter Bodygroups

		my server  complaints Players crash from server (Crashed/Network problem

addons/outfitter/lua/includes/modules/sqlext.lua:79: database disk image is malformed (Query: CREATE TABLE 'urlimage' ( url TEXT NOT NULL CHECK(url <> '') UNIQUE,
ext TEXT NOT NULL CHECK(ext = 'vtf' OR ext = 'png' OR ext = 'jpg'),
last_used INTEGER NOT NULL DEFAULT 0,
fetched INTEGER NOT NULL DEFAULT (cast(strftime('%s', 'now') as int) - 1477777422),
locked BOOLEAN NOT NULL DEFAULT 1,
w INTEGER(2) NOT NULL DEFAULT 0,
h INTEGER(2) NOT NULL DEFAULT 0,
fileid INTEG

Outfitter Bodygroups.

I don't know if this issue has been dealt with, but I have problem on server with Outfitter Bodygroups. Everytime somebody tries to change bodygroup they get ERROR message.

[ERROR] addons/outfitter/lua/outfitter/ui.lua:218: attempt to index local 'line' (a nil value)

  1. unknown - addons/outfitter/lua/outfitter/ui.lua:218
  2. unknown - lua/includes/modules/concommand.lua:54

This is message without DLib. When DLib is installed on server players get this message:

[ERROR] addons/outfitter/lua/outfitter/ui.lua:218: attempt to index field "Trim" of a nil value (probably line?)

  1. error - [C]:-1
  2. __index - lua/dlib/core/funclib.lua:50
    3. unknown - addons/outfitter/lua/outfitter/ui.lua:218
    4. unknown - lua/includes/modules/concommand.lua:54

Can somebody tell me if there is way to fix this problem or that somebody is working on fix to that problem?

Ragdoll Support?

Do you guys think you will ever add support for rag-doll models? In a similar manner to PAC3 where you can set a rag-doll as your model with bone merge?

I Need Help

Hey Guys,
how can i restrict it
do ULX groups?

Script errors when trying to equip a playermodel

I'm getting the following script errors when trying to equip any playermodel

[ERROR] lua/autorun/client/net_playervars.lua:132: attempt to call field 'queuesingle' (a nil value)

  1. SetNetData - lua/autorun/client/net_playervars.lua:132
  2. NetworkOutfit - lua/outfitter/net.lua:17
  3. BroadcastMyOutfit - lua/outfitter/cl.lua:244
  4. UIBroadcastMyOutfit - lua/outfitter/ui.lua:321
  5. GUIBroadcastMyOutfit - lua/outfitter/gui.lua:688
  6. DoClick - lua/outfitter/gui.lua:597
  7. unknown - lua/vgui/dlabel.lua:232

Can no longer wear an outfit?

But could before?

Go to settings tab and press clear blacklist.

This is a known bug/safeguard against bad addons, but it is hyperactive. We are working on fixing it.

Error by open it

When i spawn and click on it is comes but only one time the next time not but when i rejoin the server it come

Player [1][E2 Ghibli] ERR: addons/outfitter/lua/includes/modules/urlimage.lua:90: attempt to index upvalue 'db' (a number value)

  1. __index - addons/notagain/lua/notagain/essential/autorun/lua_error_hook.lua:6
  2. get_record - addons/outfitter/lua/includes/modules/urlimage.lua:90
    3. GetURLImage - addons/outfitter/lua/includes/modules/urlimage.lua:311
    4. URLImage - addons/outfitter/lua/includes/modules/urlimage.lua:395
    5. xmashat - addons/outfitter/lua/outfitter/skin.lua:19
    6. SkinHook - addons/outfitter/lua/outfitter/skin.lua:66
    7. unknown - lua/vgui/dframe.lua:203

Body Groups are seemingly broke (Workshop only?)

I was on metastruct earlier and had the body groups working ( I think ) and went to do it in Single Player but found out it didn't work.

Also, the dev branch is missing module folders etc, was going to see if I could help or something but it's seeming bare.

[ERROR] addons/outfitter/lua/outfitter/ui.lua:218: attempt to index local 'line' (a nil value)
  1. unknown - addons/outfitter/lua/outfitter/ui.lua:218
   2. unknown - lua/includes/modules/concommand.lua:54

too many verts

There's a few model addons on workshop that, when selected, give off errors such as these

[Outfitter] CheckVVD	ValidateVVDVerts	models/captainbigbutt/vocaloid/rin	too many verts
[Outfitter] CheckVVD	ValidateVVDVerts	models/player/dewobedil/kancolle/zuikaku/default_p	too many verts
[Outfitter] CheckVVD	ValidateVVDVerts	models/player/dewobedil/junko_enoshima/default_p	too many verts
[Outfitter] CheckVVD	ValidateVVDVerts	models/player/shi/rin	too many verts

and prevent the player from selecting the model. Is there a planned bugfix for this?

Incompatibility with Legs3

Love this project. I'm just going to post some issues regarding incompatibility with a few other player model related addons/ appearances.

Legs3

Workshop

Gmod Legs 3 adds first-person leg models so when you look down in-game you can see your legs. It's simple, elegant, and helps with immersion.
With Outfitter, players just see their legs represented as their last applied vanilla model using gmod's player model selector. I think the issue is that the legs mod is referencing server content for player models and I'm not entirely sure if Outfitter installs the player model addons server-side or if it's just client-side.
Either way I would love to see outfitter become compatible with Legs3.

nonworking workshop addon 898099035

] outfitter_dbg 10
[Outfitter] GMAPlayerModels pre	cache/workshop/787413668522583112.cache	
[Outfitter] CategorizeModel	nil	unkn	models/pipann/undertale/sans_pm.mdl
[Outfitter] CategorizeModel	arms	hands	models/pipann/undertale/sans_pm_hands.mdl
CheckVVD vvd not found models/sans_anm.vvd
[Outfitter] CategorizeModel	nil	unkn	models/sans_anm.mdl
[Outfitter] GMAPlayerModels	cache/workshop/787413668522583112.cache	0	1	1
[Outfitter] GMABlacklist	cache/workshop/787413668522583112.cache	
[Outfitter] CheckVTF	materials/pipann/undertale/texture-wounded.vtf
[Outfitter] CheckVTF	materials/pipann/undertale/sans_clothing.vtf
[Outfitter] CheckVTF	materials/pipann/undertale/texture-accessories.vtf
[Outfitter] CheckVTF	materials/pipann/undertale/sans_eyes.vtf
[Outfitter] CheckVTF	materials/pipann/undertale/sans_body.vtf
UIChoseWorkshop GMAPlayerModels 898099035 no models!?
[Outfitter] Workshop addon 898099035 has no playermodels
Player [20][Python1320] ERR: CheckVVD vvd not found models/sans_anm.vvd
Player [20][Python1320] ERR: UIChoseWorkshop GMAPlayerModels 898099035 no models!?

Ragdoll for player model is gone

So I've had many different playermodels where there was a ragdoll animation for death that has disappeared. Any ideas as to what is causing this and how to fix it?

Can't see my own outfit

I was in a server that has this feature and I can see everyone's player models that they picked and that works fine, but I can't see my own when I use it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.