matoom / frostbite

MUD client for dragonrealms.
29 stars 17 forks source link

Logs not working in 1.6.4b #27

Closed Dartellum closed 7 years ago

Dartellum commented 7 years ago

Hello! Long time. I compiled 1.6.4 on my Ubuntu 16.04 computer and noticed logging is not working. I have the directory and I even start from the directory. Thoughts?

matoom commented 7 years ago

I tried with 1.6.3 (there's only minor differences that should not affect logging) and it seems to work for me.

You said you compiled yourself, did you include the log.ini file? The QT build option only makes the binaries but there's a few other dependencies that you still might need.

Dartellum commented 7 years ago

I can recompile. You did not have a tar for Ubuntu so I had to improvise. :)

Logs.ini was not in the source tar file. I took one from an older build and compiling now.

matoom commented 7 years ago

Yea, i've been working on automated release packaging but linux version doesn't have any built-in tools for that so i had to do everything manually and it's still not quite there yet (added a few more changes just now).

You can find it here, search for unix:!macx https://github.com/matoom/frostbite/blob/master/gui/gui.pro

Your problem is not that you didn't compile the right way but there's a few steps you have to follow after you compile which is that you have to copy the other release files from https://github.com/matoom/frostbite/tree/master/deploy I mean quite frankly, the log.ini is the only one you should really have in there, the rest is mostly placeholder directory structure.

You can do that manually but in the latest version if you compile in RELEASE mode, the packaging should be automated. In your build look for the "release" folder, everything should be in there.

Dartellum commented 7 years ago

I just open QT and open Frostbite.pro file and compile. I did not see a release folder in the structure so I am not doing it right still. :) I see you put the compiled version up. I will grab that. Thanks!

matoom commented 7 years ago

To elaborate a little further with a few examples.

cd build-FrostBite-Desktop_Qt_5_6_2_GCC_64bit-Release$
ls 

If you press the green arrow (run), qt creator will run this Frostbite executable here. You can copy all your config files here if you want.

drwxrwxr-x 4 .
drwxrwxr-x 9 ..
-rwxrwxr-x 1 Frostbite <-- the only product of compile
drwxrwxr-x 6 gui
-rw-rw-r-- 1 Makefile
drwxrwxr-x 4 release

There's now also a release package that should have all the proper files. This would be the one that i upload as the release.

cd release

drwxrwxr-x 3 .
drwxrwxr-x 4 ..
drwxrwxr-x 10 Frostbite-1.6.4b
-rw-rw-r-- 1 frostbite-debian64.tar.gz
matoom commented 7 years ago

Yea, release will be there only if you build in the release mode.

image

If you build in debug mode, it will take a considerable performance hit.

Dartellum commented 7 years ago

Logs working with the tar you put up there. I also compiled in Release and it now logs as well.