Jump to content
Sign in to follow this  
Eagle114th

Questions about MENU .ini editing (Need advice)

Recommended Posts

Good afternoon everyone,

I have the questions about MENU coding.  I am stuck on a few problems with my own menu projects:

---------------------------------------------------------

1) I saved buttons as .png, and it has an alpha background (transparent) 

NOTE: I am supposed to save it as .jpg right? 

It still shows a black background around it. I tried setting TransparentBackground= to TRUE, still won't work.

---------------------------------------------------------

2) I want to change between three image files.

MouseOverAnimation=Animation_InstantAction1
MouseDownAnimation=Animation_InstantAction2
MouseDownAnimation=Animation_InstantAction3


These codes are from [InstantActionHotspot] in MAINSCREEN.INI

[InstantActionHotspot]
MenuItemType=HOTSPOT
UseHotSpotImage=FALSE
GenerateEventMessage=TRUE
NormalAnimation=Animation_InstantAction1
MouseOverAnimation=Animation_InstantAction1
MouseDownAnimation=Animation_InstantAction1
Position=500,150
SelectedAnimation=
DisabledAnimation=
TextSetting=
TextStringID=
TextPosition=
InfoTextSetting=InfoTextSetting
InfoTextStringID=TXT_MENU_INSTANTACTION_INFO



It won't change between three images. It still only display one image, even when I move a mouse cursor over it. Here is the code:

[InstantActionHotspot]
MenuItemType=HOTSPOT
UseHotSpotImage=FALSE
GenerateEventMessage=TRUE
NormalAnimation=Animation_InstantAction1
MouseOverAnimation=Animation_InstantAction1
MouseDownAnimation=Animation_InstantAction1
Position=500,150
SelectedAnimation=
DisabledAnimation=
TextSetting=
TextStringID=
TextPosition=
InfoTextSetting=InfoTextSetting
InfoTextStringID=TXT_MENU_INSTANTACTION_INFO

[Animation_InstantAction1]
AnimationFilename=InstantAction1.jpg
LoopingAnimation=TRUE
NumFrames=1
TicksPerFrame=0
TransparentBackground=TRUE
Width=150
Height=40

[Animation_InstantAction2]
AnimationFilename=InstantAction1.jpg
LoopingAnimation=TRUE
NumFrames=1
TicksPerFrame=0
TransparentBackground=TRUE
Width=150
Height=40

[Animation_InstantAction3]
AnimationFilename=InstantAction1.jpg
LoopingAnimation=TRUE
NumFrames=1
TicksPerFrame=0
TransparentBackground=TRUE
Width=150
Height=40


Any advice and tips are appreciated as always.

Edited by Eagle114th

Share this post


Link to post
Share on other sites

1) you must use .tga for buttons with transparency, .jpg does not hold transparency info and .png is not supported by the game.

2) I don't remember exactly, but you do not have to add three different animation statements. You must have a single one with NumFrame=3, that tells the game that the animation is using three textures for the animation, numbered sequentially as you did (maybe starting from 0). Check the menu mod included in the ODS package, files can be opened and you'll find examples on how to do similar buttons and other tricks.

Edited by Menrva

Share this post


Link to post
Share on other sites
3 hours ago, Menrva said:

1) you must use .tga for buttons with transparency, .jpg does not hold transparency info and .png is not supported by the game.

2) I don't remember exactly, but you do not have to add three different animation statements. You must have a single one with NumFrame=3, that tells the game that the animation is using three textures for the animation, numbered sequentially as you did (maybe starting from 0). Check the menu mod included in the ODS package, files can be opened and you'll find examples on how to do similar buttons and other tricks.

As always, thank you for the advice!
 

1) I tried it with .tga, .bmp, and .png, it won't show up on the screen.  If I use .jpg, then it will show up.  That is very confusing part for me. I tried ODS 30, .bmp button, it appears on the screen.  What makes it even more odd is that, I copied the mainscreen.ini from ODS 30 for testing purpose and swapped ODS button with mine (as .bmp, .tga, and .png), it still refuses to show up on the screen.  I attached my button graphic files here, so if it is okay with you, can you check it out? 

 

2) That is very interesting!  As soon I finally get the button working, I will test it with NuMFrame = 3. 

InstantAction.rar

Edited by Eagle114th

Share this post


Link to post
Share on other sites
7 minutes ago, Eagle114th said:

 What makes it even more odd is that, I copied the menu from ODS 30 for testing purpose and swapped ODS button with mine (as .bmp, .tga, and .png), it still refuse to show up on the screen.

Always make sure to double check the file format you define in the .ini, if it's another one than what is actually used and put in the folder, it won't show up.

My mistake about the .tga textures, they don't work with animations, IIRC. This is why I had to make buttons for the ODS menu the hard way, using bitmaps, and of course you cannot have a transparent background with those. It's a lot of trial and error, so do not worry about making numerous attempts to make the buttons look and work right. You'll learn more and more by trying.

Edited by Menrva

Share this post


Link to post
Share on other sites
49 minutes ago, Menrva said:

Always make sure to double check the file format you define in the .ini, if it's another one than what is actually used and put in the folder, it won't show up.

My mistake about the .tga textures, they don't work with animations, IIRC. This is why I had to make buttons for the ODS menu the hard way, using bitmaps, and of course you cannot have a transparent background with those. It's a lot of trial and error, so do not worry about making numerous attempts to make the buttons look and work right. You'll learn more and more by trying.

Yes, I am still learning more about how this works.  I made sure the filename defined in .ini matches the one in directory.  Here is the code:

//-----------------------------
//New Menu - SINGLE MISSION

[SingleMissionHotspot]
MenuItemType=TEXTBUTTON
DestinationMenu=SingleMissionScreen
TextSetting=MainMenuText
ButtonSetting=MenuButtonSetting
TextStringID=TXT_MENU_SINGLEMISSION
TextPosition=790,330
InfoTextSetting=InfoTextSetting
InfoTextStringID=TXT_MENU_SINGLEMISSION_INFO

// BUTTON ---------------
[InstantActionAnimation]
AnimationFilename=InstantAction1.bmp
LoopingAnimation=TRUE
NumFrames=1
TicksPerFrame=0
TransparentBackground=TRUE

Here is the files:
 

1

Still won't show up on the screen. I am going to do further testing to see what is going on.

UPDATE:

I found the reasons why it wasn't working. I had to save the image picture as .bmp WITHOUT transparent background.  By just renaming .png or .tga with transparent background to .bmp won't work in SF2.  Hence, I will have to use a raw .bmp files, in order, to get it showing up on SF2.  I could go either .bmp or .jpg.  Should I go with .jpg, in order, to use the smaller file size?  It won't look much differnt with smaller file size. It will save people from downloading a larger file size. 

I am going to work on NuMFrame = 3 now. (Crosses my fingers)

Edited by Eagle114th

Share this post


Link to post
Share on other sites
1 hour ago, Eagle114th said:

Should I go with .jpg, in order, to use the smaller file size?  It won't look much differnt with smaller file size. It will save people from downloading a larger file size. 

Bitmaps are preferable. JPEG is a lossy format; each time you re-save a JPG, generally there's a loss of quality and crispness. You can use .jpg if you wish, but make sure that you're saving .jpg textures with the maximum quality allowed by your painting software. Always keep templates at hand, they are your source at the original quality.

Share this post


Link to post
Share on other sites

I am able to successfully  use three buttons.  However, I am unable to get "NumFrame=3" working.  For now, I got it working by this method:

//----------------------------------------------------
//New Menu - INSTANT ACTION
[InstantActionHotspot]
MenuItemType=HOTSPOT
UseHotSpotImage=FALSE
NormalAnimation=InstantActionAnimation0
MouseOverAnimation=InstantActionAnimation1
MouseDownAnimation=InstantActionAnimation2
Position=661.5,161
ButtonSetting=MenuButtonSetting
InfoTextSetting=InfoTextSetting
InfoTextStringID=TXT_MENU_INSTANTACTION_INFO

// BUTTON -------------
[InstantActionAnimation0]
AnimationFilename=INSTANTACTION0.bmp
LoopingAnimation=TRUE
NumFrames=1
TicksPerFrame=0
TransparentBackground=FALSE
Width=234
Height=45

[InstantActionAnimation1]
AnimationFilename=INSTANTACTION1.bmp
LoopingAnimation=TRUE
NumFrames=1
TicksPerFrame=0
TransparentBackground=FALSE
Width=234
Height=45

