Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Renegade Discussions » Mod Forum » Sidebar PT
Sidebar PT [message #461871] Thu, 19 January 2012 22:02 Go to next message
jlhill17 is currently offline  jlhill17
Messages: 45
Registered: September 2011
Karma: 0
Recruit
I want to use the sidebar-style PT in my mod, but I don't know how to incorporate it. I assume it's more than just adding MDB_Sidebar_Key.

What do I do to make it work?
Re: Sidebar PT [message #461876 is a reply to message #461871] Fri, 20 January 2012 00:24 Go to previous messageGo to next message
sla.ro(master) is currently offline  sla.ro(master)
Messages: 610
Registered: September 2010
Location: Romania
Karma: 0
Colonel
is somewhere in TT.ini, you need to run TT in order to have sidebar for your mod.

Creator of Mutant Co-Op
Developer of LuaTT
Re: Sidebar PT [message #461880 is a reply to message #461871] Fri, 20 January 2012 12:37 Go to previous messageGo to next message
jlhill17 is currently offline  jlhill17
Messages: 45
Registered: September 2011
Karma: 0
Recruit
I don't see a tt.ini anywhere. I found the tt.txt in the scripts 4.3 source folder which talked about the sidebar, but it didn't explain very well how to make it work. I searched the forum here and found some C++ code for it, but I don't know where to put it (I'm only a beginner with C++).

Can I make it work through LevelEdit? If so how?
Re: Sidebar PT [message #461901 is a reply to message #461871] Fri, 20 January 2012 21:07 Go to previous messageGo to next message
Generalcamo is currently offline  Generalcamo
Messages: 522
Registered: October 2010
Karma: 0
Colonel
Create the file tt.ini in your mod's Data Folder.

Type in the file:

EnableSidebar=True


Now, in that file, you have the following options:
The following keywords apply to the sidebar logic
GDIUpArrowTexture is the texture for the up arrow button for GDI
GDIDownArrowTexture is the texture for the down arrow button for GDI
GDIBackgroundTexture1 is the upper half of the background texture for GDI
GDIBackgroundTexture2 is the lower half of the background texture for GDI
NODUpArrowTexture is the texture for the up arrow button for Nod
NODDownArrowTexture is the texture for the up arrow button for Nod
NODBackgroundTexture1 is the upper half of the background texture for Nod
NODBackgroundTexture2 is the lower half of the background texture for Nod
RefillLimit is the refill limit in seconds
AlternateSelectEnabled determines if the special alternate selection logic is enabled
GDIAlternateSelectTexture1
GDIAlternateSelectTexture2
GDIAlternateSelectTexture3
GDIAlternateSelectTexture4
These 4 are the 4 textures for the alternate selection buttons for GDI
NODAlternateSelectTexture1
NODAlternateSelectTexture2
NODAlternateSelectTexture3
NODAlternateSelectTexture4
These 4 are the 4 textures for the alternate selection buttons for Nod
Note that the 4 background textures can have alpha transparency
SidebarSoundsEnabled=true. Set this to have new sounds for the sidebar purchasing.
SidebarRefillSound Set this to the sound to use when refilling.
SidebarInfantrySound Set this to the sound to use when buying infantry
SidebarVehicleSound Set this to teh sound to use when buying vehicles.
Re: Sidebar PT [message #461925 is a reply to message #461871] Sun, 22 January 2012 08:28 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
The tt.ini file needs to have "[General]" at the top of the document or those keywords won't work.

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: Sidebar PT [message #461938 is a reply to message #461871] Sun, 22 January 2012 14:07 Go to previous messageGo to next message
jlhill17 is currently offline  jlhill17
Messages: 45
Registered: September 2011
Karma: 0
Recruit
I made tt.ini as follows:

[General]

EnableSidebar=true

GDIUpArrowTexture=btn_pt_up.tga
GDIDownArrowTexture=btn_pt_down.tga
GDIBackgroundTexture1=ptbg.tga
GDIBackgroundTexture2=ptbg.tga
NODUpArrowTexture=btn_pt_up.tga
NODDownArrowTexture=btn_pt_down.tga
NODBackgroundTexture1=ptbg.tga
NODBackgroundTexture2=ptbg.tga
RefillLimit=5
AlternateSelectEnabled=false
SidebarSoundsEnabled=false


And I added a Generic_Switch to my map with JFW_Sidebar_PT on it, but it didn't activate the sidebar when poked. Am I doing something wrong?
Re: Sidebar PT [message #461941 is a reply to message #461871] Sun, 22 January 2012 14:27 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
You don't need to use JFW_Sidebar_PT if it's a mod. Did you place tt.ini in your My Dcouments -> Renegade -> Client folder?

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: Sidebar PT [message #461947 is a reply to message #461871] Sun, 22 January 2012 15:43 Go to previous messageGo to next message
jlhill17 is currently offline  jlhill17
Messages: 45
Registered: September 2011
Karma: 0
Recruit
Yes, I put it in the client folder. Does that mean that a normal PT should show up as a sidebar? My PT's are still normal PT's.

Does it work for a .pkg mod?

[Updated on: Sun, 22 January 2012 15:44]

Report message to a moderator

Re: Sidebar PT [message #461952 is a reply to message #461871] Sun, 22 January 2012 19:13 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
Yeah, the normal PTs should show up as sidebars and you shouldn't be able t join a server like st0rm 4.0.

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: Sidebar PT [message #461955 is a reply to message #461871] Sun, 22 January 2012 20:52 Go to previous messageGo to next message
Generalcamo is currently offline  Generalcamo
Messages: 522
Registered: October 2010
Karma: 0
Colonel
It does not work for a package mod, as tt.ini is only loaded on start.

The only way to make it work in 4.0 is with a standalone mod. 3.4.4 had these settings in the hud.ini. You could try that, but I doubt it will work.
Re: Sidebar PT [message #461958 is a reply to message #461871] Sun, 22 January 2012 22:16 Go to previous message
jlhill17 is currently offline  jlhill17
Messages: 45
Registered: September 2011
Karma: 0
Recruit
What do I do to configure it for a standalone mod then?
Previous Topic: Repair Facility
Next Topic: Cheaper units on the stock maps
Goto Forum:
  


Current Time: Sat Nov 09 07:40:56 MST 2024

Total time taken to generate the page: 0.00869 seconds