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

Messages - redspike474

#1
Not enough Pylons / Re: Tutorial : How to play against ai
February 27, 2010, 02:50:14 PM
join the chat , i am on there with alot of other people irc rizon -> #sc2maphack

i can answer more questions there
#2
Not enough Pylons / Re: Tutorial : How to play against ai
February 27, 2010, 02:13:59 PM
i suggest we all talk in that irc channel for now, im currently there.
#3
Not enough Pylons / Re: Tutorial : How to play against ai
February 27, 2010, 01:44:25 PM
easy ;p

that command gives you the resources defined in... racedata.xml

edit that file and add it to your maps base.sc2data/gamedata/ folder


example here showing 9999 mineral


<?xml version="1.0" encoding="us-ascii"?>
<Catalog>
    <CRace id="Terr">
        <AttributeId value="Terr"/>
        <LoadingImage value="Assets\Textures\TerranLoad.dds"/>
        <DefeatImage value="Assets\Textures\TerranDefeat.dds"/>
        <VictoryImage value="Assets\Textures\TerranVictory.dds"/>
        <StartingResource index="Minerals" value="9999"/>
        <Flags index="Selectable" value="1"/>
        <StartingUnitArray Unit="CommandCenter"/>
        <StartingUnitArray Count="9" Unit="SCV">
            <Offset value="0,-3"/>
            <Offset value="1,-3"/>
            <Offset value="2,-3"/>
            <Offset value="3,-3"/>
            <Offset value="3,-2"/>
            <Offset value="3,-1"/>
            <Offset value="3,0"/>
            <Offset value="3,1"/>
            <Offset value="3,2"/>
            <Offset value="3,3"/>
            <Offset value="2,3"/>
            <Offset value="1,3"/>
            <Offset value="0,3"/>
            <Offset value="-1,3"/>
            <Offset value="-2,3"/>
            <Offset value="-3,3"/>
            <Offset value="-3,2"/>
            <Offset value="-3,1"/>
            <Offset value="-3,0"/>
            <Offset value="-3,-1"/>
            <Offset value="-3,-2"/>
            <Offset value="-3,-3"/>
            <Offset value="-2,-3"/>
            <Offset value="-1,-3"/>
        </StartingUnitArray>
        <GlossaryTeamColorIndex value="1"/>
    </CRace>
    <CRace id="Prot">
        <AttributeId value="Prot"/>
        <LoadingImage value="Assets\Textures\ProtossLoad.dds"/>
        <DefeatImage value="Assets\Textures\ProtossDefeat.dds"/>
        <VictoryImage value="Assets\Textures\ProtossVictory.dds"/>
        <StartingResource index="Minerals" value="50"/>
        <Flags index="Selectable" value="1"/>
        <StartingUnitArray Unit="Nexus"/>
        <StartingUnitArray Count="6" Unit="Probe">
            <Offset value="0,-3"/>
            <Offset value="1,-3"/>
            <Offset value="2,-3"/>
            <Offset value="3,-3"/>
            <Offset value="3,-2"/>
            <Offset value="3,-1"/>
            <Offset value="3,0"/>
            <Offset value="3,1"/>
            <Offset value="3,2"/>
            <Offset value="3,3"/>
            <Offset value="2,3"/>
            <Offset value="1,3"/>
            <Offset value="0,3"/>
            <Offset value="-1,3"/>
            <Offset value="-2,3"/>
            <Offset value="-3,3"/>
            <Offset value="-3,2"/>
            <Offset value="-3,1"/>
            <Offset value="-3,0"/>
            <Offset value="-3,-1"/>
            <Offset value="-3,-2"/>
            <Offset value="-3,-3"/>
            <Offset value="-2,-3"/>
            <Offset value="-1,-3"/>
        </StartingUnitArray>
        <GlossaryTeamColorIndex value="2"/>
    </CRace>
    <CRace id="Zerg">
        <AttributeId value="Zerg"/>
        <LoadingImage value="Assets\Textures\TerranLoad.dds"/>
        <DefeatImage value="Assets\Textures\ZergDefeat.dds"/>
        <VictoryImage value="Assets\Textures\ZergVictory.dds"/>
        <StartingResource index="Minerals" value="50"/>
        <Flags index="Selectable" value="1"/>
        <StartingUnitArray Unit="Hatchery"/>
        <StartingUnitArray Count="6" Unit="Drone">
            <Offset value="0,-3"/>
            <Offset value="1,-3"/>
            <Offset value="2,-3"/>
            <Offset value="3,-3"/>
            <Offset value="3,-2"/>
            <Offset value="3,-1"/>
            <Offset value="3,0"/>
            <Offset value="3,1"/>
            <Offset value="3,2"/>
            <Offset value="3,3"/>
            <Offset value="2,3"/>
            <Offset value="1,3"/>
            <Offset value="0,3"/>
            <Offset value="-1,3"/>
            <Offset value="-2,3"/>
            <Offset value="-3,3"/>
            <Offset value="-3,2"/>
            <Offset value="-3,1"/>
            <Offset value="-3,0"/>
            <Offset value="-3,-1"/>
            <Offset value="-3,-2"/>
            <Offset value="-3,-3"/>
            <Offset value="-2,-3"/>
            <Offset value="-1,-3"/>
        </StartingUnitArray>
        <StartingUnitArray Unit="Overlord">
            <Offset value="0,-3"/>
            <Offset value="1,-3"/>
            <Offset value="2,-3"/>
            <Offset value="3,-3"/>
            <Offset value="3,-2"/>
            <Offset value="3,-1"/>
            <Offset value="3,0"/>
            <Offset value="3,1"/>
            <Offset value="3,2"/>
            <Offset value="3,3"/>
            <Offset value="2,3"/>
            <Offset value="1,3"/>
            <Offset value="0,3"/>
            <Offset value="-1,3"/>
            <Offset value="-2,3"/>
            <Offset value="-3,3"/>
            <Offset value="-3,2"/>
            <Offset value="-3,1"/>
            <Offset value="-3,0"/>
            <Offset value="-3,-1"/>
            <Offset value="-3,-2"/>
            <Offset value="-3,-3"/>
            <Offset value="-2,-3"/>
            <Offset value="-1,-3"/>
        </StartingUnitArray>
        <GlossaryTeamColorIndex value="4"/>
    </CRace>
