Forums | MacLife

You are not logged in.

#26 2005-05-16 8:00 pm

Denny
Member
From: Orlando, FL
Registered: 2004-04-23
Posts: 28
Website

Re: Wolf ET Dashboard Widget?

Shortcut,

Send me an iChat about hosting.  That's what I do.  Catch me online and we can chat about what you need.

Take care,

Denny
denny24hrs

Offline

 

#27 2005-05-16 8:03 pm

Denny
Member
From: Orlando, FL
Registered: 2004-04-23
Posts: 28
Website

Re: Wolf ET Dashboard Widget?

By the way, great widget.  That was exactly my goal!  Of course, we have bigger goals now, but this is perfect.  I can now at moments notice see if people are online.

Thanks again!

Take care,

Denny

Offline

 

#28 2005-05-17 12:46 am

theshortcut
Member
Registered: 2005-05-16
Posts: 21

Re: Wolf ET Dashboard Widget?

allright, check out the updated widget here
you can now see all players names on the server along with their current xp.

let me know if you have any suggestions.


http://filmaudio.spymac.net/headphonesig.png

Offline

 

#29 2005-05-17 7:49 am

MajorMatt
Member
Registered: 2000-02-04
Posts: 1152

Re: Wolf ET Dashboard Widget?

Very excellent, theshortcut. All we need is a "connect" button and provided it refreshes, it would be perfect smile

Offline

 

#30 2005-05-17 9:36 am

zwei
Member
From: USA
Registered: 2005-04-25
Posts: 169

Re: Wolf ET Dashboard Widget?

let me know if you have any suggestions.

The "a" in MacAddict needs to be capitalized tongue 

excellent work man! Does it refresh automatically?

Offline

 

#31 2005-05-17 11:02 am

theshortcut
Member
Registered: 2005-05-16
Posts: 21

Re: Wolf ET Dashboard Widget?

the refresh issue is something i still need to work out. currently you need to hit cmd-r to refresh it. i can either put a refresh button on it (more amnesty friendly), or have it refresh whenever dashboard is activated. the connect button would be nice. i can easily put a button on that starts up ET, but forcing it to connect may be more difficult. i would also like to put an ip field on the back of the widget that allows you to choose which server you are watching. of course this would still be default... but then if you had any other servers you'd like to watch you can just pull out another instance of this widget.

also i am interested in joining you all. what are the requirements and whatever...

thanks again for all the positive feedback and ideas for the widget.


http://filmaudio.spymac.net/headphonesig.png

Offline

 

#32 2005-05-17 11:09 am

zwei
Member
From: USA
Registered: 2005-04-25
Posts: 169

Re: Wolf ET Dashboard Widget?

I personally would like to see it refresh every time you activate dashboard. Either way is OK though.

Offline

 

#33 2005-05-17 11:45 am

zwei
Member
From: USA
Registered: 2005-04-25
Posts: 169

Re: Wolf ET Dashboard Widget?

If anyone wants a different skin for their widget you can download my edited version HERE ...just right-click on the widget and choose "show package contents" ...then just drag the .png file into that directory and replace the original (may want to back it up if you ever plan on going back to the default)

here's what it looks like...

http://zwei.gotdns.com/pictures/MA_widgedit.jpg

Offline

 

#34 2005-05-17 1:54 pm

theshortcut
Member
Registered: 2005-05-16
Posts: 21

Re: Wolf ET Dashboard Widget?

nice one zwei.. i was thinking about incorporating the et logo similarly but got carried away with writing the code to get rid of all the annoying colorizing strings in peoples names


http://filmaudio.spymac.net/headphonesig.png

Offline

 

#35 2005-05-17 2:00 pm

zwei
Member
From: USA
Registered: 2005-04-25
Posts: 169

Re: Wolf ET Dashboard Widget?

theshortcut wrote:

nice one zwei.. i was thinking about incorporating the et logo similarly but got carried away with writing the code to get rid of all the annoying colorizing strings in peoples names

you can take that one if you want ...was that a custom PNG you made? ...or was that a sample png from the developer toolkit?

Offline

 

#36 2005-05-17 2:47 pm

theshortcut
Member
Registered: 2005-05-16
Posts: 21

Re: Wolf ET Dashboard Widget?

it was based off of the itunes widget.. just tore elements out of it and hue shifted


http://filmaudio.spymac.net/headphonesig.png

