Bzshell question

Moderators: GSH, VSMIT, Red Devil, Commando

User avatar
Cyber
Sabre
Posts: 202
Joined: Sun Feb 20, 2011 5:46 pm

Bzshell question

Post by Cyber »

Hey guys,

lets see how actually knows the most about bz2 ^-^

Problem described by pictures.

How it looks right now.

Image


How it should look.

Image

What the problem is:

Image

I can't just copy&paste the "vehicle-selection"(with changing position), so how would this be possible?



complete pictures here http://imgur.com/GsBeL,29Ubg,fQDK5#0
Teamspeak 3: teamspeak.com
TS3 Server(Ugonland): 74.91.115.34
User avatar
General BlackDragon
Flying Mauler
Posts: 2408
Joined: Sat Feb 19, 2011 6:37 am
Contact:

Re: Bzshell question

Post by General BlackDragon »

Yes, you copy/paste that into the bzshell_multi_option.cfg, in place of mapdesc.

There are two different "map des" description boxes. One if the large one in multi host, the other is the smaller one that appears when u select "choose vehicle"

the name of the listbox "VehicleList" is found and populated by the bzone.exe

You may need to negate out the old box, i believe the exe will only use the first one it finds
Last edited by General BlackDragon on Fri Jun 08, 2012 3:33 pm, edited 1 time in total.
Battlezone Classic Public Forums
*****General BlackDragon*****
User avatar
Cyber
Sabre
Posts: 202
Joined: Sun Feb 20, 2011 5:46 pm

Re: Bzshell question

Post by Cyber »

General BlackDragon wrote:Yes, you copy/paste that into the bzshell_multi_host.cfg, in place of mapdesc.

There are two different "map des" description boxes. One if the large one in multi host, the other is the smaller one that appears when u select "choose vehicle"

the name of the listbox "VehicleList" is found and populated by the bzone.exe

You may need to negate out the old box, i believe the exe will only use the first one it finds


bzshell_multi_host.cfg ?

You are sure this file-name is correct?
Teamspeak 3: teamspeak.com
TS3 Server(Ugonland): 74.91.115.34
User avatar
Red Spot
Attila
Posts: 1629
Joined: Mon Feb 21, 2011 6:14 pm
Location: The Netherlands

Re: Bzshell question

Post by Red Spot »

Upload the files you have (used) now and I'll have a looksee.
Cant recall how it all tangles together but its generally rather easy to play with the shell. I think all you need to do here is remove the button for the list and display the list at the location you want it to ..
But I dont have pak-explorer installed atm and I probably need more time to install that than to make the changes for you, so just upload the files :)
User avatar
General BlackDragon
Flying Mauler
Posts: 2408
Joined: Sat Feb 19, 2011 6:37 am
Contact:

Re: Bzshell question

Post by General BlackDragon »

Sorry, it's bzshell_multi_option.cfg, client version is bzshell_multi_clientoption.cfg
Battlezone Classic Public Forums
*****General BlackDragon*****
User avatar
Cyber
Sabre
Posts: 202
Joined: Sun Feb 20, 2011 5:46 pm

Re: Bzshell question

Post by Cyber »

General BlackDragon wrote:Sorry, it's bzshell_multi_option.cfg, client version is bzshell_multi_clientoption.cfg
Thats what I thought ;)

I will check that out in a sec!
Teamspeak 3: teamspeak.com
TS3 Server(Ugonland): 74.91.115.34
User avatar
General BlackDragon
Flying Mauler
Posts: 2408
Joined: Sat Feb 19, 2011 6:37 am
Contact:

Re: Bzshell question

Post by General BlackDragon »

Let me know how it goes.
Battlezone Classic Public Forums
*****General BlackDragon*****
User avatar
Cyber
Sabre
Posts: 202
Joined: Sun Feb 20, 2011 5:46 pm

Re: Bzshell question

Post by Cyber »

Not working yet.

Code: Select all

//bzshell_multi_option.cfg

// ================
// BATTLEZONE SHELL
// ================

