May 25, 2013, 04:22:00 AM
Pre-Releases are now available at the PreRelease section.
If any issues occur please post exceptions or information as to how to reproduce in the correct section.

Author Topic: Debian Lenny TSDM Setup  (Read 2762 times)

0 Members and 1 Guest are viewing this topic.

Stinglock

  • Newbie
  • *
  • Posts: 9
  • Karma: +2/-0
    • View Profile
Debian Lenny TSDM Setup
« on: July 13, 2011, 03:54:23 AM »
Um, if this isn't needed feel free to delete this, but I had a few problems getting TSDM working following the various guides and methods. If anyone has a better method of getting this setup feel free to drop it below, I'm not a big linux user myself.

I had problems using mono from sourceforge due to it not supporting i386 or something, tried creating an environment and rah rah rah had no luck over and over again. Eventually I did some deeper googling and found out how to manually compile it which seemed to provide joy, I used the guide from http://developer.mindtouch.com/en/docs/mindtouch_setup/010Installation/020Installing_on_Debian/Installing%2F%2FUpgrading_Mono_on_Debian and then just typed
Code: [Select]
mono Terraria_Server.exe and she worked.

First up I created a folder called terriaria and went into it.
Then did a
Code: [Select]
wget http://kangaroo.olympus-gaming.net/Terraria_Server.exeAnd set the permissions as the other guide
Code: [Select]
chmod a+x Terraria_Server.exe
From here I had to do some extra steps.

Code: [Select]
apt-get update
apt-get install gcc libtool bison pkg-config libglib2.0-dev gettext make bzip2 g++

wget http://ftp.novell.com/pub/mono/sources/mono/mono-2.10.2.tar.bz2
tar xvjf mono-2.10.2.tar.bz2
cd mono-2.10.2
./configure --prefix=/opt/mono-2.10

# this might take 30-60 minutes
make
make install

cd /usr/bin
mv mono mono.old
mv gmcs gmcs.old
ln -s /opt/mono-2.10/bin/mono /usr/bin/mono
ln -s /opt/mono-2.10/bin/gmcs  /usr/bin/gmcs

EDIT:
That mv gmcs gmcs.old failed but still worked for me.

Also, I've to stop the session from ending and the terraria server existing when you logout of a putty/ssh session without scripts get screen.

Code: [Select]
apt-get install screen (might already be installed)
and then you can run with
Code: [Select]
screen mono Terraria_Sever.exeAnd close your putty session.

Google  up or do a man screen if you need to know how to switch back to it or whatever.


« Last Edit: July 15, 2011, 02:44:15 AM by Stinglock »

Malkierian

  • TDSM Team Member
  • Sr. Member
  • *****
  • Posts: 338
  • Karma: +20/-0
    • View Profile
Re: Debian Lenny TSDM Setup
« Reply #1 on: July 13, 2011, 11:22:41 AM »
Debian Lenny?  Why didn't you just do apt-get install mono-complete?  That would have installed 2.6.7 on your machine.

Stinglock

  • Newbie
  • *
  • Posts: 9
  • Karma: +2/-0
    • View Profile
Re: Debian Lenny TSDM Setup
« Reply #2 on: July 15, 2011, 12:46:05 AM »
Yeah, debian lenny, I put it int he subject line as the was the OS i was installing it on.

Why? I had problems setting it up and I'm not a big linux user myself and this was what I got working.

EDIT:
Also
Quote
E: Couldn't find package mono-complete
comes up, what to do when the package doesn't exist?

To put it simply, if that had've worked I'd not have to do this.
Pretty much every guide just says apt-get install mono or some variation, none of them worked for me, and this was what I did get working after trying to add packages and sources for this application to aptitude or whatever it's called, not to mention the errrors I got with i386 versions when trying to load it manually.

« Last Edit: July 15, 2011, 02:19:46 AM by Stinglock »

Malkierian

  • TDSM Team Member
  • Sr. Member
  • *****
  • Posts: 338
  • Karma: +20/-0
    • View Profile
