Hiding "Cam_1A" and current time
-
donblas
- Greenhorn
- Posts: 15
- Joined: 04 May 2010, 15:31
Hiding "Cam_1A" and current time
I first wanted to say thanks for keeping this great game alive and kicking, I used to play back when it was commercial. Having the videos back is awesome as well.
When I start the campaign, next to the "pi-menu" there is two lines:
cam_1a
current time.
Having cam_1a in particular is really annoying, it pulls me out of the game and reminds me I'm on a map. Is there any way to hide it? If I have to download and rebuild the source, I'll do that if I really have to...
Thanks
When I start the campaign, next to the "pi-menu" there is two lines:
cam_1a
current time.
Having cam_1a in particular is really annoying, it pulls me out of the game and reminds me I'm on a map. Is there any way to hide it? If I have to download and rebuild the source, I'll do that if I really have to...
Thanks
-
KukY
- Regular

- Posts: 1859
- Joined: 20 Mar 2009, 21:56
Re: Hiding "Cam_1A" and current time
The easiest way to do that is to enter cheat(debug) mode 
-
Zarel
- Elite

- Posts: 5770
- Joined: 03 Jan 2008, 23:35
- Location: Minnesota, USA
Re: Hiding "Cam_1A" and current time
Erm, well, for immersion, I suppose you could press Tab...
-
donblas
- Greenhorn
- Posts: 15
- Joined: 04 May 2010, 15:31
Re: Hiding "Cam_1A" and current time
I'm at work right now so I can't test it out. What does Tab do?
-
KukY
- Regular

- Posts: 1859
- Joined: 20 Mar 2009, 21:56
Re: Hiding "Cam_1A" and current time
Hides all of UI(user interface).
So not only make those data dissapear, but also do that to all menus!
-.-
So not only make those data dissapear, but also do that to all menus!
-.-
-
donblas
- Greenhorn
- Posts: 15
- Joined: 04 May 2010, 15:31
Re: Hiding "Cam_1A" and current time
Sigh. That wasn't what I was looking for (obviously). Can somebody point me to the code for drawing the UI that the "tab" comment would turn off. I'll go comment out the line and recompile if nobody wants to be helpful...
I'm starting my search in:
https://warzone2100.svn.sourceforge.net ... /display.c
I'm starting my search in:
https://warzone2100.svn.sourceforge.net ... /display.c
-
donblas
- Greenhorn
- Posts: 15
- Joined: 04 May 2010, 15:31
Re: Hiding "Cam_1A" and current time
If I'm reading the source right, display3d.c is where this lives.
#ifdef DEBUG
char buildInfo[255];
if (showLevelName)
{
iV_DrawText( getLevelName(), RET_X + 134, 420 + E_H );
}
getAsciiTime(buildInfo,gameTime);
iV_DrawText( buildInfo, RET_X + 134, 434 + E_H );
#endif
There is a console command "showlevelname" that should switch it off...I'll test tonight
Did somebody accidently release a DEBUG build as the shipping exe, since this is behind "#ifdef DEBUG"?
#ifdef DEBUG
char buildInfo[255];
if (showLevelName)
{
iV_DrawText( getLevelName(), RET_X + 134, 420 + E_H );
}
getAsciiTime(buildInfo,gameTime);
iV_DrawText( buildInfo, RET_X + 134, 434 + E_H );
#endif
There is a console command "showlevelname" that should switch it off...I'll test tonight
Did somebody accidently release a DEBUG build as the shipping exe, since this is behind "#ifdef DEBUG"?
-
Zarel
- Elite

- Posts: 5770
- Joined: 03 Jan 2008, 23:35
- Location: Minnesota, USA
Re: Hiding "Cam_1A" and current time
You are correct.donblas wrote:If I'm reading the source right, display3d.c is where this lives.
To be exact, it's a cheat code; you'll need to turn on cheats ("cheat on") first.donblas wrote:There is a console command "showlevelname" that should switch it off...I'll test tonight
It's only behind #ifdef DEBUG in trunk. In 2.3, Buginator made a decision to show level names everywhere, because it made getting the answer to "Which level are you on?" a lot easier.donblas wrote:Did somebody accidently release a DEBUG build as the shipping exe, since this is behind "#ifdef DEBUG"?
-
donblas
- Greenhorn
- Posts: 15
- Joined: 04 May 2010, 15:31
Re: Hiding "Cam_1A" and current time
Can we get a non-cheat way of turning it off? An option in video or gameplay would be great, but I'm assuming that's a bunch of work.
I'm unsure if cheating marks your single player saves, but won't that mean you can't turn it off in multiplayer?
I'm unsure if cheating marks your single player saves, but won't that mean you can't turn it off in multiplayer?
-
Dalton
- Trained

