I was working on a scripted GUI submod for The New Order, but when I booted up the game in debug mode I got this error. I don't see what's causing it, here are my 3 text files of the GUI, and the general errors associated with this mod:
china_econ.gfx:
spriteTypes = {
corneredTileSpriteType = {
name = "GFX_tiled_window_1b_no_border"
size= { x=192 y=192 }
textureFile = "gfx/interface/china_gui/tiled_bg.dds"
borderSize = { x=64 y=64 }
tilingCenter = yes
effectFile = "gfx/FX/buttonstate_nodowneffect.shader"
}
spriteType = {
name = "GFX_info_button"
texturefile = "gfx/interface/china_gui/InfoButton.dds"
}
spriteType = {
name = "GFX_chi_economy_open_button"
texturefile = "gfx/interface/china_gui/chi_economy_open_button.dds"
}
spriteType = {
name = GFX_crt_closebutton
texturefile = "gfx/interface/china_gui/crt_closebutton.dds"
}
spriteType = {
name = "GFX_CHI_econ_bg"
texturefile = "gfx/interface/china_gui/econ_bg.dds"
}
}
china_econ.gui:
guiTypes = {
containerWindowType = {
name = "china_economy_gui_open"
size = { width = 220 height = 128 }
position = { x = 0 y = 289 }
buttonType = {
name = "chi_economy_menu_open"
spriteType = "GFX_chi_economy_open_button"
position = { x = 238 y = 37 }
pdx_tooltip = "scripted_gui_open_tt_chi_econ"
scale = 0.65
}
containerWindowType = {
name = "CHI_econ_gui"
position = { x = 538 y = 77}
size = { width = 1000 height= 850 }
moveable = yes
background = {
name = "Background"
quadTextureSprite ="GFX_tiled_window_1b_no_border"
}
iconType = {
name = "CHI_diplo_bg"
spriteType = "GFX_CHI_econ_bg"
position = { x = 4 y = 4 }
alwaystransparent = yes
}
buttonType = {
name = "main_info_button"
position = { x = -80 y = 16 }
quadTextureSprite = "GFX_info_button"
Orientation = "UPPER_RIGHT"
}
buttonType = {
name = "close_button"
position = { x = -31 y = 16 }
quadTextureSprite = "GFX_crt_closebutton"
buttonFont = "Main_14_black"
shortcut = "ESCAPE"
Orientation = "UPPER_RIGHT"
clicksound = click_close
pdx_tooltip = "CLOSE"
}
}
}
Error Log:
[22:10:40][texturehandler.cpp:165]: Texture Handler encountered missing texture file: /gfx/interface/scripted_gui_graphics/scripted_gui_background.dds
[22:10:40][texturehandler.cpp:316]: Couldn't find texture file: /gfx/interface/scripted_gui_graphics/scripted_gui_background.dds.
[22:10:40][spritetype.cpp:324]: Error initialising texture: /gfx/interface/scripted_gui_graphics/scripted_gui_background.dds for spritetype GFX_scripted_gui_window_background
[22:10:40][gui.cpp:861]: Undefined GUI_TYPE: china_economy_gui_open - This will most likely crash the game
[22:10:40][scriptedwindowmanager.cpp:257]: Window china_economy_gui_open not found.
[22:10:40][gui.cpp:861]: Undefined GUI_TYPE: CHI_econ_GUI - This will most likely crash the game
[22:10:40][scriptedwindowmanager.cpp:257]: Window CHI_econ_GUI not found.
[22:10:40][graphics.cpp:1280]: No font with name center
[22:10:40][graphics.cpp:1280]: No font with name center
[22:10:40][graphics.cpp:1280]: No font with name center
[22:10:40][graphics.cpp:1280]: No font with name center
[22:11:12][gui.cpp:861]: Undefined GUI_TYPE: china_economy_gui_open - This will most likely crash the game
[22:11:12][scriptedwindowmanager.cpp:257]: Window china_economy_gui_open not found.
[22:11:12][gui.cpp:861]: Undefined GUI_TYPE: CHI_econ_GUI - This will most likely crash the game
[22:11:12][scriptedwindowmanager.cpp:257]: Window CHI_econ_GUI not found.
[22:11:12][graphics.cpp:1280]: No font with name center
[22:11:12][graphics.cpp:1280]: No font with name center
[22:11:12][graphics.cpp:1280]: No font with name center
[22:11:12][graphics.cpp:1280]: No font with name center
Obviously the submod is very barebones right now, but is there any reason it isn't working here?
china_econ.gfx:
spriteTypes = {
corneredTileSpriteType = {
name = "GFX_tiled_window_1b_no_border"
size= { x=192 y=192 }
textureFile = "gfx/interface/china_gui/tiled_bg.dds"
borderSize = { x=64 y=64 }
tilingCenter = yes
effectFile = "gfx/FX/buttonstate_nodowneffect.shader"
}
spriteType = {
name = "GFX_info_button"
texturefile = "gfx/interface/china_gui/InfoButton.dds"
}
spriteType = {
name = "GFX_chi_economy_open_button"
texturefile = "gfx/interface/china_gui/chi_economy_open_button.dds"
}
spriteType = {
name = GFX_crt_closebutton
texturefile = "gfx/interface/china_gui/crt_closebutton.dds"
}
spriteType = {
name = "GFX_CHI_econ_bg"
texturefile = "gfx/interface/china_gui/econ_bg.dds"
}
}
china_econ.gui:
guiTypes = {
containerWindowType = {
name = "china_economy_gui_open"
size = { width = 220 height = 128 }
position = { x = 0 y = 289 }
buttonType = {
name = "chi_economy_menu_open"
spriteType = "GFX_chi_economy_open_button"
position = { x = 238 y = 37 }
pdx_tooltip = "scripted_gui_open_tt_chi_econ"
scale = 0.65
}
containerWindowType = {
name = "CHI_econ_gui"
position = { x = 538 y = 77}
size = { width = 1000 height= 850 }
moveable = yes
background = {
name = "Background"
quadTextureSprite ="GFX_tiled_window_1b_no_border"
}
iconType = {
name = "CHI_diplo_bg"
spriteType = "GFX_CHI_econ_bg"
position = { x = 4 y = 4 }
alwaystransparent = yes
}
buttonType = {
name = "main_info_button"
position = { x = -80 y = 16 }
quadTextureSprite = "GFX_info_button"
Orientation = "UPPER_RIGHT"
}
buttonType = {
name = "close_button"
position = { x = -31 y = 16 }
quadTextureSprite = "GFX_crt_closebutton"
buttonFont = "Main_14_black"
shortcut = "ESCAPE"
Orientation = "UPPER_RIGHT"
clicksound = click_close
pdx_tooltip = "CLOSE"
}
}
}
Error Log:
[22:10:40][texturehandler.cpp:165]: Texture Handler encountered missing texture file: /gfx/interface/scripted_gui_graphics/scripted_gui_background.dds
[22:10:40][texturehandler.cpp:316]: Couldn't find texture file: /gfx/interface/scripted_gui_graphics/scripted_gui_background.dds.
[22:10:40][spritetype.cpp:324]: Error initialising texture: /gfx/interface/scripted_gui_graphics/scripted_gui_background.dds for spritetype GFX_scripted_gui_window_background
[22:10:40][gui.cpp:861]: Undefined GUI_TYPE: china_economy_gui_open - This will most likely crash the game
[22:10:40][scriptedwindowmanager.cpp:257]: Window china_economy_gui_open not found.
[22:10:40][gui.cpp:861]: Undefined GUI_TYPE: CHI_econ_GUI - This will most likely crash the game
[22:10:40][scriptedwindowmanager.cpp:257]: Window CHI_econ_GUI not found.
[22:10:40][graphics.cpp:1280]: No font with name center
[22:10:40][graphics.cpp:1280]: No font with name center
[22:10:40][graphics.cpp:1280]: No font with name center
[22:10:40][graphics.cpp:1280]: No font with name center
[22:11:12][gui.cpp:861]: Undefined GUI_TYPE: china_economy_gui_open - This will most likely crash the game
[22:11:12][scriptedwindowmanager.cpp:257]: Window china_economy_gui_open not found.
[22:11:12][gui.cpp:861]: Undefined GUI_TYPE: CHI_econ_GUI - This will most likely crash the game
[22:11:12][scriptedwindowmanager.cpp:257]: Window CHI_econ_GUI not found.
[22:11:12][graphics.cpp:1280]: No font with name center
[22:11:12][graphics.cpp:1280]: No font with name center
[22:11:12][graphics.cpp:1280]: No font with name center
[22:11:12][graphics.cpp:1280]: No font with name center
Obviously the submod is very barebones right now, but is there any reason it isn't working here?