Re: Debian Lenny TSDM Setup
« Reply #3 on: July 15, 2011, 11:59:52 AM »
http://bit.ly/qBM4zk

Try that guide :D.

Stinglock

  • Newbie
  • *
  • Posts: 9
  • Karma: +2/-0
    • View Profile
Re: Debian Lenny TSDM Setup
« Reply #4 on: July 16, 2011, 06:09:43 AM »
I did. That's what worked for me, I linked to the exact same url in the first post. That page is what helped me get it running, I though I'd share it.

Anyways, it's
Code: [Select]
screen -R to reconnect to the detached session later, and
Code: [Select]
screen -list to view the screens your running.

Toneks

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Debian Lenny TSDM Setup
« Reply #5 on: August 19, 2011, 03:13:20 AM »
Hi, i cant run TDSM on Debian.
I have done this:

apt-get update
apt-get install gcc libtool bison pkg-config libglib2.0-dev gettext make bzip2 g++

wget http://ftp.novell.com/pub/mono/sources/mono/mono-2.10.2.tar.bz2
tar xvjf mono-2.10.2.tar.bz2
cd mono-2.10.2
./configure --prefix=/opt/mono-2.10

# this might take 30-60 minutes
make
make install

cd /usr/bin
mv mono mono.old
mv gmcs gmcs.old
ln -s /opt/mono-2.10/bin/mono /usr/bin/mono
ln -s /opt/mono-2.10/bin/gmcs  /usr/bin/gmcs

then i checked if mono is ok - mono --version - it was ok.

So i compiled TDSM 1.0.6.1 in my Visual Studio and downloaded it in Debian:

wget http://someurl.cz/Terraria_Server.exe

and tried to run it.

mono ./Terraria_Server.exe

It started normaly loading server but then it failed with this message:


