• posted a message on Addon Update Scripts
    Slightly changed my script for svn 1.7 that adds one more line of flood to standard output, if anyone interested, code below

    update.bat
    [SIZE=1]
    @ECHO OFF
    CLS
    SETLOCAL EnableDelayedExpansion
    SET PATH=D:\LIBRARIES\msysgit\msysgit\bin;D:\LIBRARIES\msysgit\msysgit\mingw\bin;%PATH%
    FOR /F "eol=; delims=," %%G IN (.\repos_git.txt) DO (
    	SET _path=%%G
    	SET _name=!_path:~44!
    	SET /P var=git update of !_name!: <NUL
    	cd !_path! >NUL 2>&1
    	IF ERRORLEVEL 1 ( ECHO FAIL ) ELSE (
    		git pull
    		IF ERRORLEVEL 1 ( ECHO FAIL )
    	)
    )
    ENDLOCAL
    SETLOCAL EnableDelayedExpansion
    SET PATH=C:\Program Files\TortoiseSVN\bin;%PATH%
    FOR /F "eol=; delims=," %%G IN (.\repos_svn.txt) DO (
    	SET _path=%%G
    	SET _name=!_path:~44!
    	SET /P var=svn update of !_name!: <NUL
    	cd !_path! >NUL 2>&1
    	IF %ERRORLEVEL% NEQ 0 ( ECHO FAIL ) ELSE (
    		svn update --ignore-externals | find /v "Updating"
    		IF %ERRORLEVEL% NEQ 0 ( ECHO FAIL )
    	)
    )
    ENDLOCAL
    SETLOCAL EnableDelayedExpansion
    SET PATH=C:\Program Files\TortoiseHg;%PATH%
    FOR /F "eol=; delims=," %%G IN (.\repos_hg.txt) DO (
    	SET _path=%%G
    	SET _name=!_path:~44!
    	SET /P var=hg update of !_name!: <NUL
    	cd !_path! >NUL 2>&1
    	IF ERRORLEVEL 1 ( ECHO FAIL ) ELSE (
    		hg pull & hg update
    		IF ERRORLEVEL 1 ( ECHO FAIL )
    	)
    )
    PAUSE[/SIZE]
    Posted in: Updaters
  • posted a message on GnomeWorks -- official thread
    wtb gnomishyellowpage :D

    I miss this pepita

    hope you back on this one too :)
    Posted in: General AddOns
  • posted a message on Addon Update Scripts
    Here is a script in a windows bat file I use to update hg, git and svn repos at once

    0) checkout normally the repo with your favorite client
    1) place repos_git.txt, repos_hg.txt, repos_svn.txt, update.bat in a folder
    2) edit the txt files to match the local directory path of your cloned repo
    3) change the integer 44 in update.bat to match the starting column number of the addon name in your directory path
    4) run update.bat, output is

    To note that hg.exe, git.exe and svn.exe must be found in your global env variable PATH so the simplest method is to install all the windows stuffs for this to work tortoisesvn, tortoisegit, tortoisehg, msysgit, and make sure when opening a command prompt the commands hg, git and svn returns something, if not then add the dir path in the global env variable called PATH

    output of update.bat
    [SIZE=1][COLOR=Gray]git update of LibAboutPanel: Already up-to-date.
    git update of LibDeformat-3.0: Already up-to-date.
    git update of LibDualSpec-1.0: Already up-to-date.
    git update of Mapster: remote: Counting objects: 8, done.
    remote: Compressing objects: 100% (6/6), done.
    remote: Total 6 (delta 4), reused 0 (delta 0)
    Unpacking objects: 100% (6/6), done.
    From git://git.wowace.com/wow/mapster/mainline
       fec02aa..2b3b890  master     -> origin/master
    Updating fec02aa..2b3b890
    Fast-forward
     Mapster.lua |   11 ++++++++++-
     1 files changed, 10 insertions(+), 1 deletions(-)
    git update of Omen: Already up-to-date.
    svn update of Broker_CPU: At revision 4.
    svn update of Ace2: At revision 1101.
    svn update of Ace3: At revision 998.
    hg update of ACP: pulling from http://hg.wowace.com/wow/acp/mainline
    searching for changes
    no changes found
    0 files updated, 0 files merged, 0 files removed, 0 files unresolved[/COLOR][/SIZE]
    update.bat
    [SIZE=1]
    @ECHO OFF
    CLS
    SETLOCAL EnableDelayedExpansion
    FOR /F "eol=; delims=," %%G IN (repos_git.txt) DO (
        SET _path=%%G
        SET _name=!_path:~44!
        SET /P var=git update of !_name!: <NUL
        SET PATH = "%PATH%"
        cd !_path! >NUL 2>&1
        IF ERRORLEVEL 1 ( ECHO FAIL ) ELSE (
            git pull
            IF ERRORLEVEL 1 ( ECHO FAIL )
        )
    )
    ENDLOCAL
    SETLOCAL EnableDelayedExpansion
    FOR /F "eol=; delims=," %%G IN (repos_svn.txt) DO (
        SET _path=%%G
        SET _name=!_path:~44!
        SET /P var=svn update of !_name!: <NUL
        SET PATH = "%PATH%"
        cd !_path! >NUL 2>&1
        IF ERRORLEVEL 1 ( ECHO FAIL ) ELSE (
            svn update --ignore-externals
            IF ERRORLEVEL 1 ( ECHO FAIL )
        )
    )
    ENDLOCAL
    SETLOCAL EnableDelayedExpansion
    FOR /F "eol=; delims=," %%G IN (repos_hg.txt) DO (
        SET _path=%%G
        SET _name=!_path:~44!
        SET /P var=hg update of !_name!: <NUL
        SET PATH = "%PATH%"
        cd !_path! >NUL 2>&1
        IF ERRORLEVEL 1 ( ECHO FAIL ) ELSE (
            hg pull & hg update
            IF ERRORLEVEL 1 ( ECHO FAIL )
        )
    )
    ENDLOCAL
    PAUSE[/SIZE]
    repos_xxx.txt, you can comment a line with ;
    [SIZE=1]E:\Games\World of Warcraft\Interface\AddOns\Ace2
    E:\Games\World of Warcraft\Interface\AddOns\Ace3
    E:\Games\World of Warcraft\Interface\AddOns\Broker_CPU[/SIZE]


    Known caveat: dont update addons with ! symbol in its name because setlocal in the batch is stripping out the ! from being used in the string, so put out !Buggrabber from this script.
    Posted in: Updaters
  • posted a message on Any recent equivalent to Broker_CPU?
    I have bumped a new version but anyway there is no major changes because it still works fine and I'm using it yet, if not, then submit a ticket in curseforge I get an instant delivery in the mailbox

    thank you for using my mod
    Posted in: Data Broker AddOns
  • posted a message on SpamBayes a bayesian spam filter for Warhammer Online
    This project is beta, if you are ignorant with computers please wait at least a release, thank you
    a WoW version is planned



    A lightweight, transparent and innovating antispam for Warhammer Online
    :

    • Ignore and automatic reports of gold spammers (the ignore list is not used) [Automatic reports are not yet implemented]
    • Based on a Bayesian algorithm and not on lua pattern matching as most today's antispams, you don't need X update to stop Z spammer
    • Transparent, the control center returns all the received messages
    • Catch many forms of spams with just one training, intelligent classifications, rare false positives
    • Classify as ham / spam or unsure using a powerful algorithm to calculate probabilities in a range from 0 to 1
    • Supports trainings, users are able to teach SpamBayes on the fly
    • Uses a global database for all characters
    • Yet starts with a blank database as SpamBayes Python does, but support for an "official" database is technically possible
    • Supports all "spammable" channels with a priority on being light in performance
    • Supports all languages and both actual versions of the client 1.3.6 and 1.4.0
    • Backup/Restore a database with the files in \user\settings\GLOBAL\SpamBayes\*.*
    • For quick testing you can download and import a database I have started to fill named optional_SpamBayes_db_12spam_22ham here (trained on english phrases

    Usages:
    Type /spambayes or /sb to bring on the control center

    Helps/Tips:
    Hit the Help button in-game

    Bugs/Suggestions:
    Must be reported in a Curseforge ticket, comments won't be considered for these types of requests
    And remember to post as much informations possible

    Reference:
    [*] the algorithm of SpamBayes Python, a combination of work from Gary Robinson, Tim Peters and many contributers since 2002
    [*] Bayesian spam filtering

    http://war.curseforge.com/addons/spambayes/
    Posted in: General AddOns
  • posted a message on New to WAR Add-ons
    no you have to unpack interface.myp files and look how Mythic wrote its addons and you can reproduce things, my wardiff project may help you to download the interface files, they are up to date
    Posted in: Development Help
  • posted a message on Lua pattern help needed
    thank you jerry but I think in WAR this is a real "de", its hardcoded in a hardcoded.txt file of data.myp and I couldn't find it in globals else I would just have changed "de" to "par" for example but yet I think I have to modify client files which is not allowed

    TEXT_X_HITS_YOU_FOR_Y <<2>> de <<c:1>> vous inflige un <<3[coup critique/coup]="">> et vous subissez <<5>> points de dégâts.

    but yes in WAR the addon support is so poor, client has many bugs but fortunely I find the PvP aspect of the game is much interesting than WoW, I like the idea to level up only with PvP

    They need to hire masters like Iriel or Clad ^^
    Posted in: Lua Code Discussion
  • posted a message on Lua pattern help needed
    Thanks Xinhuan that is what I think too not possible, 2 days I pull my hair on this lol :D Unfortunely that is about a Warhammer addon not WoW addon, but the idea I'm working on is the same I register an event on SystemData.Events.WORLD_OBJ_COMBAT_EVENT then I get ObjectID Amount: Event: abilityID: There is then an API to transform abilityID to name, amount integer, Event easly guessable BUT unfortunely no method to get the Text from an objectID which I need in text lol, I'm so lucky... I think that's why the library has been build on parsing the combat logs, probably because there is no way to retrieve the object id's name, and for a DPS/Heal combat log library this is an important value to fill tables.

    The other idea is to modify the phrases, i replace "de" by a unique "DE" or so but phrases are hardcoded in the client.

    This is code WAR :x
    Posted in: Lua Code Discussion
  • posted a message on Lua pattern help needed
    Hi everyone

    I will need the help of someone advanced in the use of lua patterns (also known regular expressions, regex)

    I need to build a pattern to catch

    Attaque de Squig de Gaz vous inflige un coup et vous subissez 75 points de dégâts. (8 atténué)
    Pacte de Célérité de Merae vous inflige un coup et vous subissez 75 points de dégâts. (8 atténué)
    Attaque de Squig de Gaz vous inflige un coup et vous subissez 75 points de dégâts. (8 atténué)
    Pacte de Célérité de Squig de Gaz vous inflige un coup et vous subissez 75 points de dégâts. (8 atténué)

    orange: ability name to gather
    green: player/monster name to gather
    blue: damage number to gather
    red: string delimiter I will use in the pattern

    my actual lua pattern: ^(.-) d[e%p%c]%s-[T]-[aoe]-n-s-%s*(.-) vous inflige un coup.- et vous subissez (%d+) points de dégâts.+"

    Problem: When the string I use as a delimiter "de" is found in the player name or ability name, the pattern could not distinguish where is the beginning of the ability or player name

    Example:

    1 ) With

    d=print;DD="Attaque de Squig de Gaz vous inflige un coup et vous subissez 75 points de dégâts. (8 atténué)";_,_,v1,v2,v3=DD:find("^(.-)d[e%p%c]%s-[T]-[aoe]-n-s-%s*(.-) vous inflige un coup.- et vous subissez (%d+) points de dégâts.+");if (v1 ~= nil) then d("What=\""..v1.."\" Who=\""..v2.."\" HowMuch=\""..v3.."\"") else d("The pattern doesn't match this sentence") end

    It works: What="Attaque " Who="Squig de Gaz" HowMuch="75"

    2) The same pattern with a "de" in the ability name this time

    d=print;DD="Pacte de Célérité de Merae vous inflige un coup et vous subissez 75 points de dégâts. (8 atténué)";_,_,v1,v2,v3=DD:find("^(.-) d[e%p%c]%s-[T]-[aoe]-n-s-%s*(.-) vous inflige un coup.- et vous subissez (%d+) points de dégâts.+");if (v1 ~= nil) then d("What=\""..v1.."\" Who=\""..v2.."\" HowMuch=\""..v3.."\"") else d("The pattern doesn't match this sentence") end


    Doesnt work: What="Pacte" Who="Célérité de Merae" HowMuch="75"

    must have been What="Pacte de Célérité" Who="Merae" HowMuch="75"

    the same with a "de" in ability + player strings I cannot find a pattern to match all 3 cases in one pattern.

    If you can help
    Posted in: Lua Code Discussion
  • posted a message on WARDiff - interface changes
    wardiff.googlecode.com will help you to monitor changes in the interface files of the Warhammer Online client

    The recommanded usage is to use a subversion client like TortoiseSVN, checkout the subversion link: http://wardiff.googlecode.com/svn/trunk/ and use the options inside Tortoise to check file differences, deletion, etc

    You can also check diff via the google web interface, but is very very limited.

    You can also download the interface files in a zip file.

    Only *.MOD *.XML & *.LUA files are extracted.
    Posted in: Project Discussion
  • To post a comment, please or register a new account.