DarkBlizz

Game On => Land of AI => STARCRAFT II: WINGS OF LIBERTY => AI Development => Topic started by: sYk0 on March 02, 2010, 02:26:25 PM

Title: AI Script Editing Tool
Post by: sYk0 on March 02, 2010, 02:26:25 PM
Hi all you would be AI developers,

I'm working on a tool (one of many for SC2) which would hopefully aid you in the development of your AI scripts.

Here's a list of features that I will implemented during the course of development.
Here's the process that I'm trying to eliminate:
Instead the process will be as simple as:
I'm sure I left out some information but feel free to leave your comments and/or ask me a few questions.
Perhaps you think the app is a waist/stupid, if so, i'd really like to know, it will save me time if no one is going to use it.  ;)

I'd like to point out the following:
Here's a sneak preview (without syntax highlighting and cold folding):
(http://i50.tinypic.com/10emvrl.png)
Title: Re: AI Script Editing Tool
Post by: Darkmapper on March 02, 2010, 03:14:53 PM
This is genius!
Such a editor would be really usefull!
Tried to edit it with winmpq and scite, but it failed, no idea why.
Please i beg you keep it up!
Title: Re: AI Script Editing Tool
Post by: 1337 on March 02, 2010, 05:06:57 PM
Yes plzzz I need this nao
Title: Re: AI Script Editing Tool
Post by: MiCrOMaN1 on March 02, 2010, 05:12:32 PM
This wud help everyone ;)
Title: Re: AI Script Editing Tool
Post by: Splashy5 on March 02, 2010, 07:23:31 PM
yah i need this because i cant get the Base.SC2Data to start up after i edit it :( nothing spawns when i start the map........
Title: Re: AI Script Editing Tool
Post by: Cynris on March 02, 2010, 08:45:09 PM
This would be a really great tool! I would like to get into AI editing and the like, and this looks like it could save a lot of time.

I know people hate this question, but do you have an ETA of when a beta version might come out?
Title: Re: AI Script Editing Tool
Post by: Kernel64 on March 03, 2010, 12:26:50 AM
this is awesome!
Title: Re: AI Script Editing Tool
Post by: sYk0 on March 03, 2010, 04:41:29 AM
I can't give an exact ETA on the beta, however, I'll try get something out by the end of the week.
I'm on holiday the whole of next week, so there will be no development for 8-9 days, starting this Friday.

I can't guarantee that all the features listed above will be implemented but I will at least add basic editing and saving.
Title: Re: AI Script Editing Tool
Post by: Darkmapper on March 03, 2010, 06:50:40 AM
I hope you get it done soon.
I really appreciate that youre taking time to make a program like this.
Title: Re: AI Script Editing Tool
Post by: adonys on March 03, 2010, 06:55:31 AM
it's much much better to use totalcommander (with the MPQ archive plugin) and ultraedit (with a SC2 script language file).


If I'll have some time these days, I'll create the ultraedit language file for the SC2 scripts.
Title: Re: AI Script Editing Tool
Post by: SPmac on March 03, 2010, 09:56:40 AM
While putz'n around with all the AI files, I decided to write a lil program to quickly convert the .GALAXY files to .C (can convert from .GALAXY to basicly any text format, and from whatever format back to .GALAXY... i like the syntax highlighting, reading the files in VC). IDK if you guys would have a use for it, but it serves it's purpose for me quite well. Check it out if you wish...

http://www.mediafire.com/?hyow1m2o2mw (http://www.mediafire.com/?hyow1m2o2mw)

Also, looking at the AI, was wondering if I could help you guys in any way.. I've very little knowledge of the code, but i believe I can figure out how to implement some functions, and figure out their uses. Only idea I have is to have many individuals look at small sections, implement the functions in that section, and report on functionality. If you're doing sumthing along these lines, send me an eMail.

anyhow... thx for the AI's and gj ..few pics of what the program does, if interested

http://i259.photobucket.com/albums/hh296/SPMAC/Before.png (http://i259.photobucket.com/albums/hh296/SPMAC/Before.png)
http://i259.photobucket.com/albums/hh296/SPMAC/batch.png (http://i259.photobucket.com/albums/hh296/SPMAC/batch.png)
http://i259.photobucket.com/albums/hh296/SPMAC/After.jpg (http://i259.photobucket.com/albums/hh296/SPMAC/After.jpg)
Title: Re: AI Script Editing Tool
Post by: Darkmapper on March 03, 2010, 03:35:26 PM
I still am interested. I downloaded this total commander, but i dont get smart of it...
A Editor specially made for starcraft 2 AI`s would still be very usefull.
I hope that you continue making this program.
Title: Re: AI Script Editing Tool
Post by: sYk0 on March 05, 2010, 12:18:23 PM
Just a heads up,

I haven't forgotten about this project (I'm still working on it, as I type this message), I'm going away for a few days so there will be no updates from me.

If anyone is interested in testing the current alpha build please PM me, it's a very basic version as I haven't had much time to work on it during working hours.
Please note: This current Alpha build is a far (not too far) cry away from what the program will eventually become (A powerhouse MPQ editor specifically targeted at StarCraft II).

(http://i48.tinypic.com/2aaf43b.png)
Title: Re: AI Script Editing Tool
Post by: Kernel64 on March 05, 2010, 01:57:14 PM
A few first feature requests: (will update later for bugs, etc.)

1. Loading a folder instead of the mpq.
2. Load a folder, say, "\TriggerLibs" and all the files and save them into a clean base.sc2data file.
3. Change the background color of the editor. White hurts my eyes. 30% gray would be alright.
4. remove/hide line numbers.
5. Change font.

I'm using conTEXT atm, with the gray background. I'll test this more when my eyes have rested a bit.
Title: Re: AI Script Editing Tool
Post by: kblood on March 05, 2010, 05:25:04 PM
Try:
http://mwolk.com/blog/advanced-notepa/ (http://mwolk.com/blog/advanced-notepa/)
For now it is somewhat useful, at least for checking syntax. When using it to edit .galaxy files, just set the language to C++ and it should be able to figure out the syntax okay, and it has code folding.
sYk0's tool will be much more useful when editing several files at once though. The simplicity of it so far seems amazing :) I would like to do some alpha testing if needed.
Title: Re: AI Script Editing Tool
Post by: Kernel64 on March 05, 2010, 06:32:04 PM
Quote from: kblood on March 05, 2010, 05:25:04 PM
Try:
http://mwolk.com/blog/advanced-notepa/ (http://mwolk.com/blog/advanced-notepa/)


Thanks, Kblood. This is awesome. Wish I had this 15 years ago.

Again, thanks a lot!
Title: Re: AI Script Editing Tool
Post by: Heinermann on March 05, 2010, 06:42:21 PM
Quote from: Kernel64 on March 05, 2010, 01:57:14 PM
3. Change the background color of the editor. White hurts my eyes. 30% gray would be alright.
Don't ever change the colours of default form elements (edit box background for example). This is something that users can change themselves in Windows' Theme settings.
Title: Re: AI Script Editing Tool
Post by: Kernel64 on March 05, 2010, 06:44:13 PM
Quote from: Heinermann on March 05, 2010, 06:42:21 PM
Quote from: Kernel64 on March 05, 2010, 01:57:14 PM
3. Change the background color of the editor. White hurts my eyes. 30% gray would be alright.
Don't ever change the colours of default form elements (edit box background for example). This is something that users can change themselves in Windows' Theme settings.

That's the problem. I have my defaults set to 30% gray. This form may not be defined to use windows' default.
Title: Re: AI Script Editing Tool
Post by: kblood on March 05, 2010, 07:20:10 PM
Quote from: Kernel64 on March 05, 2010, 06:32:04 PM

Thanks, Kblood. This is awesome. Wish I had this 15 years ago.

Again, thanks a lot!
No problem :) Google did most the work in finding it. I just remember finding some good enhanced notepads when doing a bit PHP coding and these were very useful. Even more so when it is C++ because it sure is one uptight code. It has no mercy for the simplest errors it seems. At least when it comes to syntax. Which is important in any kind of code, but afaik PHP usually does not completely crash because of it.
But it will be easier to edit several .galaxy files with the editor sYk0 is making and I imaging we could help finding some nifty macro code snippets to add to it.
Title: Re: AI Script Editing Tool
Post by: DarkZeros on March 07, 2010, 07:51:09 AM
The tool seems interesting. But there is an easyer way to edit the galaxy files without opening the MPQ.

I place the files in /SC2_DIR/TriggerLibs/  when the game needs a file, first searcher its main dir. So, no need to put the files inside the MPQ.
Title: Re: AI Script Editing Tool
Post by: hd on March 07, 2010, 09:54:56 AM
Quote from: DarkZeros on March 07, 2010, 07:51:09 AM
The tool seems interesting. But there is an easyer way to edit the galaxy files without opening the MPQ.

I place the files in /SC2_DIR/TriggerLibs/  when the game needs a file, first searcher its main dir. So, no need to put the files inside the MPQ.

Which is fine when you're editing and testing stuff. But for distribution, you want to package it neatly for those who will use it.
Title: Re: AI Script Editing Tool
Post by: sYk0 on March 07, 2010, 01:25:44 PM
I can't say too much now (not because I don't want too but because I'm typing this from my mobile, on holiday).

I will try implement as many (useful) features (that users request) as I can into this application.

I will implement the option to select and use a folder like it was an .mpq file (optionally convert the folder into .mpq).

There will also be options to change the syntax highlighting & background colours of the text editor.

I have already implemented some semi-functional code completion and error checking for .galaxy files.

There are many more features I have added, will let you know all about them when I get back from vacation at the end of next week.