Mod The Galaxy Community Content Repository

Verkenner

New Member
Joined
Mar 30, 2019
Messages
3
It's all very confusing.

I've tried both creating a server via the Zonamadev VM and also following the guide on https://github.com/ModTheGalaxy/DevEnv

I cannot get either to build the MTG Repo (The Zonamadev VM can build the default SWGEmu files)

I get the following error with both setups and was hoping someone could point me in the right direction please?


/home/swgemu/workspace/mtgserver/MMOCoreORB/src/server/zone/managers/frs/FrsManagerImplementation.cpp:4103:1: error: expected declaration before ‘}’ token
}
^
[ 64%] Building CXX object src/CMakeFiles/core3.dir/server/zone/managers/guild/GuildManagerImplementation.cpp.o
[ 64%] Building CXX object src/CMakeFiles/core3.dir/server/zone/managers/holocron/HolocronManager.cpp.o
[ 64%] Building CXX object src/CMakeFiles/core3.dir/server/zone/managers/jedi/JediManager.cpp.o
src/CMakeFiles/core3.dir/build.make:1238: recipe for target 'src/CMakeFiles/core3.dir/server/zone/managers/frs/FrsManagerImplementation.cpp.o' failed
make[3]: *** [src/CMakeFiles/core3.dir/server/zone/managers/frs/FrsManagerImplementation.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/home/swgemu/workspace/mtgserver/MMOCoreORB/build/unix'
CMakeFiles/Makefile2:445: recipe for target 'src/CMakeFiles/core3.dir/all' failed
make[2]: *** [src/CMakeFiles/core3.dir/all] Error 2
make[2]: Leaving directory '/home/swgemu/workspace/mtgserver/MMOCoreORB/build/unix'
Makefile:127: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/swgemu/workspace/mtgserver/MMOCoreORB/build/unix'
Makefile:120: recipe for target 'build-cmake-with-idl' failed
make: *** [build-cmake-with-idl] Error 2
./setup: line 169: ./core3: No such file or directory


Thank you in advance.
 

gyrantol

Member
Joined
Jan 16, 2015
Messages
127
It's all very confusing.

I've tried both creating a server via the Zonamadev VM and also following the guide on https://github.com/ModTheGalaxy/DevEnv

I cannot get either to build the MTG Repo (The Zonamadev VM can build the default SWGEmu files)

I get the following error with both setups and was hoping someone could point me in the right direction please?


/home/swgemu/workspace/mtgserver/MMOCoreORB/src/server/zone/managers/frs/FrsManagerImplementation.cpp:4103:1: error: expected declaration before ‘}’ token
}
^
[ 64%] Building CXX object src/CMakeFiles/core3.dir/server/zone/managers/guild/GuildManagerImplementation.cpp.o
[ 64%] Building CXX object src/CMakeFiles/core3.dir/server/zone/managers/holocron/HolocronManager.cpp.o
[ 64%] Building CXX object src/CMakeFiles/core3.dir/server/zone/managers/jedi/JediManager.cpp.o
src/CMakeFiles/core3.dir/build.make:1238: recipe for target 'src/CMakeFiles/core3.dir/server/zone/managers/frs/FrsManagerImplementation.cpp.o' failed
make[3]: *** [src/CMakeFiles/core3.dir/server/zone/managers/frs/FrsManagerImplementation.cpp.o] Error 1
make[3]: *** Waiting for unfinished jobs....
make[3]: Leaving directory '/home/swgemu/workspace/mtgserver/MMOCoreORB/build/unix'
CMakeFiles/Makefile2:445: recipe for target 'src/CMakeFiles/core3.dir/all' failed
make[2]: *** [src/CMakeFiles/core3.dir/all] Error 2
make[2]: Leaving directory '/home/swgemu/workspace/mtgserver/MMOCoreORB/build/unix'
Makefile:127: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/swgemu/workspace/mtgserver/MMOCoreORB/build/unix'
Makefile:120: recipe for target 'build-cmake-with-idl' failed
make: *** [build-cmake-with-idl] Error 2
./setup: line 169: ./core3: No such file or directory


Thank you in advance.
FrsManagerImplementation.cpp:4103:1 tells you the file and line that is causing the problem. It looks like you are missing a } in your code. Double check through all the functions and make sure that each { has a closing }. Using Atom on the VM is a good tool because it can highlight functions and you can see where you missed the closing }
 

Verkenner

New Member
Joined
Mar 30, 2019
Messages
3
Thank You @gyrantol, I appreciate it.

I've resolved that issue, but now get an error further on in the build process. Any suggestions anyone please? Thank you


build>> [758/1185] Building CXX object src/CMakeFiles/core3.dir/server/zone/managers/gcw/GCWManagerImplementation.cpp.o
build>> FAILED: src/CMakeFiles/core3.dir/server/zone/managers/gcw/GCWManagerImplementation.cpp.o
build>> ccache /usr/bin/c++ -DCOMPILE_CORE3_TESTS -DDEFAULT_DYNAMIC_CAST -DODB_REFERENCES -I/usr/local/include -I/usr/include/mysql -I/home/vagrant/workspace/Core3/MMOEngine/include -I../../../utils/googletest-release-1.8.0/googletest/include -I../../../utils/googletest-release-1.8.0/googlemock/include -I../../../src -I../../../src/autogen -I../../../utils -I../../../src/. -Wall -Wextra -Wno-unused -Wno-sign-compare -Wno-multichar -Wno-unused-parameter -Wno-overloaded-virtual -Wno-missing-declarations -Werror -march=native -fno-omit-frame-pointer -g -pthread -std=gnu++11 -MD -MT src/CMakeFiles/core3.dir/server/zone/managers/gcw/GCWManagerImplementation.cpp.o -MF src/CMakeFiles/core3.dir/server/zone/managers/gcw/GCWManagerImplementation.cpp.o.d -o src/CMakeFiles/core3.dir/server/zone/managers/gcw/GCWManagerImplementation.cpp.o -c /home/vagrant/workspace/Core3/MMOCoreORB/src/server/zone/managers/gcw/GCWManagerImplementation.cpp
build>> In file included from ../../../src/autogen/server/zone/managers/gcw/GCWManager.h:10:0,
build>> from /home/vagrant/workspace/Core3/MMOCoreORB/src/server/zone/managers/gcw/GCWManagerImplementation.cpp:8:
build>> /home/vagrant/workspace/Core3/MMOEngine/include/engine/core/ManagedReference.h: In instantiation of 'void engine::core::ManagedReference<O>::updateObject(O) [with O = DestructibleBuildingDataComponent*]':
build>> /home/vagrant/workspace/Core3/MMOEngine/include/engine/core/ManagedReference.h:111:16: required from 'O engine::core::ManagedReference<O>::eek:perator=(O) [with O = DestructibleBuildingDataComponent*]'
build>> ../../../src/server/zone/managers/gcw/tasks/BaseRebootTask.h:15:14: required from here
build>> /home/vagrant/workspace/Core3/MMOEngine/include/engine/core/ManagedReference.h:178:27: error: 'class DestructibleBuildingDataComponent' has no member named '_getObjectID'; did you mean 'getObjectData'?
build>> loadedOID = obj ? obj->_getObjectID() : 0;
build>> ~~~~~^~~~~~~~~~~~
build>> [759/1185] Building CXX object src/CMakeFiles/core3.dir/server/zone/managers/frs/FrsManagerImplementation.cpp.o
build>> [760/1185] Building CXX object src/CMakeFiles/core3.dir/server/zone/managers/group/GroupManager.cpp.o
build>> [761/1185] Building CXX object src/CMakeFiles/core3.dir/server/zone/managers/gcw/sessions/ContrabandScanSessionImplementation.cpp.o
build>> [762/1185] Building CXX object src/CMakeFiles/core3.dir/server/zone/managers/guild/GuildManagerImplementation.cpp.o
build>> ninja: build stopped: subcommand failed.
build>> Makefile:137: recipe for target 'build-ninja-debug' failed
build>> make: *** [build-ninja-debug] Error 1
build>> ** BUILD FAILED **
build>>
build>>
 
Last edited:

Valkyra

Member
Joined
Aug 31, 2010
Messages
211
Looks like an Engine3 issue, with the paths in your output are you having a seperate copy of MMOEngine in the Core3 directory?

I believe it should just be residing within MMOCoreORB/utils/engine3, as it's own submodule initialized repository. It could be that you're using an older version of the Engine which would be overriding, depending on how old of a core you're using (I'm assuming you're using the MTGserver repository)
 

Verkenner

New Member
Joined
Mar 30, 2019
Messages
3
Yes, I was using the latest ZonamaDev VM which compilied fine before adding the mtg repo.

Just to make sure I wasn't going mad, created the Zonamadev VM from scratch, same error.

I followed the guide at https://github.com/ModTheGalaxy/DevEnv to create a Dev Environment from scratch on a spare Esxi machine and get the original error mentioned in my first post.

Has something changed recently with Core3 or am I being stupid. (3rd Day now spent on this) :(
 
Last edited:

gyrantol

Member
Joined
Jan 16, 2015
Messages
127
The Answer has been changing the Public Engine quite a bit recently. When did you pull the mtg code? you may find that the engine is to high. There was a new commit 5 days ago which should work with the latest engine

if you open a terminal window and type cd workspace/MMOEngine and press enter
then type git show
you will be able to view which commit of the engine you are running too
 
Last edited:

Lasko

Moderator
Staff member
Moderator
Joined
Feb 13, 2012
Messages
295
I have just updated the repo with latest from unstable, updated the engine submodule to latest and fixed that FRS issue. Also updated the DevEnv repo.

I have also added a blank Debian 9.8 VM to use with the DevEnv repo. There's a link in the readme.

I have just tested a full install and build using the scripts and as of today 09/04/2019, It worked first time using the guide. Hopefully, it'll be easier to update as TA changes more stuff :) There will be a post coming soon with a more detailed guide on setting up a VM for development/content work.

I don't use ZD, so can't really comment on any Vagrant/ZD issues as that's supported by SWGEmu (or anyone here kind enough if they have an answer).

A quick preview of the MtG VM.
MtGServer_Desktop1.png
 
Last edited:

Polariszene

Member
Joined
Feb 19, 2017
Messages
101
so i downloaded the mtg server and set it up, did the build and went to use MySql to set the ip and it says that MySql can not connect .... how do i connect it ? it says access denied for user root@localhost
 

Polariszene

Member
Joined
Feb 19, 2017
Messages
101
so i downloaded the mtg server and set it up, did the build and went to use MySql to set the ip and it says that MySql can not connect .... how do i connect it ? it says access denied for user root@localhost

i think i got it figured out
 

Lasko

Moderator
Staff member
Moderator
Joined
Feb 13, 2012
Messages
295
Update OP.

New VM, Tre link and full guide on the repo's wiki.
 

dfelth

New Member
Joined
Mar 22, 2015
Messages
4
Hello!

I'm getting the following error when trying to build the server on the MtG VM:

-- Using engine3 git submodule
-- Initializing git submodules
fatal: unable to access 'https://github.com/swgemu/engine3.git/': Could not resolve host: github.com
Unable to fetch in submodule path 'utils/engine3'
CMake Error at cmake/Modules/FindEngine3.cmake:123 (MESSAGE):
Could NOT download engine3 git submodule
Call Stack (most recent call first):
CMakeLists.txt:72 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/swgemu/workspace/mtgserver/MMOCoreORB/build/unix/CMakeFiles/CMakeOutput.log".
Makefile:120: recipe for target 'build-cmake-with-idl' failed
make: *** [build-cmake-with-idl] Error 1

I tried poking around in the engine3 folder as I saw another post that referenced a change in that area, but I'm at a loss. Does anyone have any ideas? Or does it seem like I messed something up from the beginning lol
 

gyrantol

Member
Joined
Jan 16, 2015
Messages
127
Hello!

I'm getting the following error when trying to build the server on the MtG VM:

-- Using engine3 git submodule
-- Initializing git submodules
fatal: unable to access 'https://github.com/swgemu/engine3.git/': Could not resolve host: github.com
Unable to fetch in submodule path 'utils/engine3'
CMake Error at cmake/Modules/FindEngine3.cmake:123 (MESSAGE):
Could NOT download engine3 git submodule
Call Stack (most recent call first):
CMakeLists.txt:72 (find_package)


-- Configuring incomplete, errors occurred!
See also "/home/swgemu/workspace/mtgserver/MMOCoreORB/build/unix/CMakeFiles/CMakeOutput.log".
Makefile:120: recipe for target 'build-cmake-with-idl' failed
make: *** [build-cmake-with-idl] Error 1

I tried poking around in the engine3 folder as I saw another post that referenced a change in that area, but I'm at a loss. Does anyone have any ideas? Or does it seem like I messed something up from the beginning lol
SWGEmu have now linked the public engine to the Core3 build. When you build now if there is nothing in the folder it automatically downloads the public engine for you. It looks like there is an issue with your external connection so it can't connect to github to download it.
 

dfelth

New Member
Joined
Mar 22, 2015
Messages
4
SWGEmu have now linked the public engine to the Core3 build. When you build now if there is nothing in the folder it automatically downloads the public engine for you. It looks like there is an issue with your external connection so it can't connect to github to download it.
Gotcha. Thanks for the info. I tried manually downloading the repo, but that appears to leave me with a blank engine folder as well. I'll give it another try tonight.
 

dfelth

New Member
Joined
Mar 22, 2015
Messages
4
Awesome! Thanks gyrantol and Pake. That did the trick.

However, now I'm getting a new error when trying to launch the client - nothing appears to happen and then I have a SWGEmu.exe-stage.119898 txt file in my SWGEmu install folder.

The text within the file reads:

automated crash dump from SWGEmu.exe stage.119798


SWGEmu.exe: stage.119798
unknown location : FATAL 4d962776: appearance/defaultappearance.apt could not be found. Are your paths set up correctly?


Ram: 2047mb
Os1: 6.2.9200
Os2: Unknown
NumProc: 4
GameFeatureBits: 0
SubscriptionFeatureBits: 0

It's weird because this same install was launching fine a few days ago. I tried Googling, but couldn't really find many results beyond the install not having the correct files?
 

Pake

Member
Joined
Dec 8, 2011
Messages
147
That's strange. I never had any issues with connecting etc, though I havent restarted my computers in awhile.
 

Tyclo

New Member
Joined
Nov 23, 2016
Messages
16
Awesome! Thanks gyrantol and Pake. That did the trick.

However, now I'm getting a new error when trying to launch the client - nothing appears to happen and then I have a SWGEmu.exe-stage.119898 txt file in my SWGEmu install folder.

The text within the file reads:

automated crash dump from SWGEmu.exe stage.119798


SWGEmu.exe: stage.119798
unknown location : FATAL 4d962776: appearance/defaultappearance.apt could not be found. Are your paths set up correctly?


Ram: 2047mb
Os1: 6.2.9200
Os2: Unknown
NumProc: 4
GameFeatureBits: 0
SubscriptionFeatureBits: 0

It's weird because this same install was launching fine a few days ago. I tried Googling, but couldn't really find many results beyond the install not having the correct files?
On your game client your tres are not set correctly or there's something wrong with them.

In your game client folder check your swgemu_live.cfg config file and make sure that you have the correct tres listed and that they are in the correct directory.
 
Top Bottom