Author Topic: Please add support for distribution/download of network scenarios  (Read 766 times)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Titi and I were trying to create a network scenario and test it. He was hosting and did not pass the scenario to me. I connected to his server and got a repeating on-screen message which matches the first error described on standard output/error. Then Titi started the game and I got more errors which are also contained in the terminal output:

Code: [Select]
tomreyn@atibox:~/SCM/megaglest-trunk$ mk/linux/megaglest --ini-path=mk/linux/ --data-path=mk/linux/
megaglest v3.6.1-dev
Compiled using: GNUC: 40603 [64bit] on: Jun 19 2012 03:02:00
SVN: [Rev: 3401M] - using STREFLOP [SSE] - [no-denormals]
[2012-06-19 22:55:38] *ERROR* In [components.cpp::setSelectedItem Line: 411]
instanceName [listBoxScenario] idx = 0 items[idx] = [Benchmark Os]
[2012-06-19 22:55:40] *ERROR* In [menu_state_connected_game.cpp::update Line: 2566] Error [[listBoxScenario] Value not found on list box: [Net Magic]
Stack Trace:
mk/linux/megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&) address [0xa082d6] line: 246
mk/linux/megaglest:Glest::Game::GraphicListBox::setSelectedItem(std::string, bool) address [0x556da4] line: 413
mk/linux/megaglest:Glest::Game::MenuStateConnectedGame::setupUIFromGameSettings(Glest::Game::GameSettings*, bool) address [0x7c21d8] line: 3291
mk/linux/megaglest:Glest::Game::MenuStateConnectedGame::update() address [0x7cd672] line: 2471
mk/linux/megaglest:Glest::Game::Program::loopWorker() address [0x6aef66] line: 432
mk/linux/megaglest:Glest::Game::glestMain(int, char**) address [0x6949a0] line: 4660
mk/linux/megaglest:Glest::Game::glestMainWrapper(int, char**) address [0x6985c6] line: 4840
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main() address [0x7fcaa33d876d] line: 0
mk/linux/megaglest() [0x4f1f39] address [0x4f1f39]
]

...

[2012-06-19 22:56:56] *ERROR* In [scenario.cpp::load 74]
Error loading scenario []:
/home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/util/util.cpp line: 610 pos == string::npos for []
Stack Trace:
mk/linux/megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&) address [0xa082d6] line: 246
mk/linux/megaglest:Shared::Util::lastDir(std::string const&) address [0x9db235] line: 610
mk/linux/megaglest:Glest::Game::Scenario::load(std::string const&) address [0x9121c8] line: 51
mk/linux/megaglest:Glest::Game::World::loadScenario(std::string const&, Shared::Util::Checksum*, bool, Shared::Xml::XmlNode const*) address [0x93440d] line: 346
mk/linux/megaglest:Glest::Game::Game::load(int) address [0x5af521] line: 859
mk/linux/megaglest:Glest::Game::Program::setState(Glest::Game::ProgramState*, bool) address [0x6aa43d] line: 563
mk/linux/megaglest:Glest::Game::MenuStateConnectedGame::update() address [0x7ce9a7] line: 2528
mk/linux/megaglest:Glest::Game::Program::loopWorker() address [0x6aef66] line: 432
mk/linux/megaglest:Glest::Game::glestMain(int, char**) address [0x6949a0] line: 4660
mk/linux/megaglest:Glest::Game::glestMainWrapper(int, char**) address [0x6985c6] line: 4840
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main() address [0x7fcaa33d876d] line: 0
mk/linux/megaglest() [0x4f1f39] address [0x4f1f39]

[2012-06-19 22:56:57] *ERROR* In [program.cpp::setState Line: 590]
Error [In [scenario.cpp::load 74]
Error loading scenario []:
/home/tomreyn/SCM/megaglest-trunk/source/shared_lib/sources/util/util.cpp line: 610 pos == string::npos for []
Stack Trace:
mk/linux/megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&) address [0xa082d6] line: 246
mk/linux/megaglest:Shared::Util::lastDir(std::string const&) address [0x9db235] line: 610
mk/linux/megaglest:Glest::Game::Scenario::load(std::string const&) address [0x9121c8] line: 51
mk/linux/megaglest:Glest::Game::World::loadScenario(std::string const&, Shared::Util::Checksum*, bool, Shared::Xml::XmlNode const*) address [0x93440d] line: 346
mk/linux/megaglest:Glest::Game::Game::load(int) address [0x5af521] line: 859
mk/linux/megaglest:Glest::Game::Program::setState(Glest::Game::ProgramState*, bool) address [0x6aa43d] line: 563
mk/linux/megaglest:Glest::Game::MenuStateConnectedGame::update() address [0x7ce9a7] line: 2528
mk/linux/megaglest:Glest::Game::Program::loopWorker() address [0x6aef66] line: 432
mk/linux/megaglest:Glest::Game::glestMain(int, char**) address [0x6949a0] line: 4660
mk/linux/megaglest:Glest::Game::glestMainWrapper(int, char**) address [0x6985c6] line: 4840
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main() address [0x7fcaa33d876d] line: 0
mk/linux/megaglest() [0x4f1f39] address [0x4f1f39]

