OpenLoad - The first open-source sv_loadingurl framework!
112 replies, posted
[IMG]http://puu.sh/8GsYR.png[/IMG]
[[URL="https://github.com/Svenskunganka/OpenLoad"]GitHub[/URL]]
I'm happy to announce that OpenLoad, the very first open-source, fully responsive sv_loadingurl [B]framework[/B] is in out! Yes, you read right, a framework;
[[URL="https://github.com/Svenskunganka/OpenLoad/wiki/Installation"]Installation Instructions[/URL]]
[[URL="https://github.com/Svenskunganka/OpenLoad/wiki/Making-custom-templates"]Custom Template Instructions[/URL]]
[B]How can this be a framework?[/B]
OpenLoad is both a "finished loading screen" and a framework.
You can download & install it on your web space and use one of the pre-made templates that's already in there if you want. (See the videos below)
You can also create a custom template in HTML & CSS without needing to make that Steam API call or database queries as they're already built into OpenLoad and there to serve you. If you're interested in making your own template, read the [URL="https://github.com/Svenskunganka/OpenLoad/wiki/Making-custom-templates"]Custom Template Instructions[/URL]
[B]How do I design my own templates?[/B]
Strictly through HTML & CSS and optionally Javascript/jQuery. For OpenLoad to work with your design, you have to include jQuery, preferably by Google's CDN.
Read the [URL="https://github.com/Svenskunganka/OpenLoad/wiki/Making-custom-templates"]Custom Template Instructions[/URL] page on GitHub.
[B]Features[/B]
• Fetches Player Info from Steam API.
• Steam Player Info Caching (Since Steam API is really slow, concurrent users name and avatar gets cached each time they join the server)
• Framework features, all the back-end you need is already in OpenLoad.
• Pre-made templates, simply install and use, no coding whatsoever required.
• Fetches DarkRP Money (Requires DarkRP to be running with MySQL data provider)
• Fetches Pointshop Points (Requires Pointshop to be running with MySQL data provider)
• Powered with AJAX calls (This means that the page contents such as images, music, etc is loaded whilst the back-end code is executed, instead of after)
• Garry's Mod ready Javascript functions
[B]Soil Template:[/B]
Credits:
[URL="https://www.youtube.com/user/Vindsvept"]Vindsvept[/URL] for composing the background music. Composition name: Vindsvept - Lake of Lights
[video=youtube;hfxl11_4Tms]http://www.youtube.com/watch?v=hfxl11_4Tms[/video]
[B]StrapQuery Template:[/B]
[video=youtube;ahnolV46Lz4]http://www.youtube.com/watch?v=ahnolV46Lz4[/video]
awesome work!
Great Job Man, gonna make a template for my server!
Looks great in your demo, but when I upload it to my webspace and try it out, I get stuck on "Loading data..."
man that looks good :dance:
I still don't understand what you could really do with this...
[QUOTE=Conradowatz_;44774710]Looks great in your demo, but when I upload it to my webspace and try it out, I get stuck on "Loading data..."[/QUOTE]
The reason this happens is because your not specifying any URL parameters. The index.php expects [B]?template=sometemplate&sid=1[/B]
[QUOTE=YourStalker;44775672]I still don't understand what you could really do with this...[/QUOTE]
What you do is you write your HTML markup, simply adding id="steamid" to the element you want to contain the SteamID, and id="playerimage" to the img element and OpenLoad replaces it for you, without coding any back-end or javascript at all.
absolutely beautiful, you have a perfect eye for design.
Wow that is helpful. I'll be sure to use it :) thanks!
[QUOTE=Svenskunganka;44776768]The reason this happens is because your not specifying any URL parameters. The index.php expects [B]?template=sometemplate#steamid#map#serverip[/B]
[/QUOTE]
I did specify these. I have two webspaces. One with allow_url_fopen true and one with false. Both have the same problem. Try it out for yourself:
[URL="http://mrzylinder3000.byethost7.com/openload/index.php?template=strapquery#76561198071802939#ttt_minecraft_b5#85.131.220.122:27015"]first[/URL]
[URL="http://ni190930_2.vweb20.nitrado.net/openload/index.php?template=strapquery#76561198071802939#ttt_minecraft_b5#85.131.220.122:27015"]second[/URL]
I would be very happy if you could help me with this problem, because I realy like the idea of OpenLoad and want it on my server :).
[QUOTE=Conradowatz_;44780124]I did specify these. I have two webspaces. One with allow_url_fopen true and one with false. Both have the same problem. Try it out for yourself:
[URL="http://mrzylinder3000.byethost7.com/openload/index.php?template=strapquery#76561198071802939#ttt_minecraft_b5#85.131.220.122:27015"]first[/URL]
[URL="http://ni190930_2.vweb20.nitrado.net/openload/index.php?template=strapquery#76561198071802939#ttt_minecraft_b5#85.131.220.122:27015"]second[/URL]
I would be very happy if you could help me with this problem, because I realy like the idea of OpenLoad and want it on my server :).[/QUOTE]
I can see the AJAX returns a 500 internal error, and I can see I forgot to change a parameter on this line: [url]https://github.com/Svenskunganka/OpenLoad/blob/master/src/core/ajax.php#L33[/url]
Change line #33 in file [B]src/core/ajax.php[/B] to:
[CODE]$ol = new OpenLoad($sq, $communityid, $steam_api_key, $mapname);[/CODE]
(basically, change $sc to $sq on the first parameter.)
I'll push the fix right away.
[QUOTE=Svenskunganka;44780160]I can see the AJAX returns a 500 internal error, and I can see I forgot to change a parameter on this line: [url]https://github.com/Svenskunganka/OpenLoad/blob/master/src/core/ajax.php#L33[/url]
Change line #33 in file [B]src/core/ajax.php[/B] to:
[CODE]$ol = new OpenLoad($sq, $communityid, $steam_api_key, $mapname);[/CODE]
(basically, change $sc to $sq on the first parameter.)
I'll push the fix right away.[/QUOTE]
Thank you for your fast reply, but it still doesn't seem to work. I have to go now, but maybe we can chat in a few hours?
[QUOTE=Conradowatz_;44780225]Thank you for your fast reply, but it still doesn't seem to work. I have to go now, but maybe we can chat in a few hours?[/QUOTE]
Have you edited the [B]src/config/config.inc.php[/B] file yet? Works fine on my end.
[QUOTE=Svenskunganka;44780243]Have you edited the [B]src/config/config.inc.php[/B] file yet? Works fine on my end.[/QUOTE]
Yes, pasted my Steam API key in it etc. Do I have to rename it or something? I don't want to spam this theard, so should I add you in Steam?
[QUOTE=Conradowatz_;44780274]Yes, pasted my Steam API key in it etc. Do I have to rename it or something? I don't want to spam this theard, so should I add you in Steam?[/QUOTE]
It seems like you have allow_url_fopen to false on both hosts. Run a php_info(); on both and see what you get.
[QUOTE=Svenskunganka;44782041]It seems like you have allow_url_fopen to false on both hosts. Run a php_info(); on both and see what you get.[/QUOTE]
[URL="http://mrzylinder3000.byethost7.com/phpinfo.php"]Output[/URL] here is it enabled
[URL="http://ni190930_2.vweb20.nitrado.net/phpinfo.php"]second output[/URL] here it is disabled and the php version is not the latest.
Hope that helps.
The only problem I've been encountering so far, is that the clients connect way too fast for the loading screen to actually load. :v:
Any idea on how to improve loading times?
EDIT:
"It's not possible to speed this process up, due to Steam's API being as slow as they are. Might be able to make some improvements and maybe add a workload that fetches the Steam API data later. I will add a caching service aswell."
In index.php, add this to the first line on mirror 1:
[CODE]error_reporting(E_ALL | E_STRICT);[/CODE]
Reload the page and press F12 (Chrome) and go to the Console, you should get an error message in there about what the actual problem is.
[QUOTE=Svenskunganka;44782548]In index.php, add this to the first line on mirror 1:
[CODE]error_reporting(E_ALL | E_STRICT);[/CODE]
Reload the page and press F12 (Chrome) and go to the Console, you should get an error message in there about what the actual problem is.[/QUOTE]
Its just this error:
[QUOTE]POST [url]http://mrzylinder3000.byethost7.com/openload/src/core/ajax.php[/url] 500 (Internal Server Error) jquery.min.js:4
send jquery.min.js:4
n.extend.ajax jquery.min.js:4
(anonymous function) openload.js:14
j jquery.min.js:2
k.fireWith jquery.min.js:2
n.extend.ready jquery.min.js:2
K jquery.min.js:2
[/QUOTE]
[QUOTE=Conradowatz_;44782652]Its just this error:[/QUOTE]
That 500 (Internal Server Error) should be replaced with the actual error with [B]error_reporting(E_ALL | E_STRICT)[/B].
Try adding [B]ini_set('display_errors', 1);[/B] aswell.
This time, to the ajax.php.
A huge update coming soon:
• Steam API Data caching (Since Steam's API is so slow, players data is cached upon joining; Steam Profile Picture and Steam Name. The cache is updated at each connect but does not have an impact on loading times. I have implemented this due to players loading into the game faster than the loading URL will load all data)
• The [B]#steamid#map#serverip[/B] URL parameters will be ignored in the next patch, OpenLoad will take advantage of the JS function [B]GameDetails[/B] instead which Garry's Mod invokes upon connect.
• Major improvements to the StrapQuery template, also finishing it off completely.
• Installation instructions added - [[URL="https://github.com/Svenskunganka/OpenLoad/wiki/Installation"]Link[/URL]] (Will be updated along with the next update)
• Custom Template instructions added - [[URL="https://github.com/Svenskunganka/OpenLoad/wiki/Making-custom-templates"]Link[/URL]]
Update in action:
[video=youtube;ahnolV46Lz4]http://www.youtube.com/watch?v=ahnolV46Lz4[/video]
Will push it in a moment.
EDIT: Pushed, files are live. Make sure you update!
I thank you for all your help, but it seems that my problem is related to my hoster. I will try a driffrent setup soon and hopefully it will work there.
[QUOTE=Conradowatz_;44788695]I thank you for all your help, but it seems that my problem is related to my hoster. I will try a driffrent setup soon and hopefully it will work there.[/QUOTE]
If you want, I can host a copy for you on my webspace? PM me a copy of your config.inc.php file and I'll reply with a URL you can use until you get everything sorted out.
[QUOTE=Svenskunganka;44788744]If you want, I can host a copy for you on my webspace? PM me a copy of your config.inc.php file and I'll reply with a URL you can use until you get everything sorted out.[/QUOTE]
Thank you, but i can use my old loading screen until then. If I don't get it to work I will PM you. :)
Thanks for all your great work, this is awesome :3
This looks amazing, I hope you keep working on it, maybe release some templates that people can use if they want?
[QUOTE=Ducky3426;44804762]This looks amazing, I hope you keep working on it, maybe release some templates that people can use if they want?[/QUOTE]
Yeah I'm constantly working on improvements.
It's open-source and hosted on GitHub, so you are free to create a template too, if you feel like it.
Now, I pray to god people stop using crappy loading screens made on Paint with stupidly loud music.
Thanks!
You should switch from Mysqli to PDO.
Sorry, you need to Log In to post a reply to this thread.