Can't host UTnT server on Linux.

General help and assistance forum.
Post Reply
User avatar
Mysyk
 
Posts: 79
Joined: Sun Jun 17, 2012 9:58 am
Location: Almaty City, Kazakhstan
Clan: 4-bit games
Clan Tag: 4bit
Contact:

Can't host UTnT server on Linux.

#1

Post by Mysyk » Thu Sep 06, 2012 8:10 pm

Hello. I have a problem. I want to host UTnT server on Linux OS. I made everything by instructions.

Code: Select all

File - utnt.sh. It contents those:
#!/bin/sh
  ZNPATH="/root/doomgames"
  $ZNPATH/zandronum/zandronum-server -host \
  +invasion 1 \
  -port 10679 \
  -iwad $ZNPATH/iwads/DOOM2.WAD \
  -file $ZNPATH/wads/skulltag_data_126.pk3 $ZNPATH/wads/skulltag_actors.pk3 $ZNPATH/wads/UTNT_INV.WAD\
  +exec $ZNPATH/cfg/utnt.cfg 
The battle has begun. Enemy Titan's shield taking damage.
They are missiling our Titan's shield. Re-activate on Silos.

User avatar
Dark-Assassin
Maintenence Crew
Posts: 968
Joined: Fri May 25, 2012 4:25 am

RE: Can't host UTnT server on Linux.

#2

Post by Dark-Assassin » Thu Sep 06, 2012 8:18 pm

Is you'r wads and cfg folders located at /root/doomgames/ or /root/doomgames/zandronum/ ?

If the former, I don't really see why it won't work.
If the latter, it should be obvious where you went wrong.

Also on line 7, add a space between the UTNT_INV.WAD and \
Just in case.
Last edited by Dark-Assassin on Thu Sep 06, 2012 8:23 pm, edited 1 time in total.
❗ Don't message me for technical or moderation support.
❔ Use the relevant support channels instead.

User avatar
Mysyk
 
Posts: 79
Joined: Sun Jun 17, 2012 9:58 am
Location: Almaty City, Kazakhstan
Clan: 4-bit games
Clan Tag: 4bit
Contact:

RE: Can't host UTnT server on Linux.

#3

Post by Mysyk » Thu Sep 06, 2012 8:40 pm

-=Dark-Assassin=- wrote: Is you'r wads and cfg folders located at /root/doomgames/ or /root/doomgames/zandronum/ ?
Sorry. But you must say Are your WADs. :)
My PWADs are in /root/doomgames/wads/ and IWADs are /root/doomgames/iwads/ and cfg(ini) files are in /root/doomgames/cfg/ respectively.
If the former, I don't really see why it won't work.
If the latter, it should be obvious where you went wrong.

Also on line 7, add a space between the UTNT_INV.WAD and \
Just in case.
I know about space on line 7. :) I edited utnt.sh file many times. Problem began with Zandronum. It worked fine all time with Skulltag.
Last edited by Mysyk on Thu Sep 06, 2012 8:41 pm, edited 1 time in total.
The battle has begun. Enemy Titan's shield taking damage.
They are missiling our Titan's shield. Re-activate on Silos.

L1T
 
Posts: 66
Joined: Wed Jun 06, 2012 1:44 am
Location: Milky Way Galaxy

RE: Can't host UTnT server on Linux.

#4

Post by L1T » Fri Sep 07, 2012 8:14 pm

My exact UTnT script

Code: Select all

#!/bin/bash
#first map is tnt01
./zandronum-server -iwad /opt/zand/doom2/doom2.wad -file /opt/zand/doom2/tutnt-v107.pk3 +exec /opt/zand/skulltag.ini +skill 3 +sv_weaponstay true +sv_itemrespawn true -host +sv_website www.l1tcomputing.com +sv_motd "www.l1tcomputing.com" +sv_hostname "L1T---Ultimate-Torment-&-Torture-Coop" -port 10668

Also giving us the error you get would help a lot.
Last edited by L1T on Fri Sep 07, 2012 8:15 pm, edited 1 time in total.