Stack Trace:
mk/linux/megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&) address [0xa082d6] line: 246
mk/linux/megaglest:Glest::Game::Scenario::load(std::string const&) address [0x912a98] line: 78
mk/linux/megaglest:Glest::Game::World::loadScenario(std::string const&, Shared::Util::Checksum*, bool, Shared::Xml::XmlNode const*) address [0x93440d] line: 346
mk/linux/megaglest:Glest::Game::Game::load(int) address [0x5af521] line: 859
mk/linux/megaglest:Glest::Game::Program::setState(Glest::Game::ProgramState*, bool) address [0x6aa43d] line: 563
mk/linux/megaglest:Glest::Game::MenuStateConnectedGame::update() address [0x7ce9a7] line: 2528
mk/linux/megaglest:Glest::Game::Program::loopWorker() address [0x6aef66] line: 432
mk/linux/megaglest:Glest::Game::glestMain(int, char**) address [0x6949a0] line: 4660
mk/linux/megaglest:Glest::Game::glestMainWrapper(int, char**) address [0x6985c6] line: 4840
/lib/x86_64-linux-gnu/libc.so.6:__libc_start_main() address [0x7fcaa33d876d] line: 0
mk/linux/megaglest() [0x4f1f39] address [0x4f1f39]
]
« Last Edit: 22 June 2012, 02:19:48 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

victorj

  • Guest
Re: r3401: Trouble with network scenarios
« Reply #1 on: 19 June 2012, 21:17:33 »
I think I got the same error you trying to connect to the server, my system is a kubuntu 11.10 - 64-bits:

Code: [Select]
To launch MegaGlest from the current directory, use:
  mk/linux/megaglest --ini-path=mk/linux/ --data-path=mk/linux/
To launch MegaGlest from within the build directory, use:
  ../mk/linux/megaglest --ini-path=../mk/linux/ --data-path=../mk/linux/
