Page 1 of 1

Blue Building Beam

Posted: 18 Apr 2019, 20:21
by Swagmaster Bandit
I'm completely new to modding Warzone 2100, and I quickly just wanted to know if there is any way to remove the Blue Building Beam that the truck make when building/repairing stuff, it triggers seizures in my friend. No idea how to do it itself, as we will be playing Ultimate Scavenger mod this weekend.

Thanks since now.

Re: Blue Building Beam

Posted: 18 Apr 2019, 21:03
by Cyp
If you compile the game yourself, then maybe by removing the contents of renderConstructionEffect() in src/effects.cpp. Haven't tested, so not completely sure it's the right function.

Re: Blue Building Beam

Posted: 18 Apr 2019, 21:13
by Swagmaster Bandit
Yeah, I have no idea how to do absolutely none of that, I'm literaly just trying to remove the building beam just so that my friend can get a taste of Warzone 2100 since he loves RTS games. How would I compile the game myself even? No clue how I would do that. Wish there was just an option to disable that thing. :p

Re: Blue Building Beam

Posted: 18 Apr 2019, 21:15
by NoQ
My equally random guess is addConstructionLine(). It mentions beam colors.

Re: Blue Building Beam

Posted: 18 Apr 2019, 21:22
by Swagmaster Bandit
Apologies, but you're speaking greek with me there. I have no clue how to compile stuff. I may even be able to deal with whatever you guys are talking, but I don't even know how to start, trying to get it done for this weekend. Still, thanks for this info.

Re: Blue Building Beam

Posted: 18 Apr 2019, 22:03
by Berserk Cyborg
NoQ wrote:
18 Apr 2019, 21:15
My equally random guess is addConstructionLine(). It mentions beam colors.
Tried both. Commenting this one out removed the beam. Not sure what renderConstructionEffect() does since I don't see any difference with or without it.

Re: Blue Building Beam

Posted: 19 Apr 2019, 00:34
by NoQ
Swagmaster Bandit wrote:
18 Apr 2019, 21:22
Apologies, but you're speaking greek with me there. I have no clue how to compile stuff. I may even be able to deal with whatever you guys are talking, but I don't even know how to start, trying to get it done for this weekend. Still, thanks for this info.
What we're saying is "Unfortunately, this cannot be done by modifying game data via mods. You need to modify the game itself, i.e., a program, i.e., an executable, i.e. do programming, in order to change the beam." This isn't hard but requires some effort if you didn't do this sort of stuff before. The official guide is at http://developer.wz2100.net/wiki/CompileGuide

Somebody may find time to implement disabling the beam as an accessibility option or expose the beam to mods, but you'd have to wait for that. I also wonder if our new buildbots are capable of releasing modified game versions from branches easily enough to encourage somebody to try this out.

Re: Blue Building Beam

Posted: 20 Apr 2019, 16:45
by xShadow421x
As long as you're playing a relatively new version of Warzone (anything after 3.1.5), the beam was given editable hexadecimal color data which you can see in data/base/palette.txt.
As far as I can tell, the Alpha channel didn't seem to have any effect on it's opacity, but setting the RGB channels to zero basically rendered it as invisible.
So as an easier solution if it works for you, just do that for both the blue-constructor beam AND the red-demolish beam, then pack that file as a mod for you & your friend.

Re: Blue Building Beam

Posted: 05 May 2019, 19:18
by Cyp
Swagmaster Bandit wrote:
18 Apr 2019, 21:22
Apologies, but you're speaking greek with me there. I have no clue how to compile stuff. I may even be able to deal with whatever you guys are talking, but I don't even know how to start, trying to get it done for this weekend. Still, thanks for this info.
Bit late for that weekend, but maybe it will work better now, if trying a recent build (or beta2 if/when that comes out). At least, it shouldn't be flickering at 60 Hz anymore.

I can't find Windows builds that used to be at http://buildbot.wz2100.net/files/CI/master/ but maybe someone else knows where they went.

Edit: Think it's at https://ci.appveyor.com/project/Warzone ... /artifacts