User avatar
Mysyk
 
Posts: 79
Joined: Sun Jun 17, 2012 9:58 am
Location: Almaty City, Kazakhstan
Clan: 4-bit games
Clan Tag: 4bit
Contact:

RE: Can't host UTnT server on Linux.

#5

Post by Mysyk » Fri Sep 07, 2012 8:43 pm

I encounter one of two errors. utnt.sh has

Code: Select all

#!/bin/sh
  ZNPATH="/root/doomgames"
  $ZNPATH/zandronum/zandronum-server -host \
  +invasion 1 \
  -port 10679 \
  -iwad $ZNPATH/iwads/DOOM2.WAD \
  -file $ZNPATH/wads/skulltag_data_126.pk3 $ZNPATH/wads/skulltag_actors.pk3 $ZNPATH/wads/UTNT_INV.WAD \
  +exec $ZNPATH/cfg/utnt.cfg 
Spoiler: This (Open)

Code: Select all

Zandronum v1.0 - SVN revision 120819-2011 - SDL version
Compiled on Aug 19 2012

M_LoadDefaults: Load system defaults.
invasion will be changed for next game.
skill will be changed for next game.
sv_suddendeath will be changed for next game.
Log started: /root/doomgames/logs/utnt.log__2012_09_07-20_35_21.log, Fri Sep  7 20:35:21 2012
W_Init: Init WADfiles.
 adding /root/doomgames/zandronum/zandronum.pk3 (551 files)
 adding /root/doomgames/iwads/DOOM2.WAD (2919 lumps)
 adding /root/doomgames/wads/skulltag_data_126.pk3 (2449 files)
 adding /root/doomgames/wads/skulltag_actors.pk3 (23 files)
 adding /root/doomgames/wads/UTNT_INV.WAD (1380 lumps)
FileReaderLZMA: LzmaDec_Allocate failed: 2
The battle has begun. Enemy Titan's shield taking damage.
They are missiling our Titan's shield. Re-activate on Silos.

User avatar
Dusk
Developer
Posts: 581
Joined: Thu May 24, 2012 9:59 pm
Location: Turku

RE: Can't host UTnT server on Linux.

#6

Post by Dusk » Fri Sep 07, 2012 10:55 pm

FileReaderLZMA: LzmaDec_Allocate failed: 2
That's a memory allocation error. Are you sure you have necessary RAM available to run the server?

User avatar
Dark-Assassin
Maintenence Crew
Posts: 968
Joined: Fri May 25, 2012 4:25 am

RE: Can't host UTnT server on Linux.

#7

Post by Dark-Assassin » Sat Sep 08, 2012 6:44 am

Type free -t -m and paste the result here. Preferably in a code box.
The results shown will be shown in MB.
❗ Don't message me for technical or moderation support.
❔ Use the relevant support channels instead.

User avatar
Mysyk
 
Posts: 79
Joined: Sun Jun 17, 2012 9:58 am
Location: Almaty City, Kazakhstan
Clan: 4-bit games
Clan Tag: 4bit
Contact:

RE: Can't host UTnT server on Linux.

#8

Post by Mysyk » Sat Sep 08, 2012 9:22 am

Dusk wrote:
FileReaderLZMA: LzmaDec_Allocate failed: 2
That's a memory allocation error. Are you sure you have necessary RAM available to run the server?
-=Dark-Assassin=- wrote: Type free -t -m and paste the result here. Preferably in a code box.
The results shown will be shown in MB.
I had suspect such feature. Ok. Here is a log.

Code: Select all

root@oldgamer:~# free -t -m
             total       used       free     shared    buffers     cached
Mem:           512        480         31          0          0          0
-/+ buffers/cache:        480         31
Swap:            0          0          0
Total:         512        480         31
Last edited by Mysyk on Sat Sep 08, 2012 9:23 am, edited 1 time in total.
The battle has begun. Enemy Titan's shield taking damage.
They are missiling our Titan's shield. Re-activate on Silos.

