Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: MugMan on Sun 29/11/2015 21:16:44

Title: Exceeded Buffers?
Post by: MugMan on Sun 29/11/2015 21:16:44
I'm having trouble again:(
I'm not really sure where i went wrong, i can't see any unclosed brackets here.
Any help would be appreciated, thanks.
Code (ags) Select

// room script file

function room_AfterFadeIn()
{
cEgo.x =160;
cEgo.y =185;
}


function oTranslator_PickUp()
{
cEgo.AddInventory (iInvItem1);
cEgo.Say ("I suppose this could be useful? Maybe?");
}

function hHotspot1_Interact()
{
cEgo.Say ("Yup, that's some quality stone right there, great craftsmanship, don't make stone like that no more, nope, taht's an oldstone right there");
cEgo.Say ("You'd never get anyone making stone this solid nowadays, there's no money in making quality sone, and if you do you could expect a buyout by RockCo pretty damn soon");
cEgo.Say (Bloody RockCo");
Display ("Cadave sighs.");
cEgo.Say ("I miss running that quarry.");
}

function hHotspot1_Look()
{
cEgo.Say ("Quality castle right there.");
}

function hHotspot2_Interact()
{
cEgo.Say ("This is locked tighter than a jewish bank.");
}

function hHotspot2_Look()
{
cEgo.Say ("It's a plonking great door.");
}

function hHotspot2_Talk()
{
cEgo.Say ("Hello door");
Display ("The door doesn't reply");
cEgo.Say ("Why do you hurt me so?");
}

function hHotspot3_Look()
{
cEgo.Say ("Some good old, H20");
}

function hHotspot3_Talk()
{
cEgo.Say ("Forgive me but i don't think yelling at posideon will help in this situation");
}

Here's the error message i got:
room4.asc(51): Error (line 51): buffer exceeded: you probably have a missing closing bracket on a previous line
I didn't include everything in the code, there's more and it does close at the end.
Title: Re: Exceeded Buffers?
Post by: Gurok on Sun 29/11/2015 21:57:40
As a start, try line 20 of the post:

cEgo.Say (Bloody RockCo");

There should be a quotation mark before Bloody.
Title: Re: Exceeded Buffers?
Post by: MugMan on Sun 29/11/2015 22:03:32
Quote from: Gurok on Sun 29/11/2015 21:57:40
As a start, try line 20 of the post:

cEgo.Say (Bloody RockCo");

There should be a quotation mark before Bloody.

Oh damn, didn't catch that, thanks man, i was checking ('s and {'s only
:)
Title: Re: Exceeded Buffers?
Post by: Monsieur OUXX on Mon 30/11/2015 15:07:08
At first I thought it said "RobCo", I thought it was a Fallout adventure game.