CynicalJedi / DAOC-UI-Chooser

Ewer's BobsUI Update for Dark Age of Camelot UI Chooser
9 stars 6 forks source link

UI not working #7

Open Minx-kitten opened 4 years ago

Minx-kitten commented 4 years ago

I just returned to DAoC recently and am trying to get a custome UI, I followed your instructions, spent an hour or so tweeking it. I log into DAoC with Interface set to Custom. Character loads in and it's just Mythic's normal UI nothing has changed. Please help. Thanks. Friend also tried a different UI and seems to have same problem.

CynicalJedi commented 3 years ago

This may be due to a specific option or combo of options you've chose. I'm unable to test all options, if you can identify a specific setting or style that isn't working I can try to fix it.

PoyrazGoksel commented 2 years ago

Problem is they added seperate UI for login screen and that overrides everything in weirdways. Broadsword Devs are always producing low quality non solid code sadly.

--- Program Files (x86)\Electronic Arts\Dark Age of Camelot\pregame\assets.xml ---

<?xml version="1.0" encoding="ISO-8859-1"?>
<XML ID="DAOCUi">
    <Font>
        <Name>button_small</Name>
        <File>ui/fonts/button_10.tga</File> // <-- This is in game UI data path
    </Font>
    <Font>
        <Name>button_large</Name>
        <File>ui/fonts/button_12.tga</File>
    </Font>
    <Font>
        <Name>arial9</Name>
        <File>ui/fonts/arial09.tga</File>
    </Font>
    <Font>
        <Name>arial11</Name>
        <File>ui/fonts/arial11b.tga</File>
    </Font>
    <Font>
        <Name>arial14</Name>
        <File>ui/fonts/arial14.tga</File>
    </Font>
    <Font>
        <Name>large_gold</Name>
        <File>ui/fonts/label.tga</File>
    </Font>
    <Font>
        <Name>med_gold</Name>
        <File>ui/fonts/title_24.tga</File>
    </Font>
    <Font>
        <Name>medium</Name>
        <File>ui/fonts/text_10_px.tga</File>
    </Font>
    <Texture>
        <Name>page1</Name>
        <File>ui/atlantis/atlantis_01.tga</File>
    </Texture>
    <Texture>
        <Name>dialog</Name>
        <File>archive://pregame/pregame.mpk:dialog_box.tga</File> // <-- This is in same folder as this assets.xml which is %gameDir%\pregame folder
    </Texture>
    <Texture>
        <Name>albion_button</Name>
        <File>archive://pregame/pregame.mpk:albion_button.tga</File>
    </Texture>
    <Texture>
        <Name>hibernia_button</Name>
        <File>archive://pregame/pregame.mpk:hibernia_button.tga</File>
    </Texture>
    <Texture>
        <Name>midgard_button</Name>
        <File>archive://pregame/pregame.mpk:midgard_button.tga</File>
    </Texture>
    <Texture>
        <Name>misc_controls_new</Name>
        <File>archive://pregame/pregame.mpk:misc_pieces_new.tga</File>
    </Texture>
    <Texture>
        <Name>small_button</Name>
        <File>archive://pregame/pregame.mpk:small_button.tga</File>
    </Texture>
    <Texture>
        <Name>breadcrumbs</Name>
        <File>archive://pregame/pregame.mpk:buttons_WIDE.tga</File>
    </Texture>
    <Texture>
        <Name>slider</Name>
        <File>archive://pregame/pregame.mpk:slider.tga</File>
    </Texture>
    <Texture>
        <Name>hair_color_palette</Name>
        <File>archive://pregame/pregame002.mpk:hair_colors_palettes.tga</File>
    </Texture>
    <Texture>
        <Name>skin_color_palette</Name>
        <File>archive://pregame/pregame.mpk:skin_color_palettes.tga</File>
    </Texture>
        <Texture>
        <Name>eye_color_palette</Name>
        <File>archive://pregame/pregame.mpk:eye_color_palettes.tga</File>
    </Texture>
    <Texture>
        <Name>color_picker_indicator</Name>
        <File>archive://pregame/pregame.mpk:color_picker_indicator.tga</File>
    </Texture>
    <Canvas>
        <Name>realm_selection_canvas</Name>
        <File>archive://pregame/pregame.mpk:realm_selection.tga</File>
    </Canvas>
    <Canvas>
        <Name>character_selection_canvas</Name>
        <File>archive://pregame/pregame.mpk:character_selection.tga</File>
    </Canvas>
    <Canvas>
        <Name>character_customize_canvas</Name>
        <File>archive://pregame/pregame003.mpk:character_customize.tga</File>
    </Canvas>
    <Canvas>
        <Name>character_location_canvas</Name>
        <File>archive://pregame/pregame.mpk:character_location.tga</File>
    </Canvas>
    <Canvas>
        <Name>character_creation_canvas</Name>
        <File>archive://pregame/pregame.mpk:character_creation.tga</File>
    </Canvas>
    <Canvas>
        <Name>aegirhamn_bg</Name>
        <File>archive://pregame/pregame.mpk:aegirhamn.tga</File>
    </Canvas>
    <Canvas>
        <Name>mularnvillage_bg</Name>
        <File>archive://pregame/pregame.mpk:mularnvillage.tga</File>
    </Canvas>
    <Canvas>
        <Name>caergothwaite_bg</Name>
        <File>archive://pregame/pregame.mpk:caergothwaite.tga</File>
    </Canvas>
    <Canvas>
        <Name>cotswoldvillage_bg</Name>
        <File>archive://pregame/pregame.mpk:cotswold.tga</File>
    </Canvas>
    <Canvas>
        <Name>magmell_bg</Name>
        <File>archive://pregame/pregame.mpk:magmell.tga</File>
    </Canvas>
    <Canvas>
        <Name>groveofdomnann_bg</Name>
        <File>archive://pregame/pregame.mpk:domnann.tga</File>
    </Canvas>
</XML>

This "so called' uimain.xml => asset.xml is under "Program Files (x86)\Electronic Arts\Dark Age of Camelot\pregame\" directory. But as you can see its calling some of the zipped ui assets from Program Files (x86)\Electronic Arts\Dark Age of Camelot\pregame\pregame.mpk while calling some of them from Program Files (x86)\Electronic Arts\Dark Age of Camelot\ui\fonts\ like "Program Files (x86)\Electronic Arts\Dark Age of Camelot\ui\fonts\button_10.tga"which by passes our newly created UI data folder structure and tries to load null dir.

--- ui.log ---

Added: alb_low_pop_rp_bonus (text adapter)
Added: mid_low_pop_rp_bonus (text adapter)
Added: hib_low_pop_rp_bonus (text adapter)
Set g_resourceDir to 
Loading XML template file 'pregame/uimain.xml'...
Set g_resourceDir to 
Loading XML template file 'pregame/asset.xml'...
Loading font 'ui/fonts/button_10.tga'!
ERROR:  unable to load font 'ui/fonts/button_10.tga'!
Loading font 'ui/fonts/button_12.tga'!
ERROR:  unable to load font 'ui/fonts/button_12.tga'!
Loading font 'ui/fonts/arial09.tga'!
ERROR:  unable to load font 'ui/fonts/arial09.tga'!
Loading font 'ui/fonts/arial11b.tga'!
ERROR:  unable to load font 'ui/fonts/arial11b.tga'!
Loading font 'ui/fonts/arial14.tga'!
ERROR:  unable to load font 'ui/fonts/arial14.tga'!
Loading font 'ui/fonts/label.tga'!
ERROR:  unable to load font 'ui/fonts/label.tga'!
Loading font 'ui/fonts/title_24.tga'!
ERROR:  unable to load font 'ui/fonts/title_24.tga'!
Loading font 'ui/fonts/text_10_px.tga'!
ERROR:  unable to load font 'ui/fonts/text_10_px.tga'!

I`m going to correct the xml data and send it here and hopefully if @CynicalJedi has the sorce codes of OptionsChooser.exe he can automatically update those xmls on start event of code. If not let me know please because I a game dev so its my job so I can help.

CynicalJedi commented 2 years ago

All the files the custom UI installs should be contained within the 'custom' directory. You should not be installing this ui overtop of any of the built in game UIs. Once properly installed the path should be "C:\Program Files (x86)\Electronic Arts\Dark Age of Camelot\ui\custom". From within that directory run the OptionsChooser.exe and select your options. Then login to the ge and change the ui from the char select screen to 'custom'. Unless Broadsword made a change to UIs within the last patch or two everything should still be working.

PoyrazGoksel commented 2 years ago

Lol yes I`ve just realized the thing that fooled me is that they used same ui structure on Ultima Online too and it was ui/original and ui/custom. I am reversing what i did but its utterly stupid that they make us corrupt their game files like this... What ever.