//
// CREATE SHELL MULTIPLAYER GAME OPTIONS PAGE
//
CreateControl("ShellMultiOption", "WINDOW")
{
	Style("TRANSPARENT", "INERT");
	Geom("PARENTWIDTH", "PARENTHEIGHT");

	OnEvent("Control::Activate")
	{
		cmd("shell.background multip_team.tga");
		//		FadeIn("|ShellMapOption");
	}

	//
	//
	// create the "Main" button
	//
	CreateControl("Main", "BUTTON")
	{
		ColorGroup("MAGENTA");
		Position(20, 20);
		Size(95, 0);
		BorderSize(10);
		BevelSize(5);
		Style("ROLLOVER", "OUTLINE");
		Text("Main");
		Font("MEDIUM");
		Cursor("Highlight");
		NotifyParent("Button::Press", "Main");
	}


	//
	// create the "leave" button
	//
	CreateControl("Leave", "BUTTON")
	{
		Geometry("LEFT", "TOP");
		ColorGroup("MAGENTA");
		Position(145, 20);
		Size(95, 0);
		BorderSize(10);
		BevelSize(5);
		Font("SMALL");
		JustifyText("CENTER");
		Text("Leave Game");
		Style("ROLLOVER", "RIGHTTAB", "OUTLINE");
		Cursor("Highlight");
		NotifyParent("Button::Press", "Leave");
	}

	//
	// create the "launch" button
	//
	CreateControl("Launch", "BUTTON")
	{
		ColorGroup("MAGENTA");
		Position(520, 20);
		Size(95, 0);
		BorderSize(10);
		BevelSize(5);
		Style("ROLLOVER", "OUTLINE", "BLINK");
		Text("Start Game");
		Font("MEDIUM");
		Cursor("Highlight");
		NotifyParent("Button::Press", "Launch");
	}

	OnEvent("Launch")
	{
		cmd("shell.stopSound mire22_4.wav");
		Cmd("shell.multi.launch");
		Cmd("network.launch");
	}

	//
	// handle the "back" event
	//
	OnEvent("Main")
	{
		cmd("shell.stopSound mire22_4.wav");
		Cmd("network.session.leave");
		Cmd("network.setoff");
		// FadeIn/Outs done from NetCommands::DoIfaceQuitToMainMenu() now
	}


	CreateControl("VehicleSelection", "WINDOW")
	{
		ColorGroup("MAGENTA");

		Geometry("RIGHT", "TOP");
		Position(-20, 60);
		Size(150, 120);
		BorderSize(10);
		BevelSize(5);
		TabSize(110, 10);
		Title("Allowed Vehicles");
		TitleFont("SMALL");
		Style("RIGHTTAB", "OUTLINE");

		CreateControl("VehicleList", "CHECKLIST")
		{
			Geom("LEFT", "TOP");
			ColorGroup("LISTBOX");
			Position(0, 0);
			Size(150, 110);
			CellSize(140, 11);
			BorderSize(5);
			BevelSize(3);
			Font("SMALL");
			Style("VSLIDER");
			// Contents filled in from code now (MPVehicle.cpp thru NetCommands)
		}
	}

	//
	// create the options window
	//
	CreateControl("Option", "WINDOW")
	{
		ColorGroup("MAGENTA");

		Geometry("RIGHT", "TOP");
		Position(-20, 230);
		Size(270, 5);
		BorderSize(10);
		BevelSize(5);
		TabSize(110, 10);
		Title("Game Options");
		TitleFont("SMALL");
		Style("RIGHTTAB", "INERT", "OUTLINE");

		CreateControl("GameOptions", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("LEFT", "TOP");
			Position(3, 0);
			Size(110, 9);
			BorderSize(3);
			BevelSize(3);
			Style("ROLLOVER", "OUTLINE");
			Cursor("Highlight");
			Font("SMALL");
			Text("Game Options");
			NotifyParent("Button::Press", "DoGameOpts");
		}

		OnEvent("DoGameOpts")
		{
			FadeOut("|ShellMultiTeam");
			Cmd("network.session.opengameopts");
		}

		CreateControl("ExtraOptions", "BUTTON")
		{
			ColorGroup("BLACKBLUE");
			Geometry("RIGHT", "TOP");
			Position(-3, 0);
			Size(110, 9);
			BorderSize(3);
			BevelSize(3);
			Style("ROLLOVER", "OUTLINE");
			Cursor("Highlight");
			Font("SMALL");
			Text("Map Options");
			NotifyParent("Button::Press", "DoExtra");
		}

		OnEvent("DoExtra")
		{
			FadeOut("|ShellMultiTeam");
			Cmd("network.session.openextras");
		}

	}

	// handle the launch event
	OnEvent("Leave")
	{
		Cmd("network.session.leave");
		// FadeIn/Outs done from NetCommands::DoIfaceLeaveSession() now
	}

	//
	// create the teams window
	//
	CreateControl("Players", "WINDOW")
	{
		ColorGroup("MAGENTA");
		Geometry("RIGHT", "BOTTOM");
		Position(-20, -20);
		Size(270, 188);
		BorderSize(10);
		BevelSize(5);
		TabSize(150, 10);
		Title("Player List");
		TitleFont("MEDIUM");
		Style("RIGHTTAB", "OUTLINE");

		CreateControl("PlayerList", "LISTBOX")
		{
			ColorGroup("BLACKBLUE");

			Geometry("LEFT", "TOP");
			Position(0, 0);
			Size(270, 99);
			CellSize(260, 11);
			BorderSize(5);
			BevelSize(3);
			Font("TINY");
			Cursor("Highlight");
			Style("VSLIDER");
			UseVar("network.session.playerlist");
		}

		CreateControl("VoiceChatTitle", "STATIC")
		{
			Geometry("LEFT", "BOTTOM");
			Position(0, -17);
			Size(50, 10);
			Font("TINY");
			Text("Voice Chat:");
			JustifyText("LEFT");
			Style("TRANSPARENT");
		}

		CreateControl("VoiceChatAll", "BUTTON")
		{
			ColorGroup("MAGENTA");

			Geometry("LEFT", "BOTTOM");
			Position(60, -17);
			Size(30, 10);
			BorderSize(3);
			BevelSize(2);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("All");
			UseVar("network.session.voicechattype");
			Value(0);
		}

		CreateControl("VoiceChatOne", "BUTTON")
		{
			ColorGroup("MAGENTA");

			Geometry("LEFT", "BOTTOM");
			Position(105, -17);
			Size(30, 10);
			BorderSize(3);
			BevelSize(2);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("One");
			UseVar("network.session.voicechattype");
			Value(2);
		}


		CreateControl("ChatTitle", "STATIC")
		{
			Geometry("LEFT", "BOTTOM");
			Position(0, 2);
			Size(50, 10);
			Font("TINY");
			Text("Text Chat:");
			JustifyText("LEFT");
			Style("TRANSPARENT");
		}

		CreateControl("ChatAll", "BUTTON")
		{
			ColorGroup("MAGENTA");

			Geometry("LEFT", "BOTTOM");
			Position(60, 2);
			Size(30, 10);
			BorderSize(3);
			BevelSize(2);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("All");
			UseVar("network.session.chattype");
			Value(0);
		}

		CreateControl("ChatOne", "BUTTON")
		{
			ColorGroup("MAGENTA");

			Geometry("LEFT", "BOTTOM");
			Position(105, 2);
			Size(30, 10);
			BorderSize(3);
			BevelSize(2);
			Style("ROLLOVER", "RADIO", "OUTLINE");
			Cursor("Highlight");
			Font("TINY");
			Text("One");
			UseVar("network.session.chattype");
			Value(2);
		}

		CreateControl("Kick", "BUTTON")
		{
			ColorGroup("MAGENTA");
			Geometry("RIGHT", "TOP");
			Position(0, 120);
			Size(40, 10);
			BorderSize(3);
			BevelSize(2);
			Style("ROLLOVER", "OUTLINE");
			Cursor("Highlight");
			Font("Tiny");
			Text("Kick");
			NotifyParent("Button::Press", "Kick");
		}

		OnEvent("Kick")
		{
			Cmd("network.session.guikick");
		}
		
		CreateControl("Ban", "BUTTON")
		{
			ColorGroup("MAGENTA");
			Geometry("RIGHT", "TOP");
			Position(-50, 120);
			Size(40, 10);
			BorderSize(3);
			BevelSize(2);
			Style("ROLLOVER", "OUTLINE");
			Cursor("Highlight");
			Font("Tiny");
			Text("Ban");
			NotifyParent("Button::Press", "Ban");
		}

		OnEvent("Ban")
		{
			Cmd("network.session.guiban");
		}
		
		CreateControl("ShowIgnore", "BUTTON")
		{
			ColorGroup("MAGENTA");
			Geometry("RIGHT", "TOP");
			Position(-50, 140);
			Size(40, 10);
			BorderSize(3);
			BevelSize(2);
			Style("ROLLOVER", "OUTLINE");
			Cursor("Highlight");
			Font("Tiny");
			Text("(Ignored)");
			NotifyParent("Button::Press", "ShowIgnore");
		}

		OnEvent("ShowIgnore")
		{
			Cmd("network.chateditline '/showignore';network.chatline.entered");
		}
		
		CreateControl("Ignore", "BUTTON")
		{
			ColorGroup("MAGENTA");
			Geometry("RIGHT", "TOP");
			Position(-50, 160);
			Size(40, 10);
			BorderSize(3);
			BevelSize(2);
			Style("ROLLOVER", "OUTLINE");
			Cursor("Highlight");
			Font("Tiny");
			Text("Ignore");
			NotifyParent("Button::Press", "Ignore");
		}

		OnEvent("Ignore")
		{
			Cmd("network.session.guiignore");
		}
		
		CreateControl("UnIgnore", "BUTTON")
		{
			ColorGroup("MAGENTA");
			Geometry("RIGHT", "TOP");
			Position(-50, 180);
			Size(40, 10);
			BorderSize(3);
			BevelSize(2);
			Style("ROLLOVER", "OUTLINE");
			Cursor("Highlight");
			Font("Tiny");
			Text("UnIgnore");
			NotifyParent("Button::Press", "UnIgnore");
		}

		OnEvent("UnIgnore")
		{
			Cmd("network.session.guiunignore");
		}
		
		CreateControl("ShowMute", "BUTTON")
		{
			ColorGroup("MAGENTA");
			Geometry("RIGHT", "TOP");
			Position(0, 140);
			Size(40, 10);
			BorderSize(3);
			BevelSize(2);
			Style("ROLLOVER", "OUTLINE");
			Cursor("Highlight");
			Font("Tiny");
			Text("(Muted)");
			NotifyParent("Button::Press", "ShowMute");
		}

		OnEvent("ShowMute")
		{
			Cmd("network.chateditline '/showMute';network.chatline.entered");
		}
		
		CreateControl("Mute", "BUTTON")
		{
			ColorGroup("MAGENTA");
			Geometry("RIGHT", "TOP");
			Position(0, 160);
			Size(40, 10);
			BorderSize(3);
			BevelSize(2);
			Style("ROLLOVER", "OUTLINE");
			Cursor("Highlight");
			Font("Tiny");
			Text("Mute");
			NotifyParent("Button::Press", "Mute");
		}

		OnEvent("Mute")
		{
			Cmd("network.session.guimute");
		}
		
		CreateControl("UnMute", "BUTTON")
		{
			ColorGroup("MAGENTA");
			Geometry("RIGHT", "TOP");
			Position(0, 180);
			Size(40, 10);
			BorderSize(3);
			BevelSize(2);
			Style("ROLLOVER", "OUTLINE");
			Cursor("Highlight");
			Font("Tiny");
			Text("UnMute");
			NotifyParent("Button::Press", "UnMute");
		}

		OnEvent("UnMute")
		{
			Cmd("network.session.guiunmute");
		}
	}
}

