• This is a read only backup of the old Emudevs forum. If you want to have anything removed, please message me on Discord: KittyKaev

[SOLVED] Merging Eluna with OregonCore TBC

Status
Not open for further replies.

hardbitten

Enthusiast
Hello Guy'SSSSSSSS

I can not use cMangos and Mangos , Because both of Are old rev.

Oregon Core have Custom Script and scriptLoader , i need thiS ;)

It is possible that I can Merging Eluna Whit Oregon Core?

GratiaS.:ciao:
 
Last edited:

Tommy

Founder
Possible? Yes. Though, most people outside the Eluna team who try, normally end up with tons of errors and no knowledge on how to fix them and come to us for help. To an extent we will help, but overall, it is the merger's problem since we don't support OregeonCore and outsider merges (at least I don't).
 

hardbitten

Enthusiast
You should be able to use this diff file:
https://github.com/ElunaLuaEngine/E...46e37c0a4b90fe2c1cd30382d7f5a337ebd81755.diff
You can see the changes in github here also:
https://github.com/ElunaLuaEngine/E...d30382d7f5a337ebd81755#commit_comments_bucket

However you need to adapt it to oregoncore so it might take some work.

So Thanks.
Now i able use this diff file
https://github.com/ElunaLuaEngine/El...7ebd81755.diff

Now How i can Include Luaengine Newfolder in This CmakeList.txt

PHP:
# This file is part of the OregonCore Project. See AUTHORS file for Copyright information
#
# This file is free software; as a special exception the author gives
# unlimited permission to copy and/or distribute it, with or without
# modifications, as long as this notice is preserved.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY, to the extent permitted by law; without even the
# implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

if (USE_COREPCH)
  include_directories(${CMAKE_CURRENT_BINARY_DIR})
endif()

file(GLOB sources_localdir *.cpp *.h)

# Create game-libary


if (USE_COREPCH AND MSVC)
  set(game_STAT_SRCS
    PrecompiledHeaders/gamePCH.cpp
    PrecompiledHeaders/gamePCH.h
  )
endif()

set(game_STAT_SRCS
  ${game_STAT_SRCS}
  ${sources_localdir}
)

include_directories(
  ${CMAKE_BINARY_DIR}
  ${CMAKE_SOURCE_DIR}/dep/mersennetwister
  ${CMAKE_SOURCE_DIR}/dep/SFMT
  ${CMAKE_SOURCE_DIR}/dep/zlib
  ${CMAKE_SOURCE_DIR}/src/framework
  ${CMAKE_SOURCE_DIR}/src/collision
  ${CMAKE_SOURCE_DIR}/dep/recastnavigation/Detour
  ${CMAKE_SOURCE_DIR}/dep/recastnavigation
  ${CMAKE_SOURCE_DIR}/src/shared
  ${CMAKE_SOURCE_DIR}/src/shared/Database
  ${CMAKE_CURRENT_SOURCE_DIR}
  ${CMAKE_SOURCE_DIR}/src/scripts/PrecompiledHeaders
  ${ACE_INCLUDE_DIR}
  ${MYSQL_INCLUDE_DIR}
  ${OPENSSL_INCLUDE_DIR}
)

add_library(game STATIC ${game_STAT_SRCS})

add_dependencies(game revision.h)

# Generate precompiled header
if (USE_COREPCH)
  if (CMAKE_COMPILER_IS_GNUCXX)
    add_precompiled_header(game ${CMAKE_CURRENT_SOURCE_DIR}/PrecompiledHeaders/gamePCH.h)
  elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
    add_clang_pch(game "${CMAKE_CURRENT_SOURCE_DIR}/PrecompiledHeaders" "gamePCH.h" "gamePCH.cpp")
  elseif (MSVC)
    add_native_precompiled_header(game ${CMAKE_CURRENT_SOURCE_DIR}/PrecompiledHeaders/gamePCH)
  endif()
endif()

i want Include this newfolder in this cmakelist.txt

https://github.com/ElunaLuaEngine/Eluna
 
Status
Not open for further replies.
Top