eScript Compiler by Molester

This is where you can post about tools related specifically to the POL Server itself

Moderator: POL Developer

Post Reply
Daviex
Neophyte Poster
Posts: 39
Joined: Sat Sep 20, 2008 3:53 am
Location: Sicily, Italy

eScript Compiler by Molester

Post by Daviex »

Hello guys!

I'm here to release to all of you a tool i made to simply my work when i've to compile my scripts.

Well, the tool is really simple to use, at start, you have to select the ecompile you usually use ( in the folder of POL ).

It will automatically take the CFG and all infos.

After, you could choose between:

- Compile a script, where you will have to choose the .src file.
- Compile a directory, where you will have to choose the folder with the scripts.
- Compile all scripts, will compile all scripts.
- Save Log of compiling ( after compiled ).

Also, after compiled a script or directory, a button near Compile Script or Compile Directory will be activated, that will help you to not select everytime the script, but you will have only to press a button and it will re compile again the last script.

I hope you enjoy this tool and can help your work.

Requirements: .NET Framework 4.0!

Screenshot:
Image

Link download v1.2:
http://goo.gl/kowfiI

Leave feedback if you liked, and report if you founds bugs :)

Changelog:

Code: Select all

v1.2:
- Added view of folder you compiling on
- With double click on a folder or script in the view of left, you can compile it!
- A new interface for FolderFileDialog!

v1.0:
- First Release

TODO:
- Add last script compiled
- Some other things (?)
Enjoy,
Scripter Molester.
Last edited by Daviex on Sat May 10, 2014 3:00 pm, edited 3 times in total.
User avatar
atreiu
Grandmaster Poster
Posts: 151
Joined: Mon May 24, 2010 1:08 pm
Location: Russia, Moscow

Re: eScript Compiler by Molester

Post by atreiu »

please add from left side of app the field where user can see list of scripts that was compiled, if full folder was compiled then foldername with plus icon and dropdown list of scripts.
i can't use current ver because of i can't fast choose all scripts that i already has compiled.
Daviex
Neophyte Poster
Posts: 39
Joined: Sat Sep 20, 2008 3:53 am
Location: Sicily, Italy

Re: eScript Compiler by Molester

Post by Daviex »

You can mod the CFG so you can choose to compile only scripts that are update. Example: If you set 1 to this option, when you will going to choose Compile All Script, it will compile only script that have been modified from last compile.

But, i will see what i can do about this mod ^^
User avatar
atreiu
Grandmaster Poster
Posts: 151
Joined: Mon May 24, 2010 1:08 pm
Location: Russia, Moscow

Re: eScript Compiler by Molester

Post by atreiu »

- please do multi select in this dropdown list i mean have to choose as much scripts as user want.
in that case i will forget to compile from console
- i think that if scripts was compiled via button "compile all scripts" then they shouldn't be in left list of scripts because of there too much
Daviex
Neophyte Poster
Posts: 39
Joined: Sat Sep 20, 2008 3:53 am
Location: Sicily, Italy

Re: eScript Compiler by Molester

Post by Daviex »

atreiu wrote:- please do multi select in this dropdown list i mean have to choose as much scripts as user want.
in that case i will forget to compile from console
- i think that if scripts was compiled via button "compile all scripts" then they shouldn't be in left list of scripts because of there too much
I'll work on this. Thanks for feedback. You will have news soon :)
Daviex
Neophyte Poster
Posts: 39
Joined: Sat Sep 20, 2008 3:53 am
Location: Sicily, Italy

Re: eScript Compiler by Molester

Post by Daviex »

New release in first post.

Changes:

Code: Select all

- Added view of folder you compiling on
- With double click on a folder or script in the view of left, you can compile it!
- A new interface for FolderFileDialog!

TODO:
- Add last script compiled
- Some other things (?)
Let me know your feedback!
Harley
Forum Regular
Posts: 360
Joined: Sat Mar 18, 2006 1:41 am
Location: Germany

Re: eScript Compiler by Molester

Post by Harley »

Cool, nice job Daviex.
Thank u!
Daviex
Neophyte Poster
Posts: 39
Joined: Sat Sep 20, 2008 3:53 am
Location: Sicily, Italy

Re: eScript Compiler by Molester

Post by Daviex »

Thanks :)
Daviex
Neophyte Poster
Posts: 39
Joined: Sat Sep 20, 2008 3:53 am
Location: Sicily, Italy

Re: eScript Compiler by Molester

Post by Daviex »

UP to the topic for a question:

There's some features that you would like to see into this?

Let me know!
User avatar
atreiu
Grandmaster Poster
Posts: 151
Joined: Mon May 24, 2010 1:08 pm
Location: Russia, Moscow

Re: eScript Compiler by Molester

Post by atreiu »