User avatar
Dark-Assassin
Maintenence Crew
Posts: 968
Joined: Fri May 25, 2012 4:25 am

RE: Can't host UTnT server on Linux.

#9

Post by Dark-Assassin » Sat Sep 08, 2012 10:57 am

Seems you only got ~32MB free RAM. You should also allocate some SWAP so everything isn't all you'r RAM.
You can find tutorials about that around, I'd suggest allocating something from 512MB to 2048MB.

Anyway, Skulltag/Zandronum requires an average of 128MB of RAM to be able to host a server.
It may use much less on idle, but it leaves room for players.

You cannot use SWAP for something more dynamic as it is not fast enough, but it is good for the less dynamic data storage.
❗ Don't message me for technical or moderation support.
❔ Use the relevant support channels instead.

User avatar
Mysyk
 
Posts: 79
Joined: Sun Jun 17, 2012 9:58 am
Location: Almaty City, Kazakhstan
Clan: 4-bit games
Clan Tag: 4bit
Contact:

RE: Can't host UTnT server on Linux.

#10

Post by Mysyk » Sat Sep 08, 2012 12:14 pm

Ok. Thank you. I have Zandronum and ZDaemor servers. Also I set Red Eclipse server.
The battle has begun. Enemy Titan's shield taking damage.
They are missiling our Titan's shield. Re-activate on Silos.

User avatar
Mysyk
 
Posts: 79
Joined: Sun Jun 17, 2012 9:58 am
Location: Almaty City, Kazakhstan
Clan: 4-bit games
Clan Tag: 4bit
Contact:

RE: Can't host UTnT server on Linux.

#11

Post by Mysyk » Mon Nov 26, 2012 12:02 pm

Yeah. You were right. I need more RAM for my server.
Thread is no more actual.
The battle has begun. Enemy Titan's shield taking damage.
They are missiling our Titan's shield. Re-activate on Silos.

User avatar
Torr Samaho
Lead Developer
Posts: 1543
Joined: Fri May 25, 2012 6:03 pm
Location: Germany

RE: Can't host UTnT server on Linux.

#12

Post by Torr Samaho » Mon Nov 26, 2012 8:24 pm

If you are low on RAM, you can set sv_disallowbots to true. This considerably reduces the memory usage of the server since the bot nodes are not built then.

User avatar
Ænima
Addicted to Zandronum
Posts: 3579
Joined: Tue Jun 05, 2012 6:12 pm

RE: Can't host UTnT server on Linux.

#13

Post by Ænima » Mon Nov 26, 2012 8:31 pm

Torr Samaho wrote: If you are low on RAM, you can set sv_disallowbots to true. This considerably reduces the memory usage of the server since the bot nodes are not built then.
Shouldn't this be off by default (until a bot is added)? Or would that require resetting the map?
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

User avatar
Torr Samaho
Lead Developer
Posts: 1543
Joined: Fri May 25, 2012 6:03 pm
Location: Germany

RE: Can't host UTnT server on Linux.

#14

Post by Torr Samaho » Mon Nov 26, 2012 8:43 pm

Ænima wrote: Shouldn't this be off by default (until a bot is added)? Or would that require resetting the map?
The bot nodes are build when the map is loaded. Possibly you could rewrite the system to do this on-the-fly when the first bot is added.

User avatar
Ænima
Addicted to Zandronum
Posts: 3579
Joined: Tue Jun 05, 2012 6:12 pm

RE: Can't host UTnT server on Linux.

#15

Post by Ænima » Mon Nov 26, 2012 9:04 pm

