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

#121
Thanx, that helped a lot.
Almost everything works fine now, expet for the fact that the character and object(0) are not hidden when the fadein is finished again.
i see obejct 1 and player, then a fade out, then a fadin and again object 0 and player and only after that object(0) and player disappear and object (1) is shown.

Why is this? How can I block the events and only after that dothe fadein again?

regards,

martijn
#122
Aaaah, how stupid.
yet still the whole scene is over in a wink.
What am I missing?
#123
I go to new room and have the following code.
everything happens in a blink though?
How can I slow it down and get a view of my character walking towards the spaceship, fade out and see the ship gently fly away...?

Code:
// room script file

#sectionstart room_a  // DO NOT EDIT OR REMOVE THIS LINE
function room_a() {
  // script for Room: Player enters screen (before fadein)
ObjectOn(0);
player.x = 163;
player.y = 135;
}
#sectionend room_a  // DO NOT EDIT OR REMOVE THIS LINE

#sectionstart room_b  // DO NOT EDIT OR REMOVE THIS LINE
function room_b() {
  // script for Room: Player enters screen (after fadein)
character[EGO].SetWalkSpeed(1, 1);
character[EGO].Walk(163, 135, eBlock);

FadeOut(70);
ObjectOff(0);
ObjectOn(1);
player.x = 500;
player.y = 500;
FadeIn(100);
object[1].Move(239,37, 1, eBlock);

FadeOut(10);
NewRoom(16);
}
#sectionend room_b  // DO NOT EDIT OR REMOVE THIS LINE
#124
ok, i'llt ry that.

does it make sense then that this code did work well in AGS256??

regards, Martijn
#125
I worked with a little trick keeping track of inventory items in my inv box.
now I upgraded to ags27 and the following erro occurs after I pick up my second inv item in the game.

I get the error (which I never got in AGS256):

---------------------------
Adventure Game Studio
---------------------------
An internal error has occured. Please note down the following information.
If the problem persists, contact Chris Jones.
(ACI version 2.70.864)

Error: run_text_script1: error -6 running function 'repeatedly_execute':
Error: Array index out of bounds (index: -1, bounds: 0..300)
in Global script (line 51)
---------------------------
OK   
---------------------------


function repeatedly_execute() {
  // put anything you want to happen every game cycle here

   
  GetLocationName(mouse.x,mouse.y,location_name);
  get_gui = GetGUIAt(mouse.x,mouse.y);
  got_inv  = character[EGO].activeinv;

          if (hadgot_inv != got_inv){ // something changed in active inv
               if (got_inv != -1){
                         character[EGO].inv[got_inv] = 0;
*line51=>*       character[EGO].inv[hadgot_inv] = 1;
                         UpdateInventory();
               }
               hadgot_inv = character[EGO].activeinv;
         }
}

any suggestions??
#126
Are you aware of the option to set a baseline for objects? this way you can define which object is the front one, when two  objects overlap?

#127

Wow, that is what I call a fast reply :-)

I am using ttf fonts, and the problem indeed started after adding a new fort.
I have removed all fonts and reimported them. That did not work.

What should I do about it??

The game is rather large. I could upload it though; what parts would you be interested in? ac2game.ags is about 22 mb.

regards,

martijn
#128
It is back!!Ã,  >:(.
After looking at an object, I get the following error:

Code: ags

---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occured in ACWIN.EXE at EIP = 0x0046DDA6 ; program pointer is +155, ACI version 2.60.698, gtags (1,10)

AGS cannot continue, this exception was fatal. Please note down the numbers above, remember what you were doing at the time and notify CJ on the Tech forum.

(Global script line 97 is marked by ********)


Most versions of Windows allow you to press Ctrl+C now to copy this entire message to the clipboard for easy reporting.
---------------------------
OKÃ,  Ã, 
---------------------------



orÃ, 

Code: ags

---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occured in ACWIN.EXE at EIP = 0x77F585C0 ; program pointer is +155, ACI version 2.60.698, gtags (1,10)

AGS cannot continue, this exception was fatal. Please note down the numbers above, remember what you were doing at the time and notify CJ on the Tech forum.

(Room 2 script line 14)


Most versions of Windows allow you to press Ctrl+C now to copy this entire message to the clipboard for easy reporting.
---------------------------
OKÃ,  Ã, 
---------------------------



Global script line 97 indicated by *** in the code below:

Code: ags

function on_mouse_click(int button) {
Ã,  // called when a mouse button is clicked. button is either LEFT or RIGHT
Ã,  if (IsGamePaused() == 1) {
Ã,  Ã,  // Game is paused, so do nothing (ie. don't allow mouse click)
 }
 else if (button==LEFT) {
*****line 97 *****Ã,  Ã, ProcessClick(mouse.x, mouse.y, GetCursorMode() );
Ã,  }
Ã,  else if (button == RIGHT){Ã,  // right-click,
Ã,  Ã,  
Ã,  Ã,  if ((got_inv != -1))Ã,  { // ifÃ,  active inv exists
Ã,  Ã,  Ã,  AddInventory(got_inv);Ã,  // put back in inv window
Ã,  Ã,  Ã,  SetActiveInventory(-1);
Ã,  Ã,  }
Ã,  Ã,  else{Ã,  // right-click, so cycle cursor
Ã,  Ã,  Ã,  Ã,  Ã,  Ã, SetNextCursorMode();
Ã,  Ã,  }
Ã,  }
}



room 2, script line 14, indicated by ****************

Code: ags

function hotspot1_b() {
Ã,  // script for hotspot1: Any click on hotspot
DisplaySpeech(EGO,"De deur naar de gang"); *****************************
DisplaySpeech(EGO,"Laten we maar gaan...");
Wait(10);
NewRoomEx(4,141, 190);Ã,  Ã,  
}



NB!! The grey bar at the bottom of the editor screen warns:
"A serious error occurred in the game engine"

Some further testing shows that for each action I take using the left-mouse button, an error is generated associated witht the the according action. E.g. selecting Quit Game from the gui renders an error for the line QuitGame(1); in the global script.

Suggestions?
#129
Sorry, my problem ceesed existing :-)
I do not knweo what I changed, maybe a double newroom command or an inconsistend GI setting? I am not sure. never found a real programming error, but after polishing the room-room transfers the probblem stopped existing.

