Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hammer Has a Problem reading the Sourcemods folder. #54

Closed
reepblue opened this issue Jul 1, 2013 · 9 comments
Closed

Hammer Has a Problem reading the Sourcemods folder. #54

reepblue opened this issue Jul 1, 2013 · 9 comments

Comments

@reepblue
Copy link

reepblue commented Jul 1, 2013

In GameConfig.txt when the "GameDir" line is supplied with the user's sourcemod (e.g "GameDir" "C:\Program Files (x86)\Steam\steamapps\sourcemods\mod_hl2") with the VProject set to the user's mod, you get these errors:

currentsdkissues

As you can see, Issues include:

  • The "failed to load default scheme error" (Causing the next 2 errors)
  • Grids are missing until the mouse rolls over it.
  • No numbers on brushes and entities to report the size in units.

NOTE: There is also the error that the model should call a wireframe texture, but instead it has the checker board error texture when the model not selected. It's in this picture because I was getting all the errors in one snap for a discussion thread before I decided to let you know about it here. This is in ALL steampiped versions of Hammer. I'll make a new issue for that later if you would like.

If you were to link the tools from the SDK 2013 base to another game such as TF2, Counter-Strike: Source or even the sourcetest file, this issue vanishes! It seems like this build of Hammer does not like when a game/mod directory is outside the common folder.

A quick temp fix for modders is to have the GameDir of the GameConfig and VProject set to the sourcetest folder that is the base, and have the base load the mod directory. This is only a cheep patch, and issues with this is that Hammer puts HL2 in front of the user's loaded mod due to the "mod" being the sourcetest folder (when it should be the mod). This causes Hammer not to pick up on script manifests and some people in the MP base said they had issues loading custom models. But unfortunately I could not re-create this issue with the MP base.

Is this directory problem a left over from the Source MP tools, or are the sourcemods going under the common folder in the future?

@demonz312
Copy link

to fix the error "failed to load default scheme error"
you need to copy 2 files "sourcescheme.res" and "sourceschemebase.res" in folder "Source SDK Base 2013 Singleplayer\platform\resource" and paste them to folder "Source SDK Base 2013 Singleplayer\bin\resource". if you don't have the "resource" folder in "bin" so create one and let me know if its work!

@fuzzzzzz
Copy link

fuzzzzzz commented Jul 1, 2013

nope it doesn't fix the problem, demonz312.
but thank you for suggesting something, anyway :)

@demonz312
Copy link

from where you trying to open the hammer?

@fuzzzzzz
Copy link

fuzzzzzz commented Jul 1, 2013

I had adjusted the batch files, to have them stored directly in "sourcemods/mymod/"
well but if i run the hammer.bat file from the bin/directory of the sourcesdk base 2013, i get the same error.
if i start hammer.exe directly i get the same error.
Now if I create a desktop shortcut and add -game "mypath", i get the same error again.
I thought it was a problem with the platform folder and the gameinfo.txt, but it looks ok.

@demonz312
Copy link

i will upload the mod example to my repo, with working hammer and readme to expain how to use it.

@reepblue
Copy link
Author

reepblue commented Jul 1, 2013

I've checked your sample mod but it just more prove that Hammer does not read anything outside the common folder.

@demonz312
Copy link

yes but this is the fix atm until valve will fix this bug with hammer.

@reepblue
Copy link
Author

reepblue commented Jul 2, 2013

Yeah I know. Personally, I like my Gameinfo "fix" much better as I don't need to copy large files over. Glad to see another fix and a batch file comes in handy if people want to use this simpler method over the gameinfo method (Which can be kind of confusing). Hopefully this will get addressed soon. 👍

@alfred-valve
Copy link
Contributor

The "source sdk 2013 base single player" app update today contains this fix. This fix will roll through our other titles as they next update.

1upD added a commit to 1upD/source-sdk-2013 that referenced this issue Apr 3, 2022
…ket-credit-fix

Fixed APC rockets not crediting driver
malortie pushed a commit to malortie/source-sdk-2013 that referenced this issue Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants