Rearranging Menu?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

sharp
Private Third Class
Posts: 45
Joined: Sat Apr 18, 2015 7:46 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Rearranging Menu?

Post by sharp »

I do not find anything clear about this topic, so:

It is possible to change the backgroundimage and the elements of the different menus, but is it also possible to rearrange the whole menu? So that you can use your own layout for the main menu, instant action etc?

Thank you.
thelegend
Sith
Sith
Posts: 1433
Joined: Thu Jan 23, 2014 6:01 am
Projects :: Star Wars - Battlefront III Legacy
Games I'm Playing :: Swbf GTA CoD LoL KH
xbox live or psn: El_Fabricio#
Location: Right behind you :)

Re: Rearranging Menu?

Post by thelegend »

viewtopic.php?f=27&t=31300

I don't think that you are able to move all the parts such as the buttons and so on. But they can also be retextured.
sharp
Private Third Class
Posts: 45
Joined: Sat Apr 18, 2015 7:46 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: Rearranging Menu?

Post by sharp »

Mh, isn't the main menu a kind of complex Launcher ? If it is, it should be possible to use another launcher (a completly new one) which deals with the same game information ? Just like in Star Wars Empire At War, I think
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Rearranging Menu?

Post by jedimoose32 »

You can rearrange the main menu, but in doing so you will overwrite the game's main shell.lvl, which would completely undo Zerted's Unofficial 1.3 patch shell changes.
sharp
Private Third Class
Posts: 45
Joined: Sat Apr 18, 2015 7:46 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: Rearranging Menu?

Post by sharp »

:eek:

So do I have to delete the 1.3 Patch first ? And then, how do I get to the point where I can rearrange it ? :?

--> if I'm deleting it, are there any problems with the additional maps or the BFX / ConversionPack Mod ?
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Rearranging Menu?

Post by jedimoose32 »

You don't have to uninstall the 1.3 patch first. However it's probably not a bad idea since the 1.3 patch modifies other files aside from shell.lvl. As for compatibility issues, I don't know for sure. You may want to check the readme files for those mods to see if they require or recommend using 1.3.
sharp
Private Third Class
Posts: 45
Joined: Sat Apr 18, 2015 7:46 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: Rearranging Menu?

Post by sharp »

Okay, good. Thanks :)

I'm sorry, but how to I actually modify the main sehll.lvl, so that I can rearrange things ? Have you already done something in that way ?
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Rearranging Menu?

Post by jedimoose32 »

Here's a FAQ on getting started with shell modifications.