[InstantActionAnimation2]
AnimationFilename=INSTANTACTION2.bmp
LoopingAnimation=TRUE
NumFrames=1
TicksPerFrame=0
TransparentBackground=FALSE
Width=234
Height=45


Can  I ask you for an example how to use NumFrames = 3? 
 

Edited by Eagle114th

Share this post


Link to post
Share on other sites
2 hours ago, Eagle114th said:

I am able to successfully  use three buttons.  However, I am unable to get "NumFrame=3" working.  For now, I got it working by this method:

Ah, now I remember. My bad, it's been a while since a worked on a custom GUI. For buttons, what you did is the correct way to proceed.

2 hours ago, Eagle114th said:

Can  I ask you for an example how to use NumFrames = 3?

NumFrame is used for other different cases. I used it in a "tricky" way for the credits screen of the ODS mod, so that it displays dozens of artworks. That's your example for using NumFrames. It's not for buttons, where NumFrame must be set to 1 for each button animation texture separately.

Edited by Menrva

Share this post


Link to post
Share on other sites
7 hours ago, Menrva said:

Ah, now I remember. My bad, it's been a while since a worked on a custom GUI. For buttons, what you did is the correct way to proceed.

NumFrame is used for other different cases. I used it in a "tricky" way for the credits screen of the ODS mod, so that it displays dozens of artworks. That's your example for using NumFrames. It's not for buttons, where NumFrame must be set to 1 for each button animation texture separately.

That is no problems.  With your help, I am able to figure out the basic way of animating several buttons for "normal", "Mouse over", and "Mouse down" animation.  The project is looking good so far.  For now, I am scratching my head over the biggest challenges:

Option page, since there is a dial switch (buttons).  So i wonder how to animate that when selecting different page in option.  It'll be an interesting challenge. 

Edited by Eagle114th

Share this post


Link to post
Share on other sites

I just found out that if I tried to tweak SystemMenuHotspot, it will cause CTD.  Is anyone out there able to tweak the size and position of SystemMenuHotspot? 

UPDATE:
I found a way to edit it. I copied the entities from SYSTEMMENU.INI and pasted into MAINSCREEN.INI.  It works, I am able to change the position and size of System Menu icon.

Edited by Eagle114th

Share this post


