[REL]In Game Browser V2.0.2

Discussion in 'Released Mods' started by someonewhoisnobody, March 2, 2014.

  1. someonewhoisnobody

    someonewhoisnobody Well-Known Member

    Messages:
    657
    Likes Received:
    361
    *Fixed* All I did was create a JS file that used the boring old way of doing document.ready, when the document is ready it just calls loadScript() and loadCSS(). This way I can still keep it in global_mod_list. Then instead of loading the other files I just loaded the JS file.
  2. cptconundrum

    cptconundrum Post Master General

    Messages:
    4,186
    Likes Received:
    4,900
    For my mod, I have a function that makes some small changes to the way your browser works. There may be a better way to do this in my mod, or maybe some of these changes belong in yours.

    What I have done is preload the web page I want and then immediately hide the browser. That lets me show and hide it a lot of times without forcing a page refresh. I also added an animation to the toggle() function.

    Code:
    var extendInGameBrowser = function() {
            inGameBrowser.show = function() {
                $("#inGameBrowser").show();
            };
    
            inGameBrowser.hide = function() {
                $("#inGameBrowser").hide();
            };
    
            inGameBrowser.toggle = function() {
                var browserDiv = $("#inGameBrowser");
    
                if($(browserDiv).is(":visible")) {
                    inGameBrowser.close();
                } else {
                    $(browserDiv).css('opacity', 0);
                    $(browserDiv).show();
                    $(browserDiv).animate({
                        'left': '0%',
                        'opacity': 1
                    }, 500);
                }
            }
    
            inGameBrowser.close = function() {
                var browserDiv = $("#inGameBrowser");
                $(browserDiv).css('opacity', 1);
                $(browserDiv).animate({
                    'left': '-100%',
                    'opacity': 0
                }, 500, function() { $(browserDiv).hide(); });
            };
    
            $("#openInGameBrowser").remove();
        };
    I also really didn't like the button you have for opening the browser. I feel like if there is a button at all, it should be hidden away somewhere. Maybe in the bottom right corner next to the pip and chronocam buttons?
  3. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
    The div that your in game browser button is in seems to overlap with the notifications in live games so you can't click them. Could you fix that? Thanks!
  4. someonewhoisnobody

    someonewhoisnobody Well-Known Member

    Messages:
    657
    Likes Received:
    361
    Have you tried updating the mod? The current version is V1.3.2, the big button you speak of was something very annoying and hacky I put together, in V1.3 I switched it out with a nicer pip style button. :)
  5. LavaSnake

    LavaSnake Post Master General

    Messages:
    1,620
    Likes Received:
    691
    Odd, I was apparently running 1.2 still. I guess there was an issue with the update or something. Anyway I now have the newest version and I'm assuming it's all good now. I'll post if I get the issue again.

    Thanks!
  6. trialq

    trialq Post Master General

    Messages:
    1,295
    Likes Received:
    917
    Same here, I was running 1.1. Did you change the mod id at some point someonewhoisnobody?

    edit: I checked, mod id between v1.1 and v1.3.2 is the same. It appears PAMM just failed to notify of an update.
    Last edited: April 13, 2014
  7. someonewhoisnobody

    someonewhoisnobody Well-Known Member

    Messages:
    657
    Likes Received:
    361
    Hmmm that weird, well good to know that I didn't do anything wrong :p
  8. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    It appears the date was not changed in modinfo.json between versions; this is why PAMM is not detecting it as updated.
  9. someonewhoisnobody

    someonewhoisnobody Well-Known Member

    Messages:
    657
    Likes Received:
    361
    ooops, Just gona quickly fix that...


    I thought that was the initial creation date
  10. trialq

    trialq Post Master General

    Messages:
    1,295
    Likes Received:
    917
    Wouldn't the version be the only thing that needs to be checked? It's rare, but I've updated the same mod twice in one day before (once for bugfix and again for feature).
  11. Raevn

    Raevn Moderator Alumni

    Messages:
    4,226
    Likes Received:
    4,324
    The initial reason was because there isn't a fixed format people use for versioning, so it was easier to use dates (since even a string comparison works when in yyyy/mm/dd format). It wasn't perfect, but it worked 99% of the time. Improving this is on my to-do list, and I know the mac/linux version of PAMM already takes it into account.
  12. someonewhoisnobody

    someonewhoisnobody Well-Known Member

    Messages:
    657
    Likes Received:
    361
    Version 1.3.4 Update:
    • Moved Live Game browser button to accommodate the new buttons in 64498
  13. ozonexo3

    ozonexo3 Active Member

    Messages:
    418
    Likes Received:
    196
    PA crash after I writed adres and clicked GO. Now everytime i open IngameBrowser game crash. I even reinstalled it. Yes, im using latest version

    Attached Files:

  14. someonewhoisnobody

    someonewhoisnobody Well-Known Member

    Messages:
    657
    Likes Received:
    361
    I'll look into it.

    Do you have any other mods?
  15. ozonexo3

    ozonexo3 Active Member

    Messages:
    418
    Likes Received:
    196
    Enhanced System Preview
    PA StatsOnline
    System Sharing
  16. trialq

    trialq Post Master General

    Messages:
    1,295
    Likes Received:
    917
    What was the url? The mod remembers the last url you've gone to, it's probably what's causing the crash every time. Try restoring your settings to default and see if it allows you to use the browser again.
    someonewhoisnobody likes this.
  17. ozonexo3

    ozonexo3 Active Member

    Messages:
    418
    Likes Received:
    196
    How to do that? I restored settings to default and removed mod from HDD, and after instaling it again it crash.

    I used adress:
    Code:
    ozonex.pl
    To test if my website works, just for test, and it crash almost in same time when i clicked GO
  18. someonewhoisnobody

    someonewhoisnobody Well-Known Member

    Messages:
    657
    Likes Received:
    361
    Resetting the game settings does not effect the mod.

    To test if it is the website causing issues open the console(`) and enter
    Code:
    inGameBrowser.open('http://Google.com')
    This will change the browser URL.


    OR


    Click on one of the twitch streams from the main menu.
  19. trialq

    trialq Post Master General

    Messages:
    1,295
    Likes Received:
    917
    If the in-game way didn't work, try what proeleert suggested here: https://forums.uberent.com/threads/rel-hotbuild2-v1-9-9-9-9-63234.54561/
    At your own risk, I haven't tried it. The in-game way you tried already has worked for anything I needed it to do.
  20. ozonexo3

    ozonexo3 Active Member

    Messages:
    418
    Likes Received:
    196
    This code from console helps. Looks like it crash always, when adress ends with character "/"

    Code:
    /
    so if you will open this adress it will crash:
    Code:
    http://ozonex.pl/unstopable/

Share This Page