Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Game log files for server play lack a world name component #2030

Closed
Cervator opened this issue Nov 28, 2015 · 6 comments
Closed

Game log files for server play lack a world name component #2030

Cervator opened this issue Nov 28, 2015 · 6 comments
Assignees

Comments

@Cervator
Copy link
Member

If you play a local game the log file for game/world stuff will be named something like Terasology-world1.log

If you join a server you'll get Terasology-.log - we probably should give that some alternative name (could just use a placeholder "world" unless we have a local world with a name)

Should be easy.

@msteiger
Copy link
Member

msteiger commented Dec 4, 2015

Maybe we could use the seed string?

@Cervator
Copy link
Member Author

Cervator commented Dec 4, 2015

Are clients actually sent that? I thought sharing the seed could potentially be a cheating issue. It could also be long or controversial if players use creative seed values ;-)

Could we use the server name / address in some fashion? With a sequence number at the end if a user repeatedly joins the same server in one session.

@papeixoto
Copy link

@Cervator @msteiger Hi. I'm also a student from Porto, we are a lot i know :). For this deliverable we're supposed to implement a feature and document it. So, in order to start, my group would greatly appreciate some explanation about the packages/modules related with this feature and the the main steps to implement it.

@Cervator
Copy link
Member Author

You're all most definitely welcome, the more the merrier! :-)

This one should be pretty easy. It is an engine / config feature, no (game) modules involved. Although, I'm realizing our logback.xml (in Terasology/facades/PC/src/main/resources) is referring to a ${phase} I have no idea where it is getting from :D @msteiger probably knows.

In this kind of case CTRL-SHIFT-F is your best friend in IntelliJ. Search for a related keyword, like "phase" and see what hits you get. Likely you can deduce which is the relevant one then see if that brings you to the code we need tweaked, or if you'll find a new keyword to go for.

Find Usages on method names or even simply CTRL-left mouse to navigate between things also helps a lot :-)

@msteiger
Copy link
Member

The phase and the other parts of the log filename are configured in LoggingContext.

I assume you can get the game name from the GameManifest. If that does not work you might want to check this spot here: JoinServer L84. This is where the client get the game name from the server.

arkka added a commit to delftswa2016/Terasology that referenced this issue Feb 24, 2016
…ame component MovingBlocks#2030.

Add new method getRemoteAddress() on ServerImpl and its interface as scaffolding.
arkka added a commit to delftswa2016/Terasology that referenced this issue Feb 24, 2016
@arkka
Copy link
Contributor

arkka commented Feb 24, 2016

@Cervator @msteiger Hi, based on your comments I try to solve this issue with my solution branch fix-log-files-on-server-play. As @msteiger mentioned before, I made the implementation on JoinServer class.

In order to get the remote host address, I need to create new methods on ServerImpl class L138 . Is this the most effective way to achieve this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants