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

#1
Beginners' Technical Questions / Complex maths
Sun 08/03/2009 09:27:41
Hi all. I am currently making a game and I need to figure out a point from a start xy, a distance and an angle. Would anyone know how to do this.
cheers
Matt
#2
General Discussion / 3d maths
Thu 29/01/2009 08:12:30
on my current game i need to have a 3d objects size i have got the distance and akk of that info but i need the ratio for it to scale at.
#3
i am having a problem right now where i can't get my button to have transperency.
you can use alphas on buttons correct?
#4
General Discussion / help with a project
Sun 25/01/2009 11:09:23
I know that i am a big elecronics fan and i am currently working on a project where i need an fm receiver. i don't know any great web sites and it would be a great help.
cheers

matt
#5
Critics' Lounge / Options gui for 3d racer
Sat 24/01/2009 11:30:37
this is my gui to change all the sound and display options.
gui options
the game i am making is a 3d racer and i would like some tips. CONSTRUCTIVE critisisam welcomed but don't be an idiot.
#6
General Discussion / Top 10 jokes
Mon 29/12/2008 00:16:04
i made this thread to post all our favourite funny jokes pics or movies in.

"Rules"
1. It has to be funny or strange enough for a laugh.
2. Nothing to do with sex or extreme violence.
3. don't be stupid and act your age.
#7
Adventure Related Talk & Chat / Mod
Sun 28/12/2008 06:54:53
Mod is a 3d first person game i have started woking on. i am an ok scripter and the 3d/walking script is finished except for the constant bugs i would like some help if possible.
i am also a no use artist so any one in that field would like to help come on.

for the script the 3d script is:

