Always showing minimap

Discuss the future of Warzone 2100 with us.

What do you prefer?

Keep minimap as it is
13
54%
Always show the minimap
11
46%
 
Total votes: 24

User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: Always showing minimap

Post by NoQ »

For campaign missions, we could add some sort of variable that's used to determine whether or not the minimap will be displayed independent from the presence of an HQ.
I'd agree to have this sort of variable for skirmish/multiplayer mods to access as well, for the sake of spectator support.
User avatar
Shadow Wolf TJC
Regular
Regular
Posts: 1047
Joined: 16 Apr 2011, 05:12
Location: Raleigh, NC

Re: Always showing minimap

Post by Shadow Wolf TJC »

NoQ wrote:
For campaign missions, we could add some sort of variable that's used to determine whether or not the minimap will be displayed independent from the presence of an HQ.
I'd agree to have this sort of variable for skirmish/multiplayer mods to access as well, for the sake of spectator support.
So how does 1 variable per player sound instead? For participants in a multiplayer match, this would default to "OFF" so that they'd need an HQ to have their minimap active. For spectators, this would default to "ON" so that they could have a minimap at all times, even if they don't have an HQ (which they shouldn't anyways).

That reminds me, :idea: we should also add another variable-per-player that controls whether or not the entire map is revealed to them (as if they had a Satellite Uplink, even if one is not really present). By default, this would be "OFF" for players, and "ON" for spectators.
Creator of Warzone 2100: Contingency!
Founder of Wikizone 2100: http://wikizone2100.wikia.com/wiki/Wikizone_2100
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: Always showing minimap

Post by NoQ »

Right :3
User avatar
lav_coyote25
Professional
Professional
Posts: 3434
Joined: 08 Aug 2006, 23:18

Re: Always showing minimap

Post by lav_coyote25 »

NoQ wrote:Right :3

why?
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: Always showing minimap

Post by NoQ »

Because that's exactly what i was looking for recently :)
User avatar
milo christiansen
Regular
Regular
Posts: 749
Joined: 02 Jun 2009, 21:23
Location: Perrinton Michigan

Re: Always showing minimap

Post by milo christiansen »

Goth Zagog-Thou wrote:Having it always show will also handle an issue with Cam 4. Currently I have to use a 'FakeHQ' to get the minimap.
+1

If anyone knows a way to get the minimap with a script call please post instructions in one of the cam 4 threads
In general, if you see glowing, pulsating things in the game, you should click on them.
- Demigod Game Ganual
User avatar
Goth Zagog-Thou
Regular
Regular
Posts: 1582
Joined: 06 Jan 2007, 08:08
Location: Delta Base

Re: Always showing minimap

Post by Goth Zagog-Thou »

That would rock. A simple showMinimap(int player); command would be the best way imo. :P Too bad there isn't one. Seems like there would be a scripting command for that.
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: Always showing minimap

Post by NoQ »

milo christiansen wrote:If anyone knows a way to get the minimap with a script
I was thinking about it when i played with spectator mods, and from what i've heard, that is currently impossible.
cybersphinx
Inactive
Inactive
Posts: 1695
Joined: 01 Sep 2006, 19:17

Re: Always showing minimap

Post by cybersphinx »

Shadow Wolf TJC wrote:Personally, what I find more annoying than losing my radar is having to go through the same old process of designing the same old units once I've researched the necessary body, propulsion, and turret in every new multiplayer game, over and over and over and over and over and AUGH... :augh: Oftentimes, I wish that I could just save my unit designs on my PC, so that they can be automatically loaded up once I research the proper vehicle parts (and while there's an HQ present if need be). It's THAT tedious to me, and I don't even get the time to name my units either. :annoyed:
There's a patch for that at http://developer.wz2100.net/ticket/1946. Probably won't apply cleanly any more though.
We want information... information... information.
User avatar
Shadow Wolf TJC
Regular
Regular
Posts: 1047
Joined: 16 Apr 2011, 05:12
Location: Raleigh, NC

Re: Always showing minimap

Post by Shadow Wolf TJC »

cybersphinx wrote:There's a patch for that at http://developer.wz2100.net/ticket/1946. Probably won't apply cleanly any more though.
Neat. I'll have to take a look at that sometime later. Thanks. :)
Goth Zagog-Thou wrote:That would rock. A simple showMinimap(int player); command would be the best way imo. :P Too bad there isn't one. Seems like there would be a scripting command for that.
For starters, we could try to find the code in which the minimap is activated when the player has an HQ built, wherever it lies. From there, we could adjust the code so that it'll also check whether or not that variable is set to "ON" for that player. (I'd imagine that it would use an if statement to determine whether to show the minimap or not. :geek: )
Creator of Warzone 2100: Contingency!
Founder of Wikizone 2100: http://wikizone2100.wikia.com/wiki/Wikizone_2100
Cyp
Evitcani
Evitcani
Posts: 784
Joined: 17 Jan 2010, 23:35

Re: Always showing minimap

Post by Cyp »

Shadow Wolf TJC wrote:... (I'd imagine that it would use an if statement to determine whether to show the minimap or not. :geek: )

Code: Select all

void maybeDisplayMinimap(int numberOfHQs)
{
	uint32_t num = numberOfHQs[selectedPlayer];
	void (*functions[2])() = {&displayMinimap, &doNothing};
	void (*function)() = functions[(num - 1) >> 31];
	function();
}
User avatar
Shadow Wolf TJC
Regular
Regular
Posts: 1047
Joined: 16 Apr 2011, 05:12
Location: Raleigh, NC

Re: Always showing minimap

Post by Shadow Wolf TJC »

OK. O_o Looks like the code isn't as easy to learn as I thought it would be, as I don't quite understand how this is supposed to work. It looks to be more confusing to me compared to the likes of Game Maker (which I do have some experience with). :oops:
Creator of Warzone 2100: Contingency!
Founder of Wikizone 2100: http://wikizone2100.wikia.com/wiki/Wikizone_2100
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: Always showing minimap

Post by NoQ »

Obfuscated WZScript Contest here? (:
User avatar
Goth Zagog-Thou
Regular
Regular
Posts: 1582
Joined: 06 Jan 2007, 08:08
Location: Delta Base

Re: Always showing minimap

Post by Goth Zagog-Thou »

WZScript is actually pretty easy once you get over the initial learning curve.
Cyp
Evitcani
Evitcani
Posts: 784
Joined: 17 Jan 2010, 23:35

Re: Always showing minimap

Post by Cyp »

It was an example of C++ code that doesn't use an 'if' statement. (The real code does use an 'if' statement, though.)