Camera Problem in a Beginners Mod Created 8 years ago2015-08-10 21:36:41 UTC by Alles_Ratten Alles_Ratten

Created 8 years ago2015-08-10 21:36:41 UTC by Alles_Ratten Alles_Ratten

Posted 8 years ago2015-08-10 21:36:41 UTC Post #326663
Hello,
i have a strange camerabug in a selfbuild mod. i can't turn my camera more than some degrees in each direction. so i cant look completly up or down and also only a bit to the sides.
i've build the mod step by step with a tutorial. So i dont have much more than a liblist, a save folder, maps folder, the client.dll and the hl.dll.// i changed the gamemenu.res file to change the menu buttons but i also did the whole thing again without changing any further things. I've used the normal crossfire map for demonstration. https://www.youtube.com/watch?v=xM_WFsAQXU0
My liblist is looking like this:
game "TroubleOnTerra"
gamedir "TroubleOnTerra"
startmap "crossfire"
trainmap "sp"
type "Single"
hlversion "1122"
cldll "1"
gamedll "dlls/hl.dll"
Any ideas? :(
Posted 8 years ago2015-08-10 23:54:35 UTC Post #326664
Woah, weird. I assumed you meant a camera entity, but you mean the actual player view?

Go into options and make sure everything under the 'Mouse' tab is unticked except 'Mouse-Look'.
Also, unplug any USB Game Controllers you may currently have attached.

I can't think why a base mod with no coding changes would behave differently, so I'm only guessing that it's something in options.

Try deleting config.cfg from your mod directory as well.
Archie ArchieGoodbye Moonmen
Posted 8 years ago2015-08-11 00:59:34 UTC Post #326665
First, if you're not using any custom code in your mod, you don't even need a dll or client.dll in your mod folder. Just reference the main HL dll by using: gamedll "..\valve\dlls\hl.dll"

Second, make sure Half-Life is up to date, and then try using that dll and client.dll.

This bug popped up a while back when they first moved HL to Steampipe. I believe they fixed it at some point, at least with hl.dll.

Last time I tried setting up an Opposing Force "mod" (that is, copying all the files from the gearbox folder to a mod folder and running it), this bug was still there. It seems that at least for Op4, there is something hardcoded that expects the gearbox directory, and if you use the Op4 dll in your own mod folder, you get the limited view rotation like you're getting now.
Posted 8 years ago2015-08-11 16:11:26 UTC Post #326672
i am using a slightly outdated hl.dll in Half life itself. but i got the current hl.dll from a friend(it's still the same problem).
The problem also appears when refering to the hl.dll from the valve/dlls folder.
So the only option is fixing the hl.dll manually? i mean some people are still modding for hl1, so shouldnt there be a fix arround somewhere?

I don't use custom code so far but i will certainly try to. i have some experience with java. so im optimistic that i am able to change some simple things with the help of tutorials. Though i first need to get rid of that bug -.-
Posted 8 years ago2015-08-11 16:18:33 UTC Post #326673
well ok then, i'll downloaded all updates for hl and place copies of all .dlls in the modfolder. then i should be able to use the older files for my normal hl and it might just work
Posted 8 years ago2015-08-11 17:28:14 UTC Post #326674
I don't use custom code so far but i will certainly try to. i have some experience with java.
Half-Life is written in C++, not the easiest to learn programming language out there. Java is not going to work.

If you use old game dll's from an old version of Half-Life and use those for your mod, It's no wonder things start to glitch up. Don't use old dll's is my advice.

As long as you're not using any custom dll's, just remove the dlls and cl_dlls folders from your mod folder, and your mod will just use the default dll's that the base game is using. Just reference hl.dll in your liblist.gam file.
The Mad Carrot The Mad CarrotMad Carrot
Posted 8 years ago2015-08-11 18:33:13 UTC Post #326675
I know that jave wont help me directly. But with some java knowledge it's still easier to understand how some c++ code works.
Also i found this for example: (a tutorial for changing weapon properties)
http://www.moddb.com/games/half-life/tutorials/modding-weapons-ammo-weight-etc

So i will need to edit some stuff and i'm interested in it.
Unfortunately i need to keep the older .dlls in my half life folder for competitive gaming. My hl.dll is from the before 2013 (when they started patching hl again). This hl.dll was in use for many years and stable i guess but yes, sure it could be a problem in combination with other things. So the next thing is do is importing all new .dlls from the valve folder into my modfolder. then it shouldnt acces my outdated files.
Posted 8 years ago2015-08-11 20:17:51 UTC Post #326677
The problem still appears with the new Files. I tested it on a System with a completly up to date hl version on a seperate PC.

But somehow it was in fact a problem with the config.cfg.
The config is working perfectly fine in hl though. Sorry for disturbing already ;)
Posted 8 years ago2015-08-11 22:08:05 UTC Post #326679
Try deleting config.cfg from your mod directory as well.
Called it!
Archie ArchieGoodbye Moonmen
Posted 8 years ago2015-08-11 23:26:06 UTC Post #326680
hihi, yes but i also needed to replace it with a standard config (copy of default.cfg) cause otherwise it would use the config from my valve folder. also i made it "read only" for now cause it seems to be overwritten otherwise even if i dont change something in the options. nvm i know that there are other ways to handle this problem
You must be logged in to post a response.