Use the In-Game Community Mods - Original PA Mod Manager (PAMM) is Obsolete

Discussion in 'Released Mods' started by Raevn, August 17, 2013.

Thread Status:
Not open for further replies.
  1. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    You could look for errors in the coherent debugger. That should also be printing a line for every JavaScript file it loads. Is it even trying to load those mods?
  2. dusanak

    dusanak Member

    Messages:
    91
    Likes Received:
    19
    Sorry if this may sound stupid, but how do I run PA with the coherent debugger? If it is just by running ..\Planetary Annihilation\Coherent\Debugger\Win64\Debugger.exe and clicking Go at the top of the screen, then I guess this is the log.
    Code:
    4052 00:01:00.526120 I | Initializing Coherent UI ver. 1.5.3.0
    4052 00:01:00.545121 I | Selected DirectX device info:
    4052 00:01:00.545121 I | Device name {\\.\DISPLAY1}, DeviceId {26776}
    4052 00:01:00.545121 I | VendorId {4098}, Driver ver. {2251872828785870}
    4052 00:01:05.439401 I | PID: 5348 | 5424 00:01:02.452230 Staring Coherent UI Host ver. 1.5.2.0
    4052 00:01:05.439401 I | PID: 5348 | 5424 00:01:02.452230 Detected OS: Windows NT 6.1 SP1
    4052 00:01:05.439401 I | PID: 5348 | 5424 00:01:05.407399 [5348:5424:INFO:UIContentClient.cpp(65)] Main GPU vendor 4098 device 26776
    4052 00:01:05.439401 I | PID: 5348 | 5424 00:01:05.407399 [5348:5424:INFO:UIContentClient.cpp(85)] GPU driver Advanced Micro Devices, Inc. 13.152.0.0 from 8-30-2013
    4052 00:01:05.505405 I | Coherent UI system initialized successfully
    4052 00:01:06.155442 I | View created successfully with id 0
    4052 00:01:06.305450 I | PID: 5348 | 5424 00:01:06.140441 Navigating view 0 to coui://html/debugger.html
    4052 00:01:06.655470 I | PID: 5348 | 4284 00:01:06.651470 [3496:4596:INFO:renderer_main.cc(215)] Running without renderer sandbox
    4052 00:01:08.956602 I | PID: 5348 | 5424 00:01:08.943601 [5348:5424:INFO:(0)] Main GPU vendor 4098 device 26776
    4052 00:01:08.956602 I | PID: 5348 | 5424 00:01:08.943601 [5348:5424:INFO:(0)] GPU driver Advanced Micro Devices, Inc. 13.152.0.0 from
    4052 00:01:08.956602 I | PID: 5348 | 5424 00:01:08.943601 [5348:5424:INFO:(0)] Main GPU vendor 4098 device 26776
    4052 00:01:08.956602 I | PID: 5348 | 5424 00:01:08.943601 [5348:5424:INFO:(0)] GPU driver Advanced Micro Devices, Inc. 13.152.0.0 from
    4052 00:01:08.956602 I | PID: 5348 | 5424 00:01:08.943601 [5348:5424:INFO:(0)] OpenGL ANGLE (AMD Radeon HD 5800 Series Direct3D9Ex vs_3_0 ps_3_0) Google Inc. 2.0 OpenGL ES 2.0 (ANGLE 1.1.0.2422)
    4052 00:01:08.956602 I | PID: 5348 | 5424 00:01:08.943601 [5348:5424:INFO:(0)] OpenGL Extensions GL_OES_element_index_uint GL_OES_packed_depth_stencil GL_OES_get_program_binary GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_npot GL_EXT_occlusion_query_boolean GL_EXT_read_format_bgra GL_EXT_robustness GL_EXT_texture_compression_dxt1 GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_storage GL_EXT_frag_depth GL_ANGLE_depth_texture GL_ANGLE_framebuffer_blit GL_ANGLE_framebuffer_multisample GL_ANGLE_instanced_arrays GL_ANGLE_pack_reverse_row_order GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ANGLE_texture_usage GL_ANGLE_translated_shader_source GL_NV_fence
    4052 00:01:08.956602 I | PID: 5348 | 5424 00:01:08.943601 [5348:5424:INFO:UIContentClient.cpp(65)] Main GPU vendor 4098 device 26776
    4052 00:01:08.956602 I | PID: 5348 | 5424 00:01:08.943601 [5348:5424:INFO:UIContentClient.cpp(85)] GPU driver Advanced Micro Devices, Inc. 13.152.0.0 from 8-30-2013
    4052 00:01:08.956602 I | PID: 5348 | 5424 00:01:08.943601 [5348:5424:INFO:UIContentClient.cpp(90)] OpenGL ANGLE (AMD Radeon HD 5800 Series Direct3D9Ex vs_3_0 ps_3_0) Google Inc. 2.0 OpenGL ES 2.0 (ANGLE 1.1.0.2422)
    4052 00:01:08.956602 I | PID: 5348 | 5424 00:01:08.943601 [5348:5424:INFO:UIContentClient.cpp(91)] OpenGL Extensions GL_OES_element_index_uint GL_OES_packed_depth_stencil GL_OES_get_program_binary GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_npot GL_EXT_occlusion_query_boolean GL_EXT_read_format_bgra GL_EXT_robustness GL_EXT_texture_compression_dxt1 GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_storage GL_EXT_frag_depth GL_ANGLE_depth_texture GL_ANGLE_framebuffer_blit GL_ANGLE_framebuffer_multisample GL_ANGLE_instanced_arrays GL_ANGLE_pack_reverse_row_order GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ANGLE_texture_usage GL_ANGLE_translated_shader_source GL_NV_fence
    4052 00:01:08.972603 I | PID: 5348 | 4284 00:01:08.962602 [3496:4596:INFO:UIContentClient.cpp(65)] Main GPU vendor 4098 device 26776
    4052 00:01:08.972603 I | PID: 5348 | 4284 00:01:08.962602 [3496:4596:INFO:UIContentClient.cpp(85)] GPU driver Advanced Micro Devices, Inc. 13.152.0.0 from 8-30-2013
    4052 00:01:08.972603 I | PID: 5348 | 4284 00:01:08.962602 [3496:4596:INFO:UIContentClient.cpp(90)] OpenGL ANGLE (AMD Radeon HD 5800 Series Direct3D9Ex vs_3_0 ps_3_0) Google Inc. 2.0 OpenGL ES 2.0 (ANGLE 1.1.0.2422)
    4052 00:01:08.972603 I | PID: 5348 | 4284 00:01:08.962602 [3496:4596:INFO:UIContentClient.cpp(91)] OpenGL Extensions GL_OES_element_index_uint GL_OES_packed_depth_stencil GL_OES_get_program_binary GL_OES_rgb8_rgba8 GL_OES_standard_derivatives GL_OES_texture_half_float GL_OES_texture_half_float_linear GL_OES_texture_float GL_OES_texture_float_linear GL_OES_texture_npot GL_EXT_occlusion_query_boolean GL_EXT_read_format_bgra GL_EXT_robustness GL_EXT_texture_compression_dxt1 GL_EXT_texture_filter_anisotropic GL_EXT_texture_format_BGRA8888 GL_EXT_texture_storage GL_EXT_frag_depth GL_ANGLE_depth_texture GL_ANGLE_framebuffer_blit GL_ANGLE_framebuffer_multisample GL_ANGLE_instanced_arrays GL_ANGLE_pack_reverse_row_order GL_ANGLE_texture_compression_dxt3 GL_ANGLE_texture_compression_dxt5 GL_ANGLE_texture_usage GL_ANGLE_translated_shader_source GL_NV_fence
    4052 00:01:12.958831 I | PID: 5348 | 5424 00:01:12.957831 [5348:5424:INFO:(0)] Selected DirectX device in GPUproc info:
    4052 00:01:12.958831 I | PID: 5348 | 5424 00:01:12.957831 [5348:5424:INFO:(0)] Device name {\\.\DISPLAY1}, DeviceId {26776}
    4052 00:01:12.958831 I | PID: 5348 | 5424 00:01:12.957831 [5348:5424:INFO:(0)] VendorId {4098}, Driver ver. {2251872828785870}
    4052 00:03:03.567157 I | Removing view 0
    4052 00:03:03.567157 I | Uninitializing Coherent UI
    4052 00:03:05.400262 I | Coherent UI uninitialized successfully
    
  3. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    Start PA, then start the Coherent Debugger. You can click "Go" to connect to PA, click the first of the four links that show up, and then go over to the console tab to see any output from the UI. I'm interested in any errors that show in red and any mod files that it loads.
  4. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Sorry guys, only just saw this had new posts - I wasn't receiving notifications, so I must have missed the last one.
    I'll look into this when I get home tonight. In the meantime, do the above steps that @cptconundrum stated to see the coherent debugger log.

    Also, try running the game with the "--forwardlogs" and "--log-threshold 4" flags. I'm not sure if the process is the same for the steam/non-steam version for enabling these flags, so if you're not sure how to do this let us know and I'll whip up some instructions.
  5. dusanak

    dusanak Member

    Messages:
    91
    Likes Received:
    19
    Ok so I have ran the debugger the proper way, these are all the errors that appeared there.

    Code:
    Failed to load resource coui://ui/alpha/_i18n/locales/en-us/start.json
    failed loading: ../_i18n/locales/en-us/start.json
    Failed to load resource coui://ui/alpha/_i18n/locales/en/start.json
    failed loading: ../_i18n/locales/en/start.json
    loaded: ../_i18n/locales/dev/start.json
    Failed to load resource coui://ui/alpha/_i18n/locales/en-us/shared.json
    failed loading: ../_i18n/locales/en-us/shared.json
    Failed to load resource coui://ui/alpha/_i18n/locales/en/shared.json
    failed loading: ../_i18n/locales/en/shared.json
    Failed to load resource coui://ui/alpha/_i18n/locales/dev/shared.json
    failed loading: ../_i18n/locales/dev/shared.json
    ../../mods/ui_mod_list.js loading script common.js:9
    Failed to load resource coui://ui/mods/ui_mod_list.js
    error loading ../../mods/ui_mod_list.js common.js:18
    
    I have also tried running the game using those flags you posted here but I have no idea what it should do. If it is something obvious then I guess I have done it wrong :/
  6. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Code:
    error loading ../../mods/ui_mod_list.js common.js:18
    This is the problem, and will stop most mods from working (the locales errors are normal).
    Can you post the contents of this file?
  7. dusanak

    dusanak Member

    Messages:
    91
    Likes Received:
    19
    It is missing altogether.
  8. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Look in the mods folder, under rPAMM\ui\mods\
  9. dusanak

    dusanak Member

    Messages:
    91
    Likes Received:
    19
    It is there. This is its content.


    Code:
    var global_mod_list = [
        "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework.js",
        "coui://ui/mods/rSettingsManager/rSettingsManager_global.js",
        "coui://ui/mods/rFloatFrame/rFloatFrame.css",
        "coui://ui/mods/rFloatFrame/rFloatFrame.js",
        "coui://ui/mods/hotbuild2/global_mod_list/hotbuild.js",
        "http://www.nanodesu.info/stuff/pa/mods/live/pastats/pa_stats_loader.js"
    ];
    
    var scene_mod_list = {
        "connect_to_game": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js"
        ],
        "game_over": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js"
        ],
        "icon_atlas": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js"
        ],
        "live_game": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js",
            "coui://ui/mods/EcoEff/EcoEff.css",
            "coui://ui/mods/EcoEff/EcoEff.js",
            "coui://ui/mods/hotbuild2/live_game/hotbuild.css",
            "coui://ui/mods/hotbuild2/live_game/hotbuild_core.js",
            "coui://ui/mods/hotbuild2/live_game/hotbuild_live.js",
            "coui://ui/mods/rCommanderHP/rCommanderHP.css",
            "coui://ui/mods/rCommanderHP/rCommanderHP.js"
        ],
        "load_planet": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js"
        ],
        "lobby": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js"
        ],
        "matchmaking": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js"
        ],
        "new_game": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js"
        ],
        "server_browser": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js"
        ],
        "settings": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js",
            "coui://ui/mods/rSettingsManager/rSettingsManager.js",
            "coui://ui/mods/rSettingsManager/rSettingsManager.css",
            "coui://ui/mods/rFloatFrame/rFloatFrame_settings.js",
            "coui://ui/mods/hotbuild2/settings/hotbuild_settings.css",
            "coui://ui/mods/hotbuild2/settings/knockout-sortable.min.js",
            "coui://ui/mods/hotbuild2/settings/hotbuild_settings.js",
            "coui://ui/mods/rCommanderHP/rCommanderHP_settings.js"
        ],
        "special_icon_atlas": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js"
        ],
        "start": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_start.js"
        ],
        "system_editor": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js"
        ],
        "transit": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js"
        ],
        "social": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js"
        ],
        "replay_browser": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js"
        ]
    }
  10. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Try deleting that file and re-running PAMM (it will be re-created).
  11. dusanak

    dusanak Member

    Messages:
    91
    Likes Received:
    19
    Ok I have done it but I believe that the file didn't change.


    Code:
    var global_mod_list = [
        "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework.js",
        "coui://ui/mods/rSettingsManager/rSettingsManager_global.js",
        "coui://ui/mods/rFloatFrame/rFloatFrame.css",
        "coui://ui/mods/rFloatFrame/rFloatFrame.js",
        "coui://ui/mods/hotbuild2/global_mod_list/hotbuild.js",
        "http://www.nanodesu.info/stuff/pa/mods/live/pastats/pa_stats_loader.js"
    ];
    
    var scene_mod_list = {
        "connect_to_game": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js"
        ],
        "game_over": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js"
        ],
        "icon_atlas": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js"
        ],
        "live_game": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js",
            "coui://ui/mods/rCommanderHP/rCommanderHP.css",
            "coui://ui/mods/rCommanderHP/rCommanderHP.js",
            "coui://ui/mods/EcoEff/EcoEff.css",
            "coui://ui/mods/EcoEff/EcoEff.js",
            "coui://ui/mods/hotbuild2/live_game/hotbuild.css",
            "coui://ui/mods/hotbuild2/live_game/hotbuild_core.js",
            "coui://ui/mods/hotbuild2/live_game/hotbuild_live.js"
        ],
        "load_planet": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js"
        ],
        "lobby": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js"
        ],
        "matchmaking": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js"
        ],
        "new_game": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js"
        ],
        "server_browser": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js"
        ],
        "settings": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js",
            "coui://ui/mods/rSettingsManager/rSettingsManager.js",
            "coui://ui/mods/rSettingsManager/rSettingsManager.css",
            "coui://ui/mods/rFloatFrame/rFloatFrame_settings.js",
            "coui://ui/mods/rCommanderHP/rCommanderHP_settings.js",
            "coui://ui/mods/hotbuild2/settings/hotbuild_settings.css",
            "coui://ui/mods/hotbuild2/settings/knockout-sortable.min.js",
            "coui://ui/mods/hotbuild2/settings/hotbuild_settings.js"
        ],
        "special_icon_atlas": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js"
        ],
        "start": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_start.js"
        ],
        "system_editor": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js"
        ],
        "transit": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js"
        ],
        "social": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js"
        ],
        "replay_browser": [
            "coui://ui/mods/rBlueprintInfoFramework/rBlueprintInfoFramework_scene.js"
        ]
    }
  12. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    What is your default system language? Could this be coming down to character encoding again?

    @raevn when you write to a file with PAMM, are you explicitly saving as UTF-8 or just letting the system choose?
  13. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Specifically UTF-8, and I then remove the first 3 bytes (to turn it into UTF-8 without BOM)
  14. dusanak

    dusanak Member

    Messages:
    91
    Likes Received:
    19
    My system language is czech. May the problem be caused by the path to the mod folder being like this? Does it matter?
    Code:
    C:\Users\Dušan\AppData\Local\Uber Entertainment\Planetary Annihilation\mods\rPAMM\ui\mods
  15. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    That seems very likely. I wonder if there is a way to symlink around that in Windows.
  16. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    Do your settings save if you close and re-open PA? If so, then this isn't an issue.

    If you enter the following in your Windows Explorer address bar, does it go to the right place?

    %LOCALAPPDATA%\Uber Entertainment\Planetary Annihilation\mods

    Just to rule out file format issues, can you attach your ui_mod_list.js file?
  17. dusanak

    dusanak Member

    Messages:
    91
    Likes Received:
    19
    Yes it goes to the right place.

    This is the file. I had to change the extension because it didn't allow me to upload a .js file.

    Attached Files:

  18. DeathByDenim

    DeathByDenim Post Master General

    Messages:
    4,328
    Likes Received:
    2,125
    I don't think Windows does symlinking, but one could set the LOCALAPPDATA variable to some directory without "funky" characters. I'm very unfamiliar with Windows, but wouldn't you be able to set something like that specifically in the short cut properties for the PA application (and pamm)? Failing that, one could open a command line, set the variable and start PA from there. Just to see if the š is a problem. Oh, or create a new test user and run PA there. That may actually be the simplest solution.
    cptconundrum likes this.
  19. dusanak

    dusanak Member

    Messages:
    91
    Likes Received:
    19
    I have created a new user, copied the mods and so on there. It seems that the š is really the problem. Logs are created properly and all the mods are running. Is there a way to solve this problem so that I don't have to log into a separate account each time I want to play PA?
  20. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    First thing to do is to put this on the bug tracker, since that's probably a PA bug if it is running into problems with the file path. I wonder if PA or coherent is getting the user name and building the path itself rather than looking in %Appdata%
Thread Status:
Not open for further replies.

Share This Page