Skip to content

Commit 6949b3b

Browse files
author
NoFantasy
committed
[717] Added: provide .patch to use with GIT (both Unix and Win -systems) to modify mangos files. How_to_install.txt updated accordingly.
Added: provide .patch to use with GIT (both Unix and Win -systems) to modify mangos files. How_to_install.txt updated accordingly. Simple usage: Get Mangos source files Get SD2 source files Apply patch using GIT command "git am src/bindings/ScriptDev2/patches/MaNGOS-yyyy-mm-dd-ScriptDev2.patch" Compile like normal. See the included text file for more details. Use forum for more help, if needed. git-svn-id: https://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2@717 5f9c896b-1e26-0410-94da-f77f675e2462
1 parent 4417108 commit 6949b3b

2 files changed

Lines changed: 111 additions & 20 deletions

File tree

docs/How to install.txt

Lines changed: 34 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,50 @@
11
--- How to install ScriptDev2 ---
22

3-
1) Download MaNGOS
4-
2) Create a new folder under "src\bindings\" within the MaNGOS source called "ScriptDev2"
5-
3) Checkout the ScriptDev2 trunk from "https://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2"
3+
1) Download MaNGOS (using git clone)
64

7-
4a) On Win32:
8-
- Compile MaNGOS
9-
- Compile ScriptDev2 using the ScriptVC70, ScriptVC80, or ScriptVC90 Solution within the ScriptDev2 folder (this will overwrite the Mangoscript dll in the output directory)
5+
2) Do the source stuff:
106

11-
4b) On Linux:
12-
- Apply MaNGOS-rXXXX-ScriptDev2.patch, where XXXX is the highest version to that of your MaNGOS revision, to Mangos Source
13-
- Compile MaNGOS (ScriptDev2 will automatically be built when compiling Mangos from here on)
7+
MS Windows:
8+
- Create a new folder under "src\bindings\" within the MaNGOS source called "ScriptDev2"
9+
- Checkout the ScriptDev2 trunk from "https://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2"
10+
- Apply the Git patch - "git am src/bindings/ScriptDev2/patches/MaNGOS-yyyy-mm-dd-ScriptDev2.patch" where 'yyyy' is year, 'mm' is month and 'dd' is the day of the target MaNGOS commit/relase
11+
- Compile MaNGOS
12+
- Compile ScriptDev2 using the ScriptVC70, ScriptVC80, or ScriptVC90 Solution within the ScriptDev2 folder (this will overwrite the Mangoscript dll in the output directory)
1413

15-
5) Create the default ScriptDev2 database using "sql\create_database.sql", then execute "sql\scriptdev2_structure.sql" on that database.
14+
GNU/Linux:
15+
- Checkout the ScriptDev2 to "src/bindings/ScriptDev2" - "svn co https://scriptdev2.svn.sourceforge.net/svnroot/scriptdev2 src/bindings/ScriptDev2"
16+
SVN:
17+
- Apply MaNGOS-rXXXX-ScriptDev2.patch, where XXXX is the highest version to that of your MaNGOS revision, to Mangos Source
18+
GIT:
19+
- Apply the Git patch - "git am src/bindings/ScriptDev2/patches/MaNGOS-yyyy-mm-dd-ScriptDev2.patch" where 'yyyy' is year, 'mm' is month and 'dd' is the day of the target MaNGOS commit/relase
1620

17-
6) Execute the included "sql\scriptdev2_script_texts.sql" on your ScriptDev2 database.
21+
- Compile MaNGOS (ScriptDev2 will automatically be built when compiling Mangos from here on)
1822

19-
7) Optionally, apply scripts from ACID now.
23+
3) Create the default ScriptDev2 database using "sql\create_database.sql", then execute "sql\scriptdev2_structure.sql" on that database.
2024

21-
8) Execute the included "sql\mangos_full_scripts.sql" on your MaNGOS database.
25+
4) Execute the included "sql\scriptdev2_script_texts.sql" on your ScriptDev2 database.
2226

23-
9) Place the included "scriptdev2.conf" file within the directory containing your "mangosd.conf" and "realmd.conf" files. You may need to change this file to match the database you created and any custom settings you wish to use. Note this file will be different created for Unix based systems.
27+
5) Optionally, apply scripts from ACID now.
2428

25-
10) Run mangosd from your output directory
29+
6) Execute the included "sql\mangos_full_scripts.sql" on your MaNGOS database.
2630

31+
7) Place the included "scriptdev2.conf" file within the directory containing your "mangosd.conf" and "realmd.conf" files. You may need to change this file to match the database you created and any custom settings you wish to use. Note this file will be different created for Unix based systems.
2732

28-
To update ScriptDev2:
29-
All you have to do is open src\bindings\ and right click on the ScriptDev2 folder and click "Update" and then follow steps 4, 6, 7, and 8 again. You must still compile MaNGOS before ScriptDev2 when on the Windows platform.
33+
8) Run mangosd from your output directory
34+
35+
36+
To update ScriptDev2:
37+
38+
MS Windows:
39+
- All you have to do is open src\bindings\ and right click on the ScriptDev2 folder and click "Update" and then follow steps 4, 6, 7, and 8 again. You must still compile MaNGOS before ScriptDev2 when on the Windows platform.
40+
41+
GNU/Linux:
42+
- Go to the src/bindings/ScriptDev2 directory - "cd src/bindings/ScriptDev2"
43+
- Update ScriptDev2 - "svn up"
3044

3145
To update your Database with new Scriptdev2 SQL changes you can either:
32-
a) apply only the changes that were made during that revision by looking in the sql\update folder or (files named rXXX_scriptdev2.sql should be executed on the scriptdev2 db while rXXX_mangos.sql should be executed on your mangos db)
33-
b) reapply "mangos_full_scripts.sql" to your MaNGOS database.
46+
a) apply only the changes that were made during that revision by looking in the sql\update folder or (files named rXXX_scriptdev2.sql should be executed on the scriptdev2 db while rXXX_mangos.sql should be executed on your mangos db)
47+
b) reapply "mangos_full_scripts.sql" to your MaNGOS database.
3448

3549
You can view the ScriptDev2 Change Log at:
36-
[url=http://scriptdev2.svn.sourceforge.net/viewvc/scriptdev2/?view=log]http://scriptdev2.svn.sourceforge.net/viewvc/scriptdev2/?view=log[/url]
50+
http://scriptdev2.svn.sourceforge.net/viewvc/scriptdev2/?view=log
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
From ba4ff794143e47b448135e20b0695f7728bf4ad4 Mon Sep 17 00:00:00 2001
2+
From: freghar <compmancz@gmail.com>
3+
Date: Thu, 23 Oct 2008 11:39:42 +0200
4+
Subject: [PATCH] ScriptDev2 patch commit
5+
6+
Signed-off-by: freghar <compmancz@gmail.com>
7+
---
8+
configure.ac | 6 +++++-
9+
src/bindings/.gitignore | 12 ++++++++++++
10+
src/bindings/Makefile.am | 2 +-
11+
src/mangosd/Makefile.am | 4 ++--
12+
4 files changed, 20 insertions(+), 4 deletions(-)
13+
create mode 100644 src/bindings/.gitignore
14+
15+
diff --git a/configure.ac b/configure.ac
16+
index a8a6019..d80359c 100644
17+
--- a/configure.ac
18+
+++ b/configure.ac
19+
@@ -312,7 +312,11 @@ AC_CONFIG_FILES([
20+
src/mangosd/Makefile
21+
src/mangosd/mangosd.conf.dist
22+
src/bindings/Makefile
23+
- src/bindings/universal/Makefile
24+
+ src/bindings/ScriptDev2/Makefile
25+
+ src/bindings/ScriptDev2/scriptdev2.conf.dist
26+
+ src/bindings/ScriptDev2/config.h
27+
+ src/bindings/ScriptDev2/sql/Makefile
28+
+ src/bindings/ScriptDev2/sql/Updates/Makefile
29+
])
30+
31+
## Configure ACE, if needed
32+
diff --git a/src/bindings/.gitignore b/src/bindings/.gitignore
33+
new file mode 100644
34+
index 0000000..06df6e6
35+
--- /dev/null
36+
+++ b/src/bindings/.gitignore
37+
@@ -0,0 +1,12 @@
38+
+#
39+
+# NOTE! Don't add files that are generated in specific
40+
+# subdirectories here. Add them in the ".gitignore" file
41+
+# in that subdirectory instead.
42+
+#
43+
+# NOTE! Please use 'git-ls-files -i --exclude-standard'
44+
+# command after changing this file, to see if there are
45+
+# any tracked files which get ignored after the change.
46+
+#
47+
+
48+
+# ScriptDev2 directory
49+
+ScriptDev2
50+
diff --git a/src/bindings/Makefile.am b/src/bindings/Makefile.am
51+
index 9080b8d..58df4f3 100644
52+
--- a/src/bindings/Makefile.am
53+
+++ b/src/bindings/Makefile.am
54+
@@ -14,4 +14,4 @@
55+
# along with this program; if not, write to the Free Software
56+
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
57+
58+
-SUBDIRS = universal
59+
+SUBDIRS = ScriptDev2
60+
diff --git a/src/mangosd/Makefile.am b/src/mangosd/Makefile.am
61+
index f93316f..9ff1b87 100644
62+
--- a/src/mangosd/Makefile.am
63+
+++ b/src/mangosd/Makefile.am
64+
@@ -33,8 +33,8 @@ mangos_worldd_SOURCES = \
65+
WorldRunnable.h
66+
67+
## Link world daemon against the shared library
68+
-mangos_worldd_LDADD = ../bindings/universal/libmangosscript.la ../game/libmangosgame.a ../shared/Database/libmangosdatabase.a ../shared/Config/libmangosconfig.a ../shared/Auth/libmangosauth.a ../shared/libmangosshared.a ../shared/vmap/libmangosvmaps.a ../framework/libmangosframework.a ../../dep/src/sockets/libmangossockets.a ../../dep/src/zthread/libZThread.la ../../dep/src/g3dlite/libg3dlite.a
69+
-mangos_worldd_LDFLAGS = -L../../dep/src/sockets -L../../dep/src/zthread -L../../dep/src/g3dlite -L../bindings/universal/ -L$(libdir) $(MANGOS_LIBS) -export-dynamic
70+
+mangos_worldd_LDADD = ../bindings/ScriptDev2/libmangosscript.la ../game/libmangosgame.a ../shared/Database/libmangosdatabase.a ../shared/Config/libmangosconfig.a ../shared/Auth/libmangosauth.a ../shared/libmangosshared.a ../shared/vmap/libmangosvmaps.a ../framework/libmangosframework.a ../../dep/src/sockets/libmangossockets.a ../../dep/src/zthread/libZThread.la ../../dep/src/g3dlite/libg3dlite.a
71+
+mangos_worldd_LDFLAGS = -L../../dep/src/sockets -L../../dep/src/zthread -L../../dep/src/g3dlite -L../bindings/ScriptDev2/ -L$(libdir) $(MANGOS_LIBS) -export-dynamic
72+
73+
## Additional files to include when running 'make dist'
74+
# Include world daemon configuration
75+
--
76+
1.5.6.5
77+

0 commit comments

Comments
 (0)