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

#1481
General Discussion / Re: We are not bemused
Mon 18/08/2014 03:06:22
Merriam-Webster lost all credit with me when they agreed with Alanis Morissette. http://www.merriam-webster.com/video/0035-ironic.html
#1482
1. jwalt
2. siliconangel
3. Billbis
#1483
Alien Time Zone. Short game, but it affected me deeply. It's the Donnie Darko of adventure games.
#1484
The Rumpus Room / Re: AGS Mix CD
Wed 13/08/2014 13:56:33
Christopher Cross - Sailing

Mmmm... that's some good mid-tempo rock.

I don't have to suggest a track number, do I? Based on your overview, I would guess around track 10.
#1485
The Rumpus Room / Re: Name the Game
Tue 12/08/2014 03:47:19
Sopwith variant?
#1486
I don't know whether it's adventure games or not, but check out the teaser site:

http://www.sierra.com/
#1487
The Rumpus Room / Re: Happy Birthday Thread!
Fri 01/08/2014 01:53:42
Whoa, happy birthday Adeel! What are you now? 14? 15? :D

I hope you get some good computer hardware for your birthday.
#1488
Quote from: Crimson Wizard on Thu 31/07/2014 15:12:36
Gurok, I just found a compiler bug: it does not restrict dynamic arrays in managed structs (although that's too a pointer).
Guess I forgot to check that particular case.

Sorry! I quickly patched it locally and updated the link (a bit cowboy, I know). Should be better now. I will make a pull request for the extra compiler warning soon (tomorrow).
#1489
Editor Development / Re: AGS 3.3.1 Alpha 2
Thu 31/07/2014 15:01:33
Hello all,

AGS 3.3.1 Alpha 2 is out. You can download it here:

Download 3.3.1 alpha 2 as a .zip archive



Changes from 3.3.1 Alpha 1:



Engine

Bug Fixes

  • Fixed occasional pathfinding failure on straight lines with complex walkable areas (reported here)
  • Printing [ no longer consumes all of the backslashes before it (e.g. "\\[" should now print \[ as expected)



Scripting

Do...While loops

The Do...While loop construct is now supported. For example:
Code: ags
x = 1;
do
{
    x++;
    Display("%d", x);
} while(x < 1);

Unlike While, Do...While runs the loop iteration *before* evaluating the condition. The loop above will run once.

Dynamic Arrays in Structs

Dynamic arrays are now permitted inside structs. You can declare a struct like so:
Code: ags

struct DieRoll
{
    int BaseModifier;
    int DieCount;
    int Dice[ ];
    import function GetTotalValueOfRoll();
};

function PrepareDice()
{
    DieRoll a;

    a.DieCount = 3;
    a.Dice = new int[a.DieCount];
    a.Dice[0] = 6; // d6
    a.Dice[1] = 6; // d6
    a.Dice[2] = 8; // d8
    ...
}

And the dynamic array "Dice" can be initialised and used like any other dynamic array.

Managed User Structs

In AGS parlance, a managed struct is a struct that can be created dynamically. You must use pointers to refer to them (similar to built-in types like Region or Hotspot). You declare them with the keyword "managed" and construct new instances with "new", like so:
Code: ags

managed struct Point
{
    int X;
    int Y;
};

Point *GetPosition()
{
    Point *result;

    result = new Point;
    result.X = 30;
    result.Y = 40;

    return result;
}

Important: Managed structs are currently VERY limited in that they can't contain pointers (including dynamic arrays). It is hoped that this restriction will be lifted in the future.

#define Improvements

#define can now refer to other #define'd constants. Like VC++, #define symbol expansion only needs to make sense at the time of reference. Also like VC++, the order of previously defined constants isn't important, making stuff like this possible:
Code: ags

#define RED    GREEN
#define BLUE   456
#define GREEN  BLUE
Display("%d", RED); // Prints 456
#undef BLUE
#define BLUE  123
Display("%d", RED); // Prints 123

Note: To prevent circular references, a #define cannot refer to itself or anything previously used to expand the #define symbol.

Character.DestinationX and Character.DestinationY

Two new read-only properties that can be used to determine where a character is currently heading (via a Walk command). If the character is currently stationary, these values are the same as Character.x and Character.y, respectively.



Editor

Clickable for Objects

The Clickable property of objects is now exposed in the editor so that you can set it at design time. Previously, this value was embedded in the room file format but only toggleable via scripting.



This build also includes everything in AGS 3.3.0 Hotfix 3 (including the updated templates).
#1490
Congrats on the joint win, Babar and jwalt. Looking forward to a joint comp. :D
#1491
So good, AprilSkies! Keep it up. Love the colouring of the sky in those pics.
#1492
Wow! Well done, Tabata, that was incredible!
#1493
The Rumpus Room / Re: Baby names suggestions
Mon 28/07/2014 23:59:24
Beetlejuice
Jareth
Willow
#1494
It's the Program Compatibility Assistant. It's possible to turn it off (http://www.sevenforums.com/tutorials/70829-program-compatibility-assistant-enable-disable.html), but the real question is why AGS games are being detected as installers.
#1495
The Rumpus Room / Re: Name the Game
Sun 27/07/2014 23:52:10
Sensible Soccer? Scratch that, it's not even soccer. John Madden Football?
#1496
The Rumpus Room / Re: Happy Birthday Thread!
Sun 27/07/2014 11:33:22
Happy birthday, Calin Leafshade! Hope you don't have to workshade today.
#1497
General Discussion / Re: Coin Collectors?
Sat 26/07/2014 00:16:45
I have a coin collection, but it's bullion, not numismatic. I think I've PM'd you some photos before.

Does that chart mean you need coins from Australia? Can help!
#1498
I see your gingersnap votes and raise you some Babar votes.

Concept: Babar
Artistic: Babar
Playability: Babar
#1500
General Discussion / Re: Time counter name
Wed 23/07/2014 14:27:01
Do we get to see who won? I never got to vote, but I liked Baron's suggestion.
SMF spam blocked by CleanTalk