compiling pig sty patch on windows & ubuntu

For all the help you need with Armagetron!
User avatar
Infa(mous)
Round Winner
Posts: 255
Joined: Thu Aug 14, 2008 11:27 pm

Post by Infa(mous) »

Two things to say.
1. If you want the game at school, then don't use ubuntu.
2. Host using a dedicated server. It's just better that way. You can still have a client and a dedicated server at the same time.
Pink Tomatoes
Average Program
Posts: 61
Joined: Fri Jul 25, 2008 11:24 am

Post by Pink Tomatoes »

If you installed ubuntu within windows using WUBI, then ubuntu is stored within a file on your windows system. This means that it would be in the middle somewhere in the disc defragment view.

If you installed it using the boot disc, and partitioned your hard drive, as far as I know, ubuntu would not allow resizing the hard drive when data is too close to the end of the partition.

On a side note, how do you intend to use the ubuntu server at school, if machines are windows? Sounds like you will need to compile a Windows version.
User avatar
Infa(mous)
Round Winner
Posts: 255
Joined: Thu Aug 14, 2008 11:27 pm

Post by Infa(mous) »

F! Infamous wrote: Also, JSM, I built a sty patch version for windows just yesterday. If you want that, it's at: http://www.filesavr.com/armagetronad-de ... 23108win32
Tomatoes, I already gave him one. :D
Pink Tomatoes
Average Program
Posts: 61
Joined: Fri Jul 25, 2008 11:24 am

Post by Pink Tomatoes »

F! Infamous wrote:
F! Infamous wrote: Also, JSM, I built a sty patch version for windows just yesterday. If you want that, it's at: http://www.filesavr.com/armagetronad-de ... 23108win32
Tomatoes, I already gave him one. :D
Ah sorry, totally missed this ;).
User avatar
Jsm 588
On Lightcycle Grid
Posts: 29
Joined: Tue Dec 09, 2008 3:51 am

Post by Jsm 588 »

Ok, so The dedicated is just a batch file? How do I set the settings and make it a LAN game not internet?

Nvm I got the settings..ou just put them in like a console but how do u make it a lan game, and how do you name the server?

nvm again..its already lan. ty for all the help. just need to know how to nsme it =)

funny that after all that...all i had to do was download that server =) thanks every1

ugg..maybe i should stop posting and start thinking..i found the codes

/me is dumb. XD
Thanks
Jsm 588
--------- ---------
----------------------- = -----------------------
--------- ---------
Fav server: Delicious Deserts Racing II
The best thing about Ubuntu: When you force quit something..it actually force quits!!!
User avatar
Infa(mous)
Round Winner
Posts: 255
Joined: Thu Aug 14, 2008 11:27 pm

Post by Infa(mous) »

You're welcome for the server. 8)
I havn't seen any other windows sty builds :o
User avatar
Jsm 588
On Lightcycle Grid
Posts: 29
Joined: Tue Dec 09, 2008 3:51 am

Re: compiling pig sty patch on windows & ubuntu

Post by Jsm 588 »

Hey again..

I've been using infamous's server for a while now in school, it works great =D (thanks)

Now, I'm going to try again on Ubuntu...

I copy and pasted what tomato's said and i got the autotools or whatever, so ./bootstrap.sh and ./configure worked.

make install returned this at the end..seemed like other stuff worked:

engine/ePlayer.cpp:2622: error: redefinition of ‘bool se_silenceDead’
engine/ePlayer.cpp:2619: error: ‘bool se_silenceDead’ previously defined here
engine/ePlayer.cpp:2623: error: redefinition of ‘tSettingItem<bool> se_silenceDeadConf’
engine/ePlayer.cpp:2620: error: ‘tSettingItem<bool> se_silenceDeadConf’ previously declared here
make[2]: *** [libengine_a-ePlayer.o] Error 1
make[2]: Leaving directory `/home/janakmalla/0.2.8-armagetronad-sty+ct/src'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/home/janakmalla/0.2.8-armagetronad-sty+ct/src'
make: *** [install-recursive] Error 1
user@ubuntu:~/0.2.8-armagetronad-sty+ct$
user@ubuntu:~/0.2.8-armagetronad-sty+ct$


maybe its nothing, and if it did work and this doesnt matter, where can I find the server??? I copied the Your_mom directory like it said, but i cant find the server on my computer..

thanks
eggs(i dont play as jsm588 anymore)
Thanks
Jsm 588
--------- ---------
----------------------- = -----------------------
--------- ---------
Fav server: Delicious Deserts Racing II
The best thing about Ubuntu: When you force quit something..it actually force quits!!!
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: compiling pig sty patch on windows & ubuntu

Post by Z-Man »

No, it's a real error, and you don't have a server. You're close, though. Open up src/engine/ePlayer.cpp and delete the lines 2622 and 2623 with the duplicate definitions, then compile again.

I'm curious, though. How did those lines get there? They're not there in the 'official' bzr sty branch. What, exactly, did you do to get the source?
User avatar
Jsm 588
On Lightcycle Grid
Posts: 29
Joined: Tue Dec 09, 2008 3:51 am

Re: compiling pig sty patch on windows & ubuntu

Post by Jsm 588 »

oh, it was luke-jr's sty+ct

=D
thanks, let me try that.
Thanks
Jsm 588
--------- ---------
----------------------- = -----------------------
--------- ---------
Fav server: Delicious Deserts Racing II
The best thing about Ubuntu: When you force quit something..it actually force quits!!!
User avatar
Jsm 588
On Lightcycle Grid
Posts: 29
Joined: Tue Dec 09, 2008 3:51 am

Re: compiling pig sty patch on windows & ubuntu

Post by Jsm 588 »

no idea what this is

make[3]: Entering directory `/home/user/0.2.8-armagetronad-sty+ct/src'
g++ -I./tools -I./render -I./ui -I./network -I./engine -I./thirdparty/particles -I./tron -O2 -Wno-long-long -o armagetronad_main armagetronad_main-gFloor.o libtron.a libenginecore.a libengine.a libnetwork.a libui.a librender.a libtools.a -lpthread -lm -lxml2
libengine.a(libengine_a-eChat.o): In function `eChatSpamTester::eChatSpamTester(ePlayerNetID*, tString const&)':
eChat.cpp:(.text+0x560): multiple definition of `eChatSpamTester::eChatSpamTester(ePlayerNetID*, tString const&)'
libengine.a(libengine_a-ePlayer.o):ePlayer.cpp:(.text+0x16a0): first defined here
libengine.a(libengine_a-eChat.o): In function `eChatSpamTester::eChatSpamTester(ePlayerNetID*, tString const&)':
eChat.cpp:(.text+0x5c0): multiple definition of `eChatSpamTester::eChatSpamTester(ePlayerNetID*, tString const&)'
libengine.a(libengine_a-ePlayer.o):ePlayer.cpp:(.text+0x1700): first defined here
libengine.a(libengine_a-eChat.o): In function `eChatSpamTester::Check()':
eChat.cpp:(.text+0x1dc0): multiple definition of `eChatSpamTester::Check()'
libengine.a(libengine_a-ePlayer.o):ePlayer.cpp:(.text+0xe710): first defined here
libengine.a(libengine_a-eChat.o): In function `eChatSpamTester::Block()':
eChat.cpp:(.text+0x2380): multiple definition of `eChatSpamTester::Block()'
libengine.a(libengine_a-ePlayer.o):ePlayer.cpp:(.text+0xefe0): first defined here
collect2: ld returned 1 exit status
make[3]: *** [armagetronad_main] Error 1
make[3]: Leaving directory `/home/user/0.2.8-armagetronad-sty+ct/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/user/0.2.8-armagetronad-sty+ct/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/user/0.2.8-armagetronad-sty+ct'
make: *** [all] Error 2
user@ubuntu:~/0.2.8-armagetronad-sty+ct$
user@ubuntu:~/0.2.8-armagetronad-sty+ct$


thanks,
eggs
Thanks
Jsm 588
--------- ---------
----------------------- = -----------------------
--------- ---------
Fav server: Delicious Deserts Racing II
The best thing about Ubuntu: When you force quit something..it actually force quits!!!
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: compiling pig sty patch on windows & ubuntu

Post by Z-Man »

In that case, the source is more broken than expected. Don't use it, then. Luke's version is work in progress (to get sty+ct to the trunk codebase). For a regular server, use ~armagetronad-dev/0.2.8-armagetronad-sty or ~armagetronad-dev/0.2.8-armagetronad-sty+ct (as seen here).
User avatar
Jsm 588
On Lightcycle Grid
Posts: 29
Joined: Tue Dec 09, 2008 3:51 am

Re: compiling pig sty patch on windows & ubuntu

Post by Jsm 588 »

done. =D
make and make install returned no errors..
now back to my previous question..
where's the server? =D
I tried serverstarter but it didnt work
and i tried Armagetron Advanced Server in the desktop folder but that didnt work either..

thanks
eggs
Thanks
Jsm 588
--------- ---------
----------------------- = -----------------------
--------- ---------
Fav server: Delicious Deserts Racing II
The best thing about Ubuntu: When you force quit something..it actually force quits!!!
User avatar
Infa(mous)
Round Winner
Posts: 255
Joined: Thu Aug 14, 2008 11:27 pm

Re: compiling pig sty patch on windows & ubuntu

Post by Infa(mous) »

umm... Did you not install it in ur home folder? That's generally the easiest thing to do...
-Infamous
User avatar
Z-Man
God & Project Admin
Posts: 11717
Joined: Sun Jan 23, 2005 6:01 pm
Location: Cologne
Contact:

Re: compiling pig sty patch on windows & ubuntu

Post by Z-Man »

The rest is standard :) You can either run the server directly from the build directory with 'make run' (configuration files will then be read from the current directory and not /etc/games/armagetronad-dedicated like with the other two start methods), or, after you said 'make install', start it with 'armagetronad-dedicated' (in both cases, the server will exit after 24 hours and you have to restart it manually, so wrap that in a script and make it so it can run while you're not logged in, 'screen' is your friend there) or start it in the background with 'sudo /etc/init.d/armagetronad-dedicated start'. Me, I always use 'make run' in a screen session. Keeps my server binaries and configurations nicely separated.
User avatar
kyle
Reverse Outside Corner Grinder
Posts: 1975
Joined: Thu Jun 08, 2006 3:33 pm
Location: Indiana, USA, Earth, Milky Way Galaxy, Universe, Multiverse
Contact:

Re: compiling pig sty patch on windows & ubuntu

Post by kyle »

Z-Man wrote:In that case, the source is more broken than expected. Don't use it, then. Luke's version is work in progress (to get sty+ct to the trunk codebase)..
It was already merged into sty+ct (the non broken parts)
Image
Post Reply