Change spawn screen animation

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

Post Reply
User avatar
Oceans14
Command Sergeant Major
Command Sergeant Major
Posts: 296
Joined: Mon Apr 27, 2015 7:09 pm
Projects :: Athenova Campaign
Games I'm Playing :: SWBF2
Location: Planet 4546b

Change spawn screen animation

Post by Oceans14 »

Searched the forum and couldn't find an answer to this... is it possible to change the animation that plays when you select your unit class (the reload animation that loops)? From what I can tell, ifs_charselect and interface_util.lua probably have a lot to do with it, but whats puzzling is that charselect makes reference to a "fnBuildScreen" which I can't find anywhere but seems like it would contain all the goodies.

Here's the section of ifs_charselect.lua to which I'm referring:
Hidden/Spoiler:
[code]ifs_charselect1 = NewIFShellScreen {
nologo = 1,
bDimBackdrop = 1,


-- Actual contents are created in ifs_charselect_fnBuildScreen

-- Note: for now, the exe is handling all the inputs/events, so this
-- screen has no Enter/Exit/Update/Input handlers. It does have an
-- Input_Back handler to override the base class's default functionality
-- (go to previous screen)
Input_Back = function(this)
end,
Input_GeneralLeft = function(this,bFromAI)
end,
Input_GeneralRight = function(this,bFromAI)
end,
Input_GeneralUp = function(this,bFromAI)
end,
Input_GeneralDown = function(this,bFromAI)
end,

}[/code]
Probably didn't need to post that whole section, but I figured it may help for context. Anyway, am I barking up the wrong tree here, or am I just poking at something that is hard-coded? Thanks!
User avatar
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Re: Change spawn screen animation

Post by AnthonyBF2 »

I believe ifs_charselect is used for console game versions (PSP, PS2, Xbox) to make the rotating character wheel, it might be unused in PC so I don't think anything would be there. And second, I think the reload animations are stored somewhere in the side files, can't confirm because I never mess with this.
User avatar
Oceans14
Command Sergeant Major
Command Sergeant Major
Posts: 296
Joined: Mon Apr 27, 2015 7:09 pm
Projects :: Athenova Campaign
Games I'm Playing :: SWBF2
Location: Planet 4546b

Re: Change spawn screen animation

Post by Oceans14 »

I believe ifs_charselect is used for console game versions (PSP, PS2, Xbox) to make the rotating character wheel
That would explain some of the stuff I saw about rotations, thanks for clearing that up. The animation that is playing during unit selection is, as far as I can tell, human_rifle_stand_reload_full. That animation is stored in data_abc/common/munged, but I figured it would have to be called by a script. Still not certain which one though. I'm currently reading through ifs_pc_spawnselect.lua, so perhaps that will help.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Change spawn screen animation

Post by Teancum »

Download an app called Fileseek. It can search inside files inside multiple folders. I use it all the tiem. Point it to your mod folder. Search for the animation name and it'll look through every file to try and find it. If it does then you'll find your answer.

https://www.fileseek.ca/Download/ (30 day trial)
User avatar
Oceans14
Command Sergeant Major
Command Sergeant Major
Posts: 296
Joined: Mon Apr 27, 2015 7:09 pm
Projects :: Athenova Campaign
Games I'm Playing :: SWBF2
Location: Planet 4546b

Re: Change spawn screen animation

Post by Oceans14 »

Thanks Teancum, very useful program :thumbs: Unfortunately nothing substantial has come up yet, but I intend to keep looking. Somewhere some line of code has to tell that anim to play, it's just a matter of finding it.
User avatar
AnthonyBF2
Sith
Sith
Posts: 1255
Joined: Wed Aug 21, 2013 3:55 pm
Projects :: PS2+PSP Overhaul

Re: Change spawn screen animation

Post by AnthonyBF2 »

I think the evolved mod uses new spawn screen animations - and it is a side mod so that is why I think you should search around in the side assets.
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Change spawn screen animation

Post by AQT »

Whatever a unit uses for its first primary weapon's idle and reload animations are what will be shown on the spawn screen. So if you change the default animations for those two like what the Evolved mod does, they will also be reflected on the spawn screen as well as once the unit actually spawns. It seems Oceans14 is just trying to change which animations are shown on the spawn screen independently of what is used when unit actually spawns. That I do not know.
User avatar
Oceans14
Command Sergeant Major
Command Sergeant Major
Posts: 296
Joined: Mon Apr 27, 2015 7:09 pm
Projects :: Athenova Campaign
Games I'm Playing :: SWBF2
Location: Planet 4546b

Re: Change spawn screen animation

Post by Oceans14 »

AQT wrote:It seems Oceans14 is just trying to change which animations are shown on the spawn screen independently of what is used when unit actually spawns.
Exactly. So far it seems this is hardcoded, because I haven't been able to find any line of code that tells the game to use that particular animation. My goal was just to see if it was easy to replace the stock anim with something like the crouching reload or idle "lookaround" for a little variety.

Anyway, seems that even if this is possible to do, it isn't a simple task. I'll keep poking around here and there, of course, and post if I make a breakthrough. I appreciate everyone's help!
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Change spawn screen animation

Post by Marth8880 »

Teancum wrote:Download an app called Fileseek. It can search inside files inside multiple folders. I use it all the tiem. Point it to your mod folder. Search for the animation name and it'll look through every file to try and find it. If it does then you'll find your answer.

https://www.fileseek.ca/Download/ (30 day trial)
Notepad++ can also do this (for free) with the Find In Files feature. ;)

By specifying the filter with the * wildcard, you can search in files with a specific part of a file name or file extension, like so:

ABC_* : This would search in all files beginning with ABC_
*.lua : This would search in all files ending with .lua as their file extension

Also, you can specify multiple filters with a semicolon!

*.lyr; *.wld : This would search in all files ending with .lyr or .wld as their file extension
Hidden/Spoiler:
Image
Hidden/Spoiler:
Image
Hidden/Spoiler:
Image
Seriously haha, SUCH a useful and powerful feature.
Post Reply