08/19/2011 10:11:46 Main> Resetting game objects: done in 2.252s.
Stacktrace:

  at Terraria_Server.WorldMod.WorldGen.GenerateWorld (string) <0x0005b>
  at Terraria_Server.Program.Main (string[]) <0x00f6f>
  at (wrapper runtime-invoke) <Module>.runtime_invoke_void_object (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:


Debug info from gdb:


=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================


What can i do please?

UndeadMiner

  • Global Moderator
  • Jr. Member
  • *****
  • Posts: 88
  • Karma: +6/-1
  • Damned to dig.
    • View Profile
    • GitHub profile
Re: Debian Lenny TSDM Setup
« Reply #6 on: August 19, 2011, 04:40:23 AM »
What can i do please?
Get more RAM probably.
If it's not an issue with mono running out of RAM, then it's a bug in mono, you could try 2.10.4.
I'm employed full-time now, that's why you don't see me much.
1Hb6Q13mRV2PL6nwu5XgaYDTK62BJC4MyU

Toneks

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Debian Lenny TSDM Setup
« Reply #7 on: August 19, 2011, 05:49:09 AM »
Thanks - my server has only 256 RAM and 256 swap and it wasn't enought for large map. So i choosed small map and it works :)

D1G1T4L3CH0

  • TDSM Team Member
  • Hero Member
  • *****
  • Posts: 518
  • Karma: +22/-2
  • Tester / Moderator
    • View Profile
    • Personal Website
Re: Debian Lenny TSDM Setup
« Reply #8 on: August 19, 2011, 09:07:05 AM »
I'm able to run a medium world with 196mb of ram. it uses it all and about 15mb of swap, but it works.
Server Machine: Xubuntu 11.10 Xfce Mono 2.10.5
Thanks to all those who work on TDSM. It's a great alternative to the official one. And thanks to the plugin devs too for making it even better.

Malkierian

  • TDSM Team Member
  • Sr. Member
  • *****
  • Posts: 338
  • Karma: +20/-0
    • View Profile
Re: Debian Lenny TSDM Setup
« Reply #9 on: August 19, 2011, 09:48:35 AM »
I get this problem, only with a different error message, on CentOS, and I have over 10 GB of memory available to me.  Goes something like this:

Main> Issue parsing console command: System.NullReferenceException: Object reference not set to an instance of an object   at Terraria_Server.Program.Main (System.String[] args) [0x00000] in <filename unknown>:0  08/19/2011 07:02:34 Main> Log message repeated 132126 times

That repeats over and over again for 5-10 minutes, then this happens:

http://pastie.org/2395116

D1G1T4L3CH0

  • TDSM Team Member
  • Hero Member
  • *****
  • Posts: 518
  • Karma: +22/-2
  • Tester / Moderator
    • View Profile
    • Personal Website
Re: Debian Lenny TSDM Setup
« Reply #10 on: August 19, 2011, 07:04:21 PM »
Confirmed. I just installed Debian on a real machine, previously I was using a virtual machine and it was working fine, but Now I'm thinking that didn't even have b31. This happens weather I attempt to load a pre-existing world or generate a new one.

Log
Code: [Select]
8/19/2011 8:10:45 PM Main> Logging started to file "/home/debuser/TDSM/Data/server_201$
8/19/2011 8:10:45 PM Main> Starting remote console server
8/19/2011 8:10:45 PM Main> Saved file "rcon_logins.properties".
8/19/2011 8:10:46 PM Main> Preparing Server Data...
8/19/2011 8:10:46 PM RCon> Remote console server started on 0.0.0.0:7023.
8/19/2011 8:10:46 PM Main> Generating World '.\Worlds\World3.wld'
8/19/2011 8:10:46 PM Main> Generated seed: 42
8/19/2011 8:10:46 PM Main> Program crash:
System.NullReferenceException: Object reference not set to an instance of an object
  at Terraria_Server.Program.Main (System.String[] args) [0x00000] in <filename unknow$
8/19/2011 8:10:46 PM Main> Please send crashlog.txt to http://tdsm.org/
8/19/2011 8:10:46 PM Main> Log end.

Crash Log
Code: [Select]
Crash Log Generated by TDSM #31 for v1.0.6.1 {22}
System.NullReferenceException: Object reference not set to an instance of an object
  at Terraria_Server.Program.Main (System.String[] args) [0x00000] in <filename unknow$

Edit: I just confirmed the version of TDSM in the VM is the current version and it's working perfectly. I'm not sure what I did differently on the VM.
« Last Edit: August 19, 2011, 07:29:32 PM by D1G1T4L3CH0 »
Server Machine: Xubuntu 11.10 Xfce Mono 2.10.5
Thanks to all those who work on TDSM. It's a great alternative to the official one. And thanks to the plugin devs too for making it even better.

Malkierian

  • TDSM Team Member
  • Sr. Member
  • *****
  • Posts: 338
  • Karma: +20/-0
    • View Profile
Re: Debian Lenny TSDM Setup
« Reply #11 on: November 17, 2011, 01:18:15 PM »
Post your server.properties file, within code tags, please.

Malkierian

  • TDSM Team Member
  • Sr. Member
  • *****
  • Posts: 338
  • Karma: +20/-0
    • View Profile
Re: Debian Lenny TSDM Setup
« Reply #12 on: November 17, 2011, 01:39:09 PM »


Server.properties is in your TDSM folder, not your mono folder

Malkierian

  • TDSM Team Member
  • Sr. Member
  • *****
  • Posts: 338
  • Karma: +20/-0
    • View Profile
Re: Debian Lenny TSDM Setup
« Reply #13 on: November 17, 2011, 01:54:18 PM »
Thanks,i installed the server on vps ,but how do i connect now?


Server.properties is in your TDSM folder, not your mono folder

Oh,so i should downolad TSDM mod from here ,and copy to vps files with WinSCP or so?  :D
« Last Edit: November 17, 2011, 01:59:51 PM by Malkierian »

Malkierian

  • TDSM Team Member
  • Sr. Member
  • *****
  • Posts: 338
  • Karma: +20/-0
    • View Profile
Re: Debian Lenny TSDM Setup
« Reply #14 on: November 17, 2011, 02:04:41 PM »
My point is that you said you had already installed the server, and then you ask if you should download the server to install it...  Make up your mind.

 


SimplePortal 2.3.3 © 2008-2010, SimplePortal