-
Posts
50 -
Joined
-
Last visited
-
Days Won
1
Content Type
Profiles
Forums
Downloads
Jobs Available
Server Database
Third-Party Services
Top Guides
Store
Crowdfunding
Posts posted by Latheesan
-
-
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_configchecking 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 ...
-
performance will degrade if every key stroke events are being monitored and for every char typed, workout the entire string and then lookup the auto-complete list etc...
instead, if you know the first 3 char of the command, why not just press ALT + Space; it will show all the commands that are starting with get*
-
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..
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
-
Hi, thanks for the tip dude, (1) got it, (2) I already do that.
P.S. @Kenpachi : Are you any good at RegEx + C# ?
-
It's written in .NET so actually it is open source.open source! please xD
@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.
-
ok first beta is released (see first post).
Script Open & Save (basic features) from the tool strip (icons) are working.
Menu bar (file, edit ..., etc...) are still not coded.
-
/BUILDIN_DEF(([a-zA-Z0-9_]+),"([silrv*?]+)?"),/ /BUILDIN_DEF2([a-zA-Z0-9_]+,"([a-zA-Z0-9_]+)","([silrv*?]+)?"),/
Return the command name, arguments and alias name.
you rock dude! i am at work now, i'll test this as soon as i get home
-
how about variable name auto completed and custom function auto completed?
like VisualStudio.
i declare function abc;
and it will auto complete it at next write down.
sorry for my bad english
I like the idea, I'll look into this much later after initial release.
-
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
- 1
-
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.
-
is there a file on the src (that i can parse) from the svn that has all the available script commands listed? pherhaps a header file?
NVM, i can just parse this script -> http://eathena-project.googlecode.com/svn/trunk/src/map/script.c
Thanks Terces, another awesome idea.
-
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)
-
New Suggestion...
Title it RAthena NPC ... etc etc ?
I like the idea, i've changed the editor to this now :
RAthena NPC Script Editor
-
I am extremly sorry, i had no idea ImageShack has become so crap nowadays. First TinyPic now this /sigh
Anyway, all demo images have been re-uploaded to ImgUr.com (thanks Z3R0). First post updated
-
Thanks guys. If anyone wants to help me beta test this app, drop me a PM. I'll have a working copy soon, when the code behind the menu bar and the tool strip is completed. At the moment, they are just there as place holder
-
really happy to hear this news; finally
-
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
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
-
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
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
Editing An Existing NPC Script (Loaded this 500 line script in < 10 milliseconds)
Matching Curly Braces Highlighting (easier to see scope in the scripts) & Code Folding (see line 23)
Find & Replace
Code Suggest / Autocomplete (when you press CTRL + Space; it can suggest script commands, mapnames and control flow related syntax - so you produce less typos)
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
What do you guys think? Anyone would even want one of these editors?
Ideas & Suggestion are always welcome.
- 2
- Unlimited undo/redo.
MySQL not found or incompatible
in Installation Support
Posted · Edited by Latheesan
MySQL 5.5 from DotDeb repo (I don't think it's the experimental build) - http://www.dotdeb.or...9/mysql-5-5-19/