Hiding "Cam_1A" and current time

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
donblas
Greenhorn
Posts: 15
Joined: 04 May 2010, 15:31

Hiding "Cam_1A" and current time

Post by donblas »

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
KukY
Regular
Regular
Posts: 1859
Joined: 20 Mar 2009, 21:56

Re: Hiding "Cam_1A" and current time

Post by KukY »

The easiest way to do that is to enter cheat(debug) mode :D
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA

Re: Hiding "Cam_1A" and current time

Post by Zarel »

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

Post by donblas »

I'm at work right now so I can't test it out. What does Tab do?
KukY
Regular
Regular
Posts: 1859
Joined: 20 Mar 2009, 21:56

Re: Hiding "Cam_1A" and current time

Post by KukY »

Hides all of UI(user interface).
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

Post by donblas »

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
donblas
Greenhorn
Posts: 15
Joined: 04 May 2010, 15:31

Re: Hiding "Cam_1A" and current time

Post by donblas »

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"?
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA

Re: Hiding "Cam_1A" and current time

Post by Zarel »

donblas wrote:If I'm reading the source right, display3d.c is where this lives.
You are correct.
donblas wrote:There is a console command "showlevelname" that should switch it off...I'll test tonight
To be exact, it's a cheat code; you'll need to turn on cheats ("cheat on") first.
donblas wrote:Did somebody accidently release a DEBUG build as the shipping exe, since this is behind "#ifdef DEBUG"?
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
Greenhorn
Posts: 15
Joined: 04 May 2010, 15:31

Re: Hiding "Cam_1A" and current time

Post by donblas »

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?
Dalton
Trained
Trained
Posts: 361
Joined: 11 Jan 2010, 19:41
Location: Canada

Re: Hiding "Cam_1A" and current time

Post by Dalton »

donblas wrote:but won't that mean you can't turn it off in multiplayer?
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
Greenhorn
Posts: 15
Joined: 04 May 2010, 15:31

Re: Hiding "Cam_1A" and current time

Post by donblas »

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...
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA

Re: Hiding "Cam_1A" and current time

Post by Zarel »

donblas wrote:I'll be honest, it's a little disconcerting to get this kind of resistance to a simple request.
They're not developers; don't let them get to you. :|

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.
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)
Hey, it wasn't sarcastic at all! It was just the best thing I could think of. :| I didn't know there was a cheat code to turn off just the level name display (since I wasn't the one who added it - I believe that was Buginator).
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...
:| Ah, c'mon, it was one guy. Again, don't let it get to you; most of us are pretty friendly.

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

Post by donblas »

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.
KukY
Regular
Regular
Posts: 1859
Joined: 20 Mar 2009, 21:56

Re: Hiding "Cam_1A" and current time

Post by KukY »

Zarel wrote:Calming post.
I don't understand how do you stay focused enough and have enough energy and nerves to still make those posts...
It's so energy draining...
User avatar
Zarel
Elite
Elite
Posts: 5770
Joined: 03 Jan 2008, 23:35
Location: Minnesota, USA

Re: Hiding "Cam_1A" and current time

Post by Zarel »

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.