Main Menu
Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - redspike474

#1
Not enough Pylons / Tutorial : How to play against ai
February 27, 2010, 02:26:50 AM
Hello,
                 i have been doing some research into Ai in starcraft 2, im sure now everyone has played lazytowns sandbox mod, which is great, big thanks to them,
your probally borred of playing against yourself,
here i will explain how to edit a map file to add ai.

Currently the ai only attack you if you attack them, and do not come looking for you or build ect, so they are kind of brain dead. maybe you would say not even ai? however its a step further than playing with yourself.

first you will need a mpq editor.

use your mpq editor to open the map you wish to add ai to,
find and extrac the file called objects.file

open this file in notepad.

this file is a file generated by the sc2 map editor, it contains the location of all the maps objects such as minerals gas rocks watch towers ect. but also could contain units heros buildings effects ect. to add a unit to the objects list you must use the correct name for the unit .

here is a example. this line places a highyeild mineral filed at the specifyed location.

<Unit id="66" variation="7" position="49,86.5,0" scale="1,1,1" unitType="HighYieldMineralField">

if you modify it to this

  <Unit id="66" position="49,86.5,0"  scale="1,1,1" unitType="Zealot" player="2"/>
adding the player="2" stops the unit from being neutral.

other options you can experiment with are
Variation
scale
rotation
let me know if you find any others, you can use this to add buildings critters anything to your map. tricky part is working out the positions.
Does anyone know a debug way of showing position of the cursor?

once you have edited you objects file, readde it to the s2ma file .replaceing the original,
then run your m ap with lazytown !

hopefully using this method we can create some maps that are more intresting than playing on our own.

Also ive figured out alot more for custom mods. such as for each map u can have custom units , custom upgrades ,and its very easy to change the atmosphere of a map, all can edited per map with out effecting other maps wich is really cool and loads of possibiltys for mods.

Also i have been looking into gettin ai to work correctly.
firstly im not sure exactly what the lazytown crack does, does it just boot you into a melee  game?  does it say victory when u start because there is no ai player, there for you have won?
anyways i have asumed that the reason for the ai not apearing is because the maps are not setup for or are not triggering  ai to spawn when the map is loaded,
You can edit the .galaxy script files but as of yet i havent managed to get ai that think, they just stand there,
if anyone that knows more about the galaxy scripting would like to help, than please do,
maybe we need to just setup the maps correctly.
this is just speculation though.

anyways its really really late here 7 in the morning. so i probally have done a bad job at typeing all this, i just thought people might like to play against some computer before i go to sleep.
im more than happy for a mod to edit my post , as i really am half asleep whilst i type this.
here is a pic showing it working. in the picture i have replaced the watch towers with Zelots, as you can see they attack when i get close.