//
// CREATE SHELL MULTIPLAYER GAME OPTIONS PAGE
//
CreateControl("ShellMapOption_Small", "WINDOW")
{
	Style("TRANSPARENT", "INERT");
	Geom("PARENTWIDTH", "PARENTHEIGHT");

	CreateControl("Map", "WINDOW")
	{
		ColorGroup("MAGENTA");

		Geometry("LEFT", "TOP");
		Position(20, 60);
		Size(300, 120);
		BorderSize(10);
		BevelSize(5);
		TabSize(110, 10);

		Title("Map Selection");
		TitleFont("SMALL");
		Style("LEFTTAB", "OUTLINE");

		CreateControl("Map", "STATIC")
		{
			ColorGroup("WHITE");
			Geometry("LEFT", "TOP");
			Position(10, 0);
			Size(110, 115);
		}

		
		
		// !!!NOT
		//CreateControl("MapSpecs", "LISTBOX")
		//{
		//	ColorGroup("LISTBOX");
		//	Geometry("TOP", "RIGHT");
		//	Position(-10, 0);
		//	Size(135, 120);
		//	CellSize(125, 10);
		//	BorderSize(5);
		//	BevelSize(3);
		//	Style("INERT", "VSLIDER");
		//	Font("TINY");
		//} !!!NOT

	}

	//
	// create the "VehicleSelect" button
	//
	CreateControl("VehicleSelect", "BUTTON")
	{
		Geometry("LEFT", "TOP");
		ColorGroup("MAGENTA");
		Position(270, 20);
		Size(100, 0);
		BorderSize(10);
		BevelSize(5);
		Font("SMALL");
		JustifyText("CENTER");
		Text("My Vehicle");
		Style("ROLLOVER", "RIGHTTAB", "OUTLINE", "BLINK");
		Cursor("Highlight");
		NotifyParent("Button::Press", "vehSel");
	}
	
	//
	// handle the vehicle selection event
	//
	OnEvent("vehSel")
	{
		FadeOut("|ShellMapOption_Small");
		FadeIn("|HostMapButt_Small");
		FadeIn("|ShellMultiVehicle_Small");
	}
}

