• OpenLoad - The first open-source sv_loadingurl framework!
    112 replies, posted
Thank you! There is another bug i discovered: the files ( e.g. 5/45 ) count down instead of up when they load; so it says 0/sthg. when the download is finished.
It would be nice to support more than 1 server with 1 installation of OpenLoad. for example i got 5 Servers with PS, same IP, different port, and one without PS, Different IP:Port. currently i got 6 installations of OpenLoad and to update them all is a bit stressfull ^^
[QUOTE=Tomelyr;45201809]It would be nice to support more than 1 server with 1 installation of OpenLoad. for example i got 5 Servers with PS, same IP, different port, and one without PS, Different IP:Port. currently i got 6 installations of OpenLoad and to update them all is a bit stressfull ^^[/QUOTE] That is definitely something I will add! Will start working on it soon!
Love it especially soil only problem is it loads slow and doesnt fit to some resolutions
Works very well, made my own loading screen with it! Nice job!
After seeing this crap all over coderhire for $5 to $10 I am totally amazed that you decided to release this for free here. It's nice to know some coders/programmers still care enough about the community to release a cash-worthy asset and all the source for it, ALONG WITH TEMPLATES. You're amazing man, keep doing what you do!
[QUOTE=Videowarrior;45219246]After seeing this crap all over coderhire for $5 to $10 I am totally amazed that you decided to release this for free here. It's nice to know some coders/programmers still care enough about the community to release a cash-worthy asset and all the source for it, ALONG WITH TEMPLATES. You're amazing man, keep doing what you do![/QUOTE] I am glad that you enjoy my work, and these kind of replies is what makes me want to keep releasing more free & open source work. I've checked through the source-code of most of the CoderHire loading screens and I just have to say that they look good, but are utter shit. There's no performance optimizations whatsoever to them. I decided to make OpenLoad's back-end 100% powered by AJAX calls, which means that players will load the entire page (images, styles, background video/music) at the same time as PHP fetches steam information, server and map information. Otherwise PHP will do its work first, then the assets gets loaded. Saves a second or two :P I recently updated OpenLoad so it supports caching of Steam information, so it loads even faster now. So generally the quality of OpenLoad's back-end and CoderHire's loading screens back-end is beyond comparison. I've optimized OpenLoad to the point where it loads close to instantly. Anyway, I just got a job as a web developer here in Sweden starting the 25th August, so by then I'll have even less time to create open source projects and maintain OpenLoad, so I really hope that we'll see some good web devs helping out with pull requests, more templates, etc.
[QUOTE=Svenskunganka;45219724]I am glad that you enjoy my work, and these kind of replies is what makes me want to keep releasing more free & open source work. I've checked through the source-code of most of the CoderHire loading screens and I just have to say that they look good, but are utter shit. There's no performance optimizations whatsoever to them. I decided to make OpenLoad's back-end 100% powered by AJAX calls, which means that players will load the entire page (images, styles, background video/music) at the same time as PHP fetches steam information, server and map information. Otherwise PHP will do its work first, then the assets gets loaded. Saves a second or two :P I recently updated OpenLoad so it supports caching of Steam information, so it loads even faster now. So generally the quality of OpenLoad's back-end and CoderHire's loading screens back-end is beyond comparison. I've optimized OpenLoad to the point where it loads close to instantly. Anyway, I just got a job as a web developer here in Sweden starting the 25th August, so by then I'll have even less time to create open source projects and maintain OpenLoad, so I really hope that we'll see some good web devs helping out with pull requests, more templates, etc.[/QUOTE] Right on, I'll be sure to create a few vector-based templates after work today. Also do you have a paypal? I want to throw a few bucks your way, just my way of saying thanks (and because I'm half Swedish half Norwegian too, just living in 'murica).
[QUOTE=Videowarrior;45220946]Right on, I'll be sure to create a few vector-based templates after work today. Also do you have a paypal? I want to throw a few bucks your way, just my way of saying thanks (and because I'm half Swedish half Norwegian too, just living in 'murica).[/QUOTE] That's really kind of you! I'll send you details over PM!
[url]http://cybergmod.net/i/CmWaSc.png[/url] [url]http://cybergmod.net/i/d4t4jT.png[/url] Modified soil template a tad. @ [url]http://cybergmod.net/lurl/dayz/?template=soil[/url]
[QUOTE=Phoenixf129;45228436][url]http://cybergmod.net/i/CmWaSc.png[/url] [url]http://cybergmod.net/i/d4t4jT.png[/url] Modified soil template a tad. @ [url]http://cybergmod.net/lurl/?template=soil[/url][/QUOTE] Looking good!
[B]Latest patch:[/B] - Added support for multiple servers. - Cleaned up some old code. [B]Note:[/B] For those of you who have multiple servers, you have to add a new GET paramenter to your sv_loadingurl. Append it with [B]&sid=1[/B] so it looks like this: [code]sv_loadingurl "domain.com/openload/index.php?template=soil&sid=1"[/code] Read through the [I][URL="https://github.com/Svenskunganka/OpenLoad/blob/master/src/config/config.inc.php#L18-L31"]src/config/config.inc.php[/URL][/I] file and you will get all the info you need. [URL="https://github.com/Svenskunganka/OpenLoad/commit/e502f7fe14dbe45df6e12d0b39ce849dbb961083"]Commit changes[/URL] Cheers! :downs:
Is there a way to make it so on the rules side, you can implement like say a forum and it gives a list of rules while you wait to download stuff so you don't have to mess the box up?
[QUOTE=ChloeBlackSythe;45290468]Is there a way to make it so on the rules side, you can implement like say a forum and it gives a list of rules while you wait to download stuff so you don't have to mess the box up?[/QUOTE] What do you mean exactly? Do you want a whole forum in that small rules area?
That would practically be an object embed. You could even make an RSS reader to pull from your news/announcements, like I have.
Looks really good should be really helpful for people that don't know html and the other web languages.
Hey, i'm having an issue with my loading screen not really loading any information at all, even using a default template does not show any information. Screenshots: [thumb] http://puu.sh/a234b/aeac6b8261.png [/thumb] [thumb] http://puu.sh/a23Bg/b487e5dedf.jpg [/thumb] I followed the debug instructions and allow_url_fopen is on. My install directory is '/www/servers/garrysmod/loadingscreens/' There is no errors in Google Chromes console
[QUOTE=smithy285;45326573]Hey, i'm having an issue with my loading screen not really loading any information at all, even using a default template does not show any information. Screenshots: [thumb] http://puu.sh/a234b/aeac6b8261.png [/thumb] [thumb] http://puu.sh/a23Bg/b487e5dedf.jpg [/thumb] I followed the debug instructions and allow_url_fopen is on. My install directory is '/www/servers/garrysmod/loadingscreens/' There is no errors in Google Chromes console[/QUOTE] i'm with the same problem
Are both of you using a MySQL database? If so the darkrp and pointshop has to be in the same database and set your config to that.
Same Issue as smithy and Narga, not using MySQL
Sorry I haven't been able to respond. Have been on a 1 week vacation to Rhodes, Greece. Just landed at the airport so I'll see what I can do as soon as I get home.
[QUOTE=ProGamerzFTW;45368189]Are both of you using a MySQL database? If so the darkrp and pointshop has to be in the same database and set your config to that.[/QUOTE] I am not using the pointshop points thing in my loading screen though, only the darkrp money.
[QUOTE=smithy285;45385828]I am not using the pointshop points thing in my loading screen though, only the darkrp money.[/QUOTE] Don't worry, I'm working on a fix, seems like I broke something in the last patch.
[QUOTE=Svenskunganka;45394882]Don't worry, I'm working on a fix, seems like I broke something in the last patch.[/QUOTE] It's been 2 days, not to rush you, but have you got a fix? My loading screen is practically pointless right now aha
[QUOTE=smithy285;45421161]It's been 2 days, not to rush you, but have you got a fix? My loading screen is practically pointless right now aha[/QUOTE] Oh yeah, I completely forgot to push the [I]very[/I] simple fix to GitHub! Sorry about that, it's live now. [url]https://github.com/Svenskunganka/OpenLoad[/url] EDIT: Can a mod replace the WIP Addon icon with the standard Addon icon, perhaps? :smile:
The loading screen is still broken for me [url]http://puu.sh/afZIu/c9b47bb3e6.png[/url] Even the default one is broken [url]http://puu.sh/ag05Z/45acbb768c.jpg[/url] I must be doing something wrong
[QUOTE=smithy285;45422919]The loading screen is still broken for me [url]http://puu.sh/afZIu/c9b47bb3e6.png[/url] Even the default one is broken [url]http://puu.sh/ag05Z/45acbb768c.jpg[/url] I must be doing something wrong[/QUOTE] It's not broken, it's returning 0 money, so that means you must've setup your DarkRP incorrectly. Turn on any error reporting in php.ini and execute this command in Chrome's F12 console: [code]GameDetails("Something Custom Tools", "serverurl", "ttt_rooftops_a2", 100, "76561197988494194", "terrortown")[/code] and post back the results. If you have enabled error reporting correctly, you should see an error in the returned JSON. In my case, this is the JSON returned: [code] {"steamid":"STEAM_0:0:14114233","players":82,"playername":"Svenskunganka","avatar":"http:\/\/media.steampowered.com\/steamcommunity\/public\/images\/avatars\/e8\/e82256b15b9b6bec77ba3e45afc599085ffd6ba8_full.jpg","mapimage":"http:\/\/image.www.gametracker.com\/images\/maps\/160x120\/garrysmod\/ttt_rooftops_a2.jpg","ip":"0.0.0.0:27015"} [/code] EDIT: On a second look, something is wrong here when fetching DarkRP or Pointshop data. I'll have to investigate the issue. EDIT2: Gah, [URL="https://github.com/Svenskunganka/OpenLoad/blob/master/src/core/openload.class.php#L138-L163"]this function[/URL] is killing me. It [B][U]SHOULD[/U][/B] work, but it doesn't. It's returning 0, which is the same as false for stupid MySQL. Fuck you MySQL. I'll keep digging...
Same issue with the broken steamIDs coming up here, and lack of avatar etc [QUOTE]GameDetails("Something Custom Tools", "serverurl", "ttt_rooftops_a2", 100, "76561197988494194", "terrortown") undefined {"steamid":"STEAM_0:0:-38280598980132864","players":1,"playername":"","avatar":null,"mapimage":"https:\/\/raw.githubusercontent.com\/Svenskunganka\/OpenLoad\/master\/templates\/strapquery\/img\/unknown_map.jpg","ip":"31.186.251.140:27015"} openload.js:48 GameDetails("Something Custom Tools", "ttt.jacobkeane.co.uk", "ttt_rooftops_a2", 100, "76561197988494194", "terrortown") undefined {"steamid":"STEAM_0:0:-38280598980132864","players":1,"playername":"","avatar":null,"mapimage":"https:\/\/raw.githubusercontent.com\/Svenskunganka\/OpenLoad\/master\/templates\/strapquery\/img\/unknown_map.jpg","ip":"31.186.251.140:27015"} [/QUOTE]
[QUOTE=Darkfrost;45424630]Same issue with the broken steamIDs coming up here, and lack of avatar etc[/QUOTE] The steam info fetching works perfectly now after the latest commit to GitHub, right now the only issue is that DarkRP and Pointshop wallets isn't returning properly. Make sure the cache folder is writable if you're on linux. Run this: [B]chmod 0775 cache[/B] inside the openload folder. Also, make sure your Steam API key is working.
I done what you asked, here is my result: [code] {"steamid":"STEAM_0:0:-3.8280598980133E+16","players":1,"playername":"","avatar":null,"mapimage":"https:\/\/raw.githubusercontent.com\/Svenskunganka\/OpenLoad\/master\/templates\/strapquery\/img\/unknown_map.jpg","darkrp":0,"ip":"63.251.20.182:27015"} [/code] The SteamID, avatar and DarkRP money are still not working?
Sorry, you need to Log In to post a reply to this thread.