- Posts: 361
- Joined: 11 Jan 2010, 19:41
- Location: Canada
Re: Hiding "Cam_1A" and current time
Yes, but I really don't think many people care that much it is two little lines and the time is nice to have without opening the MP options box. You see a mouse and tabs for research and weapons... its a game.donblas wrote:but won't that mean you can't turn it off in multiplayer?
-
donblas
- Greenhorn
- Posts: 15
- Joined: 04 May 2010, 15:31
Re: Hiding "Cam_1A" and current time
I'll be honest, it's a little disconcerting to get this kind of resistance to a simple request. Look, I'm an experienced C++ dev, so if I don't like the line, I'll recompile and play multiplayer without it. Just take a second to look at it from my point of view.
0) Oh, wow I remember warzone, let's download it and check it out
1) Oh, looks better than I remember. Wait, what's that CAM_01 nonsense.
2) Let's go post on the forum, I'm sure there's an easy way to turn that off
3) Sarcastic comment from developer saying I could use TAB, which turns off the entire UI (this is the point a normal user would just quit)
4) Digging through source, finds line of source and option to turn it off
5) Asks if we could get some other way to turn this off, admitting that the "right" way might be a lot of work.
6) Another sarcastic comment about this being a game.
I've got the information to get what I wanted done. I was tempted if I got a decent response to take time and hack up a patch to implement this as an option. However, I'm unsure if I want to spend time working on a game with a community that is this hostile over a few lines of spam...
0) Oh, wow I remember warzone, let's download it and check it out
1) Oh, looks better than I remember. Wait, what's that CAM_01 nonsense.
2) Let's go post on the forum, I'm sure there's an easy way to turn that off
3) Sarcastic comment from developer saying I could use TAB, which turns off the entire UI (this is the point a normal user would just quit)
4) Digging through source, finds line of source and option to turn it off
5) Asks if we could get some other way to turn this off, admitting that the "right" way might be a lot of work.
6) Another sarcastic comment about this being a game.
I've got the information to get what I wanted done. I was tempted if I got a decent response to take time and hack up a patch to implement this as an option. However, I'm unsure if I want to spend time working on a game with a community that is this hostile over a few lines of spam...
-
Zarel
- Elite

- Posts: 5770
- Joined: 03 Jan 2008, 23:35
- Location: Minnesota, USA
Re: Hiding "Cam_1A" and current time
They're not developers; don't let them get to you.donblas wrote:I'll be honest, it's a little disconcerting to get this kind of resistance to a simple request.
In an open-source project's forum, most requests are kind of spurious, so forum regulars tend to suggest workarounds instead of bothering the devs with change requests.
Hey, it wasn't sarcastic at all! It was just the best thing I could think of.donblas wrote:3) Sarcastic comment from developer saying I could use TAB, which turns off the entire UI (this is the point a normal user would just quit)
donblas wrote:I've got the information to get what I wanted done. I was tempted if I got a decent response to take time and hack up a patch to implement this as an option. However, I'm unsure if I want to spend time working on a game with a community that is this hostile over a few lines of spam...
I'd certainly appreciate a patch to implement this as an option. I've been meaning to redo the cheat code system so non-cheat commands didn't require turning on cheat mode, but I haven't gotten to it yet.
-
donblas
- Greenhorn
- Posts: 15
- Joined: 04 May 2010, 15:31
Re: Hiding "Cam_1A" and current time
Thanks for the calming reply. I think my work stress is coming out in my non-work forums posts. Please accept my apology.
I normally work on C# stuff for non-work projects, but hacking up a patch might not be out of the question. Could you point me to the code that draws the main menu options menu? I won't make any promises, but I'll take a look.
I normally work on C# stuff for non-work projects, but hacking up a patch might not be out of the question. Could you point me to the code that draws the main menu options menu? I won't make any promises, but I'll take a look.
-
KukY
- Regular

- Posts: 1859
- Joined: 20 Mar 2009, 21:56
Re: Hiding "Cam_1A" and current time
I don't understand how do you stay focused enough and have enough energy and nerves to still make those posts...Zarel wrote:Calming post.
It's so energy draining...
-
Zarel
- Elite

- Posts: 5770
- Joined: 03 Jan 2008, 23:35
- Location: Minnesota, USA
Re: Hiding "Cam_1A" and current time
The menu options are in frontend.c, but I'd recommend not touching that in the short term.
First, you should familiarize yourself with configuration.c. That's where configs are stored. If you add a configuration setting there, you'll be able to edit it using the config file in Warzone's configuration directory.
First, you should familiarize yourself with configuration.c. That's where configs are stored. If you add a configuration setting there, you'll be able to edit it using the config file in Warzone's configuration directory.