Jump to content

Renegade Sidebar Tutorial


Guest Mauler

Recommended Posts

You will want to download http://multiplayerforums.com/index.php?/files/file/624-maulers-renegade-sidebar/ for this tutorial.

Now that scripts 4.1 allows you to use the sidebar stand-alone in a Renegade map, its time to write a tutorial for how its done.

The first thing you need to create are textures for the sidebar. [iNCLUDED IN THE DOWNLOAD LINK]

You need to create a top half texture, bottom half texture and up and down arrow textures. They can be the same for both teams or different for each team.

Then, you need to create an ini file. If your map is named C&C_MyMap, the ini file should be named C&C_MyMap_tt.ini

In this file put something like this

[General]AlternateSelectEnabled=falseNewUnpurchaseableLogic=falseVehicleBuildingDisable=falseGDIUpArrowTexture=up.tgaGDIDownArrowTexture=down.tgaGDIBackgroundTexture1=gdisidebar_mau.tgaNODUpArrowTexture=up.tgaNODDownArrowTexture=down.tgaNODBackgroundTexture1=nodsidebar_mau.tgaSidebar=true
 

 

Obviously the names of the textures should match the names you gave them when you created them.

You can also optionally add

SidebarSoundsEnabled=trueSidebarRefillSound=xyzSidebarInfantrySound=xyzSidebarVehicleSound=xyz
if you want sounds to play when sidebar items are purchased.

The sounds need to be 2D sound presets created in LE. (obviously replace xyz with the name of the sound to use). The sounds are played whenever something is purchased (i.e. double click etc)

Note that the sidebar does not display any text on top of the icons except for the cost so you will need to either rely just on the pictures or you will need to add text to your icons.

Also note that all players using your map will require scripts 4.1 (as will the server) in order for this to work.

Also, the sidebar does not allow you to purchase beacons (unlike the PTs) so if you want beacons to be purchasable, you will have to add separate terminals to let you do that (there are plenty of scripts to make that happen)

 

 

ok, time for part 2 of the tutorial (which is necessary if you want objects to disappear when the building that normally builds them goes away)

First, in the C&C_MyMap_tt.ini file (or whatever), put this line at the end after the others

NewTechLevel=true
Then in leveledit, go to Global Settings then Purchase Settings. For each of Character Classes (GDI), Character Classes (Nod), Character Classes (Secret GDI), Character Classes (Secret Nod), Vehicles (GDI), Vehicles (Nod), Vehicles (Secret GDI) and Vehicles (Secret Nod), create a temp preset copy (or if you already have one, edit it). What you need to change is the Factory Building Type for each entry. For soldiers, set it to Soldier Factory. For vehicles, set it to Vehicle Factory. If you are using my helipad tutorial (to be posted shortly) set helicopters/air units to Helipad.

If there are units you dont want on the sidebar (e.g. the secret hidden extra vehicles), set their object to none. The usual enable/disable for extras (EXTRAS console command etc) will not work with the sidebar.

That should be all you need to do, no extra scripts are required, the engine logic behind NewTechLevel=true will do all the work of making the items vanish from the sidebar when the relavent building is destroyed.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.