// snip
CreateControl("ShellMapOption", "WINDOW")
{
	Style("TRANSPARENT", "INERT");
	Geom("PARENTWIDTH", "PARENTHEIGHT");

	CreateControl("Map", "WINDOW")
	{
		ColorGroup("MAGENTA");

		Geometry("LEFT", "TOP");
		Position(20, 60);
		Size(420, 120);
		BorderSize(10);
		BevelSize(5);
		TabSize(110, 10);

		Title("Map Selection");
		TitleFont("SMALL");
		Style("LEFTTAB", "OUTLINE");

		CreateControl("MapList", "LISTBOX")
		{
			ColorGroup("LISTBOX");
			Geometry("TOP", "LEFT");
			Position(0, 0);
			Size(145, 120);
			CellSize(135, 10);
			BorderSize(5);
			BevelSize(3);
			Style("VSLIDER");
			Font("TINY");
			Cursor("Highlight");
			UseVar("network.session.svar0");
			// Contents of this list filled in automatically from code [NetCommands.cpp]
		}

		CreateControl("Map", "STATIC")
		{
			ColorGroup("WHITE");
			Geometry("LEFT", "TOP");
			Position(160, 0);
			Size(110, 115);
		}



		//
		// create vehicle selection list
		//
		CreateControl("VehicleList", "LISTBOX")
		{
			ColorGroup("LISTBOX");

			Geometry("RIGHT", "TOP");
			Position(0, 0);
			Size(135, 120);
			CellSize(125, 10);
			BorderSize(5);
			BevelSize(3);
			Font("SMALL");
			Cursor("Highlight");
			UseVar("network.clientvehiclename");
			Style("VSLIDER", "INERT", "ROLLOVER", "OUTLINE");
			// Contents filled in from code now (MPVehicle.cpp thru NetCommands)
		}
		//
		// create vehicle selection list
		//
		CreateControl("VehicleDesc", "LISTBOX")
		{
			ColorGroup("LISTBOX");
			Geometry("RIGHT", "TOP");
			Style("INERT", "VSLIDER");
			Position(0, 0);
			Size(135, 120);
			CellSize(125, 10);
			BorderSize(5);
			BevelSize(3);
			Font("TINY");
			Cursor("Highlight");
		}
		
		// !!!NOT
		//CreateControl("MapSpecs", "LISTBOX")
		//{
		//	ColorGroup("LISTBOX");
		//	Geometry("TOP", "RIGHT");
		//	Position(0, 0);
		//	Size(135, 120);
		//	CellSize(125, 10);
		//	BorderSize(5);
		//	BevelSize(3);
		//	Style("INERT", "VSLIDER");
		//	Font("TINY");
		//} !!!NOT
	}

	//!!!NOT
	// create the "VehicleSelect" button
	//
	//CreateControl("VehicleSelect", "BUTTON")
	//{
	//	Geometry("LEFT", "TOP");
	//	ColorGroup("MAGENTA");
	//	Position(270, 20);
	//	Size(100, 0);
	//	BorderSize(10);
	//	BevelSize(5);
	//	Font("SMALL");
	//	JustifyText("CENTER");
	//	Text("Choose Vehicle");
	//	Style("ROLLOVER", "RIGHTTAB", "OUTLINE", "BLINK");
	//	Cursor("Highlight");
	//	NotifyParent("Button::Press", "vehSel");
	//}!!!NOT
	
	//
	// handle the vehicle selection event
	//
	OnEvent("vehSel")
	{
		FadeOut("|ShellMapOption");
		FadeIn("|HostMapButt");
		FadeIn("|ShellMultiVehicle");
	}
}



CreateControl("HostMapButt", "WINDOW")
{
	Style("TRANSPARENT", "INERT");
	Geom("PARENTWIDTH", "PARENTHEIGHT");

	//
	// create the "MapButt" button
	//
	CreateControl("MapButton", "BUTTON")
	{
		Geometry("LEFT", "TOP");
		ColorGroup("MAGENTA");
		Position(270, 20);
		Size(100, 0);
		BorderSize(10);
		BevelSize(5);
		Font("SMALL");
		JustifyText("CENTER");
		Text("Select Map");
		Style("ROLLOVER", "RIGHTTAB", "OUTLINE");
		Cursor("Highlight");
		NotifyParent("Button::Press", "mapSel");
	}
	
	//
	// handle the vehicle selection event
	//
	OnEvent("mapSel")
	{
		FadeOut("|HostMapButt");
		FadeOut("|ShellMultiVehicle");
		FadeIn("|ShellMapOption");
	}
}

CreateControl("HostMapButt_Small", "WINDOW")
{
	Style("TRANSPARENT", "INERT");
	Geom("PARENTWIDTH", "PARENTHEIGHT");

	//
	// create the "MapButt" button
	//
	CreateControl("MapButton", "BUTTON")
	{
		Geometry("LEFT", "TOP");
		ColorGroup("MAGENTA");
		Position(270, 20);
		Size(100, 0);
		BorderSize(10);
		BevelSize(5);
		Font("SMALL");
		JustifyText("CENTER");
		Text("Map Info");
		Style("ROLLOVER", "RIGHTTAB", "OUTLINE");
		Cursor("Highlight");
		NotifyParent("Button::Press", "mapSel");
	}
	
	//
	// handle the vehicle selection event
	//
	OnEvent("mapSel")
	{
		FadeOut("|HostMapButt_Small");
		FadeOut("|ShellMultiVehicle_Small");
		FadeIn("|ShellMapOption_Small");
	}
}

