14712 Posts in 2613 Topics - by 7960 Members - Latest Member: Sumthanbuub

Author Topic: Tutorial: How to make hats for the server!  (Read 20307 times)

nonSENSE Online

  • September 2011
  • 1365 Posts
    • STEAM_0:0:11953676 STEAM_0:0:11953676
« October 01, 2011, 06:17:36 PM » #251

(Thanks to Knoxed for the banner)


This tool is outdated! Grab the new one here: http://moronyard.com/forums/index.php?topic=737.0



I am releasing the tool that I use to make hats for the server so you guys can make your own hats and post them here.

-- LINK REMOVED --

How to install?

  • Open the zip file, extract the contents into your addons folder (c:\program files\steam\...\garrysmod\addons) so that you have a folder that says PAC.
  • Done! You might need to restart Garry's Mod to use it.
  • Note: If you have a previous version of PAC installed, you will need to remove it and clean your data folder as well (remove or rename the pac2_outfits folder)
Tutorial:

- Start a game of sandbox (preferably multiplayer)
- Open your spawn menu and go to the options tab

- Follow these steps carefully!





1) Tick the little box next to the PAC. This will enable the addon.

2) Click the Show Editor button (this opens the main window)





3) In the Preview menu, click Enable T-Pose. This will make it easier for you to position the hat on the player model.

4) Reset the eye angles by clicking the button.






5) Open the Creation menu and click on the Part button. This will add a little icon to the top bar (the one with the baby)

6) Click the part icon in the top bar. It will now collapse the Part Menu (on the right side)





Click on the General Menu tab and it will show the following options:

7) Model: This is the path to the model your hat is using. Change it to the model of your hat.

8) Fix Origin: THIS MUST BE ENABLED AT ALL COSTS!!!!!!!! (if it isn't all the offsets and positions will be wrong and I can't use any of the data)

9) Attach to: This is the bone that you want to attach the hat to. Most hats and attachments need to be parented to the head. Others, such as the croco shield should be parented to a spine bone (else they would move whenever you move your head). The parent bone sets the movement for the hat.







When you have done step 7)-9):10) Click the little green plus sign (Start making a hat). This will switch the player model to Barney. Your screen look a little bit like the screenshot (except for your hat obviously).






Now it's time to get to work!

11) Use the Offset Menu to change the position of the hat relative to the model

12) Use the Angle Menu to change the angles of the hat.

13) Use the Scale Menu to shrink / grow the hat or to change single dimensions of the hat (make it longer, wider, taller...)
  • The Scale slider will shrink / grow the whole hat (all dimensions)
  • The X, Y and Z sliders change a single dimension
When the hat looks good on that model (see screenshot):

14) Click the little brick to save the settings for this model (Barney)






15) When you have clicked the little brick, click on the orange arrow pointing to the right (Next Model in line)
  • This will change the model to Alyx.
  • You need to adjust the settings for this model (repeat steps 11) - 13) )
  • When you are done, click the little brick again and then the right arrow (step 15)
    • This will change the model to next model. Repeat steps again...



When you have reached the last model (stripped combine) and adjusted all the settings:

16) Click the brick one last time.

17) Click the green puzzle piece once. This will generate a file with all the settings for each model.







18) The generated file can be found in your data folder (garrysmod\data\nonDB\hatsData\YOUR_MODEL\__compiled.txt)

19) Open the file _compiled.txt and check the last line. If it says TRUE, you have all the offsets you need and you are done. If it does not, it means you forgot to generate the offsets for one or several models.


When you have a correct _compiled.txt file, send it to me through a private message on the forums.

I will edit this post with more information if needed.

« Last Edit: October 27, 2012, 10:38:43 PM by nonSENSE »

nonSENSE Online

  • September 2011
  • 1365 Posts
    • STEAM_0:0:11953676 STEAM_0:0:11953676
« October 01, 2011, 06:24:07 PM » #252
Reminder:

  • If I like your hat and add it to the game, you will receive a Legendary version of your own creation!
  • Make sure that the hat looks good on all models. I can't accept hats that only look good on some models and don't work with the others. Think about this before you start to save yourself some time.
