AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   WebLync 0.0.13 - A MOTD redirection service (https://forums.alliedmods.net/showthread.php?t=298458)

Neuro Toxin 06-13-2017 03:27

WebLync 0.0.13 - A MOTD redirection service
 
10 Attachment(s)
WebLync v0.0.13
Web based MOTD commands

About
Recent CS:GO updates have played havoc on plugins that distribute web based commands via the games built in MOTD window such as Web Shortcuts. WebLync works around this issue restoring full functionality allowing server operators to have working web MOTD windows again.

Features
- Completely web based configuration
- Server / Global link configurations
- New links download on map change
- Admins can send links to players
- Link Google AdSense to your redirection page

Installation
1. Install the latest version of Dynamic
2. Install the latest SteamWorks (waterfall)
3. Copy the contents of the attached zip to your servers /csgo/ folder
4. Restart your game server
5. Connect to your game server
6. Type !weblync into the chat of your game server
7. Wait for the WebLync configuration website to load
8. Sign into the WebLync website via Steam
9. Follow the site instructions `Register New Server`
10. Click Links to configure your server links
11. type !weblyncsyncserver into chat to refresh the servers configured links.

Configuration
Once you have installed WebLync and ran it for the first time you can configure it's generic settings found in `cfg/sourcemod/weblync.cfg`
  • ServerKey - The ServerKey used to obtain and process client link handling. You should not change this value.
  • ShowMessages - Controls if clients will see generic WebLync messages
  • ForceEnableMotd - Forces the server to set `sv_disable_motd` to 0
  • QueryClientMotdStatus - Forces server to check if clients have `cl_disablehtmlmotd` set to 0

Commands
- sm_weblync (WebLync administration menu)
- sm_weblyncregserver (Register server with WebLync API)
- sm_weblyncsyncserver (Syncs new commands to server)
- sm_sendlink <target> <linkname> <args> (Sends a link to a specified client/target group)

GitHub

Neuro Toxin 06-13-2017 03:28

Re: WebLync 0.0.1
 
Features awaiting implementation
Spoiler


Changes
Spoiler


Server Links VS Global Links
Spoiler


Advertising
Spoiler


Creating Custom URL Replacement Parameters
Spoiler

Czar_ 06-13-2017 04:23

Re: WebLync 0.0.1 - A new working WebShortcuts
 
Nice Release! :bacon!:

Neuro Toxin 06-13-2017 04:47

Re: WebLync 0.0.1 - A new working WebShortcuts
 
Thanks!

I'm very proud of the website after 3 days of solid development with one arm.

good_live 06-13-2017 05:02

Re: WebLync 0.0.1 - A new working WebShortcuts
 
Why do you actually need a proprietary web part that's displaying ads?
I can't really see any advantage compared to WebShortcuts?

Neuro Toxin 06-13-2017 05:23

Re: WebLync 0.0.1 - A new working WebShortcuts
 
Currently the window.open javascript function remembers the first opened url of a domain in CSGO. The redirection page takes the same url and redirects after the fact solving the problem.

I've put one ad on the redirect because this solution requires a proper middle man http api which isn't free to run.

Edit: I also think the web config management is much better than notepad

_GamerX 06-13-2017 10:21

Re: WebLync 0.0.1 - A new working WebShortcuts
 
Good job ! :wink:

asdfxD 06-13-2017 11:02

Re: WebLync 0.0.1 - A new working WebShortcuts
 
great plugin but redirection in X seconds? rly? possible to remove this?

Neuro Toxin 06-13-2017 16:32

Re: WebLync 0.0.1 - A new working WebShortcuts
 
Quote:

Originally Posted by asdfxD (Post 2528346)
great plugin but redirection in X seconds? rly? possible to remove this?

Hmm. Would u pay a couple of bucks to remove it forever?

Edit/note: the redirector page would load and redirect instead of a countdown / ad

Neuro Toxin 06-13-2017 22:42

Re: WebLync 0.0.2 - A new working WebShortcuts
 
Version 0.0.2
- Added Native void WebLync_OpenUrl(int client, const char[] url);
- Improved error logging
- Added client error logging to link request errors
- Added include files for SteamWorks and Dynamic (whops lol)

vortex. 06-14-2017 00:02

Re: WebLync 0.0.2 - A new working WebShortcuts
 
Good job! Thanks.

Deven 06-14-2017 00:34

Re: WebLync 0.0.2 - A new working WebShortcuts
 
Very cool thanks for this.

Just one bug, Cannot use the link command name from another server for example !rules cannot be added to multiple servers it says in red text.
Quote:

`Link Command` `rules` is already registered
"vip" as a link name cannot be added same results as above quote i have not added any vip links at all.

Rodya 06-14-2017 00:42

Re: WebLync 0.0.2 - A new working WebShortcuts
 
I have 2 servers,but I can't create the same link
http://joxi.ru/D2P4eW7spX6Q62.jpg

Neuro Toxin 06-14-2017 01:30

Re: WebLync 0.0.2 - A new working WebShortcuts
 
Ok, fixing now....

Neuro Toxin 06-14-2017 01:32

Re: WebLync 0.0.2 - A new working WebShortcuts
 
Ok, all fixed, thanks for the report!

Neuro Toxin 06-14-2017 03:12

Re: WebLync 0.0.3 - A new working WebShortcuts
 
Version 0.0.3
- Added native void WebLync_RegisterUrlParam(const char[] paramname, WebLyncGetUrlParam callback);
- Added native void WebLync_UnregisterUrlParam(const char[] paramname);
- Added typedef WebLyncGetUrlParam = function bool (int client, const char[] paramname, char[] buffer, int maxlength);
- Stopped ServerId leaking in client console

I'll provide an example of `WebLync_RegisterUrlParam` later on.

KnoXviLLe 06-14-2017 06:17

Re: WebLync 0.0.3 - A new working WebShortcuts
 
If you have 2+ server, not useful.Login site,Register servers etc... Bla bla

Neuro Toxin 06-14-2017 06:26

Re: WebLync 0.0.3 - A new working WebShortcuts
 
I dont understand what you're saying.

You can register two servers to the same link set. Once the first is registered. Click `Registration Command` and put the command in the second server.

I still waiting to write a duplicate links option also.

KnoXviLLe 06-14-2017 06:36

Re: WebLync 0.0.3 - A new working WebShortcuts
 
Quote:

Originally Posted by Neuro Toxin (Post 2528548)
I dont understand what you're saying.

You can register two servers to the same link set. Once the first is registered. Click `Registration Command` and put the command in the second server.

I still waiting to write a duplicate links option also.

Customers etc.

Neuro Toxin 06-14-2017 06:52

Re: WebLync 0.0.3 - A new working WebShortcuts
 
Eh. Customers.

It's to hard for noobs.

Blowst 06-14-2017 07:13

Re: WebLync 0.0.3 - A new working WebShortcuts
 
Sorry, but I couldn't get the Key of these works, so i got a question

Work around for broken web shortcut. so nice, but people should register his server and links...

Was it nessesary? or Just for features of the plugin?

Franc1sco 06-14-2017 08:07

Re: WebLync 0.0.3 - A new working WebShortcuts
 
Trying to use WebLync_OpenUrl in my webshortcuts plugin, it give me these errors:
Code:

L 06/14/2017 - 14:01:11: [SM] Exception reported: Unable to access dynamic handle -1
L 06/14/2017 - 14:01:11: [SM] Blaming: dynamic.smx
L 06/14/2017 - 14:01:11: [SM] Call stack trace:
L 06/14/2017 - 14:01:11: [SM]  [0] ThrowNativeError
L 06/14/2017 - 14:01:11: [SM]  [1] Line 356, ..\dynamic.sp::_Dynamic_IsValid
L 06/14/2017 - 14:01:11: [SM]  [2] Line 117, ..\dynamic/system/methodmaps/dynamicobject.sp::DynamicObject.IsValid
L 06/14/2017 - 14:01:11: [SM]  [3] Line 512, ..\dynamic.sp::_Dynamic_GetMemberCount
L 06/14/2017 - 14:01:11: [SM]  [4] Line 647, ..\dynamic/system/natives.sp::Native_Dynamic_GetMemberCount
L 06/14/2017 - 14:01:11: [SM]  [6] Dynamic_GetMemberCount
L 06/14/2017 - 14:01:11: [SM]  [7] Line 73, E:\franugcompiler\include\dynamic/methodmaps/dynamic.inc::Dynamic.MemberCount.get
L 06/14/2017 - 14:01:11: [SM]  [8] Line 380, E:\Github\WebShortcuts\addons\sourcemod\scripting\weblync.sp::AddThirdPartyUrlReplacements
L 06/14/2017 - 14:01:11: [SM]  [9] Line 302, E:\Github\WebShortcuts\addons\sourcemod\scripting\weblync.sp::DisplayWebLyncUrl
L 06/14/2017 - 14:01:11: [SM]  [10] Line 472, E:\Github\WebShortcuts\addons\sourcemod\scripting\weblync.sp::Native_WebLync_OpenUrl
L 06/14/2017 - 14:01:11: [SM]  [12] WebLync_OpenUrl
L 06/14/2017 - 14:01:11: [SM]  [13] Line 170, E:\Github\WebShortcuts\addons\sourcemod\scripting\webshortcuts_csgo.sp::OnSay

Code:
Spoiler

ThatKidWhoGames 06-14-2017 08:11

Re: WebLync 0.0.2 - A new working WebShortcuts
 
My TF2 servers have had the issue that when using Web Shortcuts (Redux), it redirects to the same page that was there before. By my understanding, does this fix that issue? Thanks btw for this!

Neuro Toxin 06-14-2017 08:24

Re: WebLync 0.0.3 - A new working WebShortcuts
 
@ Franc1sco

Wait, I think I see the bug, lets talk in Steam

@ ThatKidWhoGames

Correct

AkhtiaR 06-14-2017 08:53

Re: WebLync 0.0.3 - A new working WebShortcuts
 
Everything works fine, i translated the plugin into Russian language :)
The only thing I did not like was the delay before moving to the link and advertising, but I understand about advertising, http api isn't free to run. Anyway, keep up the good work!

Neuro Toxin 06-14-2017 09:01

Re: WebLync 0.0.4 - A new working WebShortcuts
 
Version 0.0.4
- Patched WebLync_OpenUrl

Neuro Toxin 06-14-2017 09:02

Re: WebLync 0.0.3 - A new working WebShortcuts
 
Quote:

Originally Posted by AkhtiaR (Post 2528590)
Everything works fine, i translated the plugin into Russian language :)
The only thing I did not like was the delay before moving to the link and advertising, but I understand about advertising, http api isn't free to run. Anyway, keep up the good work!

I'll add a Buy Premium button tomorrow...

Is $5AUD fair for instant redirect / no ad forever for all servers on the steam account?


Edit:

I'll add a translation file tomorrow and give u a premium account when/if I add the feature.

AkhtiaR 06-14-2017 09:32

Re: WebLync 0.0.3 - A new working WebShortcuts
 
Quote:

Originally Posted by Neuro Toxin (Post 2528593)
Is $5AUD fair for instant redirect / no ad forever for all servers on the steam account?

I think it's fair.

Quote:

Originally Posted by Neuro Toxin (Post 2528593)
Edit:

I'll add a translation file tomorrow and give u a premium account when/if I add the feature.

Will be great! Thanks!

shanapu 06-14-2017 09:50

Re: WebLync 0.0.3 - A new working WebShortcuts
 
Quote:

Originally Posted by Neuro Toxin (Post 2528273)
...
I've put one ad on the redirect because this solution requires a proper middle man http api which isn't free to run.
...

Quote:

Originally Posted by AkhtiaR (Post 2528590)
..., but I understand about advertising, http api isn't free to run.

Quote:

Originally Posted by Neuro Toxin (Post 2528593)
...
Is $5AUD fair for instant redirect / no ad forever for all servers on the steam account?
...

How about releasing the api site so people can host it for themself?

KnoXviLLe 06-14-2017 10:28

Re: WebLync 0.0.3 - A new working WebShortcuts
 
Quote:

Originally Posted by shanapu (Post 2528605)
How about releasing the api site so people can host it for themself?

No.Because he want to more money.I think only 5-6 people use this tokentrash.

ThatKidWhoGames 06-14-2017 11:21

Re: WebLync 0.0.3 - A new working WebShortcuts
 
Quote:

Originally Posted by Neuro Toxin (Post 2528583)
@ Franc1sco

Wait, I think I see the bug, lets talk in Steam

@ ThatKidWhoGames

Correct

Thanks!

Neuro Toxin 06-14-2017 19:12

Re: WebLync 0.0.3 - A new working WebShortcuts
 
Quote:

Originally Posted by KnoXviLLe (Post 2528613)
No.Because he want to more money.I think only 5-6 people use this tokentrash.

Lmao. Just because I haven't purchased a domain yet this doesn't mean the cost centers are joined.

good_live 06-14-2017 21:26

Re: WebLync 0.0.3 - A new working WebShortcuts
 
Quote:

Originally Posted by Neuro Toxin (Post 2528745)
Lmao. Just because I haven't purchased a domain yet this doesn't mean the cost centers are joined.

Quote:

Originally Posted by shanapu (Post 2528605)
How about releasing the api site so people can host it for themself?


Neuro Toxin 06-14-2017 23:36

Re: WebLync 0.0.5 - A working MOTD redirection service for CS:GO
 
Just pay $5 for my hard work when I've completed premium accounts.

Neuro Toxin 06-14-2017 23:38

Re: WebLync 0.0.5 - A working MOTD redirection service for CS:GO
 
Version 0.0.5
- WebLync_OpenUrl no longer requires server registration

This means server operators using Web Shortcuts no longer require server registration :)

SlavON 06-16-2017 03:05

Re: WebLync 0.0.5 - A working MOTD redirection service for CS:GO
 
my site works, but in WebLync:
Object not found!
....
Error 404

Neuro Toxin 06-16-2017 04:01

Re: WebLync 0.0.5 - A working MOTD redirection service for CS:GO
 
Are you also using Web Shortcuts?

If so:

Whats the end point URL?

If not:

Can you PM your SteamId and ServerId?
What's the command you're using?

SlavON 06-16-2017 10:20

Re: WebLync 0.0.5 - A working MOTD redirection service for CS:GO
 
Quote:

Originally Posted by Neuro Toxin (Post 2529058)
Are you also using Web Shortcuts?

If so:

Whats the end point URL?

If not:

Can you PM your SteamId and ServerId?
What's the command you're using?

if I understand correctly:
Link Command !rules
URL http://**********/sourcebans/{rules}
in chat: !rules
my SteamId STEAM_1:1:164487624
ServerId 76561198153590610

Ejziponken 06-16-2017 10:38

Re: WebLync 0.0.5 - A working MOTD redirection service for CS:GO
 
Just waiting for everyone to add advertisements in their own plugins now. Also maybe mention the advertisement in the mainthread so people know what they are signing up for by downloading this.

Skipping this.

Ejziponken 06-16-2017 10:45

Re: WebLync 0.0.1 - A new working WebShortcuts
 
Quote:

Originally Posted by Neuro Toxin (Post 2528273)
Currently the window.open javascript function remembers the first opened url of a domain in CSGO. The redirection page takes the same url and redirects after the fact solving the problem.

I've put one ad on the redirect because this solution requires a proper middle man http api which isn't free to run.

Edit: I also think the web config management is much better than notepad

I can host my own if you upload the files. :)


All times are GMT -4. The time now is 02:07.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.