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 - vjeux

#1
Galaxy Maps / Tutorial Map - Get started mapping !
March 27, 2010, 09:25:48 AM
Hello,

At the moment, creating a map is a hardcore process, this is why I've packaged many tools together to make map editing easy.

http://www.sc2mapster.com/maps/tutorial-how-get-started/

How to start:

       
  • Extract the zip file anywhere you want
  • Copy "Starcraft II Beta/Versions/Base13891/" to "Starcraft II Beta/Versions/Base10000/"
  • Copy "Tutorial/Export/patch.SC2Archive" to "Starcraft II Beta/Versions/Base10000/patch.SC2Archive"
  • Run "Tutorial/launch_map.bat"
  • You should see a map with 4 drones and one of them is yours
Now, you just have to edit the galaxy and xml files inside the ##Files/## folder. Run the launch_map.bat and Tadaa, all your modifications are taken in account directly.

In order to make the learning curve easier I've added examples of basic code you would probably want to write. If you want to get deeper you can dig into the Documentation.

I hope you are going to start making maps :)


#2
SC2 Tools / Re: SC Web Map Editor
March 25, 2010, 06:21:57 AM
Really great.


I've just upload it on my private ftp so you don't have to install it


http://www.fooo.fr/~vjeux/curse/sc2/sc2wme/
#3
Galaxy Maps / Re: Mapster Tower Defense
March 22, 2010, 12:58:43 PM

I've recorded a video for those who don't want to install ithttp://www.youtube.com/v/RGyJMXsFdlE#
#4
Galaxy Maps / Re: Mapster Tower Defense
March 21, 2010, 09:13:35 AM
Strange ... I don't really know where it can come from. Did you change the wave script?

If you need any help, I'm available on irc at irc.freenode.net at #SC2Mapster


When making new waves, make sure you add
        <DefaultAcquireLevel value="Defensive"/>
to the unit or it won't attack the pylon
#5
Galaxy Maps / Re: Mapster Tower Defense
March 21, 2010, 06:57:17 AM
Since the colossus are able to walk through the different cliffs levels they may go the way around if you are blocking the main path.


Anyway thanks for the feedback ... I am impressed that you finished with full life, couldn't manage to do it :(
#6
Galaxy Maps / Re: Mapster Tower Defense
March 19, 2010, 07:41:36 AM
I'm really sorry. There was a bug due to the AI taking control over the units ... This is now fixed !

Also, I've played it many times and my record is the Pylon having 134/200 armor remaining.

#7
Galaxy Maps / Re: Mapster Tower Defense
March 19, 2010, 01:39:03 AM
Hmmm, do you have any AI files in your Starcraft II folder? Did you copy the patch.mpq file?
#8
Galaxy Maps / Mapster Tower Defense
March 18, 2010, 05:06:44 PM

First Tower Defense of Starcraft II. It's pretty much work in progress but is quite working :)
It has been made thanks to the SC2Mapster Galaxy API.


Download Mapster TD
There was a problem with the AI causing waves not to be sent correctly. This is now fixed! Redownload the map to play it.


== Game ==

Towers

       
  • Nicoli_s Tower: A really slow tower that can be upgraded later.
  • Sixen Tower: A medium tower that has a good DPS.
  • Ckknight Tower: The ultimate tower. Pwn's everyone in sight.
Waves

       
  • Drone: Build fast, you need it!
  • Zergling: Hopefully you survive this phase.
  • ?: You need upgraded towers
  • ?: Will you get there alive?
  • ?: Defeat this wave and win the game!
== Play it ==
Installation:


One time:

       
  • Remove all your custom AI scripts
  • Rename "...\StarCraft II Beta\Versions\Base14356\patch.mpq" to "patch_real.mpq"
  • Copy "patch.mpq" to "...\StarCraft II Beta\Versions\Base14356\patch.mpq"
Always

       
  • Double click "launch.bat"

Uninstallation

       
  • Delete "...\StarCraft II Beta\Versions\Base14356\patch.mpq"
  • Rename "...\StarCraft II Beta\Versions\Base14356\patch_real.mpq" to "patch.mpq"