if (PRoom != 0) { // if players room is not equal to 0
  RawDrawImage(Player_Facingx-200, Player_Facingy-150, 7);// Print the background
  File *input = File.Open(String.Format("%d.rom", PRoom), eFileRead);// open the room file
  if (input != null) {
   while (!input.EOF) {
     String line = input.ReadRawLineBack();
     String stew = line.Substring(6, 4);//object pos east west
     String stns = line.Substring(10, 4);//object pos north south
     String stud = line.Substring(14, 4);// object y pos
     String std = line.Substring(18, 4);// size
     int size_of_the_object = std.AsInt; // size as int
     int in5 = Player_Facingx; // player facing degrees named differently
     int in6 = Player_Facingy; // player facing degrees named differently
     int inox = 123; // objects east, west  pos on map(would usaully be 'int inox = stns.AsInt')
     int inoy = 1; // same as above except for it is the objects up/down pos on the map
     int inoz = 123; // same as above except fo it is the objects north, south pos on the map
     int insupportx = inox-Player_PosEW; // objects ew pos - Players ew pos
     int insupportz = inoz-Player_PosNS; // objects ns pos - Players ns pos
     int insupporty = inoy-Player_PosY; // objects ud pos - Players ud pos
     float fl1 = IntToFloat(insupportx);
     float fl2 = IntToFloat(insupportz);
     float fl51 = IntToFloat(insupporty);
     float fl3 = Maths.ArcTan2(fl1, fl2);
     float fl4 = Maths.RadiansToDegrees(fl3);
     float fl32 = Maths.ArcTan2(fl1, fl51);
     float fl61 = Maths.RadiansToDegrees(fl32);
     int in7 = FloatToInt(fl4);
     int in71 = FloatToInt(fl61);
     if (in7 < in5+200) {
       if (in7 > in5-200) {
         if (in71 < in5+200) {
           if (in71 > in5-200) {
             int insupportx1 = Player_PosEW-inox;
             int insupportz1 = Player_PosNS-inoz;
             int insupporty1 = Player_PosY-inoy;
             float fl5 = IntToFloat(insupportx1);
             float fl6 = IntToFloat(insupporty1);
             float fl8 = Maths.RadiansToDegrees(fl3);
             int in8 = FloatToInt(fl8);
             float fl7 = Maths.ArcTan2(fl2, fl1);
             int support2 = insupportx1*insupportx1;
             int support3 = insupporty1*insupporty1;
             int support31 = insupportz1*insupportz1;
             int support4 = support31+support3+support2;
             float support51 = Maths.Sqrt(IntToFloat(support4));
             int distance = FloatToInt(support51);
             String st1 = "";
             int in9 = 0;
             st1 = line.Substring(0, 4);
             if (line.Contains("tree")!= -1) {
               in9 = 8;
               st1 = "tree";
             }
             String st3 = String.Format("%s%04d.bmp", st1, in8);
             DynamicSprite* ds = DynamicSprite.CreateFromFile(st3);
             String st4 = "";
             String st5 = "";
             
             if (ds != null) {
               int int1 = ds.Height;
               int int2 = ds.Width;
               distance = distance/90;
               distance++;
               size_of_the_object++;
               int help1 = (int1/distance)*size_of_the_object;
               int help2 = (int2/distance)*size_of_the_object;
               if (help1 != 0) {
                 if (help2 != 0) {
                   RawDrawImageResized(in5-in7, in6-in71, ds.Graphic, help1, help2);
                 }
               }
               debug.Text = String.Format("distance %d, help1 = %d, help2 = %d, width = %d, height = %d, size of the object = %d", distance, help1, help2, int1, int2, size_of_the_object);
               ds.Delete();
            }
          }
        }
      }
    }
  }
  input.Close();
  }

in pics


post either to join the team or with a better script



thanks


matt
#8
i just ran my game and this came up.
#9
my internet is crap (I'm UPGRADING to , i think 2.8mbs)
what kind of internet have you got?
#10
the error message was ---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occured in ACWIN.EXE at EIP = 0x00472157 ; program pointer is +6, ACI version 2.72.920, gtags (7,200)

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.

in Global script (line 231)


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

DynamicSprite* ds = DynamicSprite.CreateFromExistingSprite(slot);

and the int, slot, is: int slot = (in8+in9)/2;
any help would be great ,thanks.
#11
this is the script :
distance++;
int help1 = int1/distance*size_of_the_object;

int1, distance and size_of_the_object are all ints

distance keeps coming out as zero and i don't know why.
i cheaked that distance couldn't be a negitve.

please help.
#12
General Discussion / usefulscript
Thu 30/10/2008 09:41:57
i made this really basic but very use ful script in the editor. put it at the very top of the script you want to use it in and then just type allguis(true) or allguis(false).

function allguis (bool visible) {
  int guis = Game.GUICount;
  int cgui = 0;
  while (cgui <= guis) {
    gui[cgui].Visible = visible;
    cgui++;
  }
}
#13
If anyone could give me a cgi for a password on my new web page? just give me the  shell and i will do the rest. ;D ;D ;D ;D ;D
#14
who here is watching the olympics?
#15
It is a story of a terrorist who, on his first mission that just cant kill the people in the stadium he was in. He has seen videos before and it looked so easy, but he just couldn't. During his training he had become a black belt in the martial art nijitsu. He had also learnt how to control a helicopter and a tank. He was also trained with many ranged weapons. He left the mountain top training camp  to become a counter terrorist using all his knowledge against them. Ten years later the terrorists found him and exposed him as an x terrorist. He lost everything and now he had no protection against the terrorists who were after him. he was on the run and had nowhere to hide.
#16
Advanced Technical Forum / bug report
Fri 25/07/2008 11:22:54
the numbers cj told me to note down are: (Exception 0x00000000 at EIP 0x00000000, agsedit v2.72.652, SIP=26)

it happened when i tried to load a font i had made. it was rather large font. there is a copy of the contense of the file below:

why did you do that
#17
it would be grate if you could help me by creating a few guns for my game. i am rebuilding counter strike and i have made a gun creator which is easy to use and i will provide you with a help. Email me at: mawildoer@gmail.com and i will sen you the exe as an txt doc so you change it to a .exe. i do this so the email will let through. thanks.
#18
this is really anoying!! i can't find out how to make a simalar load system to the ags sample 'ScummVM'. by that i mean not the filldirlist command but the move up and down folders. it would be grate for some help if you can. it would also be grate if you could tell me if you can open a file in another folder. thanks. matt
SMF spam blocked by CleanTalk