| 03-27-2008, 08:30 AM | #1 |
Hi, I am developing a script interpreter for script directives which can be written into the tooltip of units/abilities/items directly in the Object Editor. It is called Gex's Obejct Editor Script Interpreter (GOSI). I wanna present it here because I think this site accomodates many experienced mappers that are able to see the potential power of such a tool. To cut things short. How it works: You write script code into your object's tooltips right in the Object Editor. The script language is more or less like JAVA/C, so if you are experienced with one of those you will have no problem with it You start the program, load the map in it and let it interprete it. You will find a map in the output folder where all script directives have vanished. Instead the output of these directives is now included in the tooltip. Note: Larger functions that you don't wanna write into the small Object Editor window can be written into external files and then just be called inside the tooltip. Ok, so kind of tooltip can be done with it? Basically anything. Maybe you know my map "Castle Fight". Tooltips there are very complicated, include the abilities a unit has and much more (I will attach an example tooltip). Such a tooltip can be done with one word (the function call) with this script interpreter. Some interesting function: -You can read EVERY Object Editor field of an object and display it in the tooltip -You can access other objects as well, for example you can iterate over the abilities a unit has and display their names and other values in the tooltip of the unit. -Things like displaying the cooldown of all levels of an ability like in newer versions of dota is no big deal with this tool. If you change anything about your unit, you don't have to change it in the tooltip, the program does it. What is planned: I am currently writing some native functions for it that you can use to do even more stuff. Future versions will for example provide a function to write into external files. So, for example, you can create an SQL Dump of all your unit data (simply call this external file write function and write the sql code into it, filled with the unit's values) and import it into a SQL database to view the units of your map at your page. I hope you like it. For a full documentation see my documentation page (sorry for the bad design): http://gex.eeve.org/forum/viewtopic.php?t=1103 Check the examples in the /script folder. They contain well commented example script code that shows you what can be done how. I am not writing this post at the ressource request board, because at the moment I am in beta and there is no need yet to be in your ressource database, maybe if it is stable. I rather want a discussion, if you would use it or what I could improve. |
| 03-27-2008, 09:07 AM | #2 |
Maybe try make a grimoire version of this? Yes I am serious and I know it will help people who likes writing detailed tooltips... (Rising_Dusk...) If you can implement this through grimoire (Im repaeting the same thing twice but read on) I truly reckon that this tool will be more widely used through grimoire IMO but then again its your choice in the end product -Av3n |
| 03-27-2008, 10:03 AM | #3 |
I don't doubt that this is a useful app, but- inventing your own language... good learning experience using your language to get work done... ultimate programmer failure particularly when there's no innovation over existing tools. |
| 03-27-2008, 02:03 PM | #4 | |
Quote:
I dont get your point. It is no "own" language, it is c with a few other things. But if you know c you can start coding right away, you just have to know a few things like the $ operator. Which are the existing tools you refer to? I couldn't find any. concerning grimoire: Why merging it? You don't have to run the program while you code the script areas. You just have to run it once before you release your map, just like a map protection. The problem with merging would be that it is written in JAVA. |
| 03-28-2008, 08:58 PM | #5 |
I'd have to see it in action to judge it :) |
| 03-28-2008, 10:37 PM | #6 |
okok, after I am finished with the next update (that includes altering OE entries), I will write some test maps that can be parsed right away and the result can be seen then. |
