• Welcome to Battlezone Universe.
 

News:

Welcome to the BZU Archive dated December 24, 2009. Topics and posts are in read-only mode. Those with accounts will be able to login and browse anything the account had access granted to at the time. No changes to permissions will be made to be given access to particular content. If you have any questions, please reach out to squirrelof09/Rapazzini.

Main Menu

Need a hand with this shell file...

Started by TheJamsh, May 03, 2009, 02:51:58 AM

Previous topic - Next topic

TheJamsh

Ah well done red_spot!

I knew there must be a way around it. didnt think using CMD would work. Youre a genius! Thankyou kindly!


BZII Expansion Pack Development Leader. Coming Soon.

Red Spot

You're welcome. I wanted to know it myself anyway, now I know it a bit sooner than planned :)
*Something intelligent, yet funny*

TheJamsh

Here it is in all its glory, and working. look close enough you can see another little extra in there too :P



BZII Expansion Pack Development Leader. Coming Soon.

Nielk1

I already have 2 recs planned to be in with MRVP's installer. Maybe we need 2 more?

MRVP's Recs
SRV
NRV

Should we add:
TJRV and RSRV?

I ask because MRVP is rather heavy on shell modifications lately. It does its best to stay out of the way and instead create a tool bar style system, but I would have to patch it for every shell editing always on mod that comes out unless we work more together.

I wonder if the other guy who had the cool magnetic thrower buildings is making a rec.

Jamsh's and my philosophy for add on configuration are different, so I think I may be helping him split his 'addon pack' into 'Always On' and 'Toggle as Mod' pieces.

Neat shell edits, could use you all helping me out :D

Click on the image...

TheJamsh

Where and what is RSRV?

Oh wait... Red Spot. Hah got it.


BZII Expansion Pack Development Leader. Coming Soon.

Red Spot

Quote from: TheJamsh on May 03, 2009, 04:12:23 PM
Here it is in all its glory, and working. look close enough you can see another little extra in there too :P

code!! ;)


Nielk1,

I really dont mind helping out or sharing resources but the way I'm setting things up its all heavilly mod-based and by itself already conflicts with vanilla so I doubt we could combine our assets, but any 'concept' I may come up with is free for use.
My work will heavilly rely on a combination of AIPs, dll, and AI-impoving tweaks, in a way it will stay vanilla, in an other way it will drasticly change it ... hopefully for the beter (as in make the AI 'seem' smarter and more competitive)
*Something intelligent, yet funny*

TheJamsh

Not quite :P

I was referring to the new AIP difficulty "Merciless". Hopefully itll even keep vets on their toes.


BZII Expansion Pack Development Leader. Coming Soon.

Steeveeo


(Click it for more art, y'know you wanna!)

Gone to college, but I now have internet.

Red Spot

Quote from: TheJamsh on May 03, 2009, 04:40:30 PM
Not quite :P

I was referring to the new AIP difficulty "Merciless". Hopefully itll even keep vets on their toes.

So now I need 6 atanks instead of 5 ? :P (j/k)

But how did you set up that recycler selection? Or am I mistaken that it seems like you have a 3-option choise in your shell? (I couldnt get the recy-switch to work without a pop-up menu, the 'cmd' didnt work if I didnt sort of left the shell (by pop-up))
*Something intelligent, yet funny*

TheJamsh

it still involves using two files. The following was added to mpi3:


//////////////////////////////////////////////////////////////
CreateControl("CPURecy", "Window")
{
ColorGroup("MAGENTA");
Geometry("LEFT", "TOP");
Pos(5, 180);
Size(260, 45);
BorderSize(10);
BevelSize(5);
TabSize(140, 10);
Style("INERT", "RIGHTTAB", "OUTLINE");
Title("CPU Recycler");
TitleFont("SMALL");

CreateControl("DefaultCPURecy", "BUTTON")
{
ColorGroup("BLACKBLUE");
Geometry("LEFT", "TOP");
Pos(0, 0);
Size(250, 5);
BorderSize(3);
BevelSize(3);
Style("ROLLOVER", "OUTLINE");
Font("TINY");
JustifyText("LEFT");
Text("Default CPU Recycler");
NotifyParent("Button::Press", "DefaultCPURecy");
}

OnEvent("DefaultCPURecy")
{
Cmd("network.session.svar12 ivrecycpu");
Exec("CPURecySet.cfg");
FadeIn("|CPURecySet");
}

CreateControl("TJCPURecy", "BUTTON")
{
ColorGroup("BLACKBLUE");
Geometry("LEFT", "TOP");
Pos(0, 20);
Size(250, 5);
BorderSize(3);
BevelSize(3);
Style("ROLLOVER", "OUTLINE");
Font("TINY");
JustifyText("LEFT");
Text("TheJamsh Variant");
NotifyParent("Button::Press", "TJCPURecy");
}

OnEvent("TJCPURecy")
{
Cmd("network.session.svar12 ivrecy_tj");
Exec("CPURecySet.cfg");
FadeIn("|CPURecySet");
}

CreateControl("TJDFCPURecy", "BUTTON")
{
ColorGroup("BLACKBLUE");
Geometry("LEFT", "TOP");
Pos(0, 40);
Size(250, 5);
BorderSize(3);
BevelSize(3);
Style("ROLLOVER", "OUTLINE");
Font("TINY");
JustifyText("LEFT");
Text("TheJamsh Defensive Variant");
NotifyParent("Button::Press", "TJDFCPURecy");
}

OnEvent("TJDFCPURecy")
{
Cmd("network.session.svar12 ivrecydf_tj");
Exec("CPURecySet.cfg");
FadeIn("|CPURecySet");
}

}
///////////////////////////////////////////////////////////

CreateControl("CPURecyDescButton", "BUTTON")
{
ColorGroup("BLACKBLUE");
Geometry("LEFT", "TOP");
JustifyText("CENTER");
Position(153, 242);
Size(100, 9);
BorderSize(3);
BevelSize(3);
Font("TINY");
Text("CPU Recycler Info");
Style("ROLLOVER", "OUTLINE");
Cursor("Highlight");
NotifyParent("Button::Press", "CPURecyDescButton");
}

OnEvent("CPURecyDescButton")
{
Exec("CPURecyDesc.cfg");
FadeIn("|CPURecyDesc");
}


AND this is the little pop-up box. I tested and it does work.


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

//
// CREATE THE CPU RECYCLER SET DIALOG. CREATED BY THEJAMSH.
//

CreateControl("CPURecySet", "WINDOW")
{
// inherit root window's dimensions
Geometry("PARENTWIDTH", "PARENTHEIGHT");

ColorGroup("BACKGROUND");

Style("MODAL");

CreateControl("RecySet", "WINDOW")
{

Geometry("RIGHT", "VCENTER");
ColorGroup("MAGENTA");
Position(-65, 0);
Size(180, 50);
BorderSize(10);
BevelSize(5);
Style("INERT", "OUTLINE");

CreateControl("CloseCPURecySet", "BUTTON")
{
ColorGroup("BLACKBLUE");
Geometry("HCENTRE", "TOP");
Position(0, 35);
Size(40, 10);
BorderSize(3);
BevelSize(3);
Style("ROLLOVER");
Cursor("Highlight");
Font("SMALL");
Text("OK");
NotifyParent("Button::Press","CloseCPURecySet");
}

CreateControl("RecSetCPU", "BUTTON")
{
ColorGroup("LISTBOX");
Geom("TOP", "HCENTRE");
Pos(0, 10);
Size(160, 10);
BorderSize(5);
BevelSize(3);
Style("INERT", "NOSELECTION");
Cursor("Highlight");
Font("SMALL");
Text("Recycler Set!");
}

OnEvent("CloseCPURecySet")
{
FadeOut("|CPURecySet");
}


}
}


BZII Expansion Pack Development Leader. Coming Soon.

Red Spot

Thanks, than or I made some mistake in an earlier attempt or the confirmation pop-up is enough to 'refresh' the shell (or something like that) Anyway, a good example of why combining effort works :)
*Something intelligent, yet funny*