GeneralCamo Posted February 19, 2015 Report Share Posted February 19, 2015 Author: Jonwil, Generalcamo Skill level: 3 You will want to download the sidebar textures for this tutorial. Now that scripts 4.1 allows you to use the sidebar stand-alone in a Renegade map or standalone mod, 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 sidebar.zip file are some example textures from Tiberian Sun: Reborn as well as a source Photoshop file provided by Chronojam to show how it all fits together. 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. Alternatively, if you are creating a standalone mod, the ini file should only be named tt.ini. In this file put something like this [General] AlternateSelectEnabled=false NewUnpurchaseableLogic=false VehicleBuildingDisable=false GDIUpArrowTexture=gdisidebarup.tga GDIDownArrowTexture=gdisidebardown.tga GDIBackgroundTexture1=gdisidebar1.tga GDIBackgroundTexture2=gdisidebar2.tga NODUpArrowTexture=nodsidebarup.tga NODDownArrowTexture=nodsidebardown.tga NODBackgroundTexture1=nodsidebar1.tga NODBackgroundTexture2=nodsidebar2.tga sidebar=true Obviously the names of the textures should match the names you gave them when you created them. You can also optionally add the following if you want sounds to play when sidebar items are purchased: sidebarSoundsEnabled=true sidebarRefillSound=xyz sidebarInfantrySound=xyz sidebarVehicleSound=xyz Or for team specific sounds: SidebarInfantrySoundNod=xyz SidebarInfantrySoundGDI=xyz SidebarVehicleSoundNod=xyz SidebarVehicleSoundGDI=xyz 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) If you wish to use the new tech level features of the sidebar, continue reading. 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 don't 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. All of the hidden extras will be displayed be default otherwise. 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 relevant building is destroyed. This should be all you need to know in order to use the sidebar in your map or mod. If you have any questions, post here (or talk to me on IRC/IM) and I will do my best to answer them. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.