Scripting unit/behaviour/weapon/etc. data is possible

Vestras

Retired
Reaction score
248
Ofc, with xml you have xls. But, I'm going to quote myself here:


Don't go make the same mistake please. Make the language that generate the xml the same as the one that generates the galaxy. Make them integrated into each other. eg, for the setup function of your triggered AI you'll also be able to create new unit types. Running this code through your preprocessor would produce both the xml data for the units as well as the AI galaxy code.

Can you please elabroate? I'm not sure I understand. But I'm not the maker of Andromeda, so I'm not the one controlling that, but I'm pretty sure that the language will be the same, and integrated in the same tool, if that's what you mean.
 

Lyerae

I keep popping up on this site from time to time.
Reaction score
105
Difficulty isn't a problem. I think in the end everyone would rather have an efficient language than an inefficient language. Let's put it in perspective: would rather you rather type/CnP ~5000 lines of Xml or have a ~20 line script to generate/modify the object(s)?

Hmm. You have a point.
How would that work though? Would you create an entirely new language, or just use a pre-existing language (Lua, Python, etc)?
 

phyrex1an

Staff Member and irregular helper
Reaction score
447
Can you please elabroate? I'm not sure I understand. But I'm not the maker of Andromeda, so I'm not the one controlling that, but I'm pretty sure that the language will be the same, and integrated in the same tool, if that's what you mean.
Some pseudocode:
Code:
superMarine = do
     m <- extend marine
     increaseLife 200 m
     return m

main = do
      createUnit superMarine player1

This code would create a new unit type (superMarine) and set its life to 200 more than the normal marine, in game it would create one of those units for player one. Notice how the same variable used for creating the superMarine unit type is used to also create the unit in game. Essentially, "creating unit types" should just be another API in the main language.
 

punwisp

New Member
Reaction score
34
Not terraining features, that will have to be done via the GE. (Implementing a 3D editor is too much for me :p)
Yes, I'll gladly take that map.

Also, Gex told me that he had an idea of a language for creating objects, like his GMSI. I don't know whether I should support that or generic Xml. His version seems more efficient.
What do you guys think?

How would I send the map
 

Vestras

Retired
Reaction score
248
Hmm. You have a point.
How would that work though? Would you create an entirely new language, or just use a pre-existing language (Lua, Python, etc)?

I'm pretty sure Gex was planning to use Andromeda for it.

Some pseudocode:
Code:
superMarine = do
     m <- extend marine
     increaseLife 200 m
     return m

main = do
      createUnit superMarine player1

This code would create a new unit type (superMarine) and set its life to 200 more than the normal marine, in game it would create one of those units for player one. Notice how the same variable used for creating the superMarine unit type is used to also create the unit in game. Essentially, "creating unit types" should just be another API in the main language.

Well, in GMSI Gex had code like:
Code:
Map map = loadMap("myMap.w3x");      //Loads a map to the struct Map
map.objects.hpea.Ubertip = "test";   //sets the peasant's ("hpea") ubertip to test
saveMap(map,"myChangedMap.w3x");     //Saves the map to a file

And if that's done via Andromeda, and all it is really is just another API, then that could be like what you describes. However I don't think Gex want to have that sort of code in generic Andromeda code, since GMSI scripts could be thousands of lines. But I'll talk to him about having access to the map API in generic Andromeda code, could be interesting.
 

gex

New Member
Reaction score
6
Here are my thoughts about a "build script language" for sc2:

Since I am already developing andromeda and have developed a build tool for WC3 (GMSI), I thought about creating a build tool for SC2 using Andromeda as language (since you already write triggers in andromeda).

I don't have finished my thoughts but I think it will be possible to embed build code into normal andromeda code/triggers. So it will be possible like you said: Creating unit types in the triggers that use them.

For example something like that:

Code:
class A{
 //... insert normal andromeda code for your game logic here
}

#beginbuild
unittype u = new unittype("Marine"); //Creates a new unit type based on the marine
u.Hp += 200; //The new unit type has 200 hp more than the marine
#endbuild

Something like that. Of course, the syntax for the build blocks is not yet set, but this is how it is probably gonna look like.

