SCUMM templates - UPDATED 4-8-04

Started by Proskrito, Fri 13/06/2003 22:38:08

Previous topic - Next topic

HillBilly


Scummbuddy

---------------------------
Adventure Game Studio
---------------------------
An error has occured. Please contact the game author for support, as this
is likely to be a scripting error and not a bug in AGS.
(ACI version 2.60.697)

Error: A text script run in the Player Enters Screen event caused the
screen to be updated. If you need to use Wait(), do so in After Fadein

---------------------------
OK  
---------------------------

I'm still using the older MI Template, I'm preparting to update.  I'm not sure what its talking about though. It happens just when I hit TestGame, and before any room pops up(even though the screen goes black, and then comes back with this message. I've checked the code in the first room and there isn't any Waits in there except where you put them in your original code, in the after fade in.
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

knar87

I just run dott templetate.
If I try to walk somewhere,then ....


An internal error...Chris Jones.
(ACI version 2.60.693)

Error:run_text_script:error -1(Runtime error:wrong number of
parametres to exported function 'unhandled_event')
running function 'unhandled_event'

Proskrito


Scummbuddy

Its not caused by that 2054... although I did change the cursor, i overwrote them with my own graphics, and I changed some mudane (random) sprite to 2054, and tried test game, and it didn't work. weird things
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

a-v-o

Scummbuddy:
Can you post the script in (...before fadein) of the first room?
...and maybe the game_start and repeatedly_execute in global script?
One more possibility that could cause an error could be the code in the on_event in the global script.

Maybe the message means that there shouldn't any blocking command. Also display commands shouldn't be executed before fadein.

Scummbuddy

Code: ags
// room script file

function room_a() {
  // script for room: Player enters screen (after fadein)
StartCutscene(5);
Wait(120);
NewRoomEx(1,750,40);
EndCutscene();
}

function room_b() {
  // script for room: Player enters screen (before fadein)
SetMusicMasterVolume(100);
GUIOff(MAINGUI);  
GUIOff(ACTION);  
HideMouseCursor();
}

function room_c() {
  // script for room: Player leaves screen
GUIOn(MAINGUI);  
GUIOn(ACTION);     
ShowMouseCursor();
}



Should I just update to the latest and greatest version and see how it goes? I don't see a problem with whats above.
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

a-v-o

I can't see anything wrong either. Maybe there is something in the game_start or repeatedly_execute.

Feel free to send me the game for testing.

MarvinS

I'm trying the FOA template

When I click on the Interaction button, in the Room->Object Editor, I dont find the "Interact Object" choice.

So how do I do to make my characters pick up an object ?

I try to put my code in the "picke up object" area, but nothing happend.

Scummbuddy

You asked this in the beginners forum, and it will be answered there.
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT


Scummbuddy

Proskrito, I'm using the newest beta, 3, with the MI2 template, and when I try and save my game I get this message:
--------------------------------------------------------------
---------------------------
Compile Error
---------------------------
There was an error compiling your script. The problem was in 'Main script':

Error (line 110): Cannot return local string from function

------------------------------------------------------------



and on line 110, and the surrounding code, we have:
------------------
/**/function RemoveExtension(string location){
/**/  //removes the extension of a string  
/**/  int length=StrLen(location);
/**/  if (Extension(location)!=0) StrSetCharAt(location,length-2,0);
/**/  return location;                   //<----line 110
/**/}

any ideas?
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

Pumaman

Hmm, this is a bug in the 2.61 betas actually, it should allow a parameter to be returned. I'll fix it for beta 4.

Proskrito

ah, simply remove the 'return xxx;' line, i didnt know what i was doing, and i tried to return a string : / ; )

Scummbuddy

This has now been fixed in the newest beta, should the code be re-written, or shall I go on with what it is now? I had to "//" out 3 or 4 lines of code because there were 3 or 4 functions that tried to return the strings.
- Oh great, I'm stuck in colonial times, tentacles are taking over the world, and now the toilets backing up.
- No, I mean it's really STUCK. Like adventure-game stuck.
-Hoagie from DOTT

Proskrito

you can leave them //'ed, the return lines do nothing

MarvinS

I this possible, in Proskrito's Scumm GUI, to disable the higlight of the "look at" verb, on certains objects ?
I want that nothing happen, when the mouse go over certains objects.


..

Am I the only one who gets a 'you are not authorized to view this page' when i try to download the MI GUI? This sounds like a CHMOD Prob to me..

lucatuz

Hi proskito...you are a god!
I'm making a fantastic monkey island fan game with your interface but..
..I got some problems!!
The game, when I point and click in a walkable area does not write "walk to" but "use"
How can i solve this problem?
..maybe in the code-line 398??
please help me!

Proskrito

#59
Marvin: Just put the extension >n to the name of those things you want nothing to happen when clicked.
Scuthbert: the links here: http://www.adventuregamestudio.co.uk/yabb/index.php?board=2;action=display;threadid=6642;start=msg122548#msg122548 seems to work for me.
Lucatuz: it shouldnt happen ??? did you modify something? what is the line 398?

SMF spam blocked by CleanTalk