Changeset 41 for trunk/src/bindings/scripts
- Timestamp:
- 11/19/08 13:27:02 (17 years ago)
- Location:
- trunk/src/bindings/scripts
- Files:
-
- 14 removed
- 2 modified
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bindings/scripts/Makefile.am
r23 r41 33 33 -I$(top_srcdir)/src/game \ 34 34 -I$(srcdir)/include \ 35 $(TRINI_INCLUDES) \ 36 -D_TRINITY_SCRIPT_CONFIG='"$(sysconfdir)/trinityscript.conf"' 35 $(TRINI_INCLUDES) 37 36 38 37 libtrinityscript_la_SOURCES = \ … … 399 398 400 399 ## Additional files to install 401 sysconf_DATA = \ 402 trinityscript.conf.dist 403 404 EXTRA_DIST = \ 405 trinityscript.conf.dist 400 ## sysconf_DATA = 401 402 ## EXTRA_DIST = 406 403 407 404 ## Prevend overwrite of the config file, if its already installed -
trunk/src/bindings/scripts/README
r37 r41 1 = Trinity Core -- Implementing scripts = 2 1 3 To compile this properly, you need to get the scripts from: 2 4 3 5 http://svn.assembla.com/svn/trinityscripts 4 6 5 and get them in a "scripts" folder inside this folder 6 7 Simply put them in a folder called "scripts" in this folder. -
trunk/src/bindings/scripts/ScriptMgr.cpp
r37 r41 13 13 #define _FULLVERSION "TrinityScript" 14 14 15 #ifndef _TSCRIPTCONFVERSION16 # define _TSCRIPTCONFVERSION 200810020117 #endif //_TSCRIPTCONFVERSION18 19 15 #ifndef _TRINITY_SCRIPT_CONFIG 20 # define _TRINITY_SCRIPT_CONFIG "trinity script.conf"21 #endif //_TRINITY_SCRIPT_CONFIG16 # define _TRINITY_SCRIPT_CONFIG "trinitycore.conf" 17 #endif _TRINITY_SCRIPT_CONFIG 22 18 23 19 //*** Global data *** … … 597 593 char const* dbstring = NULL; 598 594 599 if( !TScriptConfig.GetString(" TScriptDatabaseInfo", &dbstring) )600 { 601 error_log("TSCR: Missing Trinity Scriptdatabase info from configuration file. Load database aborted.");595 if( !TScriptConfig.GetString("WorldDatabaseInfo", &dbstring) ) 596 { 597 error_log("TSCR: Missing world database info from configuration file. Load database aborted."); 602 598 return; 603 599 } … … 1214 1210 } 1215 1211 else outstring_log("TSCR: Using configuration file %s",_TRINITY_SCRIPT_CONFIG); 1216 1217 //Check config file version1218 if (TScriptConfig.GetIntDefault("ConfVersion", 0) != _TSCRIPTCONFVERSION)1219 error_log("TSCR: Configuration file version doesn't match expected version. Some config variables may be wrong or missing.");1220 1212 1221 1213 //Locale