Modding experience degraded with 61250

Discussion in 'Mod Discussions' started by wondible, February 19, 2014.

  1. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    First of all:
    1. I realize making a smooth modding experience isn't a priority yet.
    2. I might just be doing something wrong.
    3. I'm not just asking for a revert - In generally I support increasing modularity.
    This mostly revolves around the sub-scenes in live_game, which is where I've worked so far.

    There are more scenes in the debugger list, all labeled "Coherent UI View", and they appear in random order. At least before I could figure out that the main game view was 3/4. I don't suppose that you have a hook to put a useful label on the items in the scene list?

    Because the sub-scenes are created and destroyed dynamically, I have go through the above randomly-sorted list every time instead of simply getting the debugger in place and leaving it up.

    I'm also curious about the rational for the change. Is it just for your own sanity, or was the intent that status bar modders would just shadow the entire scene?
    trialq likes this.
  2. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Found another one: I can't use the debugger feature to click on the desired element in a sub-scene and have it highlighted in the elements panel.
  3. SXX

    SXX Post Master General

    Messages:
    6,896
    Likes Received:
    1,812
    Debugger it's just HTML/javascript files and you don't actually need executable at all. So you might try to host them on local server and use from any browser, this way it's usually work better. :)
  4. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    I think they are trying to reduce the size of live_game.js. I welcome that.
    The current way seems to be kind of ugly towards the debugger though.
  5. masterdigital

    masterdigital Uber Alumni

    Messages:
    438
    Likes Received:
    833
    All the views have the same name because of coherent, nothing we can do about that. It will get fixed eventually. More importantly, the separation of the panels allows them to animate without triggering a full screen memory copy. This has been a performance problem for a long time.
  6. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Thanks for the tip. Still can't select into a subscene however, and the Go button is kind of handy because I have to keep going back to the index to figure out which view it is this time.
  7. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Yah, scene titles... except now the scenes themselves are white pages and debugging is completely broken.
  8. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    What do you mean by debugging? Can't see any issues anymore. Apart from the fact that live_game econ by default still spams so much logs that it kills the debugger.
  9. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    This is what I get when I click on scene name:

    Screen Shot 2014-03-14 at 16.26.09 .png
  10. Dementiurge

    Dementiurge Post Master General

    Messages:
    1,094
    Likes Received:
    693
    I can't run the debugger in Vista.
    Imagine how I feel! :D
  11. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    Recently, or ever?

    If the later, does pointing chrome at http://127.0.0.1:9999 work?
  12. SXX

    SXX Post Master General

    Messages:
    6,896
    Likes Received:
    1,812
    I answered you on bugtracker (PA#3273), but repeat here. 62857 using new version of Coherent and you need new version of debugger or HTML files if you use it from browser.

    For me in both Linux and Windows versions debugger works just fine.
  13. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    And here I am still using the debugger version that was distributed as an extra thing in the forums xD
    LavaSnake likes this.
  14. Dementiurge

    Dementiurge Post Master General

    Messages:
    1,094
    Likes Received:
    693
    Since ever. But then, I didn't know about the "new" debugger, which works just fine.
  15. SXX

    SXX Post Master General

    Messages:
    6,896
    Likes Received:
    1,812
  16. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    So this devtools stuff is fascinating. I did notice that when I first downloaded the debugger, renaming Debugger.app to say CoherentDebugger.app prevented it from working.
  17. SXX

    SXX Post Master General

    Messages:
    6,896
    Likes Received:
    1,812
    I don't have any Macs so it's hard to tell how exactly it's working on OS X.
    So I just wonder if you trying to open URL manually and click on some View is Debugger working for you or not?
  18. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    I tried that several times. It used to work.

    Progress report: I did some searching for OS X file monitors, and found a mention of opensnoop.

    Code:
    bamboo:MacOS jlove$ sudo opensnoop -n CoherentUI_Host
      UID    PID COMM          FD PATH                
      501   1833 CoherentUI_Host  -1 /Users/jlove/Library/Application Support/Uber Entertainment/Planetary Annihilation/data/streams/stable/PA.app/Contents/MacOS/host/devtools/devtools.html
    
    (I left out other gobbdlygook entries)

    There is of course no devtools directory.
  19. SXX

    SXX Post Master General

    Messages:
    6,896
    Likes Received:
    1,812
    If you can put "devtools" it here it's will work.
    Linux version of PA have "Coherent" directory that contain it, possible Mac version too? E.g:
    /PA.app/Contents/MacOS/Coherent/Debugger/html/

    PS: Uploaded current "devtools" directory in ZIP if you need one.

    Attached Files:

  20. wondible

    wondible Post Master General

    Messages:
    3,315
    Likes Received:
    2,089
    It's not included in OS X.

    Copying the contents of the html directory from Debugger.app into the host directory of PA.app provides at least basic function. I might yet run into minor version issues but so far the console seems to be working.

Share This Page