Torr Samaho wrote:
Ænima wrote: Shouldn't this be off by default (until a bot is added)? Or would that require resetting the map?
The bot nodes are build when the map is loaded. Possibly you could rewrite the system to do this on-the-fly when the first bot is added.
That sounds like a good idea. Although depending on how much memory would be saved (i have no idea what the figures are, I'll have to run some tests for myself), it may not even be worth the effort, if it's a negligible amount of savings.

Where in the source is the botnode-building behavior located?

EDIT:
On second thought, maybe it might be easier to just make a change to Doomseeker and have it use sv_disallowbots by default unless the player chooses to start the server with bots via the server setup dialogue. If they try to add bots after the server has already been launched, they'll be told that they need to reset the map in order for the change to take effect.

Hosts who choose to add bots appear to be a minority anyways, and the only servers that I see where bots are used are (no offense) servers that I would never play on. I think the benefits far outweigh the risks when it comes to disabling the building of bot nodes (online) by default.
Last edited by Ænima on Mon Nov 26, 2012 9:34 pm, edited 1 time in total.
Reinforcements: midgame Survival joining/respawning
Doom64: Unabsolved: Doom64 + Diablo II
ZandroSkins: a pack made by our community
AeniPuffs: 3D blood and bullet puff effects, free to use for your own mods
Squad Radio: a WASD-based radio chat menu, add your own custom sounds!
Mercenaries (on hold)
Image

User avatar
Dark-Assassin
Maintenence Crew
Posts: 968
Joined: Fri May 25, 2012 4:25 am

RE: Can't host UTnT server on Linux.

#16

Post by Dark-Assassin » Mon Nov 26, 2012 11:59 pm

I don't think it would have mattered much with an average of 32MB of RAM left.
As soon as a player would join, it would crash the server, that's if he is lucky for it to not have while initializing.
❗ Don't message me for technical or moderation support.
❔ Use the relevant support channels instead.

User avatar
Espio
Forum Regular
Posts: 370
Joined: Sat Jun 02, 2012 8:28 pm
Location: OldWorldBlues.esm

RE: Can't host UTnT server on Linux.

#17

Post by Espio » Tue Nov 27, 2012 1:56 am

Torr Samaho wrote: If you are low on RAM, you can set sv_disallowbots to true. This considerably reduces the memory usage of the server since the bot nodes are not built then.
Shitting me? Wish I had known that earlier... better late than never.
Last edited by Espio on Tue Nov 27, 2012 1:56 am, edited 1 time in total.
Image
https://youtu.be/qbgpcemxVPA?t=8s "Get the fuck up."
https://www.mediafire.com/?kb7sf1nizgwvqsr My custom music wad for Doom I & II - 166 MEG WARNING

<Dark-Slayer>CorpseGr1nder, get a job
<Konar6>blow*

(09:58:54)<BlueCool>think of all the stuff i couldve done in thoes 5 second
(09:59:05)<BlueCool>1. bake cookies
(09:59:16)<BlueCool>2. eat cookies

User avatar
Mysyk
 
Posts: 79
Joined: Sun Jun 17, 2012 9:58 am
Location: Almaty City, Kazakhstan
Clan: 4-bit games
Clan Tag: 4bit
Contact:

RE: Can't host UTnT server on Linux.

#18

Post by Mysyk » Tue Nov 27, 2012 10:40 am

Torr Samaho wrote: If you are low on RAM, you can set sv_disallowbots to true. This considerably reduces the memory usage of the server since the bot nodes are not built then.
Whoa. :) I had to knew it early. Is set sv_disallowbots to true by default? I run my servers via Unix OSes.
I just have checked my configs. It is true.
Ænima wrote: EDIT:
On second thought, maybe it might be easier to just make a change to Doomseeker and have it use sv_disallowbots by default unless the player chooses to start the server with bots via the server setup dialogue. If they try to add bots after the server has already been launched, they'll be told that they need to reset the map in order for the change to take effect.

Hosts who choose to add bots appear to be a minority anyways, and the only servers that I see where bots are used are (no offense) servers that I would never play on. I think the benefits far outweigh the risks when it comes to disabling the building of bot nodes (online) by default.
Don't forget about Linux users. You should notice that thread about servers on Linux.

As I said before it is due to low amount of physical memory.
The battle has begun. Enemy Titan's shield taking damage.
They are missiling our Titan's shield. Re-activate on Silos.

Post Reply