Author Topic: MacTremServ  (Read 24944 times)

GrooveMachine

  • Posts: 66
  • Turrets: +1/-0
    • Mac Freeware site
MacTremServ
« 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
Computers are like air conditioners...they work until you open Windows!

next_ghost

  • Posts: 892
  • Turrets: +3/-6
MacTremServ
« Reply #1 on: August 02, 2007, 10:27:42 am »
Please do me a favor and read this.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

GrooveMachine

  • Posts: 66
  • Turrets: +1/-0
    • Mac Freeware site
MacTremServ
« Reply #2 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
Computers are like air conditioners...they work until you open Windows!

next_ghost

  • Posts: 892
  • Turrets: +3/-6
MacTremServ
« Reply #3 on: August 03, 2007, 12:52:24 pm »
#! /bin/bash :roll:
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

ShadowNinjaDudeMan

  • Posts: 1385
  • Turrets: +86/-58
    • Tremopolis
MacTremServ
« Reply #4 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.
My favorite player is Jesus, because everything is forgiven when he respawns.

NOM!NOM!NOM!

Death On Ice

  • Posts: 1287
  • Turrets: +126/-141
MacTremServ
« Reply #5 on: August 06, 2007, 02:37:38 am »
Nice Work, GrooveMachine.

(Remember me from in-game?  :wink: )

GrooveMachine

  • Posts: 66
  • Turrets: +1/-0
    • Mac Freeware site
MacTremServ
« Reply #6 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
Computers are like air conditioners...they work until you open Windows!

ShadowNinjaDudeMan

  • Posts: 1385
  • Turrets: +86/-58
    • Tremopolis
MacTremServ
« Reply #7 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.
My favorite player is Jesus, because everything is forgiven when he respawns.

NOM!NOM!NOM!

next_ghost

  • Posts: 892
  • Turrets: +3/-6
MacTremServ
« Reply #8 on: August 06, 2007, 05:48:06 pm »
Could you PLEASE read your script again and then this? :roll: MacTremServ.sh is not a valid script and it tries to download a file called game.qvmcurl from TJW's site.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

GrooveMachine

  • Posts: 66
  • Turrets: +1/-0
    • Mac Freeware site
MacTremServ
« Reply #9 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
Computers are like air conditioners...they work until you open Windows!

Death On Ice

  • Posts: 1287
  • Turrets: +126/-141
MacTremServ
« Reply #10 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

GrooveMachine

  • Posts: 66
  • Turrets: +1/-0
    • Mac Freeware site
MacTremServ
« Reply #11 on: August 07, 2007, 12:33:50 am »
Great, now what do do I know with them?  Where do they go?
Computers are like air conditioners...they work until you open Windows!

GrooveMachine

  • Posts: 66
  • Turrets: +1/-0
    • Mac Freeware site
MacTremServ
« Reply #12 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!
Computers are like air conditioners...they work until you open Windows!

Death On Ice

  • Posts: 1287
  • Turrets: +126/-141
MacTremServ
« Reply #13 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:

GrooveMachine

  • Posts: 66
  • Turrets: +1/-0
    • Mac Freeware site
MacTremServ
« Reply #14 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
Computers are like air conditioners...they work until you open Windows!

next_ghost

  • Posts: 892
  • Turrets: +3/-6
MacTremServ
« Reply #15 on: August 07, 2007, 12:11:54 pm »
Quote from: "GrooveMachine"
what do you mean by "the script isn't valid"?


#! /bin/bash
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

GrooveMachine

  • Posts: 66
  • Turrets: +1/-0
    • Mac Freeware site
MacTremServ
« Reply #16 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
Computers are like air conditioners...they work until you open Windows!

Death On Ice

  • Posts: 1287
  • Turrets: +126/-141
MacTremServ
« Reply #17 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.

next_ghost

  • Posts: 892
  • Turrets: +3/-6
MacTremServ
« Reply #18 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.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

GrooveMachine

  • Posts: 66
  • Turrets: +1/-0
    • Mac Freeware site
MacTremServ
« Reply #19 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
Computers are like air conditioners...they work until you open Windows!

GrooveMachine

  • Posts: 66
  • Turrets: +1/-0
    • Mac Freeware site
MacTremServ
« Reply #20 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
Computers are like air conditioners...they work until you open Windows!

GrooveMachine

  • Posts: 66
  • Turrets: +1/-0
    • Mac Freeware site
MacTremServ
« Reply #21 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
Computers are like air conditioners...they work until you open Windows!

ShadowNinjaDudeMan

  • Posts: 1385
  • Turrets: +86/-58
    • Tremopolis
MacTremServ
« Reply #22 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?
My favorite player is Jesus, because everything is forgiven when he respawns.

NOM!NOM!NOM!

benmachine

  • Posts: 915
  • Turrets: +99/-76
    • ben's machinery
MacTremServ
« Reply #23 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
benmachine

next_ghost

  • Posts: 892
  • Turrets: +3/-6
MacTremServ
« Reply #24 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?
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

ShadowNinjaDudeMan

  • Posts: 1385
  • Turrets: +86/-58
    • Tremopolis
MacTremServ
« Reply #25 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.
My favorite player is Jesus, because everything is forgiven when he respawns.

NOM!NOM!NOM!

benmachine

  • Posts: 915
  • Turrets: +99/-76
    • ben's machinery
MacTremServ
« Reply #26 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
benmachine

Death On Ice

  • Posts: 1287
  • Turrets: +126/-141
MacTremServ
« Reply #27 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.

next_ghost

  • Posts: 892
  • Turrets: +3/-6
MacTremServ
« Reply #28 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.
If my answer to your problem doesn't seem helpful, it means I won't help you until you show some effort to fix your problem yourself!
1.2.0 release's been delayed for 5:48:00 already because of stupid questions.

GrooveMachine

  • Posts: 66
  • Turrets: +1/-0
    • Mac Freeware site
MacTremServ
« Reply #29 on: August 11, 2007, 03:31:58 am »
Just look at the Readme Ninja!  All of your troubleshooting problems are there!

-GrooveMachine
Computers are like air conditioners...they work until you open Windows!