Setting up Respawn on a Mac

Designed a level that creates new, exciting, and challenging Armagetron game play? Or maybe just something funky. Put it right here.
plotz
Posts: 5
Joined: Mon Nov 05, 2007 8:47 am

Setting up Respawn on a Mac

Post by plotz »

I have a server, which I would love to add a hold the flag/minefield settings DF style respawn. I have a mac, my server is on a mac, but I can use Microsoft, if necessary.

The closest I got was the pigsty patch. Directions on how to setup/ where to put the patch after download would be greatly appreciated. I also do not know if this patch is mac compatible.

Would I need to shut down my server and restart it for the patch to take effect?

Thanks,
plotzki
User avatar
Z-Man
God & Project Admin
Posts: 11748
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

I think it should work if you follow the Unix instructions. I haven't used the Unix way to compile a server on my Mac yet, so take this as my typical "OSX is Unix with a fancy UI on top" suggestion.

And yes, you certainly need to restart your server, and before that, you need to unpack the source, apply the patch, compile, and optionally install.
plotz
Posts: 5
Joined: Mon Nov 05, 2007 8:47 am

Post by plotz »

Is the pigsty patch the right way to go? I couldnt find any unix instructions for this patch. could you lead me in the right direction to find the instructions, i.e. arma forums keywords search/ google keywords search? Thanks for the fast response.
User avatar
Z-Man
God & Project Admin
Posts: 11748
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

Yeah, the pig sty patch is the one that allows you to activate CTF and other cool stuff. The wiki page (found by searching our wiki for 'patch') on it describes the installation, you should follow the BSD instruction bits: http://wiki.armagetronad.net/index.php?title=Sty
plotz
Posts: 5
Joined: Mon Nov 05, 2007 8:47 am

Post by plotz »

I downloaded/installed subversion and then started setting up the patch and got:

Welcome to Darwin!
arbogast-jenkins-computer:~ arbogastjenkins$ mkdir armagetronad+sty
mkdir: armagetronad+sty: File exists
arbogast-jenkins-computer:~ arbogastjenkins$ cd !^
cd armagetronad+sty
arbogast-jenkins-computer:~/armagetronad+sty arbogastjenkins$ patch -p0 </Users/arbogastjenkins/Desktop/pigsty-061021\ Folder/pigsty-061021.patch
(Stripping trailing CRs from patch.)
can't find file to patch at input line 5
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: config/settings_dedicated.cfg
|===================================================================
|--- config/settings_dedicated.cfg (revision 6248)
|+++ config/settings_dedicated.cfg (working copy)
--------------------------
File to patch:


Should I have the dedicated server already open on the terminal? or is this the "file to patch?" when I try to access the dedicated server in "file to patch" it says:

File to patch: /Users/arbogastjenkins/Desktop/armegetron/armagetronad-dedicated
patching file /Users/arbogastjenkins/Desktop/armegetron/armagetronad-dedicated
Hunk #1 FAILED at 295.
1 out of 1 hunk FAILED -- saving rejects to file /Users/arbogastjenkins/Desktop/armegetron/armagetronad-dedicated.rej
(Stripping trailing CRs from patch.)
can't find file to patch at input line 102
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|Index: language/english_base.txt
|===================================================================
|--- language/english_base.txt (revision 6248)
|+++ language/english_base.txt (working copy)
--------------------------
File to patch:


so I remain without a clue. I also tried opening up the dedicated server in terminal first, but when I tried to access the pigsty patch it said "command CD unknown and "command patch unknown." thats all the info I have at he moment. thanks for all the help.
User avatar
Z-Man
God & Project Admin
Posts: 11748
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

looks like you skipped the "svn co" step.

You're the second person trying to "entering the patch" at the server console; may I inquire what made you think it could work?
plotz
Posts: 5
Joined: Mon Nov 05, 2007 8:47 am

Post by plotz »

the "svn co" link has a lot of choices. I go into :
src/
macosx/
then i get these choices:
# Armagetron Advanced_Prefix.pch
# English.lproj/
# Info.plist
# SDLMain.h
# SDLMain.mm
# client/
# config_common.h
# dedicated/

all of these choices lead to code, which I have no clue what to do with.

hmmmm. I guess I'd blame the baseless attempt on desperation, plus I was trying as many methods as possible in an attempt to waste less of your time ;-). looks like that worked impeccably.

a bit noobish at all of this, but generally well intentioned,
PLOTZ
User avatar
Lucifer
Project Developer
Posts: 8758
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

Ah, the patch is a code patch, it is applied to the source code. Then you have to build the source code into a working binary. That's the basic process, at least. How it works on Mac OS X is similar but different to linux. It's similar because you use the patch program to apply the patch to the source code. It's different because the Mac OS X build system is a bit different, so building it is different.

I can't give any specific details, because I'm not a mac guy. But there you go.
Check out my YouTube channel: https://youtube.com/@davefancella?si=H--oCK3k_dQ1laDN

Be the devil's own, Lucifer's my name.
- Iron Maiden
User avatar
Jonathan
A Brave Victim
Posts: 3391
Joined: Thu Feb 03, 2005 12:50 am
Location: Not really lurking anymore

Post by Jonathan »

Last time I tried a dedicated server could be built the normal way.
ˌɑrməˈɡɛˌtrɑn
plotz
Posts: 5
Joined: Mon Nov 05, 2007 8:47 am

Post by plotz »

Jonathan wrote:Last time I tried a dedicated server could be built the normal way.
yes, The server is fine and dandy and dedicated, but you don't magically come back to life after you die, which really kinda sucks.
User avatar
Z-Man
God & Project Admin
Posts: 11748
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

Well, I fixed a small error in the instructions on the wiki (all sources were checked out into src/, but the patch was applied to ./), but they still don't run through. Could someone who is familiar with the patch please update the instructions so they work? Checking out a source version that works with the patch would do the trick.
QUARG
Round Winner
Posts: 223
Joined: Thu Sep 14, 2006 2:38 pm
Location: montreal

Post by QUARG »

or release 0.2.8.3 wich would include the ctf game style. :o

EDIT: i meant this as a temporary solution to all the questions about compiling we have been asking of late. not as a jab at the dev team. sorry for not being clear.
QUARG
Round Winner
Posts: 223
Joined: Thu Sep 14, 2006 2:38 pm
Location: montreal

Post by QUARG »

z-man wrote: Could someone who is familiar with the patch please update the instructions so they work? Checking out a source version that works with the patch would do the trick.
Has source been added that works with the patch been posted?
User avatar
Z-Man
God & Project Admin
Posts: 11748
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

Umm, sorry, I don't understand that question. None of the currently available versions of the patch works with the most up to date source versions, if that's what you're asking.
Luke-Jr
Dr Z Level
Posts: 2246
Joined: Sun Mar 20, 2005 4:03 pm
Location: IM: luke@dashjr.org

Post by Luke-Jr »

QUARG wrote:or release 0.2.8.3 wich would include the ctf game style. :o
Um, no. The patch is known to introduce bugs and leak memory.
Post Reply