Page 1 of 1

Change spawn screen animation

Posted: Fri Jan 13, 2017 5:10 pm
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!

Re: Change spawn screen animation

Posted: Fri Jan 13, 2017 9:52 pm
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.

Re: Change spawn screen animation

Posted: Sat Jan 14, 2017 12:22 am
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.

Re: Change spawn screen animation

Posted: Sat Jan 14, 2017 10:07 am
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)

Re: Change spawn screen animation

Posted: Sat Jan 14, 2017 3:02 pm
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.

Re: Change spawn screen animation

Posted: Sat Jan 14, 2017 9:52 pm
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.

Re: Change spawn screen animation

Posted: Sat Jan 14, 2017 10:56 pm
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.

Re: Change spawn screen animation

Posted: Sun Jan 15, 2017 3:35 pm
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!

Re: Change spawn screen animation

Posted: Mon Jan 16, 2017 1:44 am
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.