victor@victor-kubuntu:~/.megaglest-dev/megaglest$ mk/linux/megaglest --ini-path=mk/linux/ --data-path=mk/linux/
megaglest v3.6.1-dev
Compiled using: GNUC: 40601 on: Jun 19 2012 17:57:35
SVN: [Rev: 3401M] - using STREFLOP [SSE] - [no-denormals]
AL lib: pulseaudio.c:331: PulseAudio returned minreq > tlength/2; expect break up
[2012-06-19 18:09:13] *ERROR* In [menu_state_connected_game.cpp::update Line: 2566] Error [[listBoxScenario] Value not found on list box: [Net Magic]
Stack Trace:
mk/linux/megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&) address [0x863b70f] line: 246
mk/linux/megaglest:Glest::Game::GraphicListBox::setSelectedItem(std::string, bool) address [0x818fcf5] line: 413
mk/linux/megaglest:Glest::Game::MenuStateConnectedGame::setupUIFromGameSettings(Glest::Game::GameSettings*, bool) address [0x83ff5a2] line: 3291
mk/linux/megaglest:Glest::Game::MenuStateConnectedGame::update() address [0x840b0a3] line: 2471
mk/linux/megaglest:Glest::Game::Program::loopWorker() address [0x82b21b0] line: 432
mk/linux/megaglest:Glest::Game::glestMain(int, char**) address [0x82ea704] line: 4660
mk/linux/megaglest:Glest::Game::glestMainWrapper(int, char**) address [0x82ecc40] line: 4840
mk/linux/megaglest:main() address [0x811864d] line: 4860
/lib/i386-linux-gnu/libc.so.6:__libc_start_main() address [0x4241e113] line: 0
mk/linux/megaglest() [0x811dbb9] address [0x811dbb9]
]
[2012-06-19 18:09:17] *ERROR* In [menu_state_connected_game.cpp::update Line: 2566] Error [[listBoxScenario] Value not found on list box: [Net Magic]
Stack Trace:
mk/linux/megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&) address [0x863b70f] line: 246
mk/linux/megaglest:Glest::Game::GraphicListBox::setSelectedItem(std::string, bool) address [0x818fcf5] line: 413
mk/linux/megaglest:Glest::Game::MenuStateConnectedGame::setupUIFromGameSettings(Glest::Game::GameSettings*, bool) address [0x83ff5a2] line: 3291
mk/linux/megaglest:Glest::Game::MenuStateConnectedGame::update() address [0x840b0a3] line: 2471
mk/linux/megaglest:Glest::Game::Program::loopWorker() address [0x82b21b0] line: 432
mk/linux/megaglest:Glest::Game::glestMain(int, char**) address [0x82ea704] line: 4660
mk/linux/megaglest:Glest::Game::glestMainWrapper(int, char**) address [0x82ecc40] line: 4840
mk/linux/megaglest:main() address [0x811864d] line: 4860
/lib/i386-linux-gnu/libc.so.6:__libc_start_main() address [0x4241e113] line: 0
mk/linux/megaglest() [0x811dbb9] address [0x811dbb9]
]
[2012-06-19 18:09:22] *ERROR* In [menu_state_connected_game.cpp::update Line: 2566] Error [[listBoxScenario] Value not found on list box: [Net Magic]
Stack Trace:
mk/linux/megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&) address [0x863b70f] line: 246
mk/linux/megaglest:Glest::Game::GraphicListBox::setSelectedItem(std::string, bool) address [0x818fcf5] line: 413
mk/linux/megaglest:Glest::Game::MenuStateConnectedGame::setupUIFromGameSettings(Glest::Game::GameSettings*, bool) address [0x83ff5a2] line: 3291
mk/linux/megaglest:Glest::Game::MenuStateConnectedGame::update() address [0x840b0a3] line: 2471
mk/linux/megaglest:Glest::Game::Program::loopWorker() address [0x82b21b0] line: 432
mk/linux/megaglest:Glest::Game::glestMain(int, char**) address [0x82ea704] line: 4660
mk/linux/megaglest:Glest::Game::glestMainWrapper(int, char**) address [0x82ecc40] line: 4840
mk/linux/megaglest:main() address [0x811864d] line: 4860
/lib/i386-linux-gnu/libc.so.6:__libc_start_main() address [0x4241e113] line: 0
mk/linux/megaglest() [0x811dbb9] address [0x811dbb9]
]
[2012-06-19 18:09:25] *ERROR* In [menu_state_connected_game.cpp::update Line: 2566] Error [[listBoxScenario] Value not found on list box: [Net Magic]
Stack Trace:
mk/linux/megaglest:Shared::Platform::megaglest_runtime_error::megaglest_runtime_error(std::string const&) address [0x863b70f] line: 246
mk/linux/megaglest:Glest::Game::GraphicListBox::setSelectedItem(std::string, bool) address [0x818fcf5] line: 413
mk/linux/megaglest:Glest::Game::MenuStateConnectedGame::setupUIFromGameSettings(Glest::Game::GameSettings*, bool) address [0x83ff5a2] line: 3291
mk/linux/megaglest:Glest::Game::MenuStateConnectedGame::update() address [0x840b0a3] line: 2471
mk/linux/megaglest:Glest::Game::Program::loopWorker() address [0x82b21b0] line: 432
mk/linux/megaglest:Glest::Game::glestMain(int, char**) address [0x82ea704] line: 4660
mk/linux/megaglest:Glest::Game::glestMainWrapper(int, char**) address [0x82ecc40] line: 4840
mk/linux/megaglest:main() address [0x811864d] line: 4860
/lib/i386-linux-gnu/libc.so.6:__libc_start_main() address [0x4241e113] line: 0
mk/linux/megaglest() [0x811dbb9] address [0x811dbb9]
]

    I realized also that I have one more line I think that is my error in pulse audio, I'm having problems with it here, not sure if this is related to my error in pulse audio, my megaglest closes alone. thank you
« Last Edit: 30 June 2012, 15:36:36 by victorj »

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: r3401: Trouble with network scenarios
« Reply #2 on: 19 June 2012, 21:43:43 »
Summing up: download of network scenarios does not currently work and there is no error handling, yet. However, it does work when both players have the files available.
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: r3401: Trouble with network scenarios
« Reply #3 on: 22 June 2012, 01:33:28 »
Yes this is known, no code was added to download network scenarios as of yet.