Page 1 of 2

Ingame commands to disable fog, markers, etc.

Posted: 06 Aug 2009, 19:06
by TradeMark
I want to make some "dotwars" videos of the battles.

I dont want to record it from the minimap, because:
1) i cant see explosions there
2) the UI comes on the way
3) doesnt render most of the stuff, like shields, nanotowers, features, corpses, etc.

So all we need is:
1) /markers 0 (edit: already implemented! "/mapmarks 0" woot!)
2) /fog 0
3) /icons 1 (edit: already implemented! "/disticons *distance*" woot! though this saves the settings too...)

So i can disable the fog from the map, would render it about the same as the minimap is.

And markers/drawing off.

And force it to draw always uniticons, no matter what distance they are from camera.

Re: Ingame commands to disable fog, markers, etc.

Posted: 06 Aug 2009, 19:29
by Auswaschbar
uniticondistance

Re: Ingame commands to disable fog, markers, etc.

Posted: 06 Aug 2009, 19:43
by TradeMark
yeah i know, but _ingame_, so i dont need to change the settings from that springsettings.exe every time and then change them back to normal later

Re: Ingame commands to disable fog, markers, etc.

Posted: 06 Aug 2009, 20:16
by jK

Code: Select all

	else if (cmd == "disticon") {
		if (!action.extra.empty()) {
			const int iconDist = atoi(action.extra.c_str());
			unitDrawer->SetUnitIconDist((float)iconDist);
			configHandler->Set("UnitIconDist", iconDist);
			logOutput.Print("Set UnitIconDist to %i", iconDist);
		}
	}
	else if (cmd == "distdraw") {
		if (!action.extra.empty()) {
			const int drawDist = atoi(action.extra.c_str());
			unitDrawer->SetUnitDrawDist((float)drawDist);
			configHandler->Set("UnitLodDist", drawDist);
			logOutput.Print("Set UnitLodDist to %i", drawDist);
		}
	}

Re: Ingame commands to disable fog, markers, etc.

Posted: 06 Aug 2009, 20:25
by TradeMark
what does that code mean? shows icons with /disticon command? thanks anyways if you implemented any of my ideas :-)

could we also fix this pause button? when i speed up the replay, it sometimes starts lagging so much i cant pause it anymore, or change the speed back to normal enough fast. Because: holding pause will make it unpause/pause, so it just spams pause/unpause and i have 50% chance to make it paused and set game speed normal again. sometimes the game ended before my key presses were even recognized by the engine x/

Re: Ingame commands to disable fog, markers, etc.

Posted: 06 Aug 2009, 20:30
by jK
it is CURRENT code, no one implemented anything cuz of your ideas -_-

Re: Ingame commands to disable fog, markers, etc.

Posted: 06 Aug 2009, 20:42
by TradeMark
omg no! awesome!

too bad that command saves the settings too, so i cant just trigger it on/off...

we need a list for all commands you can use, nobody can remember these :/

now all we need is /fog 0 8)

Re: Ingame commands to disable fog, markers, etc.

Posted: 06 Aug 2009, 21:22
by Auswaschbar
TradeMark wrote:we need a list for all commands you can use, nobody can remember these :/
Everyone can take a look at the source file.
TradeMark wrote:too bad that command saves the settings too, so i cant just trigger it on/off...
Lua.

Re: Ingame commands to disable fog, markers, etc.

Posted: 06 Aug 2009, 21:24
by CarRepairer
TradeMark wrote:we need a list for all commands you can use, nobody can remember these :/
See CA's ingame menu.

Re: Ingame commands to disable fog, markers, etc.

Posted: 06 Aug 2009, 22:47
by FLOZi
Auswaschbar wrote:
TradeMark wrote:we need a list for all commands you can use, nobody can remember these :/
Everyone can take a look at the source file.
Not a valid alternative to proper documentation.

Re: Ingame commands to disable fog, markers, etc.

Posted: 06 Aug 2009, 23:08
by trepan
cmds.txt
http://github.com/spring/spring/blob/75 ... n/cmds.txt
you might want to wikify it if it hasn't already been done.
P.S. looks like it hasn't been kept up to date.

