Applying pig-sty patch

For all the help you need with Armagetron!
Post Reply
New England
On Lightcycle Grid
Posts: 25
Joined: Mon Oct 30, 2006 3:07 am

Applying pig-sty patch

Post by New England »

Hey,

I have a mac and wish to make a shooting server. I have successfully compiled a dedicated server before, so I just need help with applying the patch. Thanks.
Patriots Rule!
Common Sense.
User avatar
HEXadecimal
Core Dumper
Posts: 166
Joined: Wed Jan 10, 2007 3:21 am
Contact:

Post by HEXadecimal »

What do you mean by shooting server?
User avatar
dlh
Formerly That OS X Guy
Posts: 2035
Joined: Fri Jan 02, 2004 12:05 am
Contact:

Post by dlh »

User avatar
HEXadecimal
Core Dumper
Posts: 166
Joined: Wed Jan 10, 2007 3:21 am
Contact:

Post by HEXadecimal »

well that right there is a good place too start
New England
On Lightcycle Grid
Posts: 25
Joined: Mon Oct 30, 2006 3:07 am

Post by New England »

got as far as this, while doing "make"

Code: Select all

./tron/gCycle.h:171: error: ISO C++ forbids declaration of 'gFlagZoneHack' with no type
engine/../tron/gCycle.h:171: error: expected %<;%> before '*' token
engine/../tron/gCycle.h:179: error: ISO C++ forbids declaration of 'gFlagZoneHack' with no type
engine/../tron/gCycle.h:179: error: expected %<;%> before '*' token
engine/../tron/gCycle.h:181: error: declaration of 'REAL gCycle::lastShotTime'
engine/../tron/gCycle.h:173: error: conflicts with previous declaration 'REAL gCycle::lastShotTime'
engine/../tron/gCycle.h:182: error: declaration of 'REAL gCycle::shotStarted'
engine/../tron/gCycle.h:174: error: conflicts with previous declaration 'REAL gCycle::shotStarted'
engine/../tron/gCycle.h:183: error: declaration of 'REAL gCycle::shotReservoir'
engine/../tron/gCycle.h:175: error: conflicts with previous declaration 'REAL gCycle::shotReservoir'
engine/../tron/gCycle.h:184: error: `void gCycle::ProcessShoot(bool)' and `void gCycle::ProcessShoot(bool)' cannot be overloaded
engine/../tron/gCycle.h:185: error: `void gCycle::Killed(gCycle*, int)' and `void gCycle::Killed(gCycle*, int)' cannot be overloaded
engine/ePlayer.cpp: In member function `void ePlayerNetID::DropFlag()':
engine/ePlayer.cpp:2329: error: 'class gCycle' has no member named 'flag_'
engine/ePlayer.cpp:2331: error: 'class gCycle' has no member named 'flag_'
make[3]: *** [libengine_a-ePlayer.o] Error 1
make[2]: *** [all-recursive] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2
Patriots Rule!
Common Sense.
User avatar
HEXadecimal
Core Dumper
Posts: 166
Joined: Wed Jan 10, 2007 3:21 am
Contact:

Post by HEXadecimal »

Im no expert, but it looks like you got an error.
is your c++ library working?

.......... id try messaging z-man
User avatar
Lucifer
Project Developer
Posts: 8742
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

Scroll up to the part that says "Failed to find file 'whatever.h' included from 'whatever.h' "
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
HEXadecimal
Core Dumper
Posts: 166
Joined: Wed Jan 10, 2007 3:21 am
Contact:

Post by HEXadecimal »

i never had the aptitude to find those kind of mistakes.
User avatar
Lucifer
Project Developer
Posts: 8742
Joined: Sun Aug 15, 2004 3:32 pm
Location: Republic of Texas

Post by Lucifer »

This error is the giveaway:

Code: Select all

./tron/gCycle.h:171: error: ISO C++ forbids declaration of 'gFlagZoneHack' with no type 
The reason there's no type is because the compiler doesn't know about it, it should be defined in a header file somewhere. The reasons the compiler didn't find the error file could be that it doesn't exist, the directory it's located in isn't in the search path, etc.

Anyway, the "no type" error is the giveaway.

I don't know what to do when I see which file it's not finding, but maybe someone else will. :)
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
Z-Man
God & Project Admin
Posts: 11710
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Post by Z-Man »

I don't know the patch enough to know what error this is, but Lucifer's analysis is right. Could it be that patch application failed? What did you use as a code base? What was the output of the patch command? IIRC, the patch does not work on the trunk, only on 0.2.8.
User avatar
wrtlprnft
Reverse Outside Corner Grinder
Posts: 1679
Joined: Wed Jan 04, 2006 4:42 am
Location: 0x08048000
Contact:

Post by wrtlprnft »

The patch doesn't even work with the latest 0.2.8 branch, it conflicts a bit with z-man's new serverside silencing.
Either try older revisions using svn up -r <rev nr here>, or fix the conflict, it isn't too hard to resolve.

EDIT: I think it doesn't work with 0.2.8.2, either, you need a SVN checkout.
There's no place like ::1
User avatar
DDMJ
Reverse Outside Corner Grinder
Posts: 1882
Joined: Thu Jun 08, 2006 12:15 am
Location: LA, CA, USA, NA
Contact:

Post by DDMJ »

Levi, are you compiling this on your Mac?
New England
On Lightcycle Grid
Posts: 25
Joined: Mon Oct 30, 2006 3:07 am

Post by New England »

yes
Patriots Rule!
Common Sense.
User avatar
DDMJ
Reverse Outside Corner Grinder
Posts: 1882
Joined: Thu Jun 08, 2006 12:15 am
Location: LA, CA, USA, NA
Contact:

Post by DDMJ »

Have you succesfully compiled the latest SVN before?
User avatar
.:Avl:.C10ud
Average Program
Posts: 50
Joined: Tue Nov 07, 2006 10:20 pm
Location: In the heart of the ENCOM 511 computer system
Contact:

Post by .:Avl:.C10ud »

you might try using the code I uploaded here. That code was checked out april 12th and is patched with Luke Jr's latest patch the he posted on March 21st.
Image
END OF LINE.
Post Reply