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 kosmo92


      View File SF2 Top Gun Maverick Menu Screens and Music
      SF2 Top Gun Maverick Menu Screens and Music.
      19 pieces 1920x1080 
      4 wav file
       
       
      Submitter kosmo92 Submitted 04/01/2023 Category Menus  
    • By kosmo92
      SF2 Top Gun Maverick Menu Screens and Music.
      19 pieces 1920x1080 
      4 wav file
       
       
    • 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 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 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.
    • By Eagle114th


      View File Screen Overhaul - (1920 x 1080)
      Strike Fighter Project 2 – Screen Overhaul v1.2 Customizable Edition
       
      The new version of SF2 Screen Overhaul 1.2 is now released.  Here is the following screen this mod completely overhaul:
       
      -          Main screen
      -          Single mission screen
      -          Mission editor screen
      -          Hangar (Default) screen
      -          Loadout screen
      -          Planning screen
      -          Roster screen
      -          Campaign screen
      -          Campaign editor screen
      -          Pilot records screen
      -          Options screen
       
      It does not yet cover another screen.  It is work in progress (WIP) for now.  What I am seeking for is feedback that will help me improving the mod further. It is one of my biggest projects I ever worked on for SF2. It gave me opportunity to grow a new skill I enjoy doing. 

      NOTE:  Now that SF2 Screen Overhaul is becoming a customizable version. If you make any mods that adds or change anything to this mod, please add my name and mod name to your credit part.
       
      You can contact me by PM in CombatAce (I am known as Eagle114th there) or Strike fighter series Discord chat (My username is Magic Dragon, so you can find me there too.)

      Version 1.2 NOTES:
       
      Buttons customization instruction:
      In Menu folder (SF2 mod folder), you will see various SF2 screen named as “BUTTONS_HANGAR, MAIN, OPTIONS, etc...), there are folders for each button.  In order, to change the color of buttons, go to one of button folder, you will see different folders for various color.  Copy the file from there and overwrite the files in any BUTTONS_(SCREEN) folder.

      For example, in BUTTONS_HANGAR, if I want to change the color of “LOADOUT” square button to blue; I go to the folder “LOADOUT”, then “Blue” folder, copy the files: LOADOUT0.bmp, LOADOUT1.bmp, and LOADOUT2.bmp.  Then I paste (Overwrite) the files in BUTTONS_HANGAR.
       
      Screens and Buttons customization Templates
      In different “BUTTONS_(different screen names)”, there are folder “_Templates’.  You can use it to change the designs, colors, or anything you want to do with the screen background or buttons. 
       
       


      This mod uses a font known as Orbitron.  I included it in _Fonts folder.

      I want to express my sincerely big THANKS to Menrva, Wrench, UllyB, Daddyairplanes, Wilches, JosefK, FalonCAF, and everyone else in CombatAce community for making this possible.  You all have been a huge help. 

      Because of Operation Desert Storm 30 years anniversary great mod, I was able to study the codes on how SF2 menu work, which led me into developing new menu for SF2.  This mod is truly fun to fly in SF2.  If anyone hasn’t tried it yet, I highly recommend it.


      There are detailed instruction that explains how to install in the proper ways in README file.  LEASE READ IT BEFORE INSTALLING! 

      I included the plans for the next version in the readme too.  

      The feedback are always welcomed!
       
       
       
      Submitter Eagle114th Submitted 05/18/2021 Category Menus  
×

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..