AnthonyBF2 wrote:Most of the spawn screen elements are linked to code that's compiled in the game executable which of course is not changeable. I really wanted to get the PS2-like rotating character selection but each game's spawn screen setup is linked to it's game engine file which has code that cannot be accessed. The only thing I was ever able to do is move the spawn button and that I forgot plus I didn't save the source file I edited.
Thanks for the info! It's a real bummer that more HUD things cannot be modified.

But even modifying buttons would be awesome! I could just move around all the buttons where the cursor appears, and that should work. I found a couple of files in the mod tools that sound interesting, 1player.hud and ifs.pc.spawnselect.lua, and a lot of the other luas look interesting as well. I pretty much have no idea how to begin though. Do you have an idea of what files I should start in and what files they are compiled into once everything is munged?
EDIT
AnthonyBF2 wrote:
All the HUD does it display things that come from the game exe like the character selection layout. Nothing you can change in the HUD can actually change something in game play. Load screens are completely unrelated as well, it's just a picture the game slaps up while a map loads.
I've been researching this for a while, and I think I've found something pertaining to the screen cursors (it's from BFI, but it's still LUA). Can you make any sense of this:
---- Enhanced ifs_teamstats.LUA by Phobos
-- Multiplayer game name screen.
-- Helper function. Given a layout (x,y,width, height), returns a
-- fully-built item.
function Teamstats_Listbox_CreateItem(layout)
local insidewidth = layout.width - 10;
-- Make a coordinate system pegged to the top-left of where the cursor would go.
local Temp = NewIFContainer {
x = layout.x - 0.5 * insidewidth, y=layout.y,
bInertPos = 1,
Here is the full page where I got this from:
http://www.swbfgamers.com/index.php?act ... s;start=15
If you search for the word "cursor" a lot of related code is there I think.
EDIT2
AnthonyBF2 wrote:Most of the spawn screen elements are linked to code that's compiled in the game executable which of course is not changeable. I really wanted to get the PS2-like rotating character selection but each game's spawn screen setup is linked to it's game engine file which has code that cannot be accessed. The only thing I was ever able to do is move the spawn button and that I forgot plus I didn't save the source file I edited.
I was looking through ifs_pc_spawnselect.lua, which is quite confusing, and I think I've found the button you're talking about, not sure though.
........--Make two buttons for the Accept & Cancel button..--And the text that goes in them...local okYPos = h - 0.1*h...this.Info.Ok = NewPCIFButton...{....x = w/2,....y = okYPos,......btnw = okcancelw, ....btnh = okcancelh,....font = "gamefont_large", ....bg_width = okcancelw,....string = "ifs.SpawnDisplay.Spawn",...}.....
Could you please help me interpret all this? Thanks!
Here's something else, but I think this is for selecting the unit class.
..--Make two buttons for the two sides, (a frame and an bitmap for each)...--These are the frames......Icon0PosX = w/2 -- - sidew/2...Icon1PosX = w/2 -- + sidew/2......this.Info.SideIcon0 = NewBorderRect ...{.....ZPos = 190, -- behind most.....x = w/2, .....y = SideYOffest,.....width = sidew*2,.....height = sideh,.....alpha = 0,.-- invisible hotspot, here we come....}...this.Info.SideIcon1 = NewBorderRect ...{.....ZPos = 190, -- behind most.....x = w/2, .....y = SideYOffest,.....width = sidew * 2,.....height = sideh,.....alpha = 0,...}.....--The two models...this.Info.SideModel0 = NewIFModel {....x = 0.0, y = 0.0,..--..x = Icon0PosX, y = SideYOffest,....scale = 1.0,....OmegaY = -0.3,....lighting = 1,....ColorR = 76, ColorG = 180, ColorB = 255,...}...this.Info.SideModel1 = NewIFModel {....x = 0.0, y = 0.0,..--..x = Icon1PosX, y = SideYOffest,....scale = 1.0,....OmegaY = -0.3,....lighting = 1,....ColorR = 76, ColorG = 180, ColorB = 255,...}......
Edit: I haven't found the things for the other screens yet, and I'm not sure if this is the proper file for the spawn screen (but I'm pretty sure). Maybe someone could give me some direction?
I know these things can be changed, because there are lots of mods that create custom screens like this.