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

Topics - spook1

#41
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 ...
#42
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 :-)
#43
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????
#44
I created a puzzle where you have to melt your way out of a cell with plexiglass windows, using a solder stift.
I want to change the inventory picture when the solder stift is connected to a voltage, to indicate that it is hot.

is there a function to do it ( i cannot find it either in the help and teh search through forums) or do I have to "do it the hard way, using ChangeCursorGraphic.

something like :

if (ActiveInv ==23 AND stift = hot){
   changecursorgraphic( xx);
}

cheers,

martijn
#45
After my introscreen, where I have turned off Gui(1), I want to turn it on again in room(2);

Now, the gui appears again, but only in room(3).
I have tried everything I can think off...
What am i missing??? I'm getting crazy.......

Is there a secret overruling setting or anything???
Or might this be my first bug? I can hardly believe AGS offers bug at my level :-P

regards,

a desperate Martijn
#46
Can I create credits that are in "being typed style"?
I mean: A text is printed ('being typed') on the screen letter by letter, while you hear the typewriter sounds in the background.

hHs this been done before in AGS?
regards,
Martijn
#47
Is it possible to have two spots of light similar to the flashlightplugin?
I intend to make a vehicle with two headlights moving in a dark scene, trying to stay on the road. For specific nature of the puzzle I need two separate beams of light?

can anyone reflect on this?

regardss,
martijn
#48
This puzzle has been create to be used in school, as aprt of an adventure.
can anyone please reflect on the difficulty and maybe suggest improvements on the conceptual level?
I am aware of the crapy shuttle graphics.

The goal of this puzzle is that the players learns that resitors in parallel conduct a higher current that in a serial configuration.

The compiled version is zipped at: http://www.xs4all.nl/~koops/ags/spacespy_devel17.zip

cheers, martijn
#49
Simple question: can a function return an array?
And can I collect data from the function like

value.x = MyFunction(inputparamter).xcoordinate;
value.y = MyFunction(inputparamter).ycoordinate;
value.speed = MyFunction(inputparamter).speed;

or can I even state:

value= MyFunction(inputparameter);

Cheers,
Martijn
#50
In my simulation of electrical circuits I have wires that must change color as a current flows through it.

if the current is low, the wire is normal (gold)
if the current is larger the wire must be dark-red.
if the current is further increaed the wire must turn orange
if the current further increases the wire must become white

because I have 30 elments I cannot create a view with all the different colors and use SetViewFrame. In an earlier demo I did this:
i calculated the curent through the wire, and picked the right viewframe with the current value.

Now I am looking for a scripted solution, where I can influence the color of a single sprite.
is something like this possible? Maybe using color channels or aplha channels ??
I am not familiar with this stuff.
is there anyone who can reflect on my question?

regards,
martijn
#51
I have written a small funtion to calculate the positionof a shuttle, steered in a caterpillar kind of way.
You can move left-side or right side or both sides.
I calculate the relative trnaslation, compared to the front of the shuttle, and using the relative translation and the orientation of the shuttle, I want to calculate the abvsolute position.

My function returns values of over 400 though, for an expression like:

Cos(orientation)*-1.
Any ideas?

Here is the code:
function shuttle_position(){

int dxrelx = 0;
int dxrely = 0;
int dyrelx = 0;
int dyrely = 0;

relative_position_change(move_left, move_right);

position.orientation = position.orientation + positionchange.orientation;
 if (position.orientation > 6){
   position.orientation = position.orientation - 6;
 }

dxrely = MultiplyNumbers(GetCos(position.orientation),positionchange.y);
dxrelx = MultiplyNumbers(GetSin(position.orientation),positionchange.x);
dyrelx = MultiplyNumbers(GetCos(position.orientation),positionchange.x);
dyrely = MultiplyNumbers(GetSin(position.orientation),positionchange.y);

Display("dx = %d,%d", dxrelx,dxrely);
Display("dy = %d,%d", dyrelx,dyrely);

position.x = position.x +  dxrely + dxrelx;
position.y = position.y + dyrelx + dyrely;



 return (position);

}
#52
I have an object animated with "animateobjectex" command.

if (start_final_animation ==1){
  SetObjectView(0,10);
  AnimateObjectEx(0,1,10,0,0,1);
  Display("Game Over");
  QuitGame(0);
}

