Removing the Mini Map [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
trainmaster611
Sith Lord
Sith Lord
Posts: 1779
Joined: Thu Aug 24, 2006 5:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Building a railway to Coruscant
Contact:

Removing the Mini Map [Solved]

Post by trainmaster611 »

How do you remove the minimap from the hud? I can't find the proper group for it. I've been searching through the player1hud file but I've only found a Group referring to the main map (the one that you toggle).
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Removing the Mini Map

Post by Maveritchell »

DisableSmallMapMiniMap()
User avatar
trainmaster611
Sith Lord
Sith Lord
Posts: 1779
Joined: Thu Aug 24, 2006 5:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Building a railway to Coruscant
Contact:

Re: Removing the Mini Map

Post by trainmaster611 »

Just put that in the LUA? Does it matter where it goes?
User avatar
vampire_lord
Rebel Sergeant
Rebel Sergeant
Posts: 216
Joined: Thu Mar 20, 2008 7:02 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Mexico City
Contact:

Re: Removing the Mini Map

Post by vampire_lord »

I wonder if we can do the opposite, you know, I would like to get rid of the Capital Ship icons on Assault and put a mini-map...
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Removing the Mini Map

Post by Maveritchell »

trainmaster611 wrote:Just put that in the LUA? Does it matter where it goes?
You should just put that in ScriptPostLoad. I don't remember whether it needs to be (1) or just (), but you can always try both.
User avatar
Frisbeetarian
Jedi
Jedi
Posts: 1233
Joined: Wed Sep 12, 2007 3:13 pm

Re: Removing the Mini Map

Post by Frisbeetarian »

Code: Select all

function ObjectiveSpaceAssault:AddCriticalSystem(name, pointValue, hudPosX, hudPosY)
	if hudPosX and hudPosY then
		--add the critical system as normal
		SpaceAssaultAddCriticalSystem(name, pointValue, hudPosX, hudPosY)
	else
		--add the critical system, but tell C++ not to display a HUD marker
		SpaceAssaultAddCriticalSystem(name, pointValue, -1.0, -1.0, false) 
	end
...
...
function ObjectiveSpaceAssault:Start()
	--=======================================
    -- Initialization logic
    --=======================================   
	assert(self.multiplayerRules == true, "ObjectiveSpaceAssault is intended for multiplayer gametypes only! (i.e. set multiplayerRules = true)")	
	self.showTeamPoints = true
	
	--initialize the base objective data
	Objective.Start(self)
	
	--notify C++ that we're running space assault now 
	--(so it can do team scoring with critical systems and whatnot)
	SpaceAssaultEnable(true)
This would indicate that the ships in the HUD are there due to the executable. I think that the executable knows when to do this when SpaceAssaultEnable(true) is called. I would say that you could make that false in the ObjectiveSpaceAssault.lua script and see what happens to the game.
I don't remember whether it needs to be (1) or just (), but you can always try both.
No function input is necessary; it's just DisableSmallMapMiniMap().
User avatar
trainmaster611
Sith Lord
Sith Lord
Posts: 1779
Joined: Thu Aug 24, 2006 5:22 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Building a railway to Coruscant
Contact:

Re: Removing the Mini Map

Post by trainmaster611 »

Ok thanks guys :)
Post Reply