thanks for thinking along,
#130
Quote from: Gilbot V7000a on Mon 28/06/2004 11:23:41
Can you post that part of script around that "newroom(10)"?

I doubt if it is the scriopt calling the newroom, since it works ok with other rooms.
Anyway, the function that calls for room(10) is:


function rescue(){

  if ( ( (position.x < 310) && (position.x > 279) && (position.y < 73) && (position.y > 51) ) && (GetGlobalInt(49) == 0)){
     SetGlobalInt(49,1);
     MoveObjectDirect(0,277,55,1);

     SetObjectFrame(0,27,0,9);
     MoveObjectDirect(0,292,60,1);

     DisplaySpeech(EGO, "Yes, I did it!!!!!");
     DisplaySpeech(EGO, "Nu rennen naar de shutlle, voordat ie er weer vandoor gaat!!");
     Wait(10);
     NewRoom(10);
  }
}

The script of room 10 is:


// room script file


function room_a() {
  // script for room: Player enters screen (before fadein)
if (GetGlobalInt(47) ==1) {
          ObjectOff(0);
     ObjectOn(1);
   }   
}

function room_b() {
  // script for room: Player enters screen (after fadein)
if (GetGlobalInt(47)==1) {   

   SetCharacterViewEx(EGO,5,3,ALIGN_LEFT); //volta kijkt schip na...
   MoveObject(1,265,77,1);
   DisplaySpeech(EGO,"Shoot, de noodcapsule is weggeslagen!");
   DisplaySpeech(EGO,"ik moet zo snel mogelijk naar de controle kamer om 'm terug te halen,");
   DisplaySpeech(EGO,"voordat hij buiten bereik van de transmitter is!!!!"); 

   ReleaseCharacterView(EGO); //volta kan weer bewegen
}
if (GetGlobalInt(49) == 1){
  DisplaySpeech(EGO, "Mooi, de capsule staat er weer");
  DisplaySpeech(EGO, "Snel naar binnen en weg voordat het hier uit de hand loopt.");
  MoveCharacterDirect(EGO, 100, 120);
}
}

function room_c() {
  // script for room: Repeatedly execute

}
#131
it is...
#132
Advanced Technical Forum / illegal exception
Sun 27/06/2004 19:23:23
After hours of looking I need to ask what this error means:
Code: ags

---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occured in ACWIN.EXE at EIP = 0x77F73905 ; program pointer is +6, ACI version 2.60.698, gtags (1,10)

AGS cannot continue, this exception was fatal. Please note down the numbers above, remember what you were doing at the time and notify CJ on the Tech forum.



Most versions of Windows allow you to press Ctrl+C now to copy this entire message to the clipboard for easy reporting.
---------------------------
OKÃ,  Ã, 
---------------------------


It occurs when the script should executeÃ,  "NewRoom(10);"
I have an object being moved around by a script. When it 'hits' certain coordinates a new room must be entered.
I want to go to room 10. Other rooms are no problem, but room 10 is ...
#133
Thanks, problem is solved!
Your help is greatly appreciated :-)
#134
after modifying the blue-line code lines, we recompiled using VC++ Version7.
It results in an errormessage:
Code: ags

De toepassing of DLL-bestand D:\koops\gameeditor\AGS editor 256_1\AGS_Solver.dll is geen geldige Windows-kopie. Controleer dit op uw installatiediskette.

I have this freely translated as:
Code: ags

the application or dll-file D:\koops\gameeditor\AGS editor 256_1\AGS_Solver.dll is not a valid Windows-copy.Check this on your installationdiskette

Can it be that version 7 of VC++ is not supported??
#135
OK, this moves along a line.
is it also possible to slow down the movement along a walkable area? Do something with MoveObject(), and slow it down that way, by inserting Waits in clever points??

regards, Martijn
#136
I do not succeed in making an object move slower than speed 1 in MoveObject function.
Trying to work around it with Wait in RepeatedlyExecute does not work either.

Is it possible anyway? A quick search through the fora only results in accopanying questions, but no answers.
Any ideas??

Regards, Martijn

P.S. first version of playable version in palent 1 is coming up soon :-)
#137
that's it, it is in the linear equations plugin.
How can I remove it? i did not write the plugin myself...
#138
I only use one gui at the bottom of the screen. This line cannot be connected to the GUI
#139
this is about a gray gui. i mean the blue line as it is visible in the picture  http://www.xs4all.nl/~koops/ags/screengrab.bmp
#140
I have a blue line in my screen top: see http://www.xs4all.nl/~koops/ags/screengrab.bmp
Does anyone know howe t get rid of it?
i think it has something to do with a gui, but which one????
SMF spam blocked by CleanTalk