Offline

 

#37 2005-05-17 3:03 pm

zwei
Member
From: USA
Registered: 2005-04-25
Posts: 169

Re: Wolf ET Dashboard Widget?

gotcha ...hadn't even opened up the iTunes widget wink

Offline

 

#38 2005-05-19 1:07 pm

Altivec
I like fishy crackers
Moderator
From: Rat's Mouth, FL
Registered: 2002-01-27
Posts: 2358
Website

Re: Wolf ET Dashboard Widget?

I got the replacement iMac yesterday, and it looks like this one is going to hold up without dying again.  I'm still working on an alternate version of the widget that presently uses qstat to grab the server info.  I'll put it up somewhere once its ready.  The good thing about using qstat is that it can be used to query other gametypes.

Offline

 

#39 2005-05-19 6:23 pm

Shagz
Member
From: Behind You! BOO!
Registered: 2002-06-02
Posts: 82
Website

Re: Wolf ET Dashboard Widget?

Cool Widget!  big_smile  That should come in handy!  Thanks!

Offline

 

#40 2005-05-21 7:25 pm

theshortcut
Member
Registered: 2005-05-16
Posts: 21

Re: Wolf ET Dashboard Widget?

i am using gquery which also allows for certain other game types... i wrote the widget mostly for et right now though. altivec let me know if you could use any help. wouldn't mind working together with you. also i rewrote my widget to stretch to show and hide player stats similarly to the weather widget and i am working on including an ip box on the back to make the widget useful for other servers.


http://filmaudio.spymac.net/headphonesig.png

Offline

 

#41 2005-05-21 8:28 pm

[MA]Bait
Member
From: Kailua Kona, Hawaii
Registered: 2003-09-12
Posts: 15
Website

Re: Wolf ET Dashboard Widget?

Great Widget! Thanks be to theshortcut for sure. It's one that I'll use all the time, anyway I am going to nitpick a little bit. I think the window could be a little bigger as some maps (ie Super Gold Rush 2) don't fit all that well in there. Otherwise, SUPER.

Offline

 

#42 2005-05-23 12:54 pm

theshortcut
Member
Registered: 2005-05-16
Posts: 21

Re: Wolf ET Dashboard Widget?

Update: get version 0.4 here

Addressed in this update:
php script hosted at a faster and more reliable server
completely new appearance (slides open to show player stats)
autorefreshes upon showing dashboard
refresh button for use with amnesty or other 3rd party widget launchers
clicking the ET logo on the widget will autoconnect to the server
shows player ping
scrolling for player stats when the list is long

let me know what you think.

Last edited by theshortcut (2005-05-23 12:56 pm)


http://filmaudio.spymac.net/headphonesig.png

Offline

 

#43 2005-05-23 1:48 pm

zwei
Member
From: USA
Registered: 2005-04-25
Posts: 169

Re: Wolf ET Dashboard Widget?

EXCELLENT WORK!

I do have a suggestion though. I noticed you are using a terminal command to open WolfET and connect to the server. Below is a link to the same command, but embedded in an applescript app. It will do the same thing, but it doesn't require terminal to launch. You can open it up in script editor to check out the code if you like.

http://wolf.clanmacaddict.com/downloads/MA|WolfET.zip

Widgets can call applescripts directly too, so i'm sure there is a way you could get the widget to connect to whatever server you have set in the prefs. If you'd like help with applescript just let me know. Hope this helps.

Offline

 

#44 2005-05-23 3:18 pm

theshortcut
Member
Registered: 2005-05-16
Posts: 21

Re: Wolf ET Dashboard Widget?

yeah.. i saw in another thread that you put this applescript together zwei... i am still playing around with the connect code. the applescript is basically just calling a terminal command as well, and widgets *should* be able to run unix commands like the one called in your script. for some reason dashboard isn't liking my code to call the unix command. as far as i know the code should look like this:
widget.system("/bin/sh /Applications/Wolfenstein\\ ET/Wolfenstein\\ ET.app/Contents/MacOS/Wolfenstein\\ ET +connect 128.242.54.116", null);
however this isn't doing anything. i have even tried doing it through applescript, which would be more like:
widget.system("/usr/bin/osascript -e 'do shell script \"/Applications/Wolfenstein\\ ET/Wolfenstein\\ ET.app/Contents/MacOS/Wolfenstein\\ ET +connect 128.242.54.116\"'", null);
neither are working for me. if you have any bright ideas let me know

