Page 2 of 2

Re: Bzshell question

Posted: Sun Jun 10, 2012 5:40 pm
by Cyber
General BlackDragon wrote: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?

No, I'm having other configs in addon which may could cause this, let me check this out, sec.

--

Okay, they are obviously not the problem, it still crashes after deleting the other configs.

Here you can download the 2 files [zip file]: http://www.mediafire.com/?7yykpetewvfvkbn

The vehiclelist won't appear on the first page tho (my files are not finished yet- so no release), but the same problem exists(not my file's fault then :) )

Re: Bzshell question

Posted: Mon Jun 11, 2012 2:24 pm
by Cyber
Problem solved!

Obviously the big daddy bzone.exe didn't like it when I deleted some parts from bzshell_multi_vehicle.cfg .


It seems like this a bit *buggy*, cuz (without having ANY other mods) bz2 just crashes as soon you leave the map or game-options (start game, get back to "server options or just /leave)
The working files to download here.
http://www.mediafire.com/?m0tbzg7gdbwgjkk

They will be improved available in my new shell coming soon. ( It's done, when its done.)

Re: Bzshell question

Posted: Mon Jun 11, 2012 6:50 pm
by Cyber
Problem 1 solved, but am I finished yet? Nah! :D


There we go.

Lil pic of the map doesn't show up.

Image

(complete picture here: http://i.imgur.com/V5Mf6.png)

Is it an ivar, commandline or something I have to add?


bzshell_multi_clientoption.cfg - when joining a game

Code: Select all

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

//
// CREATE SHELL MULTIPLAYER GAME OPTIONS PAGE
//
Exec("custom_game_settings.cfg");
Exec("show_small_map.cfg");
CreateControl("ShellMultiClientOption", "WINDOW")
{
	Style("TRANSPARENT", "INERT");
	Geom("PARENTWIDTH", "PARENTHEIGHT");

	OnEvent("Control::Activate")
	{
		cmd("shell.background multip_client.tga");
		Activate("|show_small_map");
		FadeIn("|MapiS");
	}

	//
	//
	// create the "back" button
	//
	CreateControl("Back", "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", "Back");
	}

	//
	// 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", "OUTLINE");
		Cursor("Highlight");
		NotifyParent("Button::Press", "Leave");
	}

	//
	// 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 Info");
		TitleFont("MEDIUM");
		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(0, 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");
		}
	}

//funktioniert noch nicht OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO

//funktioniert noch nicht OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
CreateControl("CustomOptions","BUTTON") 
{
Geometry("LEFT","TOP");
ColorGroup("MAGENTA");
Position(396,20);
Size(95, 0);
BorderSize(10);
BevelSize(5);
Font("SMALL");
JustifyText("CENTER");
Text("Specials");
Style("ROLLOVER","OUTLINE");
Cursor("Highlight");
NotifyParent("Button::Press","GSET");
}
OnEvent("GSET")
{
Activate("|GSETTINGS");
}


CreateControl("VehicleView", "VIEWER")
		{
			ColorGroup("BACKGROUND");

			Geometry("RIGHT", "TOP");
			Position(-20, 60);
			Size(150, 120);
			BorderSize(10);
			BevelSize(5);
			TabSize(110, 10);

			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);
		}
	//
	// 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");
			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);
		}
	}

	//
	// create the "launch" button
	//
	CreateControl("Launch", "BUTTON")
	{
		Geometry("LEFT", "TOP");
		ColorGroup("MAGENTA");
		Position(520, 20);
		Size(95, 0);
		BorderSize(10);
		BevelSize(5);
		Font("SMALL");
		JustifyText("CENTER");
		Text("ENTER GAME");
		Style("ROLLOVER", "OUTLINE", "BLINK");
		Cursor("Highlight");
		NotifyParent("Button::Press", "Launch");
	}

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


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

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



CreateControl("MapInfo_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 Info");
		TitleFont("SMALL");
		Style("LEFTTAB", "OUTLINE");

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

		CreateControl("MapSpecs", "LISTBOX")
  		{
  			ColorGroup("LISTBOX");
  			Geometry("TOP", "RIGHT");
  			Position(-10, 0);
  			Size(130, 110);
  			CellSize(120, 11);
  			BorderSize(5);
  			BevelSize(3);
			Style("INERT", "VSLIDER");
  			Font("TINY");
  		}

		OnEvent("FillData")
		{
			Cmd("shell.multi.missionInfo");
		}
	}

	
	//vehiclesel
}


CreateControl("MapInfo", "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 Info");
		TitleFont("SMALL");
		Style("LEFTTAB", "OUTLINE");

		CreateControl("MapList", "STATIC")
		{
			ColorGroup("LISTBOX");
			Style("VSLIDER");

			Geometry("TOP", "LEFT");
			Position(0, 0);
			Size(120, 25);
			CellSize(120, 11);
			BorderSize(5);
			BevelSize(3);
			Font("TINY");
			UseVar("network.session.svar0");
		}

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

		CreateControl("MapSpecs", "LISTBOX")
  		{
  			ColorGroup("LISTBOX");
  			Geometry("TOP", "RIGHT");
  			Position(0, 0);
  			Size(130, 110);
  			CellSize(120, 11);
  			BorderSize(5);
  			BevelSize(3);
			Style("INERT", "VSLIDER");
  			Font("TINY");
  		}

		OnEvent("FillData")
		{
			Cmd("shell.multi.missionInfo");
		}
	}

	
	//
	// 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");
		Cursor("Highlight");
		NotifyParent("Button::Press", "vehSel");
	}
	
	//
	// handle the vehicle selection event
	//
	OnEvent("vehSel")
	{
		FadeOut("|MapInfo");
		FadeIn("|MapButt");
		FadeIn("|ShellMultiVehicle");
	}
}