Link to post
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
Sign in to follow this  

  • Similar Content

    • By CowboyTodd41


      View File CowboyTodd41 New Loading Screen Sound
      *New SF2 Loading Sound/Music by CowboyTodd41*
      //======================================\\
      Place in your flight folder. /MOD*/flight/ folder
      This loading screen sound is a combination of two elements, music from Ace Combat Assault Horizon, and audio from Vietnam air combat.
      Gives you an exciting pump up moment before the mission starts!
      Credits:
      Ace Combat Assault Horizon OST, "Horizon" - Keiki Kobayashi
      © Bandai Namco Games (2011)
      Vietnam War Radio Chatter- Air Combat- Dogfight 2
      USAF via johnsmith on YouTube https://www.youtube.com/watch?v=hljX_QRL-ks
      The incredible CombatAce Community for all their tutorials on modding anything for SF2
      **This mod is available for use in any other mod according to the CombatAce Freeware Licensing Agreement**
      Submitter CowboyTodd41 Submitted 10/04/2024 Category Menu Music  
    • By CowboyTodd41
      *New SF2 Loading Sound/Music by CowboyTodd41*
      //======================================\\
      Place in your flight folder. /MOD*/flight/ folder
      This loading screen sound is a combination of two elements, music from Ace Combat Assault Horizon, and audio from Vietnam air combat.
      Gives you an exciting pump up moment before the mission starts!
      Credits:
      Ace Combat Assault Horizon OST, "Horizon" - Keiki Kobayashi
      © Bandai Namco Games (2011)
      Vietnam War Radio Chatter- Air Combat- Dogfight 2
      USAF via johnsmith on YouTube https://www.youtube.com/watch?v=hljX_QRL-ks
      The incredible CombatAce Community for all their tutorials on modding anything for SF2
      **This mod is available for use in any other mod according to the CombatAce Freeware Licensing Agreement**
    • By TheRealJuralumin
      I don't really know how this happened, but the font for the menu and HUD has changed, text is now slanted and some letters and words are getting slightly cut-off, it's not game breaking in the slightest, but it is a bit annoying as some things have proven difficult to read. I will attach some screenshot examples. If anyone knows why this has happened and how I can fix it, it would be very much appreciated!




    • By Menrva


      View File Wings Over World Menu Screens
      Wings Over World Menu Screens 
      January 13th, 2019 (1st Release)
      by Menrva

      >For Strike Fighters 2 games
      This package is my personal conversion of the beautiful Strike Fighters: Project One menu screens, with a number of enhancements for use in Strike Fighters 2. The main menu screen is a reworked version of the NACA Main Screen released by Camouflage (Checksix-fr.com). The title I chose for the main menu screen is "Strike Fighters: Wings Over World", in honor of the old WOE/WOV/WOI series of SF1 games. I find this name suitable for those who have a large mod folder spanning different world scenarios.
      Here below a quick summary of enhancements and additions:
      -All the music tracks from the SF games have been included; now there's a unique track for each screen.
      -Hangar Screen has got the hangar noise sounds which were present in the SF1 games.
      -Option to turn Lens Flare off as in the SF1 games is back.
      -Opportunity to change pilot at the Campaign Screen is reintroduced, as in the SF1 games.
      -Briefing Screen has been reintroduced for eye-candy (it has a small string "bug" with certain missions, since ThirdWire's removal of the FAC mission type).
      -Added generic _briefing.ini files for all the stock SF2 terrains (terrains without a _briefing.ini file might cause CTDs when accessing the Briefing Screen).
      -Added Launch/Fly button in the Briefing, Loadout, Flight Roster and Planning Map screens.
      -Added the missing PILOTPIC25 bitmap which is available in the SF1 games.
      -Loading Screen shows a generic runway and a new, longer loading sound is used.
      -Mission Editor DLC is supported with a new screen in the same style of the other screens.
      -Campaign Customizer DLC is supported with a new screen in the same style of the other screens.
      -Disabled unnecessary functions of the the System Menu, such as accessing ThirdWire's online site for viewing the game manual.
      As a bonus, the package includes 42 single missions taking place across all theatres of the SF2 series; most of them have been made by ThirdWire and released in their SF1 games. Five single missions are Instant Action scenarios of Strike Fighters 2, which I converted to be choosable and playable in the Single Missions Screen. Additional missions include historical scenarios created by guyran for the Israel theater. I renamed all single missions to use a nicer naming convention. Needless to say, all SF2 titles must be installed to be able to play all the missions.
      In addition, I have tweaked some Flight folder files to improve the realism of the game's HUD and in-game map. Since users may not like such changes, those files are not included by default, they must be installed manually. They can be found inside the "(Additional Tweaks)" folder. Here below a quick summary of changes they bring:
      -Disabled all the unuseful Labels when viewing the in-game map.
      -Disabled the arcade cones; lock your target and press F4 to visually track it.
      -Tweaked icons' colours so that they match the text's colours.
      -The in-game text background is less noticeable.
      -Text's font is now different, it is generally smaller and less obtrusive.
      -No more red and blue arcade squares when locking objects on; a faint yellow square is now used.
      -The white triangle showing the next waypoint is now a faint yellow, unlike the default strong white.
      -Disabled the radar box display; check the radar of your plane's cockpit, instead.

      >Credits (in no particular order):
      -ThirdWire, for the fantastic menu screens which are included in the stock SFP1 game.
      -kout, for the System Menu icon I have taken from his SF1 Grey Main Menu Replacement mod.
      -Camouflage, for the NACA Main Screen (still available at the archives of Checksix-fr.com), which I have reworked.
      -HomeFries, for the planning map enhancements available in his Semi-Transparent Map Icons package.
      -Viper63a, for the Loading sound, which I got from one of his menu mods.
      -paulopanz, for collecting and updating guyran's WOI custom missions properly to SF2 standards.
      -guyran, for the original custom missions he created for Wings Over Israel.
      -KJakker, for his interest and welcome support.

      >Disclaimer:
      This is a freeware; yet it can be redistributed ONLY in other CombatACE mods/mod packages.
      Any changes to the package's files and/or any copy-and-paste attempts of their contents are NOT authorized if you plan to release them in other mods. But permission might be granted to those who request it to me at CombatACE.
      This mod may NOT in any way, shape or form be used in any payware additions.
      Submitter Menrva Submitted 01/13/2019 Category Menus  
    • By Menrva
      Wings Over World Menu Screens 
      January 13th, 2019 (1st Release)
      by Menrva

      >For Strike Fighters 2 games
      This package is my personal conversion of the beautiful Strike Fighters: Project One menu screens, with a number of enhancements for use in Strike Fighters 2. The main menu screen is a reworked version of the NACA Main Screen released by Camouflage (Checksix-fr.com). The title I chose for the main menu screen is "Strike Fighters: Wings Over World", in honor of the old WOE/WOV/WOI series of SF1 games. I find this name suitable for those who have a large mod folder spanning different world scenarios.
      Here below a quick summary of enhancements and additions:
      -All the music tracks from the SF games have been included; now there's a unique track for each screen.
      -Hangar Screen has got the hangar noise sounds which were present in the SF1 games.
      -Option to turn Lens Flare off as in the SF1 games is back.
      -Opportunity to change pilot at the Campaign Screen is reintroduced, as in the SF1 games.
      -Briefing Screen has been reintroduced for eye-candy (it has a small string "bug" with certain missions, since ThirdWire's removal of the FAC mission type).
      -Added generic _briefing.ini files for all the stock SF2 terrains (terrains without a _briefing.ini file might cause CTDs when accessing the Briefing Screen).
      -Added Launch/Fly button in the Briefing, Loadout, Flight Roster and Planning Map screens.
      -Added the missing PILOTPIC25 bitmap which is available in the SF1 games.
      -Loading Screen shows a generic runway and a new, longer loading sound is used.
      -Mission Editor DLC is supported with a new screen in the same style of the other screens.
      -Campaign Customizer DLC is supported with a new screen in the same style of the other screens.
      -Disabled unnecessary functions of the the System Menu, such as accessing ThirdWire's online site for viewing the game manual.
      As a bonus, the package includes 42 single missions taking place across all theatres of the SF2 series; most of them have been made by ThirdWire and released in their SF1 games. Five single missions are Instant Action scenarios of Strike Fighters 2, which I converted to be choosable and playable in the Single Missions Screen. Additional missions include historical scenarios created by guyran for the Israel theater. I renamed all single missions to use a nicer naming convention. Needless to say, all SF2 titles must be installed to be able to play all the missions.
      In addition, I have tweaked some Flight folder files to improve the realism of the game's HUD and in-game map. Since users may not like such changes, those files are not included by default, they must be installed manually. They can be found inside the "(Additional Tweaks)" folder. Here below a quick summary of changes they bring:
      -Disabled all the unuseful Labels when viewing the in-game map.
      -Disabled the arcade cones; lock your target and press F4 to visually track it.
      -Tweaked icons' colours so that they match the text's colours.
      -The in-game text background is less noticeable.
      -Text's font is now different, it is generally smaller and less obtrusive.
      -No more red and blue arcade squares when locking objects on; a faint yellow square is now used.
      -The white triangle showing the next waypoint is now a faint yellow, unlike the default strong white.
      -Disabled the radar box display; check the radar of your plane's cockpit, instead.

      >Credits (in no particular order):
      -ThirdWire, for the fantastic menu screens which are included in the stock SFP1 game.
      -kout, for the System Menu icon I have taken from his SF1 Grey Main Menu Replacement mod.
      -Camouflage, for the NACA Main Screen (still available at the archives of Checksix-fr.com), which I have reworked.
      -HomeFries, for the planning map enhancements available in his Semi-Transparent Map Icons package.
      -Viper63a, for the Loading sound, which I got from one of his menu mods.
      -paulopanz, for collecting and updating guyran's WOI custom missions properly to SF2 standards.
      -guyran, for the original custom missions he created for Wings Over Israel.
      -KJakker, for his interest and welcome support.

      >Disclaimer:
      This is a freeware; yet it can be redistributed ONLY in other CombatACE mods/mod packages.
      Any changes to the package's files and/or any copy-and-paste attempts of their contents are NOT authorized if you plan to release them in other mods. But permission might be granted to those who request it to me at CombatACE.
      This mod may NOT in any way, shape or form be used in any payware additions.
×

Important Information

By using this site, you agree to our Terms of Use, Privacy Policy, and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..