Tremulous Forum

Mods => Modding Center => Topic started by: GrooveMachine on August 02, 2007, 07:36:30 am

Title: MacTremServ
Post by: GrooveMachine on August 02, 2007, 07:36:30 am
Hey, today I created a shel script (mac only) that installs all the necessary files to maintain a tremulous server on a mac.  Hope you guys find it useful!  Oh, and by the way, read the readme (called Read This First) before you execute the script.  It's REALLY important, seriously.  I would love to hear feedback from you guys on it if possible.  Bear with me if it's a little buggy, because it's my first script.  I tested it on my computer though, and it worked perfectly.

Oh, here's the link:
http://www.divshare.com/download/1523630-253

Enjoy!

-GrooveMachine
Title: MacTremServ
Post by: next_ghost on August 02, 2007, 10:27:42 am
Please do me a favor and read this (http://www.tldp.net/LDP/abs/html/index.html).
Title: MacTremServ
Post by: GrooveMachine on August 02, 2007, 07:32:28 pm
I'm sorry that it's not perfect, and is simple.  I based it off of the text at tjw.org/tremulous/SETUP.txt, and come on!  It's my first script ever, and I'm still a Unix BEGINNER!  There's really no need for pipes and outputs and whatever other glitter you want to put in there.  Think of my script this way: it's the same as what's on tjw.org/tremulous/SETUP.txt, but I added some helpful tips in the readme file.  I know it's probably frustrating that I suck at writing shell scripts, but like it said on the site that you posted, "the only way to really learn scripting is to write scripts", and that's what I'm doing.

-GrooveMachine
Title: MacTremServ
Post by: next_ghost on August 03, 2007, 12:52:24 pm
#! /bin/bash :roll:
Title: MacTremServ
Post by: ShadowNinjaDudeMan on August 03, 2007, 02:58:06 pm
Ive run the terminal window, everythings installed, how do you run the server.

Personally I am impressed with this script, v. useful, I think.
Title: MacTremServ
Post by: Death On Ice on August 06, 2007, 02:37:38 am
Nice Work, GrooveMachine.

(Remember me from in-game?  :wink: )
Title: MacTremServ
Post by: GrooveMachine on August 06, 2007, 05:02:20 am
Of course I remember you, Death.  Thanks for the comments, I'm glad to finally get some feedback.  Ninja, to start up your server, type the following in terminal:

cd /Applications/Tremulous (press return)
./tremded.ub +set dedicated 2 +exec server.cfg (press return)

Oh, by the way Ninja, that's in the Readme (included with the download) for future reference.

Hey, I just finished version 2 of the script, complete with an uninstaller.  Also, I fixed a problem in version 1's installer, so yeah.  You want to run the uninstaller file before installing the new one, just so you know, and you will most likely get some sort of error message.  Don't worry about it, just run the installer next.

Here's the link for the latest version:
http://www.divshare.com/download/1523630-253

Thanks for using MacTremServ!

-GrooveMachine
Title: MacTremServ
Post by: ShadowNinjaDudeMan on August 06, 2007, 10:28:11 am
but how dyu uninstall V1?

It aint in the reame.

(actually, by my alertness, it could be)
Your link aint workin cos the server aint responding.
Title: MacTremServ
Post by: next_ghost on August 06, 2007, 05:48:06 pm
Could you PLEASE read your script again and then this (http://www.tldp.net/LDP/abs/html/index.html)? :roll: MacTremServ.sh is not a valid script and it tries to download a file called game.qvmcurl from TJW's site.
Title: MacTremServ
Post by: GrooveMachine on August 06, 2007, 11:49:58 pm
Ninja: To uninstall V1, run the uninstaller in V2.  It should work just fine.
Ghost: Thanks for pointing out that mistake: I fixed it earlier, but somehow it came back to haunt me in V2!!!  Oh, also Ghost, what do you mean by "the script isn't valid"?

You can get MacTremServ here:

http://www.divshare.com/download/1523630-253

Thanks for your support!

-GrooveMachine
Title: MacTremServ
Post by: Death On Ice on August 07, 2007, 12:08:24 am
Methinks I'll contribute something.

Some server files from an experienced operator.

Here are some command blocks and command files, which can be found here:

http://www.mediafire.com/?2m9z3bp6v2h
Title: MacTremServ
Post by: GrooveMachine on August 07, 2007, 12:33:50 am
Great, now what do do I know with them?  Where do they go?
Title: MacTremServ
Post by: GrooveMachine on August 07, 2007, 01:50:31 am
Hey, sorry to double-post, but after some more script-work, I made yet another version of MacTremServ, even better than before! It has a file to open your server, and one to restore the non-changing server files (NOT SERVER.CFG, OR ANYTHING THAT YOU WOULD EDIT).

Here's the link for the latest version:

http://www.divshare.com/download/1523630-253

Enjoy!

Oh, I need some suggestions for additions to MacTremServ for future versions (Death, I'm working on your base files as we speak).  Thanks!
Title: MacTremServ
Post by: Death On Ice on August 07, 2007, 04:22:09 am
No Problem. You know what to do with them now, correct? Glad to see another version.

This should be stickied, by the way  :wink:
Title: MacTremServ
Post by: GrooveMachine on August 07, 2007, 05:42:36 am
Hey, thanks Death.  Now that I have 62 server commands, I can share them all with everyone else!  Version 5 is out now *pant*, with the new admin.dat file and commands built in.  Here's the link for the latest version:

http://www.divshare.com/download/1523630-253

Enjoy!  Once again, I want feedback.  I'm pretty sure that this works perfectly (it worked for me just fine), but i want some confirmation, if possible.  I'd also like some suggestions for what to add, because my well is dry.  Thanks!

-GrooveMachine
Title: MacTremServ
Post by: next_ghost on August 07, 2007, 12:11:54 pm
Quote from: "GrooveMachine"
what do you mean by "the script isn't valid"?


#! /bin/bash
Title: MacTremServ
Post by: GrooveMachine on August 07, 2007, 05:18:58 pm
I'm sorry, but what does that mean?  I probably sound stupid, but I want to know what isn't valid.

-GrooveMachine
Title: MacTremServ
Post by: Death On Ice on August 07, 2007, 06:47:31 pm
Want an example maprotation.cfg and server.cfg?

You can build "Version Two" of my server files into your script if you want. :P

http://www.mediafire.com/?0grg2tbzxoz

Here it is.
Title: MacTremServ
Post by: next_ghost on August 07, 2007, 07:33:58 pm
Quote from: "GrooveMachine"
I'm sorry, but what does that mean?  I probably sound stupid, but I want to know what isn't valid.

-GrooveMachine


#! /bin/bash
That's a one-line difference between valid and not valid script file. Why and where to put it is described in introduction of that ebook I've linked here 2 times already. Your script won't work in any other shell than BASH. That's why it's not valid.
Title: MacTremServ
Post by: GrooveMachine on August 07, 2007, 11:52:11 pm
I think I get it now Ghost, but just to make sure, version 6 is called beta 6 instead.  Check out  the latest version here:

http://www.divshare.com/download/1523630-253

Thanks!

-GrooveMachine
Title: MacTremServ
Post by: GrooveMachine on August 08, 2007, 02:45:10 am
Hey, version 6 is up and running, with an absolutely MAJOR fix.  Pick it up here:

http://www.divshare.com/download/1500918-0d6

Get it while it's hot!

-GrooveMachine
Title: MacTremServ
Post by: GrooveMachine on August 10, 2007, 04:22:56 am
Hey, beta 7 is available here:

http://www.divshare.com/download/1523630-253

It's a much bigger file (5.3 megs, I think), because I made it so you don't have to download other thing with this app, it just comes with them zipped.  Give it a try if you can.  I'm almost positive that it's stable.

Oh, I still need some ideas for what to add.  Let me know what you want out of MacTremServ and I'll do my best to include it in the next release!

Thanks!

-GrooveMachine
Title: MacTremServ
Post by: ShadowNinjaDudeMan on August 10, 2007, 01:27:14 pm
whenever I put "install MacTremServ" into Terminal and Wap the Enter button, it always comes up with Permissio Denied.

Ive tried doing it on root as well, still na luck.
Anything?
Title: MacTremServ
Post by: benmachine on August 10, 2007, 01:49:05 pm
SNDM: where did you get the idea to try typing install?
Best thing to do is open a new terminal window, drag and drop the script on to it (the path should appear) then press return
Title: MacTremServ
Post by: next_ghost on August 10, 2007, 03:45:44 pm
Quote from: "ShadowNinjaDudeMan"
whenever I put "install MacTremServ" into Terminal and Wap the Enter button, it always comes up with Permissio Denied.

Ive tried doing it on root as well, still na luck.
Anything?


Use the tab key. It will always finish the command or filename correctly. Press it twice to get a list of possible completions. The 'I' in 'Install MacTremServ.sh' is uppercase and there must be a backslash in front of the space.

Oh, and even though space is a legal filename character, it's better not to use it in filenames. :roll:

And are you really sure the script has execute permission set?
Title: MacTremServ
Post by: ShadowNinjaDudeMan on August 10, 2007, 03:49:23 pm
Quote from: "benmachine"
SNDM: where did you get the idea to try typing install?
Best thing to do is open a new terminal window, drag and drop the script on to it (the path should appear) then press return


That is exactly what I do!
I drag and drop install MacTremServ.sh into terminal and press enter. Maybe I shouldve clarified.
Title: MacTremServ
Post by: benmachine on August 10, 2007, 04:42:46 pm
Quote from: "ShadowNinjaDudeMan"
Quote from: "benmachine"
SNDM: where did you get the idea to try typing install?
Best thing to do is open a new terminal window, drag and drop the script on to it (the path should appear) then press return


That is exactly what I do!
I drag and drop install MacTremServ.sh into terminal and press enter. Maybe I shouldve clarified.

Sorry, I didn't realise that was the actual name of the script :P
So long as you are dragging and dropping the path should be correct. Try this command:
Code: [Select]
chmod u+x /path/to/script
replacing /path/to/script of course.
chmod: change file mode
u: user
+x: add execute permission
Title: MacTremServ
Post by: Death On Ice on August 10, 2007, 07:19:36 pm
Can't you just..."Super-User-Do" (sudo) it? Or "Switch-User to Root"? (su -)

That way it runs as an admin..

I haven't actually tried it, I don't wanna mess up my server, but still.
Title: MacTremServ
Post by: next_ghost on August 10, 2007, 10:19:19 pm
Quote from: "Death On Ice"
Can't you just..."Super-User-Do" (sudo) it? Or "Switch-User to Root"? (su -)

That way it runs as an admin..

I haven't actually tried it, I don't wanna mess up my server, but still.


Even root can't run files which aren't executable. He can make any file executable though.
Title: MacTremServ
Post by: GrooveMachine on August 11, 2007, 03:31:58 am
Just look at the Readme Ninja!  All of your troubleshooting problems are there!

-GrooveMachine
Title: MacTremServ
Post by: Death On Ice on August 12, 2007, 12:08:10 am
Hey Groove. Idea: How 'bout you edit the first post for the latest link? You should still make consequent posts for versions, as it bumps it. But, it's better for people, cause they would  just assume that that's the latest version. :eek:

[/rant]
Title: MacTremServ
Post by: GrooveMachine on August 12, 2007, 06:55:29 pm
Thanks for the suggestion--I just decided to update all of the links!  All of the versions of MaTremServ are available at my DivShare page, anyway, if someone wants one.  Thanks for the suggestion!

-GrooveMachine
Title: MacTremServ
Post by: Death On Ice on August 12, 2007, 10:26:27 pm
Nice. I like both your projects, TremMap and TremServ. Good for you.
Title: MacTremServ
Post by: GrooveMachine on August 13, 2007, 04:49:37 am
Thanks, Death.  Oh, I can also create custom scripts for people if you want them for something.

-GrooveMachine
Title: MacTremServ
Post by: n00b pl0x on August 13, 2007, 06:14:26 am
i would like a script that automatically starts up when i start my server.

this script has to take players' guids on connection, and generate a qkey file named <playername>-guid and save it to the same folder as my server

then i can just download the ones i want and delete the rest

thx
Title: MacTremServ
Post by: next_ghost on August 13, 2007, 11:17:57 am
Quote from: "n00b pl0x"
i would like a script that automatically starts up when i start my server.

this script has to take players' guids on connection, and generate a qkey file named <playername>-guid and save it to the same folder as my server

then i can just download the ones i want and delete the rest

thx


Sure, I can do that. Unless you mind that the script would run a few gazillion years just to generate qkey for one player. :D
Title: MacTremServ
Post by: Death On Ice on August 13, 2007, 04:40:32 pm
Well, I've made a server start script. I've been using it for months. :wink:

Groove, all it does is open a Terminal window with "cd /applications/tremulous;./tremded.x86 +set dedicated 2 +exec server.cfg" which is just a one-click, no-typing way of starting your server.

I think it doesn't require much editing, as it's just a ".term" file.

I understand the "#! /bin/bash", but don't think it pertains to my script.

(Does it?) Check out for yourself:

http://www.mediafire.com/?631l4gdjdyb

(By the way, I didn't Zip it)
Title: MacTremServ
Post by: GrooveMachine on August 13, 2007, 06:35:32 pm
Death, did you make that script running linux?  The script won't work for me--I have tremded.ub to start it up.


Oh, check out McTremServ V7 here:

http://www.divshare.com/download/1573978-90c

I added a useless thing at the end, but it's kind of fun.  You have to have your volume up though.
Title: MacTremServ
Post by: Death On Ice on August 14, 2007, 12:06:14 am
It's a ".term" file..I think I customized my installation, though, cause it works on mine. Always has.
Title: MacTremServ
Post by: benmachine on August 14, 2007, 01:53:49 am
Works for me too. And I get your green text and weird cursor :P
by the way, you could make that one command:
/Applications/Tremulous/tremded.x86 +set dedicated 2 +exec server.cfg
this would work from anywhere without the need to cd
Oh and remember that most users have a tremded.ub, not .x86 (although the latter is really better, it is also rarer)
Title: MacTremServ
Post by: GrooveMachine on August 15, 2007, 12:22:03 am
Yeah, I have tremded.ub.
Title: MacTremServ
Post by: Death On Ice on August 15, 2007, 04:42:02 pm
Oh. Well, You can alter it so that it uses tremded.ub instead of tremded.x86.
Title: MacTremServ
Post by: GrooveMachine on August 16, 2007, 06:55:50 am
Yeah, sorry if you had to change the script to work for tremded.x86.  I could have done that for you!

Groove
Title: MacTremServ
Post by: Death On Ice on August 16, 2007, 04:09:27 pm
I didn't. You can :P

I'm kinda... busy, I guess.

School's about to be on and I'm getting ready. :wink:
Title: MacTremServ
Post by: GrooveMachine on August 16, 2007, 05:47:29 pm
Yeah, same here.  You might not see many updates for a while, cause I'm probably gonna have soccer practice every day after school, and I'm going into high school.

-Groove
Title: MacTremServ
Post by: GrooveMachine on August 27, 2007, 06:06:03 am
V8 is out!

Link:

http://www.divshare.com/download/1748817-e71

Enjoy!
Title: Re: MacTremServ
Post by: GrooveMachine on December 19, 2007, 02:56:40 am
Okay, recently I updated all of my MacTrem apps.  The newest version of MacTremServ features an understandable folder setup (no more folders with invisible icons and spaces for names!!!).  Now there's a folder called Resources.  Don't mess with it!!!  It's essential to the workings of MacTremServ.

Anyway, a new, bug-fixed MacTremServ is out now.  Here's the link:

http://www.divshare.com/download/3160892-f32

Hot off the press!  Get it now!

-GrooveMachine

P.S.  I'm about to actually test this myself--I'll let you know what I think :)
Title: Re: MacTremServ
Post by: Death On Ice on December 19, 2007, 03:49:53 am
Name it something reasonable plz.
It's annoying when things are named "Blah Blah Blah B2 V3 Release 5"
It's very hard to type all of these with all the character escapes (in Terminal)
Title: Re: MacTremServ
Post by: GrooveMachine on December 19, 2007, 04:32:32 am
Wow, after running this script on my own computer, it helped me figure out a lot.  Here's the latest, perfect, wonderful release.  Please, don't download that stupid one I released earlier today  :).  Now it should run without error (as long as the folder is on the desktop).  Get it here:

http://www.divshare.com/download/3161522-61d

Please, download this.  It works this time.

-GrooveMachine
Title: Re: MacTremServ
Post by: GrooveMachine on December 22, 2007, 01:48:53 am
Hey, I need some requests for the next version.  What do you want to see in MacTremServ?  I've already added an option to install Lakitu7's newest QVM, but what else do you guys want to see?  Please let me know, and I'll do my best to incorporate it in the next version.

Thanks,

-GrooveMachine
Title: Re: MacTremServ
Post by: Death On Ice on December 22, 2007, 06:22:22 am
Thing is, this helps NEW Mac users more then us seasoned-ish ones.
Even the first version would do it job (I Hope)
So I don't think lots of people have many suggestions.

Not to make you sad :-\
Title: Re: MacTremServ
Post by: GrooveMachine on December 23, 2007, 01:40:50 am
Yeah, I understand.  If anyone does have a request though, please, don't hesitate to tell me.

-GrooveMachine