ps. my download link above now is linked to a version that does not launch terminal

Did you try leaving off /bin/sh and launching WolfET directly?

Last edited by theshortcut (2005-05-23 3:25 pm)


http://filmaudio.spymac.net/headphonesig.png

Offline

 

#45 2005-05-23 4:23 pm

DarkWolf2016
Member
From: PA
Registered: 2005-01-10
Posts: 61

Re: Wolf ET Dashboard Widget?

This is probably a stupid question but im assuming this thing is mac only or can it work for a PC?


http://miniprofile.xfire.com/bg/sf/type/0/darkwolf2016.png

Offline

 

#46 2005-05-23 4:27 pm

zwei
Member
From: USA
Registered: 2005-04-25
Posts: 169

Re: Wolf ET Dashboard Widget?

theshortcut wrote:

yeah.. i saw in another thread that you put this applescript together zwei... i am still playing around with the connect code. the applescript is basically just calling a terminal command as well, and widgets *should* be able to run unix commands like the one called in your script. for some reason dashboard isn't liking my code to call the unix command. as far as i know the code should look like this:
widget.system("/bin/sh /Applications/Wolfenstein\\ ET/Wolfenstein\\ ET.app/Contents/MacOS/Wolfenstein\\ ET +connect 128.242.54.116", null);
however this isn't doing anything. i have even tried doing it through applescript, which would be more like:
widget.system("/usr/bin/osascript -e 'do shell script \"/Applications/Wolfenstein\\ ET/Wolfenstein\\ ET.app/Contents/MacOS/Wolfenstein\\ ET +connect 128.242.54.116\"'", null);
neither are working for me. if you have any bright ideas let me know

ps. my download link above now is linked to a version that does not launch terminal

I was able to get it working by saving the applescript as a script instead of an application. Here's the code I used (mine was named ETest)

widget.system("/usr/bin/osascript ETest.scpt", null);

Offline

 

#47 2005-05-23 5:05 pm

zwei
Member
From: USA
Registered: 2005-04-25
Posts: 169

Re: Wolf ET Dashboard Widget?

I'm guessing once you set up the preferences to choose what server you want to monitor it will show up in the info.plist. If that is the case I think I have figured a way (in applescript) to pull the server info from the info.plist and dynamically integrate it so that whatever server is in the prefs it will connect to. Can't do anything without that built into the widget already though. Let me know if you need help in this area.

Offline

 

#48 2005-05-23 5:06 pm

zwei
Member
From: USA
Registered: 2005-04-25
Posts: 169

Re: Wolf ET Dashboard Widget?

DarkWolf2016 wrote:

This is probably a stupid question but im assuming this thing is mac only or can it work for a PC?

yeah ...Mac only

Offline

 

#49 2005-05-23 7:56 pm

zwei
Member
From: USA
Registered: 2005-04-25
Posts: 169

Re: Wolf ET Dashboard Widget?

I did a preliminary script in which I used an edited version of the Info.plist to test it. I changed one of the lines in the .plist file to contain an IP string so I could test the launcher. If you unzip the file linked below into your User Scripts Folder and run the launcher.scpt from the applescript menu it should work just fine. The file contains the launcher.scpt and the faux Info.plist file.

The ZIP File

Notes: The script has to be in the same directory as the Info.plist file to work (that's how it would be in the widget)

You can't run the script from script editor because the "path to" command will get the path to the script editor app instead of the script itself (that's why you have to run it from the applescript menu) ...I'm assuming it will have no problem running from an osascript command. (I did test it inside a widget bundle so I know that won't be a problem)

You could probably turn it into an applescript application, but you'll have to remember to change the character count in one of the first couple lines to reflect the apps correct name length (don't change the name of the script or you'll have to edit the contents to match the new name length)

Let me know if you have questions ...or if you figure out another way to get the launcher function to work for different IPs

Good luck, you're doing a great job so far! wink

Offline

 

#50 2005-05-23 11:26 pm

IcEDeMoN
Hail to the king, baby!
From: Chicago
Registered: 2004-06-24
Posts: 109
Website

Re: Wolf ET Dashboard Widget?

Excellent widget, very sleek and well done. up


http://img174.exs.cx/img174/9153/icesig45pn.gif
Check out the [MA] Server! 70.86.128.218

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson