[REL]Possible Fix for blackscreen issues

Discussion in 'Mod Discussions' started by cola_colin, February 22, 2014.

  1. keterei

    keterei Active Member

    Messages:
    258
    Likes Received:
    93
    Hey after a lot of testing and zeroing in, I've noticed that the better build bar mod seems to conflict with this one. I got black screens every game I joined with the better build bar mod on until I disabled it.
  2. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
    Same here.
  3. tatsujb

    tatsujb Post Master General

    Messages:
    12,902
    Likes Received:
    5,385
    plz fix the font thing. :p plese please please
  4. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    I don't care at all about the main menu font tbh.
  5. Corang

    Corang Well-Known Member

    Messages:
    772
    Likes Received:
    313
    Fixed.
  6. Corang

    Corang Well-Known Member

    Messages:
    772
    Likes Received:
    313
    I have found something interesting pertaining to this: if you have the main menu and the debugger open at the same time you can "fix" the font issue. If it is in sans, you just have to go to the css menu on the right and look for the font family rule that isn't crossed out, go into edit mode and press the left or right keyboard arrow and it fixes itself (until it is loaded again), I have been trying everything I could think of to fix this but even using setInterval() with a jquery in-element css edit doesn't do anything to the font, any ideas? Also once in a while the font is right, but it is random and less common than it being wrong.

    I have also tried to use window.onload with an in-element jquery edit: .css('font-family', 'Sansation Bold')
    Quitch and wondible like this.
  7. proeleert

    proeleert Post Master General

    Messages:
    1,681
    Likes Received:
    1,656
    No changes to file for 62857 so if issue still appears , blackscreen fix mod should still work.
  8. Quitch

    Quitch Post Master General

    Messages:
    5,863
    Likes Received:
    6,045
    Works with 62857.

    EDIT: Good eyes, Quitch :D
    totalannihilation and reptarking like this.
  9. k3n58

    k3n58 Member

    Messages:
    42
    Likes Received:
    4
    Wish uber would fix this annoying one for us
  10. gdeathscythe116

    gdeathscythe116 New Member

    Messages:
    6
    Likes Received:
    3
    You sir deserve a prize of some sort... and a hug. Thank You!
    cola_colin likes this.
  11. Corang

    Corang Well-Known Member

    Messages:
    772
    Likes Received:
    313
    @Cola_Colin
    I have an idea for anyone that doesn't like the main menu font issue, what if instead of replacing the loadCSS function you created a loadCSS2 for mods so that it was only used if mod authors wanted it to be used and that way the main menu font doesn't get messed up yet as long as the mod calls loadCSS2 there is no blackscreen
  12. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    I don't think that would help much. Basically the moment you have one mod that won't use loadCSS2 you will have black screens.
  13. Corang

    Corang Well-Known Member

    Messages:
    772
    Likes Received:
    313
    yeah I guess that is true, I think instead of requiring users to use your mod to stop blackscreens, since some don't like the wrong font at the main menu, I will declare my own function with the same parameters as what you put in common.js so there won't be a blackscreen but there also won't be any font issues because that function will only be called when I load CSS from my mod
  14. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    I think the better solution would be to check in what scene I am and only apply the fixed blackscreen code if I am in live_game.js. There are no blackscreens in the main menu as far as I know ;)
    But then again I soooo don't care about the main menu font and I have other, worse, bugs to fix.
  15. Corang

    Corang Well-Known Member

    Messages:
    772
    Likes Received:
    313
    I was thinking the same thing, though I don't even know how to check what scene the game is in...
  16. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    you can check the current window.location.href
  17. Quitch

    Quitch Post Master General

    Messages:
    5,863
    Likes Received:
    6,045
    totalannihilation likes this.
  18. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    weird.
    is Auto Factory doing anything special in terms of loading CSS?
  19. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    The new PA Version moved the location of the common.js
    So this mod probably will not break anything, but will also have no effects.

    My svn client is not good enough to do a diff like this, so no idea if changes were made to common.js
  20. proeleert

    proeleert Post Master General

    Messages:
    1,681
    Likes Received:
    1,656
    There are some changes. Mainly because of the move from alpha to main.
    And css loading is still like before.
    So if there are still blackscreens somebody will have to do an update.
    Will do in 20 hours if nobody does it...

Share This Page