CreateControl("MapButt_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")
	{
		cmd("iface.screenshot");
	}
}

CreateControl("MapButt", "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("Screenshot");
		Style("ROLLOVER", "RIGHTTAB", "OUTLINE");
		Cursor("Highlight");
		NotifyParent("Button::Press", "mapSel");
	}
	
	//
	// handle the vehicle selection event
	//
	OnEvent("mapSel")
	{
		cmd("iface.screenshot");
	}
}
show_small_map.cfg

Code: Select all

CreateControl("MapiS", "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 Info");
		TitleFont("SMALL");
		Style("LEFTTAB", "OUTLINE");

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

		CreateControl("MapSpecs", "LISTBOX")
  		{
  			ColorGroup("LISTBOX");
  			Geometry("TOP", "RIGHT");
  			Position(-10, 0);
  			Size(130, 110);
  			CellSize(120, 11);
  			BorderSize(5);
  			BevelSize(3);
			Style("INERT", "VSLIDER");
  			Font("TINY");
  		}

		OnEvent("FillData")
		{
			Cmd("shell.multi.missionInfo");
		}
	}

	
	//vehiclesel
}


download here. http://www.mediafire.com/?9fy8n69cc0k9pga

-First I tried just changing the stock files, but got bad logs. So I made my own lil file which actually seems working- excepting the blank map :?

Re: Bzshell question

Posted: Mon Jun 11, 2012 7:01 pm
by General BlackDragon
It's best to mod the stock files, so u dont miss things...

Again, The map is filled by BZONE EXE

it is under the objects MapInfo and MapInfo_Small, called 'Map"

it HAS to be named that... MapiS does NOT work...it's NOT where bzone.exe is trying to load the map image.

It has to fall under higherarchy > MapInfo . MAYBE...just MAYBE it looks for starting section MapInfo and u can have MapInfo_jiblksdfkkllkfgjjg work, but It more then likely looks for 2 locations: MapInfo and MapInfo_Small.


But, try naming it MapInfo_CaptainPeanutButter and see if it works...

Re: Bzshell question

Posted: Mon Jun 11, 2012 7:07 pm
by Cyber
General BlackDragon wrote: But, try naming it MapInfo_CaptainPeanutButter and see if it works...
:lol: :lol: :lol:

Yeah aight, I will try stock files again then :D

Re: Bzshell question

Posted: Tue Jun 12, 2012 12:24 pm
by Red Spot
Just got your PM Cyber, I assume you have things sorted now?

Just a hint though, try to take one step at a time. That way you can quickly figure out what went wrong when something stops working and revert the changes (I havent worked on any UI-elements for BZ for quite a while, yet I still have 'previous versions' tucked away in a folder so I can always roll back if ever needed).

Re: Bzshell question

Posted: Tue Jun 12, 2012 7:17 pm
by Cyber
Red Spot wrote:Just got your PM Cyber, I assume you have things sorted now?

Just a hint though, try to take one step at a time. That way you can quickly figure out what went wrong when something stops working and revert the changes (I havent worked on any UI-elements for BZ for quite a while, yet I still have 'previous versions' tucked away in a folder so I can always roll back if ever needed).

Yeah thanks, I already figured this out :)

As I already said I will release a new shell- including many parts of the best shells which are out yet, also files like ZA's improved teamslots and spAce's radar- and the best part: HD Interface, HD backgrounds and some other lil surprises. The work is going good, tho I didn't even began with the bzgame_command.cfg (which is sorta complicated for me) which is very important for 1920x1080. Also, I have to fight against these bugs I today saw during gaming. But if I got questions, I know where to ask ;)

Re: Bzshell question

Posted: Tue Jun 12, 2012 7:53 pm
by Zero Angel
I didnt make teamslots addon, that's from the UEP -- I just repacked it because its a really useful one.

Re: Bzshell question

Posted: Tue Jun 12, 2012 8:07 pm
by Ded10c
Teamslots is N1's IIRC.

Re: Bzshell question

Posted: Wed Jun 13, 2012 5:12 am
by Cyber
Oh, alright. I thought I read it in Cloaket's shell - readme.

N1's, aight.

Re: Bzshell question

Posted: Thu Jun 14, 2012 6:07 pm
by Red Spot
In ancient Egypt they had cement, then it was lost for nearly 2000 years before it was 'invented' again ;)
Some things have been invented several times, before you do any public release I'd simply contact the individuals who's work you're using.

Re: Bzshell question

Posted: Fri Jun 15, 2012 9:22 pm
by General BlackDragon
That's true.

My help in this topic comes because i've done this same thing for BZC's shell.