Author Topic: AGI problem with XP  (Read 6064 times)

0 Members and 1 Guest are viewing this topic.

Offline Dreadwing X

AGI problem with XP
« on: July 19, 2003, 05:04:05 PM »
Having been trying ACI out, it seems a problem has occured with XP users. it seems that if you change the logic, it wont do a thing. Does anyone have a fix for this? :-\ I'd really like to learn this


I have a website,
http://sq-wir.0catch.com/INDEX.htm
but for now, my AGI game is in progress

Offline Chris Cromer

Re:AGI problem with XP
« Reply #1 on: July 19, 2003, 11:10:44 PM »
You need to compile it, not save it. Saving it only saves it to the text file in the src directory.
Chris Cromer

It's all fun and games until someone get's hurt then it's just fun. ;)

Offline Zonkie

Re:AGI problem with XP
« Reply #2 on: July 20, 2003, 02:23:56 PM »
You need to compile it, not save it. Saving it only saves it to the text file in the src directory.

That took me about a week to figure out when I started with AGI ...  ::)

Offline Dreadwing X

Re:AGI problem with XP
« Reply #3 on: July 20, 2003, 09:19:35 PM »
 ;) thanks, I got it now
I have a website,
http://sq-wir.0catch.com/INDEX.htm
but for now, my AGI game is in progress

Offline Dreadwing X

Re:AGI problem with XP
« Reply #4 on: July 21, 2003, 11:23:38 AM »
ok after compiling most of the Logic, the room Logic has a problem.

it keeps saying I need a
}
then it says I need a
RETURN command

ill post my logic up for someone to check it.  :-\
I have a website,
http://sq-wir.0catch.com/INDEX.htm
but for now, my AGI game is in progress

Offline Dreadwing X

Re:AGI problem with XP
« Reply #5 on: July 21, 2003, 11:40:42 AM »
// ****************************************************************************
//
// Logic 2: First room
//
// ****************************************************************************

#include "defines.txt"

if (new_room) {
  load.pic(room_no);
  draw.pic(room_no);
  discard.pic(room_no);
  set.horizon(37);

  // The next 6 lines need only be in the first room of the game
  if ((prev_room_no == 1 ||    // just come from intro screen
      prev_room_no == 0)) {    // or just started game
    position(ego,120,140);
    status.line.on();
    accept.input();
  }

// Check what room the player came from and position them on the
// screen accordingly here, e.g:
// if (prev_room_no == 5) {
//   position(ego,12,140);
// }

  draw(ego);
  show.pic();


if (said("look")) {
  print("This seems to be your attic that you just cleaned up.. what are you doing here? you heard an ear splitting scream...");
if (said("look","out","window")) {
  print("You look out the window, you see your front lawn and a dead body laying there. Get down there!");
if (said("look","glass")) {
  v255 = 2;
if (obj.in.room("glass",v255)) {
    print("A piece of broken glass lays on the ground..");
      }
else {
    reset(input_parsed);    // let logic 90 take care of it

}
if (v2 == 1) {
  new.room(3);
}
if (v2 == 2) {
  new.room(2);
}
if (v2 == 3) {
  new.room(2);
}
if (v2 == 4) {
  new.room(2);
  }
}
return();

// Messages
#message 1 "This seems to be your attic that you just cleaned up.. what are you doing here? you heard an ear splitting scream..."
#message 2 "You look out the window, you see your front lawn and a dead body laying there. Get down there!"
#message 3 "A piece of broken glass lays on the ground.."
I have a website,
http://sq-wir.0catch.com/INDEX.htm
but for now, my AGI game is in progress

Offline Eigen

Re:AGI problem with XP
« Reply #6 on: July 21, 2003, 12:02:08 PM »
This should do it.

// ****************************************************************************
//
// Logic 2: First room
//
// ****************************************************************************

#include "defines.txt"

if (new_room) {
  load.pic(room_no);
  draw.pic(room_no);
  discard.pic(room_no);
  set.horizon(37);

  // The next 6 lines need only be in the first room of the game
  if ((prev_room_no == 1 ||    // just come from intro screen
      prev_room_no == 0)) {    // or just started game
    position(ego,120,140);
    status.line.on();
    accept.input();
  }

// Check what room the player came from and position them on the
// screen accordingly here, e.g:
// if (prev_room_no == 5) {
//  position(ego,12,140);
// }

  draw(ego);
  show.pic();

}
if (said("look")) {
  print("This seems to be your attic that you just cleaned up.. what are you doing here? you heard an ear splitting scream...");
}
if (said("look","out","window")) {
  print("You look out the window, you see your front lawn and a dead body laying there. Get down there!");
}
if (said("look","glass")) {
v255 = 2;
if (obj.in.room("glass",v255)) {
print("A piece of broken glass lays on the ground..");
}
else
{
reset(input_parsed);    // let logic 90 take care of it
}
if (v2 == 1) {
  new.room(3);
}
if (v2 == 2) {
  new.room(2);
}
if (v2 == 3) {
  new.room(2);
}
if (v2 == 4) {
  new.room(2);

}
return();


-Eigen
 
Artificial Intelligence Competition

Offline Dreadwing X

Re:AGI problem with XP
« Reply #7 on: July 21, 2003, 12:48:33 PM »
 :-\ Unfortanuntly, it didnt work.. please try again? ???


// ****************************************************************************
//
// Logic 2: First room
//
// ****************************************************************************

#include "defines.txt"

if (new_room) {
  load.pic(room_no);
  draw.pic(room_no);
  discard.pic(room_no);
  set.horizon(37);

  // The next 6 lines need only be in the first room of the game
  if ((prev_room_no == 1 ||    // just come from intro screen
      prev_room_no == 0)) {    // or just started game
    position(ego,120,140);
    status.line.on();
    accept.input();
  }

// Check what room the player came from and position them on the
// screen accordingly here, e.g:
// if (prev_room_no == 5) {
//  position(ego,12,140);
// }

  draw(ego);
  show.pic();

}
if (said("look")) {
  print("This seems to be your attic that you just cleaned up.. what are you doing here? you heard an ear splitting scream...");
}
if (said("look","out","window")) {
  print("You look out the window, you see your front lawn and a dead body laying there. Get down there!");
}
if (said("look","glass")) {
v255 = 2;
if (obj.in.room("glass",v255)) {
print("A piece of broken glass lays on the ground..");
}
else
{
reset(input_parsed);    // let logic 90 take care of it
}
if (3 == 1) {
  new.room(3);
}
if (2 == 2) {
  new.room(2);
}
if (2 == 3) {
  new.room(2);
}
if (2 == 4) {
  new.room(2);

}
return();
// Messages
#message 1 "This seems to be your attic that you just cleaned up.. what are you doing here? you heard an ear splitting scream..."
#message 2 "You look out the window, you see your front lawn and a dead body laying there. Get down there!"
#message 3 "A piece of broken glass lays on the ground.."
}
I have a website,
http://sq-wir.0catch.com/INDEX.htm
but for now, my AGI game is in progress

Offline Eigen

Re:AGI problem with XP
« Reply #8 on: July 21, 2003, 01:12:02 PM »
Try replacing the          }  else  {        with   single    }
Artificial Intelligence Competition

Offline Dreadwing X

Re:AGI problem with XP
« Reply #9 on: July 21, 2003, 01:46:14 PM »
 :Dit worked! thanks for yah help
I have a website,
http://sq-wir.0catch.com/INDEX.htm
but for now, my AGI game is in progress

Offline Dreadwing X

Re:AGI problem with XP
« Reply #10 on: July 21, 2003, 06:03:58 PM »
 :D I AM A USER NOW!  :D

anyways, everything is going well and all. is there any Picedit tutorials I can download?
I have a website,
http://sq-wir.0catch.com/INDEX.htm
but for now, my AGI game is in progress

Offline Patrick

Re:AGI problem with XP
« Reply #11 on: July 22, 2003, 10:27:44 AM »
yes actually...there is one on how to draw good pictures done by Kon-Tiki...you can find it somewhere here.

it should be in tourials if i am not mistaken  ;)


Offline Dreadwing X

Re:AGI problem with XP
« Reply #12 on: July 26, 2003, 06:16:36 PM »
oh no, let me rephrase that,

I need help with the priority settings. otherwise, my guy walks all over the screen  ::)

anyone want to help me with this? with scenes mostly.. BUT anyone?  :P
I have a website,
http://sq-wir.0catch.com/INDEX.htm
but for now, my AGI game is in progress

Offline Allen

Re:AGI problem with XP
« Reply #13 on: July 27, 2003, 08:43:40 AM »
Black = if ego touches it, he will stop.
Dark Blue = if ego touches it, he will stop, unless the ignore.blocks(oX) function is used.
Green = If ego crosses it, f3 is set.
If you use white, it will appear in front of everything.
If the ego's priority is less than that of the thing you want to hide him behind, then he will be hidden.
Maroon signifies no priority.

I think that's it...
http://www.mizpro.co.uk
The new home of Mizar Productions.

It is a sign!

Offline Dreadwing X

Re:AGI problem with XP
« Reply #14 on: July 27, 2003, 12:25:47 PM »
 :-\ that would be a BIG help if it were numbered because the priority box is all numbers, it would be easy to read. :-*
all yah need to do is number it now and ill be set.

I might figure it out on my own though.
I have a website,
http://sq-wir.0catch.com/INDEX.htm
but for now, my AGI game is in progress


SMF 2.0.19 | SMF © 2021, Simple Machines
Simple Audio Video Embedder

Page created in 0.057 seconds with 21 queries.