General Guidelines:

  • Most hats look best when they are scaled down / up to fit the player's head size. Experiment a bit with the settings.
    • Avoid stretching the hat in 1 dimension. This will make it lose it's shape in most cases. Unless absolutely necessary you should not do this.
  • Do not rush through the hat creation process. Take your time and be precise. I am kind of picky when it comes to clipping issues and the general feel of the hat. If something doesn't look right, I will note it and it will probably take you longer to fix than before...
  • For now, please do not use custom models. Until the resource manager is fixed, I cannot include hats with custom models; you can send them in though but I will only add them when we can offer the custom model to the users through the download manager.
  • Hats can only be up of 1 part (model) right now!

nonSENSE Online

  • September 2011
  • 1365 Posts
    • STEAM_0:0:11953676 STEAM_0:0:11953676
« October 01, 2011, 06:26:59 PM » #253
You can also post a list of hats that you want to work on to make sure several people don't work on the same hat.

Knoxed

  • September 2011
  • 51 Posts
    • STEAM_0:0:17219175 STEAM_0:0:17219175
« October 02, 2011, 05:55:46 PM » #265
Knoxed's list of hats and attachments:
  • Stainless Pot - - In Game - 780000$
  • Officer's Ushanka - - In Game - 850000$
  • Minning Light - - It might come in the future.
  • Sober Stuntman - - In Game - ?
  • Scotch Bonnet - In Game - 1200000$
  • Buckaroos Hat
  • Engineer's Cap - - In Game - ?
  • Professional Panama
  • Détective Noir
  • Cheater's Lament - - Already in game. (Halo)
  • Ellis' Cap
  • Towering Pillar of Hats
  • Noble Amassment of Hats
  • Modest Pile of Hat
  • Mann Co. Cap
  • Wiki Cap
  • Company Man
  • Trophy Belt
  • Capo's Capper
  • Dangeresque, Too? - - Finished, but not in game yet.
  • Pyro's Beanie
  • Batter's Helmet
  • Bonk Helm
  • Stout Shako
  • Soldier's Stash
  • Brain Bucket - - Already a normal bucket in game.
  • Computer Monitor Hat
  • Police Badge
  • Backwards Ballcap
  • Hermes
  • Hot Dogger
  • Hat With No Name
  • Flamboyant Flamenco
  • Tavish DeGroot Experience
  • Outdoorsman - - Finished, but not in game yet.
  • Western Wear
  • L'Inspecteur
  • Counterfeit Billycock
  • Manniversary Paper Hat
    [/COLOR]

    « Last Edit: October 16, 2011, 01:04:55 PM by Knoxed »

    Persious

    • September 2011
    • 139 Posts
      • STEAM_0:1:22507700 STEAM_0:1:22507700
    « October 02, 2011, 06:05:03 PM » #266
    Persious' list of hats & attachments:


    Hats
    1. Pumpkin Hat - ✔ - (Waiting for Resource Manager)
    2. Happy Birthday - ✔ - In-Game - 300.000 cash
    3. Toilet Hat - ✔ - (Waiting for Resource Manager)
    4. Skyrim's Helmet - ✔ - (Waiting for nonSENSE to accept it.)
    5. Fiesta Sombrero - ✔ - (Waiting for nonSENSE to accept it.)
    6. Scout's Hair - ✔ - (Waiting for nonSENSE to accept it.)

    « Last Edit: October 03, 2011, 07:40:29 PM by Persious »

    SonicSnipe

    • This user has no personal avatar.
    • October 2011
    • 4 Posts
      • STEAM_0:0:23762418 STEAM_0:0:23762418
    « October 02, 2011, 08:03:36 PM » #270
    1. Shoe Hat - Done
    2. Duck Hat
    3. Medic Hand Hat
    4. Treasure Chest Hat
    5. Axe Head(hat)
    6. Spiral Knights Helm - Done
    7. Crown
    8. Devil Mask(attachment)

    « Last Edit: October 02, 2011, 10:02:06 PM by SonicSnipe »

    SniperDuck

    • September 2011
    • 378 Posts
      • STEAM_0:1:32995937 STEAM_0:1:32995937
    « October 02, 2011, 08:16:31 PM » #271
    SniperDucks List 'o Stuff

    1. Syringe
    2. Demomans bombs ✖ - used two props :C
    3. Core (portal) ✔ - Finished, but not in game yet.
    4. Combineball aura face thing
    5. Frog✔ - Finished, but not in game yet.
    6. Sapper (spy tf2) -- attachment
    7. Balloon Animal ✔ - In Game
    8. The Intelligence(tf2) -- attachment✔ - Finished, but not in game yet.
    9. City Scanner -- attachment ✔ - Finished, but not in game yet.
    10. Cigarette -- attachment ✔ - In game

    « Last Edit: April 06, 2012, 08:37:52 PM by SniperDuck »

    Persious

    • September 2011
    • 139 Posts
      • STEAM_0:1:22507700 STEAM_0:1:22507700
    « October 02, 2011, 09:15:54 PM » #272
    Well, I and SonicSnipe were messing around, and I made something dumb.

    [ATTACH=CONFIG]55[/ATTACH]

    It's actually fun messing around with.

    « Last Edit: October 02, 2011, 09:29:17 PM by Persious »

    SniperDuck

    • September 2011
    • 378 Posts
      • STEAM_0:1:32995937 STEAM_0:1:32995937
    « October 02, 2011, 09:54:24 PM » #274
    @ persious

    I cant un-see this :C

    « Last Edit: October 02, 2011, 10:26:08 PM by SniperDuck »

    nonSENSE Online

    • September 2011
    • 1365 Posts
      • STEAM_0:0:11953676 STEAM_0:0:11953676
    « October 02, 2011, 10:02:54 PM » #275
    Updated post #2 with general guidelines.

    Click here.

    « Last Edit: March 10, 2012, 04:29:19 PM by nonSENSE »

    Stebbzor

    • September 2011
    • 521 Posts
      • STEAM_0:0:13707575 STEAM_0:0:13707575
    « October 03, 2011, 12:58:06 AM » #277
    Quote from: Persious;272
    Well, I and SonicSnipe were messing around, and I made something dumb.

    [ATTACH=CONFIG]55[/ATTACH]

    It's actually fun messing around with.

    Deceptively simple, yet elegant.

    Jequito

    • October 2011
    • 124 Posts
      • STEAM_0:0:20030563 STEAM_0:0:20030563
    « October 04, 2011, 07:22:38 AM » #284
    List of hats i want to make (will edit often)

    Bionic Eye - (Waiting For nonSENSE to accept)
    First Aid Kit (On Hand) - (Waiting For nonSENSE to accept)
    Shield (Body Attachment or Aura its wierd)   - (Waiting For nonSENSE to accept)
    Skull Back   - (Waiting For nonSENSE to accept)

    « Last Edit: October 04, 2011, 04:02:29 PM by Jequito »
    Since i do not play GMod anymore I have donated my items to Master Mark's museum. Please feel free to check it out here.

    I will try to visit this server every now and then but thanks for all the fun you guys have brought me :)

    -Jequito

    Jequito

    • October 2011
    • 124 Posts
      • STEAM_0:0:20030563 STEAM_0:0:20030563
    « October 04, 2011, 09:54:21 AM » #286
    Is there any chance you would be allowing more than 1 part maybe even in the future? Because i have lots of ideas for multipart items?

    « Last Edit: October 04, 2011, 02:34:12 PM by Jequito »
    Since i do not play GMod anymore I have donated my items to Master Mark's museum. Please feel free to check it out here.

    I will try to visit this server every now and then but thanks for all the fun you guys have brought me :)

    -Jequito

    Persious

    • September 2011
    • 139 Posts
      • STEAM_0:1:22507700 STEAM_0:1:22507700
    « October 04, 2011, 10:44:51 AM » #288
    There are a lot of stuff on PAC that'd be nice having. But I don't know, there are better stuff to take care of first, like dodgeball etc.

    nonSENSE Online

    • September 2011
    • 1365 Posts
      • STEAM_0:0:11953676 STEAM_0:0:11953676
    « October 04, 2011, 11:15:05 AM » #289
    When I wrote the tool I didn't think I would ever release it, so I only included the basics I needed to port hats from PAC to nonDB. Don't get me wrong, a lot of things in PAC are available in our attachment / hat base, but I doubt I will ever edit the tool to include them straight from PAC.

    0 Members and 1 Guest are viewing this topic.