Running this code will indeed get me the animation and after it the game stops.

When I do change the last 1 in a 0 (set the animation in the non-blocking mode), the whole animation is skipped.
And the game stops immediately.

Adding the code: while((IsObjectAnimating(10)==1) Wait(1);
results in the whole animation being played, but in a blocking way ....

Any suggestions??
#53
Once I have placed an object over a hotspot, I cannot reach the hotspot anymore.

is there a solution for this, or do I have to work my way around using GetLocation(.... etc.

Sorry for being silly, but I plan to ask everything only once ;-)

martijn
#54
In my game at e certain point you find a pot of boiling substance. you have to take it of the fire, before it explodes.

I cannot script this.

If I do not use animateobjectex(..,..,..,..,..,1); to block the animation I cannot see the animation.

When I do block it, it plays all the way down to the explosion.

is there a a way to stop an animation halfway??

here is what i tried:

   if(viewnumber == 1){
//Display("startniceboiling");
       Wait(60);
       i=1;
       while(i<2){
       SetObjectView(0,10);
       AnimateObjectEx(0,0,10,0,0,1);  // nice boiling
       i++;
       }
       Display("Nice boiling starmix is ready!! You are wonderfull.");
      }
      if(viewnumber == 2){
//Display("startexplosion");
       i=1;
       SetObjectView(0,10);
//            while(i<150){
              AnimateObjectEx(0,1,10,0,0,1);
//          i++;
//          Wait(1);
//       }
       
           Display("Game over");
       QuitGame(0);
      }   

thanks in advance
#55
Hi there, again i have a question for dieas on my electricity game.

I try to preent the situation where I have an electric circuit board and plug in the componenets at obvious places. Instead I would prefer a workspace in which I can place my components at random places and connect them by flexible wires. Like the cords in "The incredible machine".
I would like to point out the starting point for a linem(click) and then draw the line to its end (click again). By checking the mouse.x and mouse.y at the clicks I can check if the wires is actually connected to a component. if not, the drawing will not take place.

I am thinking about the rawdraw functions, but I am not sure if it will work. I would have to draw the complete wiring at each cycle I am afraid.

can anyone refelct on this one?
I am not such a fast programmer that I have tried it already. If you tell me that it is not likely to succeed, i will look for other solutions..

Martijn
#56
Advanced Technical Forum / changing colors
Sun 14/03/2004 15:04:06
For my teaching game on electricity, i want to create wiring that colors as the surrent through the wires increaes.
low current: blue wires, higher current: red wires and very high current: yellow wires.
I am realizing this by making each wire an object, and a accompanying view.
As the current increaes the view moves to the corresponding view-number, to refelct the required color.

my question is: can such a thing easier be done using setpalrbg  or soemthing like it?

Kind regards,
martijn
#57
Does anyone have experience in devloping a game in an online-teameffort?
Starting up one I stumble over quite some issues. What is the most effective way to share templates, do I have to centralize a palette? What is the most appropriate program? Paint? Is on any windows computer (also in our school) but is is pixel drawer.
Any sharing of experiences iswelcome.

cheers, martijn
#58
Once, over a year ago, I remeber having seen a site where the creation of a character is explained.
For my school project I am looking for a tutorial on character creation/design

Any suggestions? Thanx in advance

Edit: scuse me, I see the tutorials thread (duh, already?) and there is the elaborate answer I asked for. Sorry for spoiling the forum with stupidity. next time better ...
#59
I am creating an ags game in my school (i am a physics teacher ;-) together with the students (15, 16 years old).
In order to be able to edit each others drawings I am looking for a good drawing program, that I can instal on school computers (so no illegal copies e.g. are allowed)
Does anyone knwo of such a program? Which is good to use for AGS drawing?

I am curious to hear from you,

martijn
#60
Beginners' Technical Questions / creditz?
Fri 05/03/2004 20:39:37
I could not find this item, sorry if I overlooked anything.

I make an intro to my game SpaceSpy, using the creditz plugin.
The intro is quite a story, and when the first line reaches the top of the screen the creditz are turned of, instead of riollingon and showing the bottom lines of the intro-stry.
Any suggestions are very welcome,
kind regards, Martin Koops
SMF spam blocked by CleanTalk