LAN

LAN

Requests for features in the spring code.

Moderator: Moderators

Post Reply
kalda341
Posts: 101
Joined: 19 Nov 2010, 09:44

LAN

Post by kalda341 »

When will the spring lobby get built in lan? It would be so much easier not to have to use other programs.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: LAN

Post by Forboding Angel »

Well LAN support is already there in the form of tasserver.jar. Run it, connect to it via lobby. Profit???
kalda341
Posts: 101
Joined: 19 Nov 2010, 09:44

Re: LAN

Post by kalda341 »

Forboding Angel wrote:Well LAN support is already there in the form of tasserver.jar. Run it, connect to it via lobby. Profit???
I tried tasserver.jar. When I run it nothing happens. And yes I have java.
User avatar
koshi
Lobby Developer
Posts: 1059
Joined: 14 Aug 2007, 16:15

Re: LAN

Post by koshi »

there are a couple threads showing you what you're doing wrong, use the the search
User avatar
exciter
Posts: 65
Joined: 13 Jun 2010, 16:47

Re: LAN

Post by exciter »

Hi,

I agree with the point of having something like an built-in LAN in SpringLobby (or in other lobbies). Because it makes the whole thing more comfortable for all, especially new, players here.

I think it's a nice idea :D
Last edited by exciter on 20 Nov 2010, 14:35, edited 1 time in total.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: LAN

Post by hoijui »

what you mean with built-in LAN, is actually a built-in lobby server, or the ability to start (and possibly monitor) an external lobby server from withing the lobby-client.
User avatar
exciter
Posts: 65
Joined: 13 Jun 2010, 16:47

Re: LAN

Post by exciter »

hoijui wrote:what you mean with built-in LAN, is actually a built-in lobby server, or the ability to start (and possibly monitor) an external lobby server from withing the lobby-client.
I mean that there should be a way in the lobby to host a lan game without downloading the lobby files by yourself etc...

;D
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: LAN

Post by very_bad_soldier »

The bigger problem than downloading and starting the LAN-server is that you first need to know that such a thing exists. I remember our first spring game we had using a LAN server we had the exact same problem cause we just had no clue how things work on planet spring.
User avatar
Forboding Angel
Evolution RTS Developer
Posts: 14673
Joined: 17 Nov 2005, 02:43

Re: LAN

Post by Forboding Angel »

exciter wrote:
hoijui wrote:what you mean with built-in LAN, is actually a built-in lobby server, or the ability to start (and possibly monitor) an external lobby server from withing the lobby-client.
I mean that there should be a way in the lobby to host a lan game without downloading the lobby files by yourself etc...

;D
Well the thing is, when you install spring, the files you need to run lan are installed as well.
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: LAN

Post by very_bad_soldier »

Forboding Angel wrote: Well the thing is, when you install spring, the files you need to run lan are installed as well.
Ok, but it does not solve anything to just dump a file called "TASServer.jar" to the user's hard disk. Even the readme.txt about how to use it is buried inside the jar.

Just starting it gives:

Code: Select all

D:\Games\Spring>java -jar TASServer.jar
TASServer 0.35 started on 2010.11.20 at 03:38:49 MEZ
Accounts info file not found, switching to "lan mode" ...
LAN mode enabled
Couldn't find motd.txt. Using default MOTD
Unable to find or read <IP2Country> file. Skipping ...
Could not listen on port: 8200
Server stopped.
Exception in thread "main" Unable to start UDP server on port 8201. Ignoring ...
java.lang.NullPointerException

        at NATHelpServer.stopServer(NATHelpServer.java:71)
        at TASServer.closeServerAndExit(TASServer.java:397)
        at TASServer.main(TASServer.java:3007)
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: LAN

Post by hoijui »

maybe something is already running on these ports (probably other instances of TASServer, check task-manager).
use an other port, or kill what is running on it.

Code: Select all

java -jar TASServer.jar -PORT 8900
i will have to release a new version, and maybe make a shortcut to TASServer in the start-menu or something. is already on the TODO list
User avatar
very_bad_soldier
Posts: 1397
Joined: 20 Feb 2007, 01:10

Re: LAN

Post by very_bad_soldier »

Ok, previous attempts to start it by double-clicking spawned the server silently (without console window), so for me it seemed nothing happened. Futher attemps to start it on a console to see whats wrong failed cause of the in-use ports (as you already guessed).
Maybe better have a console window by default when double clicking TASServer.jar? I dont even know how to quit the server correctly when there is no console window (besides killing javaw.exe via task manager).
User avatar
exciter
Posts: 65
Joined: 13 Jun 2010, 16:47

Re: LAN

Post by exciter »

very_bad_soldier wrote:The bigger problem than downloading and starting the LAN-server is that you first need to know that such a thing exists. I remember our first spring game we had using a LAN server we had the exact same problem cause we just had no clue how things work on planet spring.
You're right. New players don't get to know that there is something like a lan server available. Integrating a tab in springlobby called "lan" would be nice.

Furthermore, the existing tutorials aren't very clearly described.
In this german thread there is the problem that the person is very confused about this lan server thing. It's to funky.

Making lan games easier to host is the point you should focus on ;)
User avatar
smoth
Posts: 22309
Joined: 13 Jan 2005, 00:46

Re: LAN

Post by smoth »

it isn't a lan server though. It goes out to the internet and back. It requires you having an open port and at a large lan like quakecon(where internet gets choked) spring becomes unplayable.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: LAN

Post by knorke »

exciter wrote:
very_bad_soldier wrote:The bigger problem than downloading and starting the LAN-server is that you first need to know that such a thing exists. I remember our first spring game we had using a LAN server we had the exact same problem cause we just had no clue how things work on planet spring.

In this german thread there is the problem that the person is very confused about this lan server thing. It's to funky.
lol at the answers from the "Admin"...srsly wtf.
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: LAN

Post by hoijui »

all the TASServer docu is very outdated. but it makes no sense to change it until there is a new release. i still have to cleanup some things.

edit: if anyone is interested, source code is here:
https://github.com/spring/TASServer
Post Reply

Return to “Feature Requests”