== Edit it ==
There's a full map development environment given. So it's easy to edit the map and/or edit your own maps.

       
  • Modify any file inside the "Files\" folder
  • Run launch.bat
  • (If you can't see the trigger debug, get into windowed mode)
  • Enjoy
#9
AI Development / Re: Capturing Debug Lines
March 18, 2010, 04:04:48 AM
You can use the function TrigerDebugOutput to display text in the trigger debug panel.

Then you can copy & paste what's inside that panel to store it. Not sure if there's any file output available.
#10
This would be really nice if it could open up the mpq files and get all natives from there instead of having them extracted.
#11
Yeah triggers are functions that are call upon several events. At the moment, only MapInit and ChatMessage handlers are implemented.
If you want to know more I've documented all the trigger functions there:

       
  • TriggerCreate(string func) - Create a new trigger from a function
  • TriggerDebugOutput(int triggerDebug, text message, bool UI) - Display a debug message
  • TriggerAddEventMapInit(trigger t) - Register a trigger that will be executed on map initialization
  • Wait(fixed seconds, int timezone) - Pause the current trigger without blocking
  • TriggerAddEventChatMessage(trigger t, int player, string message, bool strict) - Register a trigger that will be executed on Chat Messages
  • EventChatMessage(bool strict) - Message content available on TriggerAddEventChatMessage callback
The trigger function is returning a boolean and takes two booleans as argument. I'm not sure yet what they are used for.
#12
Quote from: Kernel64 on March 09, 2010, 05:37:47 AM
while(A) {
   do(x)...
}
while(!B) {
   do(y)...
}
We can do things in paralell within the game. In order to create a thread you have to start a trigger and inside do a while (1) { /* Something */; Wait(1); }


Here is a working example:


// Define the trigger function
bool TriggerTiming (bool checkConds, bool doActions) {
  while (1) {
    // Do something every 5 seconds
    Wait(5, 0);
  }
}


void InitMap() {
  // Create a new trigger based off the function
  trigger t = TriggerCreate("TriggerTiming");


  // Run it at map initialization
  TriggerAddEventMapInit (t);
}
#13
AI Development / Re: Galaxy syntax validator Tool
March 12, 2010, 03:06:22 PM

Really great!


Just found out some bugs:
int func(void);
struct Link { int value; Link* next; };


#14
AI Development / Re: Code Snippets & Functions
March 12, 2010, 05:42:40 AM

A FixedToString that allows you to set the precision (number of decimal to show up). (Source: http://www.sc2mapster.com/api-docs/types/fixed/ )string FixedToString(fixed f, int precision) {
  string s = "";
  int g;


  if (precision < 0) {
    precision = 0;
  }


  //Negative case
  if (f < 0) {
    s = "-";
    f = -f;
  }


  // Integer part
  g = FixedToInt(f);
  s = s + IntToString(g);
  f = f - g;


  if (precision != 0 && f != 0) {
    s = s + ".";


    // Decimal part
    do {
      f = f * 10;
      g = FixedToInt(f);
      s = s + IntToString(g);
      f = f - g;
      precision = precision - 1;
    } while (f != 0 && precision != 0);
  }


  return s;
}



If you want to use basic math functions, I've recoded "cos, sin, tan, round, floor, ceil, isInt, mod". You can find the file here: http://www.sc2mapster.com/assets/basic-mathematic-functions/

#15
Galaxy Maps / Re: Galaxy Map Editor- Who's Excited!!
March 12, 2010, 03:49:10 AM

I hope that their Editor is going to be better than the galaxy language, because it is really bad. Just a sample of what's wrong whit it:

       
  • No dynamic allocation: There is no ##new## or ##malloc##. We wonder what would be the use of pointers without this.
  • No For: Only the ##while## loop is available, the ##for## loop isn't.
  • Weak compiler debugging output: The only error it is able to say is "Syntax Error" and the line where the error happened is not available.
  • Missing string operations: There is no way to access individual characters of a string, nor the length ...
  • No /* ... */ Comments: Maybe it's too hard to code ...
  • Single pass declaration scanning. You have to write the prototype of functions if it is declared after in the file.
  • /=, *= not working properly for fixed
  • Language being based on C. C is an old static language. We expected a dynamic language like Lua.
  • Line cannot be > 2048 caracters. Wth ...
  • No trigonometric functions
  • No way to get point.x and point.y
(Source: http://www.sc2mapster.com/api-docs/galaxy-language/ )