Re: Ingame commands to disable fog, markers, etc.

Posted: 06 Aug 2009, 23:12
by TradeMark
rofl at you guys answers "everyone can read the source" - "play CA!" sheesh.

just include the commands list in every release of spring and use some F-keys to show the list ingame and ability to click a command you want, + show the command parameters & info what it does.

Re: Ingame commands to disable fog, markers, etc.

Posted: 06 Aug 2009, 23:16
by CarRepairer
TradeMark wrote:rofl at you guys answers "everyone can read the source" - "play CA!" sheesh.

just include the commands list in every release of spring and use some F-keys to show the list ingame and ability to click a command you want, + show the command parameters & info what it does.
-1, most commands are not relevant to players.

Re: Ingame commands to disable fog, markers, etc.

Posted: 07 Aug 2009, 00:03
by TradeMark
so why does CA has this option then?

you are right, most of them arent relevant, but still theres no reason to hide them, it could have some button to expand the list of commands into "pro" mode, like springsettings.exe has already.

for example "/minimap simplecolors" is really useful when you are speccing, and 99% of players dont even know that command exists :/

Re: Ingame commands to disable fog, markers, etc.

Posted: 07 Aug 2009, 00:20
by CarRepairer
This is the widget song..
widge widge widge,
widge widge widge.
This is the widget song,
I widge-it all day long!


:mrgreen: :-) :wink: 8)

Re: Ingame commands to disable fog, markers, etc.

Posted: 07 Aug 2009, 00:43
by TradeMark
Yay finished my video now! this is first HD quality dot wars video of spring ever on youtube :shock:
http://www.youtube.com/watch?v=CDZpUOLqL_Q&fmt=22

more to come ^^

Re: Ingame commands to disable fog, markers, etc.

Posted: 07 Aug 2009, 10:41
by hoijui
in-game:

Code: Select all

<enter>, "/", <Tab>
known as tab completion

Re: Ingame commands to disable fog, markers, etc.

Posted: 07 Aug 2009, 10:50
by Master-Athmos
Use Spring's recorder for no low framerates in you video. That way you also won't tape the annoying sound effects which made my ears bleed. Add music or something...

Apart from that I found it nowhere interesting to watch since BA simply just has like 3 radar icons...

Re: Ingame commands to disable fog, markers, etc.

Posted: 07 Aug 2009, 13:09
by TradeMark
Master-Athmos wrote:Apart from that I found it nowhere interesting to watch since BA simply just has like 3 radar icons...
haha whiners, at least you can see the uniticons in my video :D other dot wars videos on youtube are so shit quality you barely even see any shapes on the icons xd

Master-Athmos wrote:Use Spring's recorder for no low framerates in you video. That way you also won't tape the annoying sound effects which made my ears bleed. Add music or something...
my video is 30fps and its the maximum for youtube. i recorded it in real time, then changed the speed with some video edit program, thats also why sounds are faster in it. theres no way you can notice any lag there since its 8x speed from realtime video >_> your computer lags. (oh no, but the ending has some lag! because of spring always lags in the end of battle for 2 seconds, nooo!)

btw i thought they removed springs video recorder, at least nobody knows which button it starts it anymore. anyways, its not the good way to record, because it will record the whole screen, and i dont need that, i just record a square, so only the map will be recorded. smaller filesize, cooler video.


but ye i will add in my next video some hardcore techno trance psytrance rave house music in the background just for u guys.

Re: Ingame commands to disable fog, markers, etc.

Posted: 07 Aug 2009, 13:46
by TradeMark
I found awesome replay now, but its old spring version (0.78.2.1) and i cant use the TAB render mode because the 15 specs in the game are drawing shit all the time on the ground and the /mapmarks command is broken in that version. (and anyways i want to use minimap for some other reasons)

So how do i hide all the UI without hiding the minimap which i maximized with the button?

I know its possible by lua, but how? i need to hide the chat, marker animation on minimap (that rotating rectangle), metal/energy bar, and mouse position info box at bottom left.