Show
Ignore:
Timestamp:
11/19/08 13:27:02 (17 years ago)
Author:
yumileroy
Message:

[svn] * Random changes/fixes...
* Some fixes to MangChat?, more coming.
* Cleaning up scripting part and preparing to merge it into the core.

Original author: XTZGZoReX
Date: 2008-10-12 17:35:16-05:00

Location:
trunk/src/bindings/scripts
Files:
14 removed
2 modified
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/src/bindings/scripts/Makefile.am

    r23 r41  
    3333-I$(top_srcdir)/src/game \ 
    3434-I$(srcdir)/include \ 
    35 $(TRINI_INCLUDES) \ 
    36 -D_TRINITY_SCRIPT_CONFIG='"$(sysconfdir)/trinityscript.conf"' 
     35$(TRINI_INCLUDES) 
    3736 
    3837libtrinityscript_la_SOURCES = \ 
     
    399398 
    400399## 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 =  
    406403 
    407404## Prevend overwrite of the config file, if its already installed 
  • trunk/src/bindings/scripts/README

    r37 r41  
     1= Trinity Core -- Implementing scripts = 
     2 
    13To compile this properly, you need to get the scripts from: 
    24 
    35http://svn.assembla.com/svn/trinityscripts 
    46 
    5 and get them in a "scripts" folder inside this folder 
    6  
     7Simply put them in a folder called "scripts" in this folder. 
  • trunk/src/bindings/scripts/ScriptMgr.cpp

    r37 r41  
    1313#define _FULLVERSION "TrinityScript" 
    1414 
    15 #ifndef _TSCRIPTCONFVERSION 
    16 # define _TSCRIPTCONFVERSION 2008100201 
    17 #endif //_TSCRIPTCONFVERSION 
    18  
    1915#ifndef _TRINITY_SCRIPT_CONFIG 
    20 # define _TRINITY_SCRIPT_CONFIG  "trinityscript.conf" 
    21 #endif //_TRINITY_SCRIPT_CONFIG 
     16# define _TRINITY_SCRIPT_CONFIG  "trinitycore.conf" 
     17#endif _TRINITY_SCRIPT_CONFIG 
    2218 
    2319//*** Global data *** 
     
    597593    char const* dbstring = NULL; 
    598594 
    599     if( !TScriptConfig.GetString("TScriptDatabaseInfo", &dbstring) ) 
    600     { 
    601         error_log("TSCR: Missing Trinity Script database 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."); 
    602598        return; 
    603599    } 
     
    12141210    } 
    12151211    else outstring_log("TSCR: Using configuration file %s",_TRINITY_SCRIPT_CONFIG); 
    1216  
    1217     //Check config file version 
    1218     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."); 
    12201212 
    12211213    //Locale