Page 1 of 2

Probably an old question, but please help if you can

Posted: 13 Jul 2008, 10:33
by Stanky105
Hey all,

Is there a way to reveal the entire map during gameplay without having to use that .spectator cheat that disables your own units? I want to play againts bots with the entire map in view. Or perhaps I should re-word the question to is there a way to remove the fog of war?

I know this may be a question that has been discussed repeatedly for you people who have been playing the game for a long time (I just recently began to play it agan,) but I didn't have much luck with the messageboard search. Any help is much appreciated. :-)

Re: Probably an old question, but please help if you can

Posted: 13 Jul 2008, 11:44
by the-middleman
hmm try the godmode cheat. It gives you control over ALL units in game.

Re: Probably an old question, but please help if you can

Posted: 13 Jul 2008, 23:55
by hamsate
Or you could include a small unit into the mod that has a huge line of sight.

Re: Probably an old question, but please help if you can

Posted: 15 Jul 2008, 01:27
by TradeMark
hamsate wrote:Or you could include a small unit into the mod that has a huge line of sight.
bullshit, the mountains will stop you seeing further, it wont work. and the LOS system is retarded, you cant make extremely long LOS, it starts getting buggy. :cry:

if someone knows, gimme hint how to make all units visible like they had LOS on them. would be great feature in spring.

Re: Probably an old question, but please help if you can

Posted: 15 Jul 2008, 07:35
by Forboding Angel
Create () {
move piecenum to y-axis [5000.000000] now;
}

No longer bullshit.

Re: Probably an old question, but please help if you can

Posted: 15 Jul 2008, 07:42
by Peet
Forboding Angel wrote:Create () {
move piecenum to y-axis [5000.000000] now;
}

No longer bullshit.
Yup, because a piece controls the origin of the view radius, moving it fixes the issues with very large LoS radii, and a fragment of bos code is extremely useful to an end user. Excellent assertion :wink:

Re: Probably an old question, but please help if you can

Posted: 15 Jul 2008, 16:44
by TradeMark
i did:

Code: Select all

move base to y-axis [5000.000000] now;
and gave to unit:
radardistance=2000000;

and the radar distance wont get longer at some point.

the map size is 22x22 and i want the radar distance can fill the whole map no matter where you put it.

i tried to tweak sensors.tdf and done:
LosMipLevel=6;
AirLosMipLevel=6;

and still the range is same, and radar resolution didnt change.

is there some setting for radar miplevels? or what

Re: Probably an old question, but please help if you can

Posted: 15 Jul 2008, 17:05
by Forboding Angel
Sorry, I wasn't previously aware that there was a maximum distance on los and radar... Speaking of... WTF??? Why? That makes no sense!

I suppose the alternate would be to make a single poly a unit, don't give it a texture (so it will stay invisible) give it flight, a max acceleration and brakerate of like 100, maxaccel of 10, turnrate 90000, cruisealt 800 or so, and a complicated patrol route.

I'm not sure how good of an idea that would be, nor if the los map would update quickly enough, but meh. Other than that, I got nothing.

Re: Probably an old question, but please help if you can

Posted: 15 Jul 2008, 18:13
by pintle
Fibre anyone?

Re: Probably an old question, but please help if you can

Posted: 15 Jul 2008, 18:52
by TradeMark
the los map updates like every 2 seconds or something... very slow.

well, i cant make such air unit so i'll just forget it.

cant someone just remove the restriction in the max los range? or at least make it bigger, as big as the map is + multiply it with 2 ?

Re: Probably an old question, but please help if you can

Posted: 15 Jul 2008, 19:15
by SinbadEV
pintle wrote:Fibre anyone?
Fibre used a trick with LUA to just manually mark all units as within LOS to override built in functionality if I recall correctly... a good plan, maybe someone can dig the method out of there and put it in a Mutator or Map for the desired mod.

Re: Probably an old question, but please help if you can

Posted: 15 Jul 2008, 21:50
by TradeMark
cant you just make a feature in spring to disable los completely? (so it wouldnt check los at all = all visible).

Re: Probably an old question, but please help if you can

Posted: 15 Jul 2008, 23:02
by Forboding Angel
That would be ideal. I dunno, pitch it to the devs.

Re: Probably an old question, but please help if you can

Posted: 15 Jul 2008, 23:23
by smoth
I am going to look at adding this as a mod option for gundam. It will be PD.

Any ideas on how this should be approached in lua feel free to tell me.

Re: Probably an old question, but please help if you can

Posted: 16 Jul 2008, 00:07
by TradeMark
Forboding Angel wrote:That would be ideal. I dunno, pitch it to the devs.
i did that like year ago... nothing happened

Re: Probably an old question, but please help if you can

Posted: 16 Jul 2008, 00:37
by Nemo

Code: Select all

function gadget:GetInfo()
	return {
		name = "noLOS",
		desc = "Disables LOS",
		author = "KDR_11k (David Becker)",
		date = "2007-11-18",
		license = "None",
		layer = 1,
		enabled = true
	}
end

if (gadgetHandler:IsSyncedCode()) then

--SYNCED

function gadget:UnitCreated(u, ud, team)
	Spring.SetUnitAlwaysVisible(u,true)
end

end
Plug that into your mod, and every unit will be visible all the time, LoS or no LoS.

Re: Probably an old question, but please help if you can

Posted: 16 Jul 2008, 00:50
by smoth
I'll take a look at it tonight. thanks nemo.

Re: Probably an old question, but please help if you can

Posted: 16 Jul 2008, 01:04
by aegis
[16:57:29] * CommitBot ====> kloot committed revision 6183 <====
[16:57:29] * CommitBot Modified:
[16:57:29] <CommitBot> trunk/rts/Game/Game.cpp
[16:57:29] <CommitBot> trunk/rts/Sim/Misc/LosHandler.h
[16:57:29] <CommitBot> trunk/rts/System/GlobalStuff.cpp
[16:57:29] <CommitBot> trunk/rts/System/GlobalStuff.h
[16:57:29] * CommitBot Log:
[16:57:29] <CommitBot> add a globalLOS param to gs (when enabled, everything is visible everywhere)
[16:57:29] <CommitBot> .
[16:57:30] ** CommitBot left the channel( Quit: connection lost ).
[16:57:34] * BuildServ * New revision available (hit "!rebuild" in #buildserv to build it): r6183 (committed by kloot on 2008-07-16 00:57:27 +0200)

Re: Probably an old question, but please help if you can

Posted: 16 Jul 2008, 01:34
by smoth
sweet. less work 4 meh!

Re: Probably an old question, but please help if you can

Posted: 16 Jul 2008, 01:40
by TradeMark
does this mean we will have "permanent los" button in the lobby client too? or else how we use that feature? that would be great.