i didnt realyze why you did this.ecompilerPath.Replace(".exe", ".cfg"); in btn_CompileScript_Click() method

Code: Select all

this.ecompile.Arguments = "\"" + openFileDialog.FileName + "\" -Ecfgpath " + this.ecompilerPath.Replace(".exe", ".cfg");
i got error

Code: Select all

Didn't find '.src', '.hsr', or '.asp' extension on source filename 'c:\path_to_folder\ecompile.cfg'!
this work for me

Code: Select all

this.ecompile.Arguments = "\"" + openFileDialog.FileName + "\" -Ecfgpath ";
thanks for start, i will make my version if you don't mind =)
left TreeView tree_folders is always empty and also i want grag&drop i don't want OpenFileDialog() for adding each script, i think grag&drop more easy/faster also compiler should be from .cfg in my case i work with one ecompiler each time so why choose it each time
User avatar
atreiu
Grandmaster Poster
Posts: 151
Joined: Mon May 24, 2010 1:08 pm
Location: Russia, Moscow

Re: eScript Compiler by Molester

Post by atreiu »

thats my version http://untoha.ru/share/esrc_comp.zip
- drag&drop on each place on form will start compilation of dragged script
- error color signal
- elements resize to main form
- left listbox of compiled scripts
  • left dblclick will compile it
  • autoload from "src" file
  • delete selected script via Delete keyboard button
  • clear "src" file by cls button
  • tooltip little bit ugly but right click will show full path to script
- config
  • path to ecompiler.exe from "cfg" file first line
  • form ontop 1/0 in "cfg" file
Thanks again to Daviex, many years i couldnt find motivation to make this tool because of i am use cmd since ms-dos =)
Last edited by atreiu on Tue Sep 29, 2015 6:09 am, edited 1 time in total.
User avatar
atreiu
Grandmaster Poster
Posts: 151
Joined: Mon May 24, 2010 1:08 pm
Location: Russia, Moscow

Re: eScript Compiler by Molester

Post by atreiu »

just little update
added global hotkey user32.dll RegisterHotKey() and UnregisterHotKey() to compile last script so i can compile last script without alt+tab on cmd or whatever

Code: Select all

cfg file explanation
line0 - path to ecompiler.exe
line1 - form ontop 1/0
line2 - Hex modifier code // None = 0, Alt = 1, Control = 2, Shift = 4, WinKey = 8
line3 - Hex button code  // hope that everybody know well about windows virtual-key codes =)
now in .zip in cfg alt+q
Daviex
Neophyte Poster
Posts: 39
Joined: Sat Sep 20, 2008 3:53 am
Location: Sicily, Italy

Re: eScript Compiler by Molester

Post by Daviex »

Man, you could ask me for the source code, I would have given you those without any problem :P

Anyway, if you want them, or want to add your features, I added source codes into Github, so just add your feature and commit it :)

https://github.com/Daviex/eScript_Compiler

I will accept them with pleasure :)

ps. Sorry if I didn't developed features you asked me, that time I had to stop for a while because of study, now I had some freetime so I thought to start back working on it ^^
User avatar
atreiu
Grandmaster Poster
Posts: 151
Joined: Mon May 24, 2010 1:08 pm
Location: Russia, Moscow

Re: eScript Compiler by Molester

Post by atreiu »

actually i took your code without any problem :P that called decompilation) and had made my version based on your.
i've made some changes in your first code so now its quite different application to your also in git i see that you've create new form for last scripts.
i mean that i did is different to that you do, are you sure to commit by my version?

your git version using Ookii.Dialogs; but in folder no Ookii.Dialogs.dll

in anyway you can take code from my version its pure c# and use as you want but please no need in unnecessary credits )
Daviex
Neophyte Poster
Posts: 39
Joined: Sat Sep 20, 2008 3:53 am
Location: Sicily, Italy

Re: eScript Compiler by Molester

Post by Daviex »

I know what you did. Anyway, if you want commit anyway, I'll give it a look And I Will add to mine your features, so everyone Can enjoy The source.

Ps. The dll is in The Bin folder into github
User avatar
atreiu
Grandmaster Poster
Posts: 151
Joined: Mon May 24, 2010 1:08 pm
Location: Russia, Moscow

Re: eScript Compiler by Molester

Post by atreiu »

nope there no .dll you can be sure https://github.com/Daviex/eScript_Compi ... mpiler/bin
.xml only
Daviex
Neophyte Poster
Posts: 39
Joined: Sat Sep 20, 2008 3:53 am
Location: Sicily, Italy

Re: eScript Compiler by Molester

Post by Daviex »

You are right, the ignore file deleted it, I will edit it as soon as I can and add it, thanks for the info ^^

Anyway, I'm going to add your features to the Repo if is not a problem :)
Post Reply