Jump to content
  • 0

[Two] Linux Ubuntu Compile and Installation Issues


Urlryn

Question

Ok seems I keep running into issues with the scripts later on during the installations. Nearly all the guides are different or outdated or both

Where to start?...i'm going around and around on all the different guides/posts/wiki trying to piece the old/new into some coherency.

example:

one person has:

git clone git://github.com/mangos/server.git
git clone git://github.com/mangos/database.git
cd server/src/bindings
git clone git://github.com/mangos/scripts.git
git apply src/bindings/scripts/patches/MaNGOS-*-ScriptDev2.patch

another has

mkdir mangos
cd mangos
git clone git://github.com/mangos/server.git
cd server
git clone git://github.com/mangos/scripts.git src/bindings/ScriptDev2
git apply src/bindings/ScriptDev2/patches/MaNGOS-*-ScriptDev2.patch

the wiki pages has:

mkdir mangos
cd mangos
git clone git://github.com/mangos/server.git
cd server
git clone git://github.com/mangos/scripts.git src/bindings/ScriptDev2
git apply src/bindings/ScriptDev2/patches/MaNGOS-*-ScriptDev2.patch

then you have ScriptDev2 saying to use:

git clone git://select one of the below based on your desired game
- - For WOTLK: Type in: "git clone git://github.com/scriptdev2/scriptdev2.git src/bindings/ScriptDev2
- - For CATA: Type in: "git clone git://github.com/scriptdev2/scriptdev2-cata.git src/bindings/ScriptDev2
- - For TBC: Type in: "git clone git://github.com/scriptdev2/scriptdev2-tbc.git src/bindings/ScriptDev2
- - For CLASSIC: Type in: "git clone git://github.com/scriptdev2/scriptdev2-classic.git src/bindings/ScriptDev2
git am src/bindings/ScriptDev2/patches/MaNGOS-*-ScriptDev2.patch

Then you get posts like:

In theory you can use both ScriptDev2 for mangos. But for the sake of compatibility to the core it is highly recommended to use githhub.com/mangosxxxxx/scripts
scriptdev2-xxxx repo is mainly developed to be compatible with CMangos instead of Mangos, although most of times this isn't a problem

And the patch never installs ever. So why is it there?

So as you can see its a bit confusing. So whats right and what isn't?

Urlryn

Link to comment
Share on other sites

15 answers to this question

Recommended Posts

Had to change this up a bit in the first script to get them working:

git clone [email][email protected]:mangoszero/database.git[/email]

It would prompt me for the typical authorization key and then fail connecting.

So change it back to

git clone git://github.com/mangostwo/database.git

and so on for those....

Second script.....probably be easier without a few typos! :P

Your database imports for DB_USER should be mysql -u$

You had mysql -uS

for x in _full_db/*.sql ; do echo "Importing ${x}" ; mysql -u${DB_USER} -h${DB_HOST} -p${DB_PASSWORD} ${DB_NAME} < ${x} ; done
for x in _develop/_developer_files/*.sql ; do echo "Importing ${x}" ; mysql -u${DB_USER} -h${DB_HOST} -p${DB_PASSWORD} ${DB_NAME} < ${x} ; done
for x in _develop/*.sql ; do echo "Importing ${x}" ; mysql -u${DB_USER} -h${DB_HOST} -p${DB_PASSWORD} ${DB_NAME} < ${x} ; done

Did I miss installing mangos database then importing the character/realmd/mangos? maybe even setting up the user?

I ended up doing those manually before running the second script......that correct?

For the second query and third i get these errors...

There is no devolper_files in this database folder so no worries there...but the third one...

Importing _develop/_developer_files/*.sql
./mangosdatabase.sh: line 14: _develop/_developer_files/*.sql: No such file or directory

Importing _develop/101_corepatch_mangos.sql
ERROR 1054 (42S22) at line 20: Unknown column 'required_12344_01_mangos_command' in 'db_version'

Importing _develop/101_updatepack_mangos.sql
ERROR 1064 (42000) at line 270: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '--UPDATE Database Version
UPDATE db_version set version = 'TwoDatabase 1.0.1 for' at line 1

But so far so good up to this point!

Urlryn

Link to comment
Share on other sites

Let us hear how that works out for you. Updating for other branches should be easy. Might even be snappier to make the scripts configurable for which branch you want.

now that might not be a bad idea....

start of it can prompt ya for which one you want zero/one/two/three/four

Link to comment
Share on other sites

Ok still having the issue at vmap_assembler

this is before I edited the 2 CMake files.

Scanning dependencies of target g3dlite
[ 2%] Building CXX object CMakeFiles/g3dlite.dir/home/mangosuser/Projects/mangos/two/server/dep/src/g3dlite/PhysicsFrame.cpp.o
In file included from /home/mangosuser/Projects/mangos/two/server/dep/src/g3dlite/PhysicsFrame.cpp:14:0:
/home/mangosuser/Projects/mangos/two/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/BinaryInput.h: In member function âG3D::uint16 G3D::BinaryInput::readUInt16()â:
/home/mangosuser/Projects/mangos/two/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/BinaryInput.h:284:30: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/mangosuser/Projects/mangos/two/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/BinaryInput.h: In member function âG3D::uint32 G3D::BinaryInput::readUInt32()â:
/home/mangosuser/Projects/mangos/two/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/BinaryInput.h:313:30: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
[ 4%] Building CXX object CMakeFiles/g3dlite.dir/home/mangosuser/Projects/mangos/two/server/dep/src/g3dlite/uint128.cpp.o
/home/mangosuser/Projects/mangos/two/server/dep/src/g3dlite/uint128.cpp: In function âvoid G3D::addAndCarry(const uint64&, const uint64&, G3D::uint64&, G3D::uint64&)â:
/home/mangosuser/Projects/mangos/two/server/dep/src/g3dlite/uint128.cpp:20:46: warning: narrowing conversion of â(((long unsigned int)_a) & 4294967295ul)â from âlong unsigned intâ to âG3D::uint32 {aka unsigned int}â inside { } is ill-formed in C++11 [-Wnarrowing]
/home/mangosuser/Projects/mangos/two/server/dep/src/g3dlite/uint128.cpp:20:46: warning: narrowing conversion of â(((long unsigned int)_a) >> 32)â from âlong unsigned intâ to âG3D::uint32 {aka unsigned int}â inside { } is ill-formed in C++11 [-Wnarrowing]
/home/mangosuser/Projects/mangos/two/server/dep/src/g3dlite/uint128.cpp:21:46: warning: narrowing conversion of â(((long unsigned int)_b) & 4294967295ul)â from âlong unsigned intâ to âG3D::uint32 {aka unsigned int}â inside { } is ill-formed in C++11 [-Wnarrowing]
/home/mangosuser/Projects/mangos/two/server/dep/src/g3dlite/uint128.cpp:21:46: warning: narrowing conversion of â(((long unsigned int)_b) >> 32)â from âlong unsigned intâ to âG3D::uint32 {aka unsigned int}â inside { } is ill-formed in C++11 [-Wnarrowing]
/home/mangosuser/Projects/mangos/two/server/dep/src/g3dlite/uint128.cpp: In function âvoid G3D::multiplyAndCarry(const uint64&, const uint64&, G3D::uint64&, G3D::uint64&)â:
/home/mangosuser/Projects/mangos/two/server/dep/src/g3dlite/uint128.cpp:38:46: warning: narrowing conversion of â(((long unsigned int)_a) & 4294967295ul)â from âlong unsigned intâ to âG3D::uint32 {aka unsigned int}â inside { } is ill-formed in C++11 [-Wnarrowing]
/home/mangosuser/Projects/mangos/two/server/dep/src/g3dlite/uint128.cpp:38:46: warning: narrowing conversion of â(((long unsigned int)_a) >> 32)â from âlong unsigned intâ to âG3D::uint32 {aka unsigned int}â inside { } is ill-formed in C++11 [-Wnarrowing]
/home/mangosuser/Projects/mangos/two/server/dep/src/g3dlite/uint128.cpp:39:46: warning: narrowing conversion of â(((long unsigned int)_b) & 4294967295ul)â from âlong unsigned intâ to âG3D::uint32 {aka unsigned int}â inside { } is ill-formed in C++11 [-Wnarrowing]
/home/mangosuser/Projects/mangos/two/server/dep/src/g3dlite/uint128.cpp:39:46: warning: narrowing conversion of â(((long unsigned int)_b) >> 32)â from âlong unsigned intâ to âG3D::uint32 {aka unsigned int}â inside { } is ill-formed in C++11 [-Wnarrowing]
[ 6%] Building CXX object CMakeFiles/g3dlite.dir/home/mangosuser/Projects/mangos/two/server/dep/src/g3dlite/FileSystem.cpp.o
In file included from /home/mangosuser/Projects/mangos/two/server/dep/src/g3dlite/FileSystem.cpp:19:0:
/home/mangosuser/Projects/mangos/two/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/BinaryInput.h: In member function âG3D::uint16 G3D::BinaryInput::readUInt16()â:
/home/mangosuser/Projects/mangos/two/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/BinaryInput.h:284:30: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/mangosuser/Projects/mangos/two/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/BinaryInput.h: In member function âG3D::uint32 G3D::BinaryInput::readUInt32()â:
/home/mangosuser/Projects/mangos/two/server/contrib/vmap_assembler/../../dep/include/g3dlite/G3D/BinaryInput.h:313:30: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
/home/mangosuser/Projects/mangos/two/server/dep/src/g3dlite/FileSystem.cpp: In member function âstd::string G3D::FileSystem::_currentDirectory()â:
/home/mangosuser/Projects/mangos/two/server/dep/src/g3dlite/FileSystem.cpp:507:23: warning: ignoring return value of âchar* getcwd(char*, size_t)â, declared with attribute warn_unused_result [-Wunused-result]
/home/mangosuser/Projects/mangos/two/server/dep/src/g3dlite/FileSystem.cpp: In member function âbool G3D::FileSystem::_isZipfile(const string&)â:
/home/mangosuser/Projects/mangos/two/server/dep/src/g3dlite/FileSystem.cpp:292:27: warning: ignoring return value of âsize_t fread(void*, size_t, size_t, FILE*)â, declared with attribute warn_unused_result [-Wunused-result]
Linking CXX static library libg3dlite.a
[ 85%] Built target g3dlite
[ 87%] Building CXX object CMakeFiles/vmap.dir/home/mangosuser/Projects/mangos/two/server/src/game/vmap/BIH.cpp.o
In file included from /home/mangosuser/Projects/mangos/two/server/contrib/vmap_assembler/../../dep/ACE_wrappers/ace/config-lite.h:24:0,
        from /home/mangosuser/Projects/mangos/two/server/contrib/vmap_assembler/../../dep/ACE_wrappers/ace/Basic_Types.h:46,
        from /home/mangosuser/Projects/mangos/two/server/contrib/vmap_assembler/../../src/framework/Platform/Define.h:24,
        from /home/mangosuser/Projects/mangos/two/server/src/game/vmap/BIH.h:26,
        from /home/mangosuser/Projects/mangos/two/server/src/game/vmap/BIH.cpp:19:
/home/mangosuser/Projects/mangos/two/server/contrib/vmap_assembler/../../dep/ACE_wrappers/ace/config-macros.h:28:26: fatal error: ace/config.h: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/vmap.dir/home/mangosuser/Projects/mangos/two/server/src/game/vmap/BIH.cpp.o] Error 1
make[1]: *** [CMakeFiles/vmap.dir/all] Error 2
make: *** [all] Error 2

This is after I updated the 2 CMake files:

[ 85%] Built target g3dlite
[ 87%] Building CXX object CMakeFiles/vmap.dir/home/mangosuser/Projects/mangos/two/server/src/game/vmap/BIH.cpp.o
In file included from /home/mangosuser/Projects/mangos/two/server/contrib/vmap_assembler/../../dep/ACE_wrappers/ace/config-lite.h:24:0,
        from /home/mangosuser/Projects/mangos/two/server/contrib/vmap_assembler/../../dep/ACE_wrappers/ace/Basic_Types.h:46,
        from /home/mangosuser/Projects/mangos/two/server/contrib/vmap_assembler/../../src/framework/Platform/Define.h:24,
        from /home/mangosuser/Projects/mangos/two/server/src/game/vmap/BIH.h:26,
        from /home/mangosuser/Projects/mangos/two/server/src/game/vmap/BIH.cpp:19:
/home/mangosuser/Projects/mangos/two/server/contrib/vmap_assembler/../../dep/ACE_wrappers/ace/config-macros.h:28:26: fatal error: ace/config.h: No such file or directory
compilation terminated.
make[2]: *** [CMakeFiles/vmap.dir/home/mangosuser/Projects/mangos/two/server/src/game/vmap/BIH.cpp.o] Error 1
make[1]: *** [CMakeFiles/vmap.dir/all] Error 2
make: *** [all] Error 2

break time to get some food! :)

Urlryn

Link to comment
Share on other sites

Luda,

Sorry for the bombardment of my posts in the last couple days! :)

Few question regarding the order of scripting/database/updates.

1. So you create the main databases from mangos/server/sql

create_mysql

characters

mangos

realmd

2. do you need to also add the ScriptDev2 under src/bindings/scripts/sql

scriptdev2_create_database

scriptdev2_create_structure

scriptdev2_script_full

3. Then bring in the Mangos database? or is this where you could use one of the others like Silvermoon or something?

/database/_tools

full_db

What about under updates in the server/sql/updates folder? do these need to be applied after applying the database?

thanks again

Urlryn

Link to comment
Share on other sites

Hey there is a quote of one of my posts.

However, don't forget in step 2 to apply mangos_scriptname_full.sql located in src/bindings/scripts/sql/ to the mangos database. But if you perform a database update you need to run first mangos_scriptname_clear.sql and then mangos_scriptname_full.sql.

In step 3 you can use the database, which is provided by mangos or any other that is compatible with your mangos revision.

Updates, which are located in server/sql/updates are created on the basis of core changes. Mostly they are already built in the database repository. If not you have to apply these.

Watch out for commits in the database repository which looks like "sync with core" or "core update pack" to ensure the latest core updates are built in.

Link to comment
Share on other sites

Ok i'll need to redo my server then....didn't do that one at all.

so basic order is:

1. server/sql

create_mysql

characters

mangos

realmd

2. Database/_tools

full_db

3. server/sql/updates

only if needed

4. src/bindings/scripts

scriptdev2_create_database

scriptdev2_create_structure

scriptdev2_script_full

5. src/bindings/scripts/sql

mangos_scriptname_full

this all look correct?

Link to comment
Share on other sites

The database/_tools/full_db uses the data of database/_full_db. Therefore you only need one of them. Use the tool or apply the files from the folder by yourself.

Also apply the data on step 2 not 5/6, because mangos_scriptname_full is applied to the data not to the empty structure of the database. Are your tables empty mangos_scriptname_full has no effect.

Link to comment
Share on other sites

nope they aren't empty but when starting the server i see alot of errors.....so want to be sure i'm putting the stuff correctly.

Spell (ID: 72745) has effect EffectImplicitTargetA/EffectImplicitTargetB = 38 (TARGET_SCRIPT), but does not have record in `spell_script_target`
Spell (ID: 72746) has effect EffectImplicitTargetA/EffectImplicitTargetB = 38 (TARGET_SCRIPT), but does not have record in `spell_script_target`
Spell (ID: 72747) has effect EffectImplicitTargetA/EffectImplicitTargetB = 38 (TARGET_SCRIPT), but does not have record in `spell_script_target`
Spell (ID: 72748) has effect EffectImplicitTargetA/EffectImplicitTargetB = 38 (TARGET_SCRIPT), but does not have record in `spell_script_target`
Spell (ID: 72850) has effect EffectImplicitTargetA/EffectImplicitTargetB = 38 (TARGET_SCRIPT), but does not have record in `spell_script_target`
Spell (ID: 72851) has effect EffectImplicitTargetA/EffectImplicitTargetB = 38 (TARGET_SCRIPT), but does not have record in `spell_script_target`

Gameobject (Entry: 179532 GoType: 3) have data7=179530 but trap GO (Entry 179530) not exist in `gameobject_template`.
Gameobject (Entry: 179533 GoType: 3) have data7=179531 but trap GO (Entry 179531) not exist in `gameobject_template`.
Gameobject (Entry: 180524 GoType: 1) have data3=180525 but trap GO (Entry 180525) not exist in `gameobject_template`.
Gameobject (Entry: 181154 GoType: 1) have data3=181214 but trap GO (Entry 181214) not exist in `gameobject_template`.
Gameobject (Entry: 181168 GoType: 10) have data12=4 but trap GO (Entry 4) not exist in `gameobject_template`.
Gameobject (Entry: 181169 GoType: 10) have data12=4 but trap GO (Entry 4) not exist in `gameobject_template`.
Gameobject (Entry: 181215 GoType: 1) have data3=181214 but trap GO (Entry 181214) not exist in `gameobject_template`.

Item (Entry: 3034) has unexpected RequiredDisenchantSkill (0) for non-disenchantable item class (6), reset it.
Item (Entry: 8840) has unexpected RequiredDisenchantSkill (0) for non-disenchantable item class (9), reset it.
Item (Entry: 46349) marked as disenchantable by RequiredDisenchantSkill, but not have disenchanting loot id.

Creature (GUID: 132915) has spell 32019 defined in `auras` field in `creature_addon, but spell is no self-only spell`.
Creature (GUID: 132916) has spell 46221 defined in `auras` field in `creature_addon, but spell is no self-only spell`.
Creature (GUID: 132918) has spell 32019 defined in `auras` field in `creature_addon, but spell is no self-only spell`.
Creature (GUID: 132919) has spell 46221 defined in `auras` field in `creature_addon, but spell is no self-only spell`.
Creature (GUID: 132921) has spell 32019 defined in `auras` field in `creature_addon, but spell is no self-only spell`.
Creature (GUID: 132922) has spell 32019 defined in `auras` field in `creature_addon, but spell is no self-only spell`.
Creature (GUID: 132923) has spell 32019 defined in `auras` field in `creature_addon, but spell is no self-only spell`.

Table `npc_trainer` (Entry: 26325) has redundant reqlevel 58 (=spell level) for spell 14271
Table `npc_trainer` (Entry: 26325) has redundant reqlevel 12 (=spell level) for spell 14281
Table `npc_trainer` (Entry: 26325) has redundant reqlevel 20 (=spell level) for spell 14282
Table `npc_trainer` (Entry: 26325) has redundant reqlevel 28 (=spell level) for spell 14283
Table `npc_trainer` (Entry: 26325) has redundant reqlevel 36 (=spell level) for spell 14284
Table `npc_trainer` (Entry: 26325) has redundant reqlevel 44 (=spell level) for spell 14285
Table `npc_trainer` (Entry: 26325) has redundant reqlevel 52 (=spell level) for spell 14286
Table `npc_trainer` (Entry: 26325) has redundant reqlevel 60 (=spell level) for spell 14287

013-07-28 13:46:20 Script registering but ScriptName go_father_flame is not assigned in database. Script will not be used.
2013-07-28 13:46:20 Script registering but ScriptName go_black_dragon_egg is not assigned in database. Script will not be used.
2013-07-28 13:46:20 Script registering but ScriptName npc_demonic_vapor is not assigned in database. Script will not be used.
2013-07-28 13:46:20 Script registering but ScriptName npc_power_blue_flight is not assigned in database. Script will not be used.
2013-07-28 13:46:20 Script registering but ScriptName npc_feather_vortex is not assigned in database. Script will not be used.
2013-07-28 13:46:20 Script registering but ScriptName npc_snufflenose_gopher is not assigned in database. Script will not be used.
2013-07-28 13:46:20 Script registering but ScriptName boss_zumrah is not assigned in database. Script will not be used.
2013-07-28 13:46:20 Script registering but ScriptName event_spell_unlocking is not assigned in database. Script will not be used.
2013-07-28 13:46:20 Script registering but ScriptName npc_therylune is not assigned in database. Script will not be used.
2013-07-28 13:46:20 Script registering but ScriptName npc_impale_target is not assigned in database. Script will not be used.

This is just a small piece of them.

Also rearranged the list above...see if i did that right.

Gotta run with family and get dinner so i'll be back in a couple hours to see if i can get this finished! :)

thanks for your help!

Urlryn

Link to comment
Share on other sites

I ended up fixing the scripts a bit more and then rebuilding. This fixed a lot of the previous errors since now i got the scripts in some order.

There are still some errors that i'll work on...or are they normal?

2013-07-28 21:47:07 ERROR:Creature (Entry: 24646) has invalid maxlevel, set to minlevel
2013-07-28 21:47:07 ERROR:Creature (Entry: 39166) has invalid maxlevel, set to minlevel
2013-07-28 21:47:07 ERROR:Creature (Entry: 39167) has invalid maxlevel, set to minlevel
2013-07-28 21:47:07 ERROR:Creature (Entry: 39168) has invalid maxlevel, set to minlevel

sitting out there all by itself! :)

2013-07-28 21:47:11 ERROR:Table 'spell_loot_template' entry 62941 (spell id (random item creating)) not exist but used as loot id in DB.
2013-07-28 21:47:11 reference_loot_template :

Post Limit so just say there are a TON of these errors....

2013-07-28 21:43:33 Removed achievement-criteria 10784, because referred achievement does not exist
2013-07-28 21:43:33 Removed achievement-criteria 10785, because referred achievement does not exist
all the way to.....
2013-07-28 21:43:33 Removed achievement-criteria 13418, because referred achievement does not exist
2013-07-28 21:43:33 Removed achievement-criteria 13419, because referred achievement does not exist
2013-07-28 21:43:33 Removed achievement-criteria 13420, because referred achievement does not exist
2013-07-28 21:43:33 Removed achievement-criteria 13422, because referred achievement does not exist
2013-07-28 21:43:33 Removed achievement-criteria 13423, because referred achievement does not exist
2013-07-28 21:43:33 Removed achievement-criteria 13424, because referred achievement does not exist
2013-07-28 21:43:33 Removed achievement-criteria 13425, because referred achievement does not exist
2013-07-28 21:43:33 Removed achievement-criteria 13426, because referred achievement does not exist

Not sure this was actually an error...just saw a bunch of empty...so wanted to be sure I didn't miss some scripts.

2013-07-28 21:47:12 Loading Localization strings...
2013-07-28 21:47:12 >> Loaded 0 creature locale strings. DB table `locales_creature` is empty.
2013-07-28 21:47:12 >> Loaded 0 gameobject locale strings. DB table `locales_gameobject` is empty.
2013-07-28 21:47:12 >> Loaded 0 Item locale strings. DB table `locales_item` is empty.
2013-07-28 21:47:12 >> Loaded 0 Quest locale strings. DB table `locales_quest` is empty.
2013-07-28 21:47:12 >> Loaded 0 Quest locale strings. DB table `locales_npc_text` is empty.
2013-07-28 21:47:12 >> Loaded 0 PageText locale strings. DB table `locales_page_text` is empty.
2013-07-28 21:47:12 >> Loaded 0 gossip_menu_option locale strings. DB table `locales_gossip_menu_option` is empty.
2013-07-28 21:47:12 >> Loaded 0 points_of_interest locale strings. DB table `locales_points_of_interest` is empty.

I'm sure I'll have to hit up the ScriptDev2 for this?

2013-07-28 21:47:12 SD2: Loading Script Waypoints for 83 creature(s)...
2013-07-28 21:47:12 ERROR:SD2: DB table script_waypoint has waypoint for creature entry 3584, but creature does not have ScriptName defined and then useless.
2013-07-28 21:47:12 ERROR:SD2: DB table script_waypoint has waypoint for creature entry 3584, but creature does not have ScriptName defined and then useless.
2013-07-28 21:47:12 
2013-07-28 21:47:12 >> Loaded 2367 Script Waypoint nodes.
2013-07-28 21:47:12 SD2: Loading C++ scripts
2013-07-28 21:47:12 
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName go_father_flame is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName go_black_dragon_egg is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName npc_demonic_vapor is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName npc_power_blue_flight is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName npc_feather_vortex is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName npc_snufflenose_gopher is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName boss_zumrah is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName event_spell_unlocking is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName npc_therylune is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName npc_impale_target is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName boss_ick is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName boss_krick is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName npc_exploding_orb is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName boss_tyrannus is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName boss_rimefang_pos is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName npc_ymirjar_deathbringer is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName npc_collapsing_icicle is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName at_pit_of_saron is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName go_sapphiron_birth is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName npc_wyrmrest_skytalon is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName npc_crystal_spike_trigger is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName npc_planar_anomaly is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName boss_varos is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName event_spell_call_captain is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName npc_azure_ring_captain is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName npc_arcane_beam is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName npc_centrifuge_core is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName npc_oculus_drake is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName npc_flame_tsunami is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName npc_fire_cyclone is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName npc_baltharus_clone is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName boss_halion_real is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName boss_halion_twilight is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName npc_dark_matter is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName npc_searing_gaze is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName npc_grauf is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName boss_ahune is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName npc_frozen_core is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName npc_ice_spear_bunny is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName npc_bloodmaul_stout_trigger is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName npc_simon_game_bunny is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName npc_domesticated_felboar is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName npc_shadowmoon_tuber_node is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: Script registering but ScriptName npc_veneratus_spawn_node is not assigned in database. Script will not be used.
2013-07-28 21:47:12 <SD2 ERROR>: No script found for ScriptName 'boss_shade_of_taerar'.
2013-07-28 21:47:12 <SD2 ERROR>: No script found for ScriptName 'go_shrine_of_the_birds'.
2013-07-28 21:47:12 <SD2 ERROR>: No script found for ScriptName 'mob_acolyte_of_shadron'.
2013-07-28 21:47:12 <SD2 ERROR>: No script found for ScriptName 'mob_acolyte_of_vesperon'.
2013-07-28 21:47:12 <SD2 ERROR>: No script found for ScriptName 'mob_dementeddruids'.
2013-07-28 21:47:12 <SD2 ERROR>: No script found for ScriptName 'mob_sladran_summon_target'.
2013-07-28 21:47:12 <SD2 ERROR>: No script found for ScriptName 'mobs_bladespire_ogre'.
2013-07-28 21:47:12 <SD2 ERROR>: No script found for ScriptName 'npc_mount_vendor'.
2013-07-28 21:47:12 <SD2 ERROR>: No script found for ScriptName 'npc_prof_alchemy'.
2013-07-28 21:47:12 <SD2 ERROR>: No script found for ScriptName 'npc_sayge'.
2013-07-28 21:47:12 <SD2 ERROR>: No script found for ScriptName 'npc_sergeant_bly'.
2013-07-28 21:47:12 <SD2 ERROR>: No script found for ScriptName 'npc_tabard_vendor'.
2013-07-28 21:47:12 <SD2 ERROR>: No script found for ScriptName 'npc_weegli_blastfuse'.
2013-07-28 21:47:12 >> Loaded 812 C++ Scripts.
2013-07-28 21:47:12 Scripting library loaded.

Wondering why / where the conf gets created!

:12 Initialize AuctionHouseBot...
2013-07-28 21:47:12 AHBOT is Disabled. Unable to open configuration file(/opt/mangos-two/etc/ahbot.conf). 

seeing alot of these errors as you play/login/logout

Creature (GUIDLow: 130883) X: 2266.988525 Y: -5652.253418 (original) in grid[36,21]cell[1,3] instead grid[36,21]cell[2,3]
22:47:17 Creature (GUIDLow: 130830) X: 2267.224854 Y: -5653.262695 (original) in grid[36,21]cell[1,3] instead grid[36,21]cell[2,3]
22:47:19 Creature (GUIDLow: 130826) X: 2267.066162 Y: -5655.802734 (original) in grid[36,21]cell[1,3] instead grid[36,21]cell[2,3]

Creature (GUIDLow: 130884) X: 2267.076416 Y: -5653.363281 (original) in grid[36,21]cell[1,3] instead grid[36,21]cell[2,3]
22:51:42 Creature (GUIDLow: 130884) X: 2267.025146 Y: -5649.257324 (original) in grid[36,21]cell[1,3] instead grid[36,21]cell[2,3]
22:51:50 Creature (GUIDLow: 130884) X: 2266.967041 Y: -5649.379395 (original) in grid[36,21]cell[1,3] instead grid[36,21]cell[2,3]

SESSION: received not allowed opcode CMSG_LFG_GET_STATUS (0x0296)
05:30:28 DB-SCRIPTS: WARNING: Process table `dbscripts_on_creature_movement` id 3801, command 25 has no OTHER buddy 38 found - maybe you need to update the script?

SESSION: received unexpected opcode CMSG_CONTACT_LIST (0x0066) the player has not logged in yet
05:50:05 SESSION: received not allowed opcode CMSG_LFG_GET_STATUS (0x0296)

Link to comment
Share on other sites

Since you're running Linux, let me show the current process based on mangoszero. I'll just post a short Bash script I use should I need a fresh checkout.

#!/bin/bash

# Create checkout directory
mkdir -p ~/Projects/mangos/zero/

# Clean out the checkout directory
cd ~/Projects/mangos/zero/
rm -rf ./database/ ./server/

# Checkout the database, and add remotes
cd ~/Projects/mangos/zero/
git clone [email][email protected]:mangoszero/database.git[/email]

# Checkout the server, and add remotes
cd ~/Projects/mangos/zero/
git clone [email][email protected]:mangoszero/server.git[/email]

# Checkout the scripts, and add remotes
cd ~/Projects/mangos/zero/server/src/bindings/
git clone [email][email protected]:mangoszero/scripts.git[/email] scripts
nano CMakeLists.txt

Now as you can see, I do not apply any patches at all here, since these days there are no core changes involved when you want to use script bindings. It all boils down to editing the CMakeLists.txt definition in src/bindings/ where you uncommend or add a line pointing to the directory where you cloned the script library.

To build the whole project, and also import the latest database for zero including any fixes under development for the next update pack, I use the following Bash script:

#!/bin/bash
#

JOBS=1
DB_HOST=localhost
DB_USER=mangos
DB_PASSWORD=mangos
DB_NAME=mangos

cd ~/Projects/mangos/zero/database/
git pull
for x in _full_db/*.sql ; do echo "Importing ${x}" ; mysql -uS{DB_USER} -h${DB_HOST} -p${DB_PASSWORD} ${DB_NAME} < ${x} ; done
for x in _develop/_developer_files/*.sql ; do echo "Importing ${x}" ; mysql -uS{DB_USER} -h${DB_HOST} -p${DB_PASSWORD} ${DB_NAME} < ${x} ; done
for x in _develop/*.sql ; do echo "Importing ${x}" ; mysql -uS{DB_USER} -h${DB_HOST} -p${DB_PASSWORD} ${DB_NAME} < ${x} ; done

cd ~/Projects/mangos/zero/server/
git pull
cd ~/Projects/mangos/zero/server/src/bindings/scripts/
git pull

if [ "$1" = "clean" ]
then
echo "Removing build data..."
# wipe clean all build data
cd ~/Projects/mangos/zero/server/dep/libmpq/
make distclean
rm -rf ~/Projects/mangos/zero/server/dep/libmpq/autom4te.cache/ \
 ~/Projects/mangos/zero/server/contrib/git_id/_build/ \
 ~/Projects/mangos/zero/server/contrib/extractor/_build/ \
 ~/Projects/mangos/zero/server/contrib/mmap/_build/ \
 ~/Projects/mangos/zero/server/contrib/vmap_assembler/_build/ \
 ~/Projects/mangos/zero/server/contrib/vmap_extractor/_build/ \
 ~/Projects/mangos/zero/server/_build/
cd ~/Projects/mangos/zero/server/
git clean -df
fi

cd ~/Projects/mangos/zero/server/dep/libmpq/
./autogen.sh
./configure && make -j${JOBS}
sudo make install

cd ~/Projects/mangos/zero/server/contrib/git_id/
test -d _build || mkdir _build
cd _build
cmake -DCMAKE_INSTALL_PREFIX=/opt/mangos-zero -DCMAKE_BUILD_TYPE=Debug ..
make -j${JOBS} # 2>&1 | tee build.log

cd ~/Projects/mangos/zero/server/contrib/extractor/
test -d _build || mkdir _build
cd _build
cmake -DCMAKE_INSTALL_PREFIX=/opt/mangos-zero -DCMAKE_BUILD_TYPE=Debug ..
make -j${JOBS} # 2>&1 | tee build.log

cd ~/Projects/mangos/zero/server/contrib/vmap_assembler/
test -d _build || mkdir _build
cd _build
cmake -DCMAKE_INSTALL_PREFIX=/opt/mangos-zero -DCMAKE_BUILD_TYPE=Debug ..
make -j${JOBS} # 2>&1 | tee build.log

cd ~/Projects/mangos/zero/server/contrib/vmap_extractor/
test -d _build || mkdir _build
cd _build
cmake -DCMAKE_INSTALL_PREFIX=/opt/mangos-zero -DCMAKE_BUILD_TYPE=Debug ..
make -j${JOBS} # 2>&1 | tee build.log

cd ~/Projects/mangos/zero/server/contrib/mmap/
test -d _build || mkdir _build
cd _build
cmake -DCMAKE_INSTALL_PREFIX=/opt/mangos-zero -DCMAKE_BUILD_TYPE=Debug ..
make -j${JOBS} # 2>&1 | tee build.log

cd ~/Projects/mangos/zero/server/
test -d _build || mkdir _build
cd _build
cmake -DCMAKE_INSTALL_PREFIX=/opt/mangos-zero -DCMAKE_BUILD_TYPE=Debug -DDEBUG=1 -DUSE_STD_MALLOC=1 -DACE_USE_EXTERNAL=1 ..
echo "Building mangos without code coverage..."
make -j${JOBS} # 2>&1 | tee build.log
sudo make install

The script will accept a parameter "clean", to wipe all previous build data should you desire to do so. Useful for development but not so much if you just intend to run a server. Database setting can be applied via DB_ variables.

Also note the JOBS variable. If you want multiple gcc processes to compile the server, increase the value. I have a four core CPU, so I usually set JOBS to 4, which speeds up the build a lot. Of course the result depends on the CPU power you have available.

Both scripts should be adaptable for any mangos branch with ease.

If you are running Debian/Ubuntu the following Bash script will install all the required packages to build and run mangos (any branch):

#!/bin/bash
#

# ------------------------------------------------------------------------------
# Install base tools
# ------------------------------------------------------------------------------
sudo apt-get install -y apg curl dos2unix mc vim zsh unrar p7zip

# ------------------------------------------------------------------------------
# Install development tools
# ------------------------------------------------------------------------------
sudo apt-get install -y autoconf automake clang cmake gcc g++ libtool make patch
sudo apt-get install -y cmake-curses-gui cppcheck git-core git-flow valgrind

sudo apt-get install -y git-svn tig

# ------------------------------------------------------------------------------
# Install development libraries
# ------------------------------------------------------------------------------
sudo apt-get install -y libace-dev libbz2-dev libcppunit-dev libmysqlclient-dev libncurses5-dev libreadline-dev libsdl1.2-dev libsqlite3-dev libssl-dev libxml2-dev libxslt1-dev zlib1g-dev

# ------------------------------------------------------------------------------
# Install Python scripting
# ------------------------------------------------------------------------------
sudo apt-get install -y python-sphinx python-yaml python3-docutils python3-yaml

I hope this will help you getting the server compiled and running.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use