There's not a whole lot else to it, except that adding new content to the menu screens will involve editing the contents of certain .lua files in the shell/scripts folder. You'll have to figure that part out yourself (I have done it before but it was a while ago and the screen I modified might not be the one you're trying to change). I'll warn you now that it's going to involve at least a couple hours of scrolling through a number of .lua files so that you can understand how the functions work and how everything is organized.

But I definitely wish you the best of luck and hope that you're successful in making something really cool. :thumbs:
sharp
Private Third Class
Posts: 45
Joined: Sat Apr 18, 2015 7:46 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: Rearranging Menu?

Post by sharp »

Thanks a lot! :bowdown: I'm going to work on it the next view days, I hope I get it to work :)
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Rearranging Menu?

Post by [RDH]Zerted »

Yes, you can completely rewrite almost everything you see ingame (messing with the unit select screen is weird...) and absolutely everything you see in the shell. You can rewrite most of the shell without uninstalling v1.3, but you already have to know what you're doing (inject all your changes so that they wrap and modify the functions you want to change right before those functions are called). It'd be much easier to start from the stock shell and work from there. Keep track of where you change things so you can find that area again. Some of the files are really long. I used to put "--zerted" by every spot I changed until I started keeping the changes in a separate file. Use version control if you know how.

If you give me your email address I can send you the recovered v1.3 source code. That contains most of my additions to the shell, but not the points where I added them.

The screens are defined then registered to the game. They all have enter, exit/leave, update, etc... functions that get called when the user goes to that screen or leaves the screen. Buttons have a 'tag' attribute which identifies which button was clicked.
sharp
Private Third Class
Posts: 45
Joined: Sat Apr 18, 2015 7:46 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: Rearranging Menu?

Post by sharp »

@jedimoose32: I've worked with the tutorial and have two problems:
1st i got two error warnings after munging my shell level which says, that the files does not exist
2nd after all the steps I start Star Wars Battlefront 2 and nothing has changed, if I go to the instant action there's also the ABC planet with some of these guys. %% which is not good. If I click on it it says that the mission.lvl could not be opened / found.

I do not really understand why I have problems with it, I've followed the tutorial step by step

@[RDH]Zerted: Thank you for the tips! At the moment I'm not really sure if I'm working in the right shell :runaway: talking about the main shell, which directory it has to be ? Just to be sure I'm not doing anything wrong
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Rearranging Menu?

Post by jedimoose32 »

Here is what your data_ABC\shell folder should contain:
  • shell.req
  • scripts folder
Inside your shell\scripts folder should be each script that you want to make changes to, copied from BF2_ModTools\assets\shell\scripts.
Your shell.req file should look like this:

Code: Select all

ucft
{
    
    REQN
    {
        "script"
        "name_of_edited_file_1"
        "name_of_edited_file_2"
        "name_of_edited_file_3"
    }
}
name_of_edited_file_# should instead be the names of the corresponding scripts that you have in shell\scripts.
If everything is set up this way and you're still having the 'file does not exist' error then please post your munge error log.

The second part of your question hinges on what I just explained. If VisualMunge is telling you that a file doesn't exist, that means that it didn't munge your shell properly or completely, so of course none of the changes are going to take effect in-game. Also, once you fix the munge errors, be sure to copy shell.lvl from data_ABC\_LVL_PC\ to Battlefront II\GameData\addon\ABC\data\_LVL_PC\, because VisualMunge doesn't copy it over automatically.

Also make sure you followed THEWULFMAN's tutorial correctly, and didn't skip the changes to addme.lua.

I hope this helps.
sharp
Private Third Class
Posts: 45
Joined: Sat Apr 18, 2015 7:46 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: Rearranging Menu?

Post by sharp »

Ok, thanks for that.

SO, first of all I just want to change the image of the profile screen (just like in THEWULFMAN's tutorial). Because of this my script folder is empty, right ?
Then I want to create a shell.req just like in the tutorial. I copied and pasted the code of it and saved it. So my .req file looks like this:

Code: Select all

ucft
{

REQN
{
"textures"
"profile_manager"
}
}
Because I can't run gimp on my computer and I don't have photoshop (and paint can't open it) I export the profilemanagerfile to my mac. There I work on it with pixelmator and save it. After that I import it back on my windows and replace it with the existing file there.
Next step in the tutorial is to make a manual munge, I don't like it but I did it because I don't want to make anything wrong. So I went to my ABC/_Build_shell and clicked munge. Then I got a mungelog with two errors:

Code: Select all

ERROR[levelpack shell.req]: could not open ../common/munged/pc/core.files for input. DOS reports: No such file or directory
ERROR[levelpack shell.req]: could not open ../common/munged/pc/core.files for input. DOS reports: No such file or directory
After this I actually completed the tutorial of THEWULFMAN without any errors or something in that way.

*I have a textures folder in my shell folder (just like in the tut). Init is my profile_manager and my profile_manager.option
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Rearranging Menu?

Post by jedimoose32 »

In shell.req, change "textures" to "texture". I know that sounds confusing since the folder name is \textures but that's how it is. If that doesn't fix it let me know.
sharp
Private Third Class
Posts: 45
Joined: Sat Apr 18, 2015 7:46 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: Rearranging Menu?

Post by sharp »

I did it and nothing happens (of course i munged it again and pasted it manually over to the addon folder).

Maybe there is something wrong with my picture, but I can not imagine what..
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Rearranging Menu?

Post by jedimoose32 »

I'll send you a test image to use later.
sharp
Private Third Class
Posts: 45
Joined: Sat Apr 18, 2015 7:46 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: Rearranging Menu?

Post by sharp »

Thank you very much !
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Rearranging Menu?

Post by [RDH]Zerted »

/common/munged/pc/core.files for input
Did you munge common? Do a full, manual clean then munge only common. Then munge your shell.
sharp
Private Third Class
Posts: 45
Joined: Sat Apr 18, 2015 7:46 am
Projects :: No Mod project currently.
xbox live or psn: No gamertag set

Re: Rearranging Menu?

Post by sharp »

did it. does not work

--edit--
It does not make sense for me. Is it possible that something went wrong because of windows 8?
jedimoose32
Field Commander
Field Commander
Posts: 938
Joined: Thu Jan 24, 2008 12:41 am
Projects :: Engineering Degree
Location: The Flatlands of Canada

Re: Rearranging Menu?

Post by jedimoose32 »

It's possible. Are you getting any munge errors at this point?
Post Reply