Jump to content

Latheesan

Members
  • Posts

    50
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Latheesan

  1. Hi,

    First of all, sorry if I posted this in the wrong section.

    I am trying to install rAthena on Debian 6.0 (x86) with MySQL 5.5.

    All the necessary libraries are already installed with :

    apt-get install subversion make gcc libmysqlclient-dev zlib1g-dev libpcre3-dev

    When I run ./configure I get the following error :

    checking for mysql_config... /usr/bin/mysql_config

    checking for mysql_init in -lmysqlclient... no

    checking mysql.h usability... yes

    checking mysql.h presence... yes

    checking for mysql.h... yes

    checking MySQL library (required)... no

    configure: error: MySQL not found or incompatible

    Any idea what's wrong?

    I've also tried the following combination :

    ./configure --with-mysql

    and

    ./configure --with-mysql=/usr/bin/mysql_config

    no luck so far ...

  2. You try to press "CTRL+SPACE BAR" , I used it. :)

    Yes I tried it but it isn't Auto-complete support with ability to customize list.

    I the pic it's detecting your previous word so if I type

    OnPC

    it'll spawns some like this :

    - OnPCLoadMapEvent

    - OnPCLogoutEvent

    - OnPCLoginEvent

    etc.. :D

    The current auto-complete list only includes standard NPC Script commands (e.g. getmapxy), control-flow related commands (if, else, switch etc...) and mapnames (only official ones from the mapindex).

    I think I forgot to include the On* Labels in the auto-complete list; i'll update the list later. Does anyone know how many On* labels are out there?

    Later on, you will be able to customize the autocomplete word list :)

  3. open source! please xD

    It's written in .NET so actually it is open source. :)

    http://www.reflector.net/

    @Topic:

    HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://eathena-project.googlecode.com/svn/trunk/src/map/script.c");
    

    I'd prefer to have a configuration for the link.

    Out of curisity, just how much is exposed via the reflector on my executable?

    Also, the finished app will have a nice gui for configuring almost every aspect of the app.

  4. Okay, i've done this by parsing line by line; without RegEx like this:

    HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://eathena-project.googlecode.com/svn/trunk/src/map/script.c");
    request.Accept = "text/plain";
    HttpWebResponse response = (HttpWebResponse)request.GetResponse();
    
    TextWriter tw = new StreamWriter("script_commands.txt");
    StreamReader reader = new StreamReader(response.GetResponseStream());
    bool startReading = false;
    string str = reader.ReadLine();
    while (str != null)
    {
    if (str == "struct script_function buildin_func[] = {") {
    	startReading = true;
    }
    if (startReading)
    {
    	string line = str.Trim();
    	if (line.Contains("BUILDIN_DEF"))
    	{
    		string[] lineData = line.Split(new char[] { '(' }, 2);
    		if (lineData.Length == 2)
    		{
    			string[] scriptCommandData = lineData[1].Split(new char[] { ',' }, 2);
    			tw.WriteLine(scriptCommandData[0]);
    		}
    	}
    }
    str = reader.ReadLine();
    }
    reader.Close();
    response.Close();
    tw.Close();
    

    If anyone knows a faster / more effieicne way of doing this using RegEx, let me know.

    The above code produces the following : script_command.txt

    • Upvote 1
  5. Anyone good at regex?

    what would be the pattern to match multiple occurences of any text that appears between "BUILDIN_FUNC(" and ")"

    for example, in a string line this:

    BUILDIN_FUNC(getlook) { int type,val; TBL_PC *sd; sd=script_rid2sd(st); } BUILDIN_FUNC(getmapxy) { .. }

    It should find the following :

    - getlook

    - getmapxy

    and it should discard everything else.

    I tried this :

    b(BUILDIN_FUNC)b((?:[a-z][a-z0-9_]*))

    As you can see, i am not good at regex, i used www.txt2re.com and this is not working as intended.

  6. Thanks again for another great suggestion.

    p.s. I am thinking about using a custom skin library to theme the editor, to make it look more professional (instead of the current default look).

    I found a great skin library that lets you choose any office theme.

    Here's few sample : http://imgur.com/a/LYSQ9#1

    Click here to download a demo showing all posible skins : http://www.mediafire.com/?6582bec43h6fbv9

    Do you guys think i should use this skin library (Krypton.Toolkit)? If so, which skin do you guys like? You change change it on the skin demo app (change the value of GlobalPalleteMode - found right hand top side panel)

  7. Is it possible to incorporate a compiler & test to check for any errors etc?

    This is my goal also. If we can compile/parse this script as eAthena Script Engine Would (script.c), it'd be awesome. We would no longer have to load the script into the server and catch error on start-up or during usage.

    If anyone here is good at C, it'd be awesome if you could convert the script parser from script.c into a DLL or something that i can load in my project and use it to parse the content of the editor, that'd be sweet.

    @Judas Thanks :D

    P.S. I just thought of a nice idea. Color Picker is a must. I am always having to go search online to find the html hex codes for colors, it'd be nice if i could bring up a color picker and when u select a color, e.g. dark red, it inserts the following into the current position in the editor: ^CC0000 ... ^000000 (for example). Color picker control added to the editor, see screenshot above ;)

  8. Hello,

    Here is a tool I released on the other eAthena forum long time ago.

    Since everyone is starting anew here, I thought I should also update my tools and release it here.

    It's a tool that helps server admins + anyone who works on RAthena NPC Scripts. It was coded in C# using .NET Framework 4.0 (might be able to compile it to 2.0 ~ 3.5 if anyone wants)

    Read on to find out more smile.png

    Tool Name : RAthena NPC Script Editor

    Version : 1.0.0

    Download : BETA 1 (Released On 05-12-2011)

    Features

    Editing

    • Unlimited undo/redo.
    • Block indent/outdent.
    • Current line highlighting.
    • Code Folding.
    • Line selection in the selection margin.
    • Clipboard operations natively supported (cut, copy, paste).
    • Support for UTF-8 encoding.
    • Custom key processing, command/key binding for over 100 edit commands such as caret movement, selection, indenting, transposition, and more.

    Text Visualization

    • Syntax highlighting support for RAthena NPC Scripts as well us other popular languages; such as PHP, C#, XML, LUA etc...
    • Word wrap (by word or character).
    • Whitespace display.
    • Indentation guides that show tab-stops.
    • Column and long line indicators.
    • Brace match highlighting.
    • Line symbols (bookmarks, breakpoints).
    • Zooming.

    Appearance

    • Line numbering.
    • Customizable symbol margins.
    • Multiple font/sizes supported in the same document.
    • Multiple scrollbar visibility settings.
    • Input Assistant Features.
    • Code snippet support.
    • Auto-complete support with ability to customize list.
    • Mouse hover indicators.
    • IntelliSense Tool-Tips (similar to VisualStudio).

    Other

    • Export to HTML.
    • Macro recording and playback.
    • Full search and replace support using wild-card or regular expression syntax.
    • Automatic scrolling.
    • Printing.
    • Tabbed Editor (work on multiple script at the same time).
    • Copy Script with Syntax Highlighted.
    • Upload Script Online From Editor (e.g. FileServe, FileSonic, RapidShare, WUpload, etc...).
    • Encrypt/Descrypt your NPC Scripts (Strong 256-Bit AES Encryption Tech) with passwords.
    • Very fast editor
    • Easy to use GUI
    • Built using the same powerful editing control Notepad++ uses (OpenSource Library)
    • Eventually, syntax validation - script parser that tells you if you have syntax error that will prevent the script from loading or running properly in game (debug script without having to load them in server)
    • Much more ideas planned...

    Demo

    The Editor

    kpMNg.png

    Editing An Existing NPC Script (Loaded this 500 line script in < 10 milliseconds)

    2OFk4.png

    Matching Curly Braces Highlighting (easier to see scope in the scripts) & Code Folding (see line 23)

    e0zur.png

    Find & Replace

    nEKXU.png

    Code Suggest / Autocomplete (when you press CTRL + Space; it can suggest script commands, mapnames and control flow related syntax - so you produce less typos)

    k1Lip.png

    Color Picker (RAthena Script Format - In the demo, after selecting a color like Red and click Ok, it inserts the following entry at current cursor position: ^FF0000 ... ^000000) - Works with any possible color combination

    VqtAP.png

    What do you guys think? Anyone would even want one of these editors?

    Ideas & Suggestion are always welcome.

    • Upvote 2
×
×
  • Create New...