Upvote Upvoted 83 Downvote Downvoted
1 2
Add IRC to your TF2
posted in Customization
31
#31
-7 Frags +

THERE IS STILL HOPE FOR IRC TF2.

ALL PRAISE BE TO SEZCO.

THERE IS STILL HOPE FOR IRC TF2.

ALL PRAISE BE TO SEZCO.
32
#32
6 Frags +

Remove all previous work on tf2 and reread the first post.

MasterKuni figured out a way to revamp the news widget in a way that will open up windows in the steam community overlay (Shift+Tab). Steam overlay also has flash, so we can do way more than we could with motd windows.

Here's how this thing works:

In the motd_entries file, if you change the last_request_time to a date that will never be reached, the file doesn't update. So, we now have a window on the main menu that can be dedicated to IRC, streams, and more. We can also add custom images/text to the news widget, so that's sick.

One thing to note. If you have a custom cfg folder, make sure to either delete motd_entries or change motd_entries with this zip file

[u][size=16][b]Remove all previous work on tf2 and reread the first post.[/b][/size][/u]

MasterKuni figured out a way to revamp the news widget in a way that will open up windows in the steam community overlay (Shift+Tab). Steam overlay also has flash, so we can do way more than we could with motd windows.

Here's how this thing works:

In the motd_entries file, if you change the last_request_time to a date that will never be reached, the file doesn't update. So, we now have a window on the main menu that can be dedicated to IRC, streams, and more. We can also add custom images/text to the news widget, so that's sick.

