Tremulous Forum
Mods => Modding Center => Topic started 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
-
Please do me a favor and read this (http://www.tldp.net/LDP/abs/html/index.html).
-
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
-
#! /bin/bash :roll:
-
Ive run the terminal window, everythings installed, how do you run the server.
Personally I am impressed with this script, v. useful, I think.
-
Nice Work, GrooveMachine.
(Remember me from in-game? :wink: )
-
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
-
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.
-
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.
-
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
-
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
-
Great, now what do do I know with them? Where do they go?
-
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!
-
No Problem. You know what to do with them now, correct? Glad to see another version.
This should be stickied, by the way :wink:
-
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
-
what do you mean by "the script isn't valid"?
#! /bin/bash
-
I'm sorry, but what does that mean? I probably sound stupid, but I want to know what isn't valid.
-GrooveMachine
-
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.
-
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.
-
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
-
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
-
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
-
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?
-
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
-
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?
-
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.
-
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:
chmod u+x /path/to/script
replacing /path/to/script of course.
chmod: change file mode
u: user
+x: add execute permission
-
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.
-
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.
-
Just look at the Readme Ninja! All of your troubleshooting problems are there!
-GrooveMachine
-
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]
-
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
-
Nice. I like both your projects, TremMap and TremServ. Good for you.
-
Thanks, Death. Oh, I can also create custom scripts for people if you want them for something.
-GrooveMachine
-
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
-
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
-
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)
-
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.
-
It's a ".term" file..I think I customized my installation, though, cause it works on mine. Always has.
-
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)
-
Yeah, I have tremded.ub.
-
Oh. Well, You can alter it so that it uses tremded.ub instead of tremded.x86.
-
Yeah, sorry if you had to change the script to work for tremded.x86. I could have done that for you!
Groove
-
I didn't. You can :P
I'm kinda... busy, I guess.
School's about to be on and I'm getting ready. :wink:
-
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
-
V8 is out!
Link:
http://www.divshare.com/download/1748817-e71
Enjoy!
-
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 :)
-
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)
-
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
-
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
-
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 :-\
-
Yeah, I understand. If anyone does have a request though, please, don't hesitate to tell me.
-GrooveMachine