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

#21
is the ags master volume high enough?
#22
who thanks so much it wanted to resize it to 5000, 5000 pixles!
tnks so much
#23
 ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D
thanks so much. looking at it in a different view is see that in the transition between ags 2.72 and 3.1.1 that i didn't chang the delete command to realese!!!!!
;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D
#24
sure:

DynamicSprite* sprite = DynamicSprite.CreateFromExistingSprite(in8+in9);
                if (sprite != null) {
                          int slot = (in8/2)+in9;
                          int int1 = sprite.Height;
                          int int2 = sprite.Width;
                          int help1 = (int1/distance)*100;
                          int help2 = (int2/distance)*100;
                          debug.Text = String.Format("%d, help1=%d, help2=%d, size = %d", distance, help1, help2, size);
                         if (help1 != 0 && help2 != 0) {
                            sprite.Resize(help1, help2);
                    DrawingSurface *surface1 = Room.GetDrawingSurfaceForBackground();
                              surface1.DrawImage(in5-in7, in6-in71, sprite.Graphic);
                    surface1.Release();
                              sprite.Delete();
                           }
                        }
#25
Adventure Related Talk & Chat / Re: Mod
Mon 29/12/2008 07:29:52
sorry i had to go
#27
wow a great idea
#28
Adventure Related Talk & Chat / Re: Mod
Mon 29/12/2008 04:07:30
i have up dated it with some visuals and more //'s
#29
Adventure Related Talk & Chat / Re: Mod
Mon 29/12/2008 01:21:10
no comment
#30
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.
#31
Adventure Related Talk & Chat / Re: Mod
Mon 29/12/2008 00:09:54
can we please get back to the topic
#32
i changed my script to open a sprite off the ags sprite chache rather than another outside file. i also put in 180 200*200 spirtes into the editor.
#33
Adventure Related Talk & Chat / Re: Mod
Sun 28/12/2008 22:33:23
Quote from: Mods on Sun 28/12/2008 19:58:21
And why are you using my name? Blasphemy!
sorry, i didn't realise that there was someone called mod and the game is a mod of another game i started a few months ago.
#34
i can't do that because the game was too big with all the sprites and without it worked.
#35
no, but i knew that my internet was dud but i wanted to know how dud.
#36
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
#37
no, i don't use arrays but i used a lot of ints, strings and dynamic sprites
#38
i just ran my game and this came up.
#39
my internet is crap (I'm UPGRADING to , i think 2.8mbs)
what kind of internet have you got?
#40
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.
SMF spam blocked by CleanTalk