One thing to note. If you have a custom cfg folder, make sure to either delete motd_entries or change motd_entries with [url=https://www.dropbox.com/s/v4yt0gov58g5fyq/motd_entries.zip]this zip file[/url]
33
#33
3 Frags +

Note to advanced users: Anything you put in the second pair of quotes after "url" will be sent to the URL bar of the Steam overlay when you click the button. What we're doing here is putting "javascript:

" to tell the browser to execute the link as javascript.  Another neat trick is that you can put "steam://connect/[ip]" and clicking the link will connect you to a server.

Have fun.
Note to advanced users: Anything you put in the second pair of quotes after "url" will be sent to the URL bar of the Steam overlay when you click the button. What we're doing here is putting "javascript:[code goes here]" to tell the browser to execute the link as javascript. Another neat trick is that you can put "steam://connect/[ip]" and clicking the link will connect you to a server.

Have fun.
34
#34
0 Frags +

It doesn't seem to be working out for me. For reference, i use evehud. I don't have a current motd_entries on my custom folder, so i went ahead and deleted the one from /tf/cfg and put the one from the OP. Once i turn the game on, the window is just not there. By deleting the motd_entries again and starting the game, the window will now be there, but it's the default one of the game.

It doesn't seem to be working out for me. For reference, i use evehud. I don't have a current motd_entries on my custom folder, so i went ahead and deleted the one from /tf/cfg and put the one from the OP. Once i turn the game on, the window is just not there. By deleting the motd_entries again and starting the game, the window will now be there, but it's the default one of the game.
35
#35
0 Frags +

I had this problem when I first tested it out but it was a bit different. My file kept overwriting because I was changing the motd_entries file in the tf/cfg and not the tf/custom.
I never deleted the tf/cfg motd_entries file, but it worked when the tf/custom file was changed. Try making a motd_entries file in your tf/custom, and not touching the one in your tf/cfg. That's how I got my news feed to stop overwriting.

Edit: I only have motd_entries in my tf/custom and not my root tf/cfg. My bad.

I had this problem when I first tested it out but it was a bit different. My file kept overwriting because I was changing the motd_entries file in the tf/cfg and not the tf/custom.
I never deleted the tf/cfg motd_entries file, but it worked when the tf/custom file was changed. Try making a motd_entries file in your tf/custom, and not touching the one in your tf/cfg. That's how I got my news feed to stop overwriting.

Edit: I only have motd_entries in my tf/custom and not my root tf/cfg. My bad.
36
#36
0 Frags +

Right, so what i just tested was:

- Leave the original motd_entries file in /tf/cfg
- Create a motd_entries file in /tf/custom/custom/cfg/

As soon as i open the game the window is not there.

Right, so what i just tested was:

- Leave the original motd_entries file in /tf/cfg
- Create a motd_entries file in /tf/custom/custom/cfg/

As soon as i open the game the window is not there.
37
#37
0 Frags +

Does evehud hide the menu buttons? I know my manu button is invisible and I have to click blindly for that widget button.

Does evehud hide the menu buttons? I know my manu button is invisible and I have to click blindly for that widget button.
38
#38
1 Frags +

It's not, cause when i just leave the default motd file and don't put anywhere the new file the menu appears in game, just not with the changes..

It's not, cause when i just leave the default motd file and don't put anywhere the new file the menu appears in game, just not with the changes..
39
#39
3 Frags +

I've tested every way possible with motd_entries

One "motd_entries" in tf/cfg = works
One "motd_entries" in tf/custom = works
Two "motd_entries" in tf/cfg & tf/custom = Works if the edited file is tf/custom
Two "motd_entries" in tf/cfg & custom = Doesnt work if the edited file is tf/cfg

I've also made a video to make it easier.

http://youtu.be/ac2L0vP11Tw

I've tested every way possible with motd_entries

One "motd_entries" in tf/cfg = works
One "motd_entries" in tf/custom = works
Two "motd_entries" in tf/cfg & tf/custom = Works if the edited file is tf/custom
Two "motd_entries" in tf/cfg & custom = Doesnt work if the edited file is tf/cfg

I've also made a video to make it easier.

[youtube]http://youtu.be/ac2L0vP11Tw[/youtube]
40
#40
1 Frags +

Please keep in mind we just discovered this yesterday and are working hard to make it presentable. Ideally we'll soon either have a collection of files you can drop-in without fiddling inside the files, or if there's enough demand I'll make an installer that will generate and install the file for you.

Please keep in mind we just discovered this yesterday and are working hard to make it presentable. Ideally we'll soon either have a collection of files you can drop-in without fiddling inside the files, or if there's enough demand I'll make an installer that will generate and install the file for you.
41
#41
0 Frags +

After playing around with it for a while more, it seems to be working now which am quite happy about.

Is there a way to make the pages open in new tabs instead of new windows ?

I found a lot of code that seems to say that yes it's possible, but not sure if it would work as i know nothing about it.

<head runat="server">
    <title></title>
   <script type="text/javascript">
       function openinnewTab() {
           var win = window.open("http://asp.net", '_blank');
           win.focus();
       }
   </script>
</head>

<div>
  <asp:Button ID="btn_newtab" OnClientClick="openinnewTab();" runat="server"  Text="asp.net" />
    </div>
After playing around with it for a while more, it seems to be working now which am quite happy about.

Is there a way to make the pages open in new tabs instead of new windows ?

I found a lot of code that seems to say that yes it's possible, but not sure if it would work as i know nothing about it.

[code]<head runat="server">
<title></title>
<script type="text/javascript">
function openinnewTab() {
var win = window.open("http://asp.net", '_blank');
win.focus();
}
</script>
</head>

<div>
<asp:Button ID="btn_newtab" OnClientClick="openinnewTab();" runat="server" Text="asp.net" />
</div>[/code]
42
#42
huds.tf
1 Frags +

So this is my motd_entries

"motd_entries"
{
	"last_request_time"		"2099-05-05 21:40:25"
	"last_request_language"		"english"
	"1"
	{
		"post_time"		"2014-05-05 00:00:00"
		"title_english"		"Custom Links"
		"text_english"		"Test"
		"url"		"javascript:window.location.assign('http://tf2center.com');
								window.open('http://irc.lc/gamesurge/tf2mix/', 'tf2mix');
								window.open('http://irc.lc/geeksirc/tf2.pug.na', 'pugna');"
		"image"		""
		"header_type"		"2"
		"header_english"		"News"
	}
	"2"
	{
		"post_time"		"2014-05-05 00:00:00"
		"title_english"		"huds.tf"
		"text_english"		"Test"
		"url"		"huds.tf"
		"image"		""
		"header_type"		"2"
		"header_english"		"News"
	}
}

I've got 2 entries so I can click through and pick the one I want to use. However, if I add a third entry, it will not appear. Only the first 2 entries will appear.

Any ideas why, anybody?

So this is my motd_entries
[code]"motd_entries"
{
"last_request_time" "2099-05-05 21:40:25"
"last_request_language" "english"
"1"
{
"post_time" "2014-05-05 00:00:00"
"title_english" "Custom Links"
"text_english" "Test"
"url" "javascript:window.location.assign('http://tf2center.com');
window.open('http://irc.lc/gamesurge/tf2mix/', 'tf2mix');
window.open('http://irc.lc/geeksirc/tf2.pug.na', 'pugna');"
"image" ""
"header_type" "2"
"header_english" "News"
}
"2"
{
"post_time" "2014-05-05 00:00:00"
"title_english" "huds.tf"
"text_english" "Test"
"url" "huds.tf"
"image" ""
"header_type" "2"
"header_english" "News"
}
}[/code]

I've got 2 entries so I can click through and pick the one I want to use. However, if I add a third entry, it will not appear. Only the first 2 entries will appear.

Any ideas why, anybody?
43
#43
2 Frags +
omniSo this is my motd_entries
(snip)

I've got 2 entries so I can click through and pick the one I want to use. However, if I add a third entry, it will not appear. Only the first 2 entries will appear.

Any ideas why, anybody?

I just tested this and it turns out you can't have more than 2 entries at exactly the same "post_time". Put the times of each successive entry with different timestamps (increment the seconds/days/whatever by 1 for each post) to make it work, like so:

"motd_entries"
{
	"last_request_time"		"2099-05-05 21:40:25"
	"last_request_language"		"english"
	"1"
	{
		"post_time"		"2014-05-05 00:00:01"
		"title_english"		"Custom Links"
		"text_english"		"Test"
		"url"		"javascript:window.location.assign('http://tf2center.com');
								window.open('http://irc.lc/gamesurge/tf2mix/', 'tf2mix');
								window.open('http://irc.lc/geeksirc/tf2.pug.na', 'pugna');"
		"image"		""
		"header_type"		"2"
		"header_english"		"News"
	}
	"2"
	{
		"post_time"		"2014-05-05 00:00:02"
		"title_english"		"huds.tf"
		"text_english"		"Test"
		"url"		"huds.tf"
		"image"		""
		"header_type"		"2"
		"header_english"		"News"
	}
        "3"
	{
		"post_time"		"2014-05-05 00:00:03"
		"title_english"		"whatever"
		"text_english"		"whatever"
		"url"		"whatever.com"
		"image"		""
		"header_type"		"2"
		"header_english"		"News"
	}
}
[quote=omni]So this is my motd_entries
[code](snip)[/code]

I've got 2 entries so I can click through and pick the one I want to use. However, if I add a third entry, it will not appear. Only the first 2 entries will appear.

Any ideas why, anybody?[/quote]

I just tested this and it turns out you can't have more than 2 entries at exactly the same "post_time". Put the times of each successive entry with different timestamps (increment the seconds/days/whatever by 1 for each post) to make it work, like so:

[code]"motd_entries"
{
"last_request_time" "2099-05-05 21:40:25"
"last_request_language" "english"
"1"
{
"post_time" "2014-05-05 00:00:01"
"title_english" "Custom Links"
"text_english" "Test"
"url" "javascript:window.location.assign('http://tf2center.com');
window.open('http://irc.lc/gamesurge/tf2mix/', 'tf2mix');
window.open('http://irc.lc/geeksirc/tf2.pug.na', 'pugna');"
"image" ""
"header_type" "2"
"header_english" "News"
}
"2"
{
"post_time" "2014-05-05 00:00:02"
"title_english" "huds.tf"
"text_english" "Test"
"url" "huds.tf"
"image" ""
"header_type" "2"
"header_english" "News"
}
"3"
{
"post_time" "2014-05-05 00:00:03"
"title_english" "whatever"
"text_english" "whatever"
"url" "whatever.com"
"image" ""
"header_type" "2"
"header_english" "News"
}
}[/code]
44
#44
0 Frags +

Maybe I just don't get it, but what is the benefit to just opening the webchat through the steam overlay webbrowser?

When I read the title I was hoping for something like this tbh: http://home.scarlet.be/~rt022830/steamirc.htm

Maybe I just don't get it, but what is the benefit to just opening the webchat through the steam overlay webbrowser?

When I read the title I was hoping for something like this tbh: [url=http://home.scarlet.be/~rt022830/steamirc.htm]http://home.scarlet.be/~rt022830/steamirc.htm[/url]
45
#45
0 Frags +

Is there a way for the news widget to open when you launch the game, rather than having to click on some kind of button?

slateMaybe I just don't get it, but what is the benefit to just opening the webchat through the steam overlay webbrowser?

When I read the title I was hoping for something like this tbh: http://home.scarlet.be/~rt022830/steamirc.htm

You can join pickup games while playing tf2. It´s convenient for single-monitor setups, I guess. But you could also have like a scrapbank website open similarly to the crafting menu, which is something I think would be another useful application for some people, you could put a link to the release page of a hud to check for updates, etc

Is there a way for the news widget to open when you launch the game, rather than having to click on some kind of button?

[quote=slate]Maybe I just don't get it, but what is the benefit to just opening the webchat through the steam overlay webbrowser?

When I read the title I was hoping for something like this tbh: [url=http://home.scarlet.be/~rt022830/steamirc.htm]http://home.scarlet.be/~rt022830/steamirc.htm[/url][/quote]


You can join pickup games while playing tf2. It´s convenient for single-monitor setups, I guess. But you could also have like a scrapbank website open similarly to the crafting menu, which is something I think would be another useful application for some people, you could put a link to the release page of a hud to check for updates, etc
46
#46
1 Frags +
La_maisonIs there a way for the news widget to open when you launch the game, rather than having to click on some kind of button?
slateMaybe I just don't get it, but what is the benefit to just opening the webchat through the steam overlay webbrowser?

When I read the title I was hoping for something like this tbh: http://home.scarlet.be/~rt022830/steamirc.htm

You can join a pickup games while playing tf2. It´s convenient for single-monitor setups, I guess. But you could also have like a scrapbank website open similarly to the crafting menu, which is something I think would be another useful application for some people, you could put a link to the release page of a hud to check for updates, etc

My testing revealed that the news widget only auto-opens when the top timestamp is old; and this causes the game to poll for new data, auto-open the widget, and re-write the timestamp. Since it re-writes this timestamp, it will not auto-open for subsequent game launches. I have not figured out an easy way around this.

[quote=La_maison]Is there a way for the news widget to open when you launch the game, rather than having to click on some kind of button?

[quote=slate]Maybe I just don't get it, but what is the benefit to just opening the webchat through the steam overlay webbrowser?

When I read the title I was hoping for something like this tbh: [url=http://home.scarlet.be/~rt022830/steamirc.htm]http://home.scarlet.be/~rt022830/steamirc.htm[/url][/quote]


You can join a pickup games while playing tf2. It´s convenient for single-monitor setups, I guess. But you could also have like a scrapbank website open similarly to the crafting menu, which is something I think would be another useful application for some people, you could put a link to the release page of a hud to check for updates, etc[/quote]

My testing revealed that the news widget only auto-opens when the top timestamp is old; and this causes the game to poll for new data, auto-open the widget, and re-write the timestamp. Since it re-writes this timestamp, it will not auto-open for subsequent game launches. I have not figured out an easy way around this.
47
#47
0 Frags +

Thanks! Huh, this is interesting. I just set the post_time of a motd_entries.txt inside custom/hud/cfg to something like year 2000, enabled write protection of this file and now it takes 0-10 seconds to pop up after launch, even when I restart tf2.

Don´t know if the file is anything unusual but here it is anyways:

"motd_entries"
{
	"last_request_time"		"2013-05-05 21:40:25"
	"last_request_language"		"english"
	"1"
	{
		"post_time"		"2000-05-05 00:00:00"
		"title_english"		"Custom Links"
		"text_english"		"Test"
		"url"		"javascript:window.location.assign('http://tf2center.com');
								window.open('http://irc.lc/gamesurge/tf2mix/', 'tf2mix');
								window.open('http://irc.lc/geeksirc/tf2.pug.na', 'pugna');"
		"image"		""
		"header_type"		"2"
		"header_english"		"News"
	}
	"2"
	{
		"post_time"		"2000-01-01 00:00:00"
		"title_english"		"huds.tf"
		"text_english"		"Test"
		"url"		"http://huds.tf"
		"image"		""
		"header_type"		"2"
		"header_english"		"News"
	}
}

Edit: seems like it doesn´t matter if it´s in ../tf/cfg/ or in a custom folder, as long as it´s write protected.

Thanks! Huh, this is interesting. I just set the post_time of a motd_entries.txt inside custom/hud/cfg to something like year 2000, enabled write protection of this file and now it takes 0-10 seconds to pop up after launch, even when I restart tf2.

Don´t know if the file is anything unusual but here it is anyways:

[code]"motd_entries"
{
"last_request_time" "2013-05-05 21:40:25"
"last_request_language" "english"
"1"
{
"post_time" "2000-05-05 00:00:00"
"title_english" "Custom Links"
"text_english" "Test"
"url" "javascript:window.location.assign('http://tf2center.com');
window.open('http://irc.lc/gamesurge/tf2mix/', 'tf2mix');
window.open('http://irc.lc/geeksirc/tf2.pug.na', 'pugna');"
"image" ""
"header_type" "2"
"header_english" "News"
}
"2"
{
"post_time" "2000-01-01 00:00:00"
"title_english" "huds.tf"
"text_english" "Test"
"url" "http://huds.tf"
"image" ""
"header_type" "2"
"header_english" "News"
}
}[/code]

Edit: seems like it doesn´t matter if it´s in ../tf/cfg/ or in a custom folder, as long as it´s write protected.
48
#48
3 Frags +

This feels like a kick in the nuts. They removed the buttons to scroll forward and backward in the newsbox.

This feels like a kick in the nuts. They removed the buttons to scroll forward and backward in the newsbox.
49
#49
4 Frags +

Yep, motd_entries only contains a single entry for the latest news item and the back/forward buttons are hosed. Considering this functionality has been untouched for years, the only reasonable explanation is that they're intentionally screwing us over with this change.

You can still do the modification, but only for a single newsitem. Well, it was nice while it lasted.

Yep, motd_entries only contains a single entry for the latest news item and the back/forward buttons are hosed. Considering this functionality has been untouched for years, the only reasonable explanation is that they're intentionally screwing us over with this change.

You can still do the modification, but only for a single newsitem. Well, it was nice while it lasted.
50
#50
0 Frags +
MasterKuniYep, motd_entries only contains a single entry for the latest news item and the back/forward buttons are hosed. Considering this functionality has been untouched for years, the only reasonable explanation is that they're intentionally screwing us over with this change. Well, it was nice for the month it lasted.

It could also be a mistake. They've had stuff like this happen. Another possibility is that they saw the potential for malice with phishing links or something. Did this happen tonight or last night?

[quote=MasterKuni]Yep, motd_entries only contains a single entry for the latest news item and the back/forward buttons are hosed. Considering this functionality has been untouched for years, the only reasonable explanation is that they're intentionally screwing us over with this change. Well, it was nice for the month it lasted.[/quote]
It could also be a mistake. They've had stuff like this happen. Another possibility is that they saw the potential for malice with phishing links or something. Did this happen tonight or last night?
51
#51
10 Frags +

Dropbox links are dead, anybody got a mirror? Would like to use this for pugme

Dropbox links are dead, anybody got a mirror? Would like to use this for pugme
52
#52
-17 Frags +

 

 
53
#53
-23 Frags +
deetrDropbox links are dead, anybody got a mirror? Would like to use this for pugme

Yeah definetly would be cool if someone had it and could upload it to a dropbox or somethin'

[quote=deetr]Dropbox links are dead, anybody got a mirror? Would like to use this for pugme[/quote]

Yeah definetly would be cool if someone had it and could upload it to a dropbox or somethin'
1 2
Please sign in through STEAM to post a comment.