Clear instructions for adding SubMenu needed -1 reply

Please wait...

Leatherman

Logical, flawlessly logical.

50 XP

1st March 2004

0 Uploads

14 Posts

0 Threads

#1 14 years ago

Let me start by thanking everyone for the excellent mods and help offered on this site over the years:bows: . Now, down to business. I have many ships (over 200) in my game and I would love to use the Sub Menu Ship Selection mod V3 by MLeoDaalder, but his directions on how to use it are not clear enough (I'm probably just dumb). He states: You need to add a variable at the top of the file, below "species = " below this you add: SubMenu = "SubMenu Name" Where SubMenuName is whatever name you want to have on the menu. Then find: "'shipFile': shipFile" (not the "" signs). After this you add: , "SubMenu": SubMenu After that there is this: " })" (not the "" signs). :eek: I tried to follow this but got the "black screen and yellow cursor of death". OK, I can fix that, but I'm not clear on exactly which file to edit and which of those symbols to use and which line they go on. If someone could hold my hand through this I'd appreciate it. Perhaps an example from someone who uses it. Thanks, Leatherman P.S. I searched the modding forum and the help forum for this before I posted but came up empty handed.




Cap'n Crunch

I need some lovin'

50 XP

3rd September 2002

0 Uploads

66 Posts

0 Threads

#2 14 years ago

Ok, go to your scripts/custom/ships and open up the py of the ship want to put in a submenu. When you see something like this:

abbrev = 'C2Valdore' iconName = 'C2Valdore' longName = 'C2Valdore' shipFile = 'C2Valdore' menuGroup = 'Romulan Ships' playerMenuGroup = 'Romulan Ships' species = App.SPECIES_GALAXY

make it look like this:

abbrev = 'C2Valdore' iconName = 'C2Valdore' longName = 'C2Valdore' shipFile = 'C2Valdore' menuGroup = 'Romulan Ships' playerMenuGroup = 'Romulan Ships' species = App.SPECIES_GALAXY SubMenu = "Ship Class"

Then scroll down a bit and scroll all the way to the right and when you see this:

{ 'name': longName, 'iconName': iconName, 'shipFile': shipFile })

make it look like this:

{ 'name': longName, 'iconName': iconName, 'shipFile': shipFile, "SubMenu": SubMenu })

And don't forget to delete the .pyc afterwards. Hope that helped.




Leatherman

Logical, flawlessly logical.

50 XP

1st March 2004

0 Uploads

14 Posts

0 Threads

#3 14 years ago

Worked perfectly. Thank you for clearing that up.:) Leatherman




Cap'n Crunch

I need some lovin'

50 XP

3rd September 2002

0 Uploads

66 Posts

0 Threads

#4 14 years ago

You're welcome.