Of course, there will be mechanisms to avoid duplicate building (if you have already created the marine, you don't want to create it again).

There will also be mechanisms to control when to execute the build blocks (for example, you want to change the version number in the map name, but only whenever you create a new release of your map).
 

Joker(Div)

Always Here..
Reaction score
86
I can't wait for one of these scripting unit tools to come out. Currently, creating a new unit takes waaaay too long. Modifying is a nightmare. :/
 

Sevion

The DIY Ninja
Reaction score
413
Isn't it :-/

I don't even understand how to make a unit from scratch... What's this shit about "Parent" and whatsis?
 

Sevion

The DIY Ninja
Reaction score
413
Making a unit from scratch. Does that mean the unit gets default values from null? :p That's what I'm talking about.
 

Lyerae

I keep popping up on this site from time to time.
Reaction score
105
I think new objects inherit from a base object of the same type.
So, if you make a unit, it inherits the attributes of the base unit type.

Could be null though. Haven't played with the Data Editor much.
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • Varine Varine:
    How can you tell the difference between real traffic and indexing or AI generation bots?
  • The Helper The Helper:
    The bots will show up as users online in the forum software but they do not show up in my stats tracking. I am sure there are bots in the stats but the way alot of the bots treat the site do not show up on the stats
  • Varine Varine:
    I want to build a filtration system for my 3d printer, and that shit is so much more complicated than I thought it would be
  • Varine Varine:
    Apparently ABS emits styrene particulates which can be like .2 micrometers, which idk if the VOC detectors I have can even catch that
  • Varine Varine:
    Anyway I need to get some of those sensors and two air pressure sensors installed before an after the filters, which I need to figure out how to calculate the necessary pressure for and I have yet to find anything that tells me how to actually do that, just the cfm ratings
  • Varine Varine:
    And then I have to set up an arduino board to read those sensors, which I also don't know very much about but I have a whole bunch of crash course things for that
  • Varine Varine:
    These sensors are also a lot more than I thought they would be. Like 5 to 10 each, idk why but I assumed they would be like 2 dollars
  • Varine Varine:
    Another issue I'm learning is that a lot of the air quality sensors don't work at very high ambient temperatures. I'm planning on heating this enclosure to like 60C or so, and that's the upper limit of their functionality
  • Varine Varine:
    Although I don't know if I need to actually actively heat it or just let the plate and hotend bring the ambient temp to whatever it will, but even then I need to figure out an exfiltration for hot air. I think I kind of know what to do but it's still fucking confusing
  • The Helper The Helper:
    Maybe you could find some of that information from AC tech - like how they detect freon and such
  • Varine Varine:
    That's mostly what I've been looking at
  • Varine Varine:
    I don't think I'm dealing with quite the same pressures though, at the very least its a significantly smaller system. For the time being I'm just going to put together a quick scrubby box though and hope it works good enough to not make my house toxic
  • Varine Varine:
    I mean I don't use this enough to pose any significant danger I don't think, but I would still rather not be throwing styrene all over the air
  • The Helper The Helper:
    New dessert added to recipes Southern Pecan Praline Cake https://www.thehelper.net/threads/recipe-southern-pecan-praline-cake.193555/
  • The Helper The Helper:
    Another bot invasion 493 members online most of them bots that do not show up on stats
  • Varine Varine:
    I'm looking at a solid 378 guests, but 3 members. Of which two are me and VSNES. The third is unlisted, which makes me think its a ghost.
    +1
  • The Helper The Helper:
    Some members choose invisibility mode
    +1
  • The Helper The Helper:
    I bitch about Xenforo sometimes but it really is full featured you just have to really know what you are doing to get the most out of it.
  • The Helper The Helper:
    It is just not easy to fix styles and customize but it definitely can be done
  • The Helper The Helper:
    I do know this - xenforo dropped the ball by not keeping the vbulletin reputation comments as a feature. The loss of the Reputation comments data when we switched to Xenforo really was the death knell for the site when it came to all the users that left. I know I missed it so much and I got way less interested in the site when that feature was gone and I run the site.
  • Blackveiled Blackveiled:
    People love rep, lol
    +1
  • The Helper The Helper:
    The recipe today is Sloppy Joe Casserole - one of my faves LOL https://www.thehelper.net/threads/sloppy-joe-casserole-with-manwich.193585/
  • The Helper The Helper:
    Decided to put up a healthier type recipe to mix it up - Honey Garlic Shrimp Stir-Fry https://www.thehelper.net/threads/recipe-honey-garlic-shrimp-stir-fry.193595/

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top