*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.
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?
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!
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.
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!
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.
It appears the date was not changed in modinfo.json between versions; this is why PAMM is not detecting it as updated.
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).
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.
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
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.
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
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.
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.
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/