</Catalog>



all that meleeinitresources does is load this. i belive.
u can see there is alot u can change , starting units and buildings ect and colours.
you could make it so u start with allready a large army.
#4
Not enough Pylons / Re: Tutorial : How to play against ai
February 27, 2010, 01:34:30 PM
actually i belive its more like starcraft 1.

seeing as there are no units or buildings placed for the race you play as.
each time u play a map it randomly choses your starting location from those defined in the objects file, and then randomly chooses your race.  and gives you a command center ect.
i see no reason why it would not do the same for player 2 , or a computer player.
there simply is no computer  player present when the map starts. the slot is empty or closed.
yes it might be possible to create a map using triggers simaler to Ums in sc1, more like a single player mission, however i dont think this is possible at the moment with the current lazytown program ,
if you think about it what settings for custom map are there?
ums?
mele?
Player vs player>
think how many there was in sc1 And how each was a diffrent game mode, only ums used map settings and used triggers ect,
#5
good to see some one made use of my tutorial :P
good job!! try expanding on it a little, place some more units, add some fog, remove rain , make it a bit diffrent,
#6
AI Development / Re: Trigger Scripting...
February 27, 2010, 01:19:50 PM
you can set areas or points in the objectt file, and in the galaxy script have somthing triggerd when a unit enters it.
though with out any example scripts from singleplayer ect its going to be hard to figure out .
#7
Not enough Pylons / Re: Tutorial : How to play against ai
February 27, 2010, 01:17:51 PM
Quote from: Valkirie on February 27, 2010, 12:49:03 PM
Quote from: tomsons26 on February 27, 2010, 12:33:29 PM
my theory about AI
in MapScript.galaxy there is only include "TriggerLibs/NativeLib" that shoud be be the AI that when an AI unit is attacked then he attacks you (kinda like natural hostile in war3)
can someone that maked an map with AI test adding these tags

//==================================================================================================
include "TriggerLibs/NativeLib"
include "TriggerLibs/RequirementsAI"
include "TriggerLibs/BuildAI"
include "TriggerLibs/MeleeAI"
include "TriggerLibs/Terran"
include "TriggerLibs/Protoss"
include "TriggerLibs/Zerg"

//--------------------------------------------------------------------------------------------------


http://www.mediafire.com/?gjnnzwjjdxk
Also added a Hatchery at Starting point loc 002. Looks like nothing is moving.

i dont think this method would work at all, if it is moving you wont get victory when u start the map. u get Victory because u have no oponant.


currently i belive that its the lazy town sandbox that needs to change its way of loading into the map, it isnt anything to do with the galaxy scripting.
because the scripts are working u can mess with them youselfs.

any triggers ect are no longer valid anyways after u have won the game, eg after vicotory is displayed its end game, i think... im not sure.

lazytown needs to load the map and emulate or tell the computer slot to be full , or somthing like that. there is no ai because all the player slots are empty, one needs to be set to computer.  well as far as i can figure out, 
#8
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.