Results 1 to 21 of 21

Credits Menu Item Mod (Currently v1.22)

  1. #1
    Lost in the code... Mikali's Avatar
    Join Date
    Jun 2003
    Location
    %HW2_ROOT%

    Credits Menu Item Mod (Currently v1.22)

    CHANGES IN 1.22
    * Converted "relic.tga" to "relic.rot" to conserve space.

    CHANGES IN 1.21
    * Now uses literal strings in "ModCheckList.lua".

    CHANGES IN 1.2
    * Fixed bugs where the credits list and main menu automatically scrolled to the bottom.
    * Added an Relic image an removed the other images.

    CHANGES IN 1.1
    * Added a scroll bar to the main menu, in case anyone wants to add more menu items.

    INSTALLATION
    Extract this archive into your "...\Homeworld2\Data" directory.

    INTRODUCTION
    This mod adds a "Credits" menu item to your Homeworld 2 main menu.
    Besides adding or replacing any images, you will only have to modify "ModCheckList.lua" in order to configure the menu for your mod.

    DOWNLOAD
    http://www.geocities.com/Area51/Quad.../homeworld.htm
    Last edited by Mikali; 20th Nov 04 at 2:42 PM.
    Download my HW2 mods, maps & tools. link
    Username|SF on Gamespy/Xfire/Hamachi/Gameranger

  2. #2
    Freelance Armorer SvK's Avatar
    Join Date
    Sep 2001
    Location
    Dallas, TX, USA
    That's an excellent idea!

  3. #3
    Excellent, keep us well informed!

  4. #4
    Lost in the code... Mikali's Avatar
    Join Date
    Jun 2003
    Location
    %HW2_ROOT%
    I've been working on it for a while.
    I managed to get the button to display, but nothing happens when I click it.
    I created entries in "NewMainMenu.lua" and "UISettings.lua". I also created a new file called "CreditsScreen.lua", and referenced it in the above two files. Changing the "type" in "UISettings.lua" causes the existing menu items not to work. So, I think it's crucial.
    However, I couldn't find where the "UI_...()" functions were defined. So, I did a text-search for the functions and found them (and the "types" listed in "UISettings.lua") within "Homeworld2.exe".
    I don't think you can add new UI menus without being able to edit "Homeworld2.exe".
    I'd have to sacrifice an existing menu in order to get it to work. But, I don't want to do that.
    There are three disabled menus mentioned in "UISettings.lua" that I might be able to ressurect, and then edit. They are "PasswordScreen", "NotForPublicDisplay", and "StyleSheetTestScreen". However, none of these have a "type" set in "UISettings.lua", nor a corresponding LUA file.

    In conclusion, the UI is looking pretty hard-coded, ATM.
    Last edited by Mikali; 6th Feb 04 at 9:23 AM.

  5. #5
    Lost in the code... Mikali's Avatar
    Join Date
    Jun 2003
    Location
    %HW2_ROOT%
    Nevermind. I think I got it to work.

  6. #6
    The kids can call you HoJu! Homer Jr.'s Avatar
    Join Date
    Dec 2003
    Location
    SF Bay Area, CA, USA
    Sweet! Tell us how

  7. #7
    Lost in the code... Mikali's Avatar
    Join Date
    Jun 2003
    Location
    %HW2_ROOT%
    See first post.
    Last edited by Mikali; 22nd Feb 04 at 1:57 PM.

  8. #8
    Lost in the code... Mikali's Avatar
    Join Date
    Jun 2003
    Location
    %HW2_ROOT%
    I updated the mod to v1.1.

    I added a scroll bar to the main menu, in case anyone wants to add more menu items.
    Last edited by Mikali; 7th Feb 04 at 5:45 PM.

  9. #9
    JeffHCross
    Guest
    Originally posted by Mikail

    Tip: if you need to add a new line to the descriptions, use the escape sequence "\n".
    :: shudders ::

    :: whispers ala Sixth Sense :: I see C++ codes.

    (( Yes, I know it's not just C++ ... it's just C++ that's causing me nightmares in class right now ))

  10. #10
    link seems to be dead

  11. #11
    Lost in the code... Mikali's Avatar
    Join Date
    Jun 2003
    Location
    %HW2_ROOT%
    The link is fixed.

  12. #12
    Tamerlane
    Guest
    Mikail, outstanding job..thank you.

  13. #13
    Lost in the code... Mikali's Avatar
    Join Date
    Jun 2003
    Location
    %HW2_ROOT%
    There's a bunch of UI related functions within Homeworld2.exe. They could probably be recreated and be functional outside the exe, but we need them as a reference so we can see how they work. It would be nice if someone could extract them.

  14. #14
    omiwan
    Guest
    nice this is cool now if we just have a few more mods to us this with

  15. #15
    varis
    Guest
    I put v1.1 into my mod, seems it worked but now it can crash upon loading - under proper conditions - when I run it as a .big file:

    Code:
     Unknown UIScreen type ScarProfilerEditBox in screen ScarProfilerEditBox 
     Error, LoadScreen failed to screen of type ScarProfilerEditBox
    when loading section ScarProfilerEditBox from file ScarProfilerEditBox
    Is there a glitch with uisettings.lua?

    [EDIT]

    Cry wolf... Ok probably it's just a problem of my mod, which I missed on the first testing round because HW2 works in funny ways...

    Is it documented that ScarProfiler is part of the Credits mod? I suppose it didn't cause the crash, but if it was fully functional it'd work in case there is a crash, but now we just get the error message.
    Last edited by varis; 12th Feb 04 at 6:18 PM.

  16. #16
    Lost in the code... Mikali's Avatar
    Join Date
    Jun 2003
    Location
    %HW2_ROOT%
    The ScarProfilerEditBox is something I added that doesn't have anything to do with the credits mod. You receive the errors because it doesn't work. However, it shouldn't crash the game.
    You can get rid of the error by deleting anything having to do with ScarProfilerEditBox. It won't affect the credits mod.

  17. #17
    varis
    Guest
    It seems that the menu is scrolled to the bottom when you open it. Would seem much more logical to be at the top by default.

  18. #18
    Lost in the code... Mikali's Avatar
    Join Date
    Jun 2003
    Location
    %HW2_ROOT%
    Fixed.

  19. #19
    varis
    Guest
    Mikail, you put v1.2 on the site but forgot to update the download link. Also would be more convenient if changelog & download link would be in the first message.

    [edit]

    Also found out that the Main menu scrolls to bottom by default.

    Keep up the good work! :-)
    Last edited by varis; 21st Feb 04 at 11:54 PM.

  20. #20
    Lost in the code... Mikali's Avatar
    Join Date
    Jun 2003
    Location
    %HW2_ROOT%
    Fixed.

  21. #21
    gehwesi
    Guest

    can't seem to get the cred mod to work?


Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •