News:

MegaGlests' game mods menu let's you install many new mods. Even more are available on the MegaGlest Wiki and the Mods forum.

Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - bzt

#1
Bug reports / Re: LAN game crashes
10 April 2024, 11:27:56
Thank you for your answer!
Quote from: jammyjamjamman on  6 April 2024, 20:12:28What exact OS are you trying to run the game on?
x86_64 GNU/Linux, kernel 6.8.2-1
Quote from: jammyjamjamman on  6 April 2024, 20:12:28Also, have you opened the TCP port 61357 (or 61357-61366 or whatever port you're hosting on) in your firewall in your OS?
Both machines are in the same LAN, there's no firewall between them (firewall is only installed on the router on the WAN interface). But to be sure, I've checked, with a dummy listener and netcat, I can communicate on those ports.
Quote from: jammyjamjamman on  6 April 2024, 20:12:28If you're up for experimentation, you could try compiling and using the latest MG development version and checking whether the game crashes there:
Thanks, I'll try and report back.

FYI, I was wondering, I'm using MegaGlest in a row for years now, always upgrading it with my distro. Could it be that some very old incompatible config file remained and that's causing this? (I've tried to remove the package and reinstall, but that does not necessarily clear all the user specific config, just the system-wide config. I've manually deleted the entire ~/.megaglest directory, and I was looking for files under ~/.config and ~/.cache but couldn't find any.) I've also tried to run through strace to locate the configs, but there's way too much noise.

Thanks,
bzt

EDIT: Ok, I've compiled the game from the latest git repo. Compilation gave some warnings:
In file included from /home/bzt/Documents/megaglest-source/source/shared_lib/include/util/utf8.h:31,
                 from /home/bzt/Documents/megaglest-source/source/shared_lib/sources/graphics/gl/text_renderer_gl.cpp:21:
/home/bzt/Documents/megaglest-source/source/shared_lib/include/util/utf8/checked.h:268:34: warning: 'template<class _Category, class _Tp, class _Distance, class _Pointer, class _Reference> struct std::iterator' is deprecated [-Wdeprecated-declarations]
  268 |     class iterator : public std::iterator <std::bidirectional_iterator_tag, uint32_t> {
      |                                  ^~~~~~~~
In file included from /usr/include/c++/13.2.1/bits/stl_iterator_base_funcs.h:66,
                 from /usr/include/c++/13.2.1/string:47,
                 from /home/bzt/Documents/megaglest-source/source/shared_lib/include/graphics/text_renderer.h:15,
                 from /home/bzt/Documents/megaglest-source/source/shared_lib/include/graphics/gl/text_renderer_gl.h:15,
                 from /home/bzt/Documents/megaglest-source/source/shared_lib/sources/graphics/gl/text_renderer_gl.cpp:12:
/usr/include/c++/13.2.1/bits/stl_iterator_base_types.h:127:34: note: declared here
  127 |     struct _GLIBCXX17_DEPRECATED iterator
      |                                  ^~~~~~~~
This is repeated on several places.
/home/bzt/Documents/megaglest-source/source/shared_lib/sources/platform/common/base_thread.cpp: In destructor 'virtual Shared::PlatformCommon::BaseThread::~BaseThread()':
/home/bzt/Documents/megaglest-source/source/shared_lib/sources/platform/common/base_thread.cpp:95:17: warning: 'throw' will always call 'terminate' [-Wterminate]
   95 |                 throw megaglest_runtime_error(szBuf);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/bzt/Documents/megaglest-source/source/shared_lib/sources/platform/common/base_thread.cpp:95:17: note: in C++11 destructors default to 'noexcept'
Again, same error repeated on several places.
In file included from /home/bzt/Documents/megaglest-source/source/shared_lib/include/util/util.h:20,
                 from /home/bzt/Documents/megaglest-source/source/shared_lib/sources/platform/posix/miniftpclient.cpp:14:
/home/bzt/Documents/megaglest-source/source/shared_lib/sources/platform/posix/miniftpclient.cpp: In member function 'std::pair<Shared::PlatformCommon::FTP_Client_ResultType, std::__cxx11::basic_string<char> > Shared::PlatformCommon::FTPClientThread::getFileFromServer(Shared::PlatformCommon::FTP_Client_CallbackType, std::pair<std::__cxx11::basic_string<char>, std::__cxx11::basic_string<char> >, std::string, std::string, std::string, std::string, std::vector<std::__cxx11::basic_string<char> >*)':
/home/bzt/Documents/megaglest-source/source/shared_lib/sources/platform/posix/miniftpclient.cpp:1005:32: warning: 'CURLOPT_PROGRESSFUNCTION' is deprecated: since 7.32.0. Use CURLOPT_XFERINFOFUNCTION [-Wdeprecated-declarations]
1005 |         curl_easy_setopt(curl, CURLOPT_PROGRESSFUNCTION, file_progress);
      |                                ^~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/curl/curl.h:1291:3: note: declared here
1291 |   CURLOPTDEPRECATED(CURLOPT_PROGRESSFUNCTION, CURLOPTTYPE_FUNCTIONPOINT, 56,
      |   ^~~~~~~~~~~~~~~~~
Not sure if this is relevant for this bug.
/home/bzt/Documents/megaglest-source/source/shared_lib/sources/platform/posix/ircclient.cpp: In function 'void Shared::PlatformCommon::dump_event(irc_session_t*, const char*, const char*, const char**, unsigned int)':
/home/bzt/Documents/megaglest-source/source/shared_lib/sources/platform/posix/ircclient.cpp:81:25: warning: 'char* strncat(char*, const char*, size_t)' specified bound depends on the length of the source argument [-Wstringop-overflow=]
   81 |                 strncat (buf, params[cnt],std::min((int)strlen(params[cnt]),511));
      |                 ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/home/bzt/Documents/megaglest-source/source/shared_lib/sources/platform/posix/ircclient.cpp:81:63: note: length computed here
   81 |                 strncat (buf, params[cnt],std::min((int)strlen(params[cnt]),511));
      |                                                         ~~~~~~^~~~~~~~~~~~~
This is obviously a bug in the compiler (std::min makes sure of it that there's no buffer overflow here).

The compiled editor crashes with the following message:
$ ./megaglest_editor
Using wxWidgets version [3.2.4.0]

(megaglest_editor:291916): Gtk-CRITICAL **: 13:48:13.744: gtk_distribute_natural_allocation: assertion 'extra_space >= 0' failed

(megaglest_editor:291916): Gtk-WARNING **: 13:48:13.745: Negative content width -5 (allocation 2, extents 4x3) while allocating gadget (node toolbar, owner GtkToolbar)

(megaglest_editor:291916): Gtk-WARNING **: 13:48:13.745: Negative content height -6 (allocation 1, extents 4x3) while allocating gadget (node toolbar, owner GtkToolbar)

(megaglest_editor:291916): Gtk-WARNING **: 13:48:13.746: Negative content height -9 (allocation 1, extents 5x5) while allocating gadget (node button, owner GtkToggleButton)

(megaglest_editor:291916): Gtk-WARNING **: 13:48:13.782: Negative content width -5 (allocation 2, extents 4x3) while allocating gadget (node toolbar, owner GtkToolbar)

(megaglest_editor:291916): Gtk-WARNING **: 13:48:13.782: Negative content height -6 (allocation 1, extents 4x3) while allocating gadget (node toolbar, owner GtkToolbar)

(megaglest_editor:291916): Gtk-WARNING **: 13:48:13.782: Negative content height -9 (allocation 1, extents 5x5) while allocating gadget (node button, owner GtkToggleButton)

(megaglest_editor:291916): Gtk-WARNING **: 13:48:13.783: Negative content height -6 (allocation 1, extents 4x3) while allocating gadget (node toolbar, owner GtkToolbar)

(megaglest_editor:291916): Gtk-WARNING **: 13:48:13.783: Negative content height -9 (allocation 1, extents 5x5) while allocating gadget (node button, owner GtkToggleButton)
*** BUG ***
In pixman_region32_init_rect: Invalid rectangle passed
Set a breakpoint on '_pixman_log_error' to debug

Segmentation fault (core dumped)


But the LAN game seems to work:
$ ./megaglest
megaglest v3.13-dev
Compiled using: GNUC: 130201 [64bit] platform: Linux-X64 endianness: little
GIT: [Rev: 5888.d32221a] - using STREFLOP [SSE] - [no-denormals]
Auto Change resolution to (1920 x 1080) from (800 x 600)
MainWindow forced change of resolution to desktop values (1920 x 1080) instead of (800 x 600)
[E] pw.loop [loop.c:67 pw_loop_new()] 0x61d1e0ff3330: can't make support.system handle: No such file or directory
[ALSOFT] (EE) Failed to create PipeWire event thread loop (errno: 2)
Game unique identifier is: d33a651e-f731-11ee-a4a2-af255dcbaa08

**STEAM NOT detected, writing out NON STEAM end game stats for player!
It worth noting that this 3.13-dev does not recognize the installed mods (empty list), but with the defaults it starts and I'm able to move units, no crash.

EDIT2: one more thing, I have this in glest.ini:

...
LogPath=$HOME/.megaglest/
DayTime=1000
DebugLogFile=debug.log
DebugMode=true
DebugPerformance=false
DebugNetwork=true
DebugWorldSynch=true
...
But ~/.megaglest/debug.log is not created.

Hope this helps,
bzt
#2
Bug reports / LAN game crashes
2 April 2024, 07:29:09
Hi,

Running MegaGlest on Linux. This used to work, but since I've upgraded to 3.13 it doesn't any more.

megaglest v3.13.0
Compiled using: GNUC: 120100 [64bit] platform: Linux-X64 endianness: little
GIT: [Rev: $5604.3a5d459$] - using STREFLOP [SSE] - [no-denormals]

Same OS, same version on both machines. When I choose New Game -> LAN Game -> Host Game on one of the machines, and New Game -> LAN Game -> Find LAN Game on the other.

The game loads and starts, the scene appears with the units, but I can't move the mouse. The server side then quits, the client freezes. I got the following messages on the standard error:

Server side (one that is hosting the game):
[E] pw.loop [loop.c:67 pw_loop_new()] 0x5dbf55938020: can't make support.system handle: No such file or directory
[ALSOFT] (EE) Failed to create PipeWire event thread loop (errno: 2)
[ALSOFT] (EE) Could not query RTKit: No such file or directory (2)
/usr/include/c++/12.1.0/bits/stl_vector.h:1123: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = Glest::Game::NetworkCommand; _Alloc = std::allocator<Glest::Game::NetworkCommand>; reference = Glest::Game::NetworkCommand&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.
Aborted (core dumped)
(and it quits)

Client side (one that connects):
[E] pw.loop [loop.c:67 pw_loop_new()] 0x62d498b5fc20: can't make support.system handle: No such file or directory
[ALSOFT] (EE) Failed to create PipeWire event thread loop (errno: 2)
/usr/include/c++/12.1.0/bits/stl_vector.h:1123: std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](size_type) [with _Tp = Glest::Game::NetworkCommand; _Alloc = std::allocator<Glest::Game::NetworkCommand>; reference = Glest::Game::NetworkCommand&; size_type = long unsigned int]: Assertion '__n < this->size()' failed.
Aborted (core dumped)
(and it freezes, does not respond to anything, and I must kill it with sigkill)

Any idea how to fix this?

Thanks!
bzt
#3
MegaGlest / Re: Hungarian Translation
8 July 2019, 15:34:50
Hi,

That's a pity, but anyway thanks for your help! At least my version is fully translated, so my boy can read and can use the game.
We'll have fun, I can guarantee that! :-D It is a really awesome game! Thankfully there's no pirate faction otherwise I couldn't keep my younger boy away, and I don't have enough computers for all of us! :-)

Bests for all megaglest users and admins,
bzt
#4
MegaGlest / Re: Hungarian Translation
2 July 2019, 21:04:06
Hi,

Since you haven't sent the existing translation, I was unable to see what phrases they have used. Doesn't matter, I've finished with my translation, it's not just the interface, tutorials and basic factions, but I've translated everything. It is 100% done, every single line in data/lang, techs/megapack as well as in tutorials are now in Hungarian.

What do you think, @andy_5995, is it possible to create a pull request now for the Hungarian language? I'd appreciate your help on this. Transifex is unfortunately not an option, because I can't register an account therefore I can't download translations in the game either (requires username and password. Would it be possible to hardcode a read-only Transifex user into the game for downloading only?)

Cheers,
bzt
#5
MegaGlest / Re: Hungarian Translation
1 July 2019, 23:37:21
HI

@andy_5995: thanks! I appreciate that you have tried, even though you said I should forget what you have said :-)

@tomreyn: it is not hard to like this awesome game!!! :-) Thank you, I've linked my repo, all the translated files are there. Is that format good? I hope it should be easy to merge those with the translation on Transifex. I'm sure my translation is more complete than 26% :-) If you could somehow send me that version, I'd merge the two myself.

About the firewall: I've checked the logs (what I can access, that is), and it says there's a potential XSS, no details though. I only get an empty page in the browser. The layer 7 firewall used here is known to be a bit paranoid, it does false alarms sometimes, this is not the first site I can't access. But you know what they say: it's better to be safe than sorry.

Cheers,
bzt
#6
MegaGlest / Re: Hungarian Translation
1 July 2019, 13:20:34
Nobody? Seriously guys, I need a little help here.
To whom should I speak to get a new language merged into MegaGlest? I've translated not only the interface, but the tutorials too.

Thanks,
bzt
#7
MegaGlest / Hungarian Translation
30 June 2019, 02:33:22
Hi Guys,

First I'd like to say how awesome this game is! My boy totally got addicted to it:-) So much that I had to translate MegaGlest for him. Now I'd like to share this new Hungarian translation with others, but I'm not sure where to go at this point. Transiflex does not work for me, it gets caught up by the firewall for some reason (not sure why).

The translated files can be found here: https://gitlab.com/bztsrc/lingameshun/tree/master/megaglest/usr/share/megaglest
I know they are not perfect, but I did my best with my boy constantly negging me, "let me play!" :-) I was consistent in naming and I haven't used any translators (I'm a native speaker). Hope this would be useful to others too!

bzt