Ingame commands to disable fog, markers, etc.

Ingame commands to disable fog, markers, etc.

Requests for features in the spring code.

Moderator: Moderators

User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

Ingame commands to disable fog, markers, etc.

Post 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.
Last edited by TradeMark on 06 Aug 2009, 20:45, edited 1 time in total.
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

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

Post by Auswaschbar »

uniticondistance
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

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

Post 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
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

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

Post 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);
		}
	}
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

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

Post 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/
User avatar
jK
Spring Developer
Posts: 2299
Joined: 28 Jun 2007, 07:30

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

Post by jK »

it is CURRENT code, no one implemented anything cuz of your ideas -_-
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

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

Post 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)
Auswaschbar
Spring Developer
Posts: 1254
Joined: 24 Jun 2007, 08:34

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

Post 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.
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

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

Post by CarRepairer »

TradeMark wrote:we need a list for all commands you can use, nobody can remember these :/
See CA's ingame menu.
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

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

Post 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.
trepan
Former Engine Dev
Posts: 1200
Joined: 17 Nov 2005, 00:52

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

Post 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.
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

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

Post 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.
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

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

Post 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.
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

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

Post 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 :/
User avatar
CarRepairer
Cursed Zero-K Developer
Posts: 3359
Joined: 07 Nov 2007, 21:48

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

Post 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)
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

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

Post 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 ^^
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

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

Post by hoijui »

in-game:

Code: Select all

<enter>, "/", <Tab>
known as tab completion
Master-Athmos
Posts: 916
Joined: 27 Jun 2009, 01:32

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

Post 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...
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

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

Post 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.
User avatar
TradeMark
Posts: 4867
Joined: 17 Feb 2006, 15:58

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

Post 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.
Post Reply

Return to “Feature Requests”