Code: Select all

//bzshell_multi_vehicle.cfg
// ================
// BATTLEZONE SHELL
// ================

//
// CREATE SHELL MULTIPLAYER VEHICLE SETUP MENU
//
CreateControl("ShellMultiVehicle_Small", "WINDOW")
{
	Style("TRANSPARENT", "INERT");
 	Geom("PARENTWIDTH", "PARENTHEIGHT");

	CreateControl("Vehicle", "WINDOW")
	{
		ColorGroup("MAGENTA");

		Geometry("LEFT", "TOP");
		Position(20, 60);
		Size(300, 120);
		BorderSize(10);
		BevelSize(5);
		TabSize(110, 10);
		Title("Vehicle");
		TitleFont("MEDIUM");
		Style("LEFTTAB", "OUTLINE");

		//
		// create vehicle viewer
		//
		CreateControl("VehicleView", "VIEWER")
		{
			ColorGroup("LISTBOX");

			Geometry("LEFT", "TOP");
			Position(10, 0);
			Size(110, 115);
			BorderSize(5);
			BevelSize(3);

			UseVar("network.clientvehiclemodel");
			SetAmbientColor(1.0, 1.0, 1.0);
			SetDiffuseColor(1.0, 1.0, 1.0);
			SetDiffuseDir(2.0, -5.0, 1.0);
			SetModelDistance(50.0);
			SetModelInclination(-30.0);
			SetModelRotation(60.0);
		}

		//!!! NOT
		// create vehicle selection list
		//
		//CreateControl("VehicleDesc", "LISTBOX")
		//{
		//	ColorGroup("LISTBOX");
		//	Geometry("RIGHT", "TOP");
		//	Style("INERT");
		//	Position(-10, 0);
		//	Size(135, 110);
		//	CellSize(125, 11);
		//	BorderSize(5);
		//	BevelSize(3);
		//	Style("VSLIDER");
		//	Font("TINY");
		//	Cursor("Highlight");
		//}!!! NOT
	}
}

CreateControl("ShellMultiVehicle", "WINDOW")
{
	Style("TRANSPARENT", "INERT");
 	Geom("PARENTWIDTH", "PARENTHEIGHT");

	CreateControl("Vehicle", "WINDOW")
	{
		ColorGroup("MAGENTA");

		Geometry("LEFT", "TOP");
		Position(20, 60);
		Size(420, 120);
		BorderSize(10);
		BevelSize(5);
		TabSize(110, 10);
		Title("Vehicle");
		TitleFont("MEDIUM");
		Style("LEFTTAB", "OUTLINE");

		//
		// create vehicle viewer
		//
		CreateControl("VehicleView", "VIEWER")
		{
			ColorGroup("LISTBOX");

			Geometry("LEFT", "TOP");
			Position(150, 0);
			Size(115, 120);
			BorderSize(5);
			BevelSize(3);

			UseVar("network.clientvehiclemodel");
			SetAmbientColor(1.0, 1.0, 1.0);
			SetDiffuseColor(1.0, 1.0, 1.0);
			SetDiffuseDir(2.0, -5.0, 1.0);
			SetModelDistance(50.0);
			SetModelInclination(-30.0);
			SetModelRotation(60.0);
		}

		// !!!NOT
		// create vehicle selection list
		//
		//CreateControl("VehicleList", "LISTBOX")
		//{
		//	ColorGroup("LISTBOX");
		//
		//	Geometry("LEFT", "TOP");
		//	Position(0, 0);
		//	Size(130, 110);
		//	CellSize(120, 11);
		//	BorderSize(5);
		//	BevelSize(3);
		//	Font("SMALL");
		//	Cursor("Highlight");
		//	UseVar("network.clientvehiclename");
		//	Style("VSLIDER");
		//	// Contents filled in from code now (MPVehicle.cpp thru NetCommands)
		//}
		//
		// create vehicle selection list
		//
		//CreateControl("VehicleDesc", "LISTBOX")
		//{
		//	ColorGroup("LISTBOX");
		//	Geometry("RIGHT", "TOP");
		//	Style("INERT", "VSLIDER");
		//	Position(0, 0);
		//	Size(135, 110);
		//	CellSize(125, 11);
		//	BorderSize(5);
		//	BevelSize(3);
		//	Font("TINY");
		//	Cursor("Highlight");
		//} !!!NOT
	}
}
(download these files as .cfg from here: (vehicle: http://www.mediafire.com/?quu8wqf288cv3or) (option: http://www.mediafire.com/?kcy5deec0re4p4e)


picture what it shows:
Image

Complete picture here: http://i.imgur.com/SClKe.jpg
It doesn't show the content of this vehiclelist.

GBD, could it be that bzone.exe doens't load this: "// Contents filled in from code now (MPVehicle.cpp thru NetCommands)" ?

If yes, how to load this code? (MPVehicle.cpp thru NetCommands)
Teamspeak 3: teamspeak.com
TS3 Server(Ugonland): 74.91.115.34
User avatar
Nielk1
Flying Mauler
Posts: 2991
Joined: Fri Feb 18, 2011 10:35 pm
Contact:

Re: Bzshell question

Post by Nielk1 »

Anything that starts with // is just a comment and is not processed by BZ2 at all. BZ2 simply makes an assumption that when a GUI element appears in that specific area (CFG file) with that specific name it will be filled by that data by the engine.

Since you normally have to toggle something to make that visible, perhaps you need to force the toggle to occur.

Why are you removing the map description anyway? Those are supposed to be meaningful and only stop being useful when the map becomes familiar.

What I would suggest is you look at forcing it to toggle automatically so it starts with the unit selection area active instead of the map description.
User avatar
General BlackDragon
Flying Mauler
Posts: 2408
Joined: Sat Feb 19, 2011 6:37 am
Contact:

Re: Bzshell question

Post by General BlackDragon »

Hmmm..lemme go look at how I did it..

Ahh, I see. It's not 100% THAT simple...

In bzshell_multi_option, I did this:

OnEvent("Control::Activate")
{
cmd("shell.background multip_team.tga");
Activate("|ShellMultiVehicle"); // << This toggles the activation of that Vehicle window. You'll need to run Deactivate("|ShellMultiVehicle"); in the Control::Deactivate bit too.


Once you add that, the vehicle window will be drawn too. Then you just have to move it where you want it.

It probably has to be nested under "ShellMultiVehicle", "Vehicle", "VehicleList". i.e:

CreateControl("ShellMultiVehicle", "WINDOW")
{
Style("TRANSPARENT", "INERT");
Geom("PARENTWIDTH", "PARENTHEIGHT");

CreateControl("Vehicle", "WINDOW")
{
ColorGroup("WHITE");
Geometry("RIGHT", "TOP");
Position(-36, 60);
Size(269, 145);
Style("TRANSPARENT","INERT");

//
// create vehicle selection list
//
CreateControl("VehicleList", "LISTBOX")
{
ColorGroup("LISTBOX");

Geometry("LEFT", "TOP");
Position(0, 130);
Size(117, 10);
CellSize(117, 10);
Font("SMALL");
Cursor("Highlight");
UseVar("network.clientvehiclename");
//Style("VSLIDER");
// Contents filled in from code now (MPVehicle.cpp thru NetCommands)
UseSlider("<VehicleSlider");
}
}
}


From my experience in Shell code, Some things the game looks for under very specific higherarchies.
Battlezone Classic Public Forums
*****General BlackDragon*****
User avatar
Cyber
Sabre
Posts: 202
Joined: Sun Feb 20, 2011 5:46 pm

Re: Bzshell question

Post by Cyber »

Nielk1 wrote:Anything that starts with // is just a comment and is not processed by BZ2 at all. BZ2 simply makes an assumption that when a GUI element appears in that specific area (CFG file) with that specific name it will be filled by that data by the engine.

Since you normally have to toggle something to make that visible, perhaps you need to force the toggle to occur.

Why are you removing the map description anyway? Those are supposed to be meaningful and only stop being useful when the map becomes familiar.

What I would suggest is you look at forcing it to toggle automatically so it starts with the unit selection area active instead of the map description.
First, the map description will be moved only. Also, I know all map descriptions by heart :P
General BlackDragon wrote:Hmmm..lemme go look at how I did it..

Ahh, I see. It's not 100% THAT simple...

In bzshell_multi_option, I did this:

OnEvent("Control::Activate")
{
cmd("shell.background multip_team.tga");
Activate("|ShellMultiVehicle"); // << This toggles the activation of that Vehicle window. You'll need to run Deactivate("|ShellMultiVehicle"); in the Control::Deactivate bit too.


Once you add that, the vehicle window will be drawn too. Then you just have to move it where you want it.

It probably has to be nested under "ShellMultiVehicle", "Vehicle", "VehicleList". i.e:

CreateControl("ShellMultiVehicle", "WINDOW")
{
Style("TRANSPARENT", "INERT");
Geom("PARENTWIDTH", "PARENTHEIGHT");

CreateControl("Vehicle", "WINDOW")
{
ColorGroup("WHITE");
Geometry("RIGHT", "TOP");
Position(-36, 60);
Size(269, 145);
Style("TRANSPARENT","INERT");

//
// create vehicle selection list
//
CreateControl("VehicleList", "LISTBOX")
{
ColorGroup("LISTBOX");

Geometry("LEFT", "TOP");
Position(0, 130);
Size(117, 10);
CellSize(117, 10);
Font("SMALL");
Cursor("Highlight");
UseVar("network.clientvehiclename");
//Style("VSLIDER");
// Contents filled in from code now (MPVehicle.cpp thru NetCommands)
UseSlider("<VehicleSlider");
}
}
}


From my experience in Shell code, Some things the game looks for under very specific higherarchies.

Argh, I really thought that could work. I understand what you did there, I don't understand what is not working, bz2 is bringing a totally strange error log.


---- Battlezone II Log File ----
//=====================================================
App version: bzone 1.3.6.2 Public Beta Jul 29 2011 21:43:22
Windows version: Windows Version: 6.1.7600 '' PlatformID=2

Last few battlezone.log lines (may or may not be relevant):
ERR | cursor:252 |21:38:24|3745 |Cursor [Highlight] already exists
ERR | cursor:252 |21:38:24|3767 |Cursor [Default] already exists
ERR | cursor:252 |21:38:24|3767 |Cursor [Highlight] already exists
WARN| iface:1758 |21:38:24|3770 |Warning - ColorGroup 'BLUE' not found. Giving you 'DEFAULT'
WARN| iface:1758 |21:38:24|3770 |Warning - ColorGroup 'BLUE' not found. Giving you 'DEFAULT'
WARN| iface:1758 |21:38:24|3770 |Warning - ColorGroup 'BLUE' not found. Giving you 'DEFAULT'
WARN| iface:1758 |21:38:24|3770 |Warning - ColorGroup 'BLUE' not found. Giving you 'DEFAULT'
WARN| iface:1758 |21:38:24|3770 |Warning - ColorGroup 'BLUE' not found. Giving you 'DEFAULT'
(done)

Exception code: C0000005 (ACCESS VIOLATION) READING from 00000000h
Message : Exception
Error occurred at 6/9/2012 21:38:30.
C:\Program Files\Battlezone II 6.2\bzone.exe, run by Stephan M.
C:\Program Files\Battlezone II 6.2\bzone.exe, run by Stephan M.
CPU: 2 processor(s), Intel(R) Pentium(R) 4 CPU 3.00GHz
x86 Family 15 Model 4 Stepping 1
Process Memory : 1610 MB free out of 2048 MB total
Physical memory: 319 MB free out of 1024 MB total
Page(swap) file: 3755 MB free out of 5119 MB total
This exe is using 115 MB (17 MB dlmalloc), peak use 115 MB

Fault address: 013E0B7B 01:001CFB7B C:\Program Files\Battlezone II 6.2\bzone.exe

Registers:
EAX:00000000
EBX:0E43F5A8
ECX:719A84AE
EDX:004FD38B
ESI:0E43F890
EDI:00000000
CS:EIP:001B:013E0B7B
SS:ESP:0023:004FD494 EBP:0E43F5A8
DS:0023 ES:0023 FS:003B GS:0000
Flags:00010206

Call stack:
Address Offset1 Offset2 Module SourceFile
013E0B7B +001D0B7B 0000005B bzone (bzone): : ICListBox::Activate

013DC7B3 +001CC7B3 000000B3 bzone (bzone): : IControl::Activate

013D123D +001C123D 0000000D bzone (bzone): : ICWindow::Activate

013DE202 +001CE202 00000182 bzone (bzone): : IControl::DoAction

013DE305 +001CE305 00000095 bzone (bzone): : IControl::HandleEvent

013D11BC +001C11BC 000001AC bzone (bzone): : ICWindow::HandleEvent

013DA72F +001CA72F 0000007F bzone (bzone): : IControl::NotifyParent

013DC7C4 +001CC7C4 000000C4 bzone (bzone): : IControl::Activate

013D69BD +001C69BD 0000000D bzone (bzone): : ICButton::Activate

013DC7B3 +001CC7B3 000000B3 bzone (bzone): : IControl::Activate

013D123D +001C123D 0000000D bzone (bzone): : ICWindow::Activate

012FCD73 +000ECD73 000000C2 bzone (bzone): : NetManager::Commands::SetupShellForServer

012FD17F +000ED17F 000000B1 bzone (bzone): : NetManager::Commands::DoIfaceCreateSession2

013120F2 +001020F2 00000120 bzone (bzone): : NetManager::SessionManager::CreateSessionByName

012FD0C9 +000ED0C9 00000418 bzone (bzone): : NetManager::Commands::SetupShellForServer

01303129 +000F3129 00000780 bzone (bzone): : NetManager::Commands::Process

01416D88 +00206D88 00000018 bzone (bzone): : VarSys::VarItem::TriggerCallBack

0142A1EC +0021A1EC 0000008C bzone (bzone): : Console::CmdParse::ParseVarSysOperation

0142A213 +0021A213 00000013 bzone (bzone): : Console::CmdParse::ParseTokenBuffer

0142A2BB +0021A2BB 0000006B bzone (bzone): : Console::CmdParse::ProcessCmd

0142A323 +0021A323 00000033 bzone (bzone): : Console::ProcessCmd

0140D6B1 +001FD6B1 000001A1 bzone (bzone): : Main::ScopeHandler

013DE108 +001CE108 00000088 bzone (bzone): : IControl::DoAction

013DE305 +001CE305 00000095 bzone (bzone): : IControl::HandleEvent

013DA72F +001CA72F 0000007F bzone (bzone): : IControl::NotifyParent

013D6BF8 +001C6BF8 00000128 bzone (bzone): : ICButton::HandleEvent

013E3F58 +001D3F58 00000208 bzone (bzone): : IFace::OnModeChange



Here is the file I used:

Code: Select all

// ================
// BATTLEZONE SHELL
// ================

//
// CREATE SHELL MULTIPLAYER VEHICLE SETUP MENU
//


CreateControl("ShellMultiVehicle", "WINDOW")
{
	Style("TRANSPARENT", "INERT");
 	Geom("PARENTWIDTH", "PARENTHEIGHT");

		// create vehicle selection list
		//
		CreateControl("VehicleList", "LISTBOX")
		{
			ColorGroup("LISTBOX");

			Geometry("RIGHT", "TOP");
			Position(0, 0);
			Size(135, 120);
			CellSize(125, 10);
			BorderSize(5);
			BevelSize(3);
			Font("SMALL");
			Cursor("Highlight");
			UseVar("network.clientvehiclename");
			//Style("VSLIDER", "INERT", "ROLLOVER", "OUTLINE");
			UseSlider("<VehicleSlider>");
			// Contents filled in from code now (MPVehicle.cpp thru NetCommands)
		}
		//
		
	
	
}





download here: http://www.mediafire.com/?2o1y12n6v3znbe8

What could be the problem? :geek:
Teamspeak 3: teamspeak.com
TS3 Server(Ugonland): 74.91.115.34
User avatar
General BlackDragon
Flying Mauler
Posts: 2408
Joined: Sat Feb 19, 2011 6:37 am
Contact:

Re: Bzshell question

Post by General BlackDragon »

:-/ i didn't mean to make a separate section like that, ...and well it was only theoretical anyway..


Soo, try my first idea, activate the shellvehicleoption screen, and modify bzshell_multi_vehicle.cfg to move / resize the box how you like.

Also, in ur above example, try adding the Vehicle window...
Battlezone Classic Public Forums
*****General BlackDragon*****
User avatar
Cyber
Sabre
Posts: 202
Joined: Sun Feb 20, 2011 5:46 pm

Re: Bzshell question

Post by Cyber »

General BlackDragon wrote:

Code: Select all

OnEvent("Control::Activate")
	{
		cmd("shell.background multip_team.tga");
		Activate("|ShellMultiVehicle"); // << This toggles the activation of that Vehicle window. You'll need to run Deactivate("|ShellMultiVehicle"); in the Control::Deactivate bit too. 


Once you add that, the vehicle window will be drawn too. Then you just have to move it where you want it. 

It probably has to be nested under "ShellMultiVehicle", "Vehicle", "VehicleList". i.e:

CreateControl("ShellMultiVehicle", "WINDOW")
{
	Style("TRANSPARENT", "INERT");
 	Geom("PARENTWIDTH", "PARENTHEIGHT");

	CreateControl("Vehicle", "WINDOW")
	{
		ColorGroup("WHITE");
		Geometry("RIGHT", "TOP");
		Position(-36, 60);
		Size(269, 145);
		Style("TRANSPARENT","INERT");

		//
		// create vehicle selection list
		//
		CreateControl("VehicleList", "LISTBOX")
		{
			ColorGroup("LISTBOX");

			Geometry("LEFT", "TOP");
			Position(0, 130);
			Size(117, 135);// originial: 117,10, but only 1 slot appears.
			CellSize(117, 10);
			Font("SMALL");
			Cursor("Highlight");
			UseVar("network.clientvehiclename");
			//Style("VSLIDER");
			// Contents filled in from code now (MPVehicle.cpp thru NetCommands)
			UseSlider("<VehicleSlider");
		}
       }
}
From my experience in Shell code, Some things the game looks for under very specific higherarchies.
:D I just should have copied and paste, cuz this works fine.

Thanks GBD, you'r really my personal hero! ;)
Teamspeak 3: teamspeak.com
TS3 Server(Ugonland): 74.91.115.34
User avatar
Cyber
Sabre
Posts: 202
Joined: Sun Feb 20, 2011 5:46 pm

Re: Bzshell question

Post by Cyber »

Whoops, it really seemed working :) .

As soon I click "Map Options" or "Extra options" and go back to "server options" (closeextras), bz2 crashes. :(

Code: Select all

---- Battlezone II Log File ----
//=====================================================
App version: bzone 1.3.6.2 Public Beta Jul 29 2011 21:43:22
Windows version: Windows Version: 6.1.7600 '' PlatformID=2

Last few battlezone.log lines (may or may not be relevant):
ERR |              cursor:252  |16:04:56|3973   |Cursor [Default] already exists
ERR |              cursor:252  |16:04:56|3973   |Cursor [Highlight] already exists
WARN|               iface:1758 |16:04:56|3976   |Warning - ColorGroup 'BLUE' not found. Giving you 'DEFAULT'
WARN|               iface:1758 |16:04:56|3976   |Warning - ColorGroup 'BLUE' not found. Giving you 'DEFAULT'
WARN|               iface:1758 |16:04:56|3976   |Warning - ColorGroup 'BLUE' not found. Giving you 'DEFAULT'
WARN|               iface:1758 |16:04:56|3976   |Warning - ColorGroup 'BLUE' not found. Giving you 'DEFAULT'
WARN|               iface:1758 |16:04:56|3976   |Warning - ColorGroup 'BLUE' not found. Giving you 'DEFAULT'
ERR |          GamespyQR2:670  |16:04:59|7263   |Uhoh - could not start up Gamespy qr2 code - err 3
(done)

Exception code: C0000005 (ACCESS VIOLATION) READING from 00000000h
Message :  Exception
Error occurred at 6/10/2012 16:05:04.
C:\Program Files\Battlezone II 6.2\bzone.exe, run by Stephan M.
C:\Program Files\Battlezone II 6.2\bzone.exe, run by Stephan M.
CPU: 2 processor(s), Intel(R) Pentium(R) 4 CPU 3.00GHz
     x86 Family 15 Model 4 Stepping 1
Process Memory :   1579 MB free out of   2048 MB total
Physical memory:    833 MB free out of   1536 MB total
Page(swap) file:   4625 MB free out of   5631 MB total
This exe is using 142 MB (24 MB dlmalloc), peak use 143 MB

Fault address:  01382824 01:000F1824 C:\Program Files\Battlezone II 6.2\bzone.exe

Registers:
EAX:00000000
EBX:00000000
ECX:00000000
EDX:12A6D95C
ESI:00000001
EDI:0060D198
CS:EIP:001B:01382824
SS:ESP:0023:0060D138  EBP:0060D18C
DS:0023  ES:0023  FS:003B  GS:0000
Flags:00010246

Call stack:
Address  Offset1  Offset2  Module              SourceFile
01382824 +000F2824 00000138 bzone            (bzone): : NetManager::Commands::CloseExtras

01496D88 +00206D88 00000018 bzone            (bzone): : VarSys::VarItem::TriggerCallBack

014AA1EC +0021A1EC 0000008C bzone            (bzone): : Console::CmdParse::ParseVarSysOperation

014AA213 +0021A213 00000013 bzone            (bzone): : Console::CmdParse::ParseTokenBuffer

014AA2BB +0021A2BB 0000006B bzone            (bzone): : Console::CmdParse::ProcessCmd

014AA323 +0021A323 00000033 bzone            (bzone): : Console::ProcessCmd

0148D6B1 +001FD6B1 000001A1 bzone            (bzone): : Main::ScopeHandler

0145E108 +001CE108 00000088 bzone            (bzone): : IControl::DoAction

0145E305 +001CE305 00000095 bzone            (bzone): : IControl::HandleEvent

014511BC +001C11BC 000001AC bzone            (bzone): : ICWindow::HandleEvent

0145A72F +001CA72F 0000007F bzone            (bzone): : IControl::NotifyParent

01456BF8 +001C6BF8 00000128 bzone            (bzone): : ICButton::HandleEvent

01463F58 +001D3F58 00000208 bzone            (bzone): : IFace::OnModeChange


Don't really think this log is helpful tho.
I guess the problem is.. uhm... "closeextras" executes an order like Activate("|ShellMultiVehicle") which causes the crash?
Or what could be the problem?
Teamspeak 3: teamspeak.com
TS3 Server(Ugonland): 74.91.115.34
User avatar
General BlackDragon
Flying Mauler
Posts: 2408
Joined: Sat Feb 19, 2011 6:37 am
Contact:

Re: Bzshell question

Post by General BlackDragon »

Maybe...

Hmm, Lemme poke around...

No, It's not in the EO Pages...

Is *all* you did was put Activate and Deactivate in shell_options.cfg?
Battlezone Classic Public Forums
*****General BlackDragon*****
Post Reply