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

#21
If you try to draw on roomsurfaces without having a background pic, you get this nice CGA effect 8-)
Spoiler


[close]
Unfortunately it also drops the framerate to 2-3 fps.
This also happens when you update the game to 32-bit and don't reload a dummy pic as room background.

It's not a major issue, but worth mentioning.
#22
Hi,
is it possible to tint a character to solid white? Whenever I try it, the character just turns out kind of desaturated. Tinting to solid black on the other hand is no problem.
[imgzoom]http://i.imgur.com/c6OGpHU.png[/imgzoom]


source sprite
[imgzoom]http://i.imgur.com/QtCjZle.gif[/imgzoom]
#23
Hey,
is it possible to check via script, if the given sprite slot even exists?
I'd like to create dynamic sprites from a textbox, but of course the game crashes when I enter an invalid number.

Is there a way to prevent this?

Thanks!
#24
Hey,
I just wonder, how fast an "if" clause is.

Let's say I have a struct of 100 waypoints and I want to move those.

Code: ags

struct wPoint{
    int x,y;
    bool active;
}
wPoint myWaypoints[100];


Now I could it like this
Code: ags

    int i =0;
    while (i<100) {
      myWaypoints[i].x -=5;
      myWaypoints[i].y -=5;
      i++;
    }


or check first, if the waypoint needs to be moved in the first place:
Code: ags

    int i =0;
    while (i<100) {
      if (myWaypoints[i].active) {
        myWaypoints[i].x -=5;
        myWaypoints[i].y -=5;
      }
      i++;
    }

So my question is: is plain variable assignment faster than doing a check first?
#25
Hey,
I don't want to hijack this thread any further. But do I get this right? You guys are reporting bugs directly inside the game?? And this happens in "The Forge" as well?

Does this really work better than noting bugs on a paper sheet?

EDIT: Argh, I posted it in the wrong board. Could anyone move this please to Adventure Related Talk? Thanks!
#26
I'm currently trying to get back to some AGS scripting, but obviously I got quite rusty.

Could anyone please help me with this error?
Code: ags

//AGS 3.3 RC1
Tiles.asc(484): Error (line 484): export offset too high; script data size too large?


In tiles.ash, I have a struct:
Code: ags

struct ctile_sprites {
  DynamicSprite *spr;
  int code;
  short frm_speed[MAX_FRAME_TILE];
  short frames_in_use;
  short frame_counter;
  short ani_delay;
  short ani_delay_counter;
};


In tiles.asc I create the struct like this and try to export it (at the bottom of the script). The error occurs.
Code: ags

ctile_sprites tile_sprites[NUM_MAX_SPRITES];
// a few lines later ...
export tile_sprites;


Now the interesting part is: when I overwrite those two lines to something stupid, the error remains
Code: ags

int blargh;
export blargh;


When I now copy and paste those two lines a few lines above, it works fine. Like those script lines were haunted.
Am I missing something?

--EDIT: Sorry already found it myself:
A few lines earlier is a pretty huge struct (tiles[100000]) which I also export. It seems like I can't export anything else after that. I moved the needed lines above this mega struct and it works fine now.
#27
Am I doing it wrong or is this function broken?

Code: AGS
  
  String fs = "myimage.bmp";
  if (File.Exists(fs)) {
    DynamicSprite* sprite = DynamicSprite.CreateFromFile(fs);
    DrawingSurface *surface = Room.GetDrawingSurfaceForBackground();
    surface.DrawImage(100, 80, sprite.Graphic);
    surface.Release();
    sprite.Delete();
  }

This works fine in AGS 3.2.1, but in AGS 3.3 the dynamic sprite stays null and DrawImage fails.
#28
Hey guys! I know this is ridiculously early to start planning Mittens again, but since the availability of big houses is somewhat limited in Berlin, you can't start planning early enough :)


This is the house for this year's mittens in Berlin:

http://www.homeaway.co.uk/p768088

Facts:
The date is: 10.08. to 17.08
The house is located in "Schoeneiche bei Berlin". The nearest Airport is Berlin Schoenefeld SXF.
Space is somewhat limited: the villa fits 18 persons. I could ask for some additional beds though.
The price: 209 eur, but we get a sauna, a pool and a jacuzzi :D


Is anyone interested to stay another night at a youth hostel directly in Berlin afterwards?


Attendees
* AGA SXF 11:15 GMT+2
* Abstauber (car, 3 free seats)
* Christina with Abstauber
* Snarky TXL 14:10 GMT+2
* miez Train 15:08 Central Station
* Ascovel
* Cat Train 09:36 Central Station
* raeff (Bernhard)  Train 09:36 Central Station
* Esseb TXL 12:10
* Limping Fish
* Arjon (Car, 3 free Seats)
* Tamara with Arj0n
* Bicilotti TXL 10:40
* CJ
* Mrs. CJ
*DoorKnobHandle Train 13:10 East Trainstation
* m0ds TXL 13:40




Archive:
Update
How about 09.08.2013 to 16.08.2013 plus possible post mittens activity directly in Berlin (weekend at a youth hostel) ?

Is everyone happy with Villa Katharina?

* Villa Katharina: http://www.villakatharina.com/index.php?newlang=english
- Location: Gmaps Link!
- takes up to 18 persons (including carriage house),
- 220 eur each including tax, linen and towels. If you want to bring your own stuff, you might save a few bucks.
- already two cars for convenient park and ride - anyone else bring a car ? Tell us :)



* Old hunting lodge, approx 100km from Berlin
http://www.villakatharina.com/index.php?newlang=english
- takes up to 18 persons (including carriage house), but it's pricey and quite a ride to Berlin (but awesome if we shoot a movie there)

* Villa in the outskirts of Berlin
http://translate.google.com/translate?sl=del=en&js=n&prev=_t&hl=de&ie=UTF-8&layout=2&eotf=1&u=http%3A%2F%2Fwww.fewo-direkt.de%2Fferienwohnung-ferienhaus%2Fp768088%23reviews&act=url
- Pretty close to what we had in Ireland, but I need to ask if they can put in more beds. Currently only up to 14 persons

* Apartment complex Floram�hle (we can rent the whole building)
http://translate.google.com/translate?hl=de&sl=del=en&u=http%3A%2F%2Fwww.floramuehle.de%2Fhome.php
- in the middle of Berlin, quite cheap and takes up to 17 persons. But neither pool nor jacuzzi

* Apartments (we might afford 2 levels)
http://www.berlin-lodge.de/ferienwohnungen/mitte/652/koepenick-1.php?lang=en&lang=de&lang=en
- 3 apartments in one building, up to 14 persons per apartment
- located directly in the city
#29
         

Can you read the numbers and/or tell, if those buttons are different?

I know, I've asked this a few years before, but now I'd like to know if I can get rid of the shapes and still have a playable game.

Thanks for your help!
#30
No file here:
http://www.adventuregamestudio.co.uk/AGS-3.1.2.zip

Sorry if it has already been reported.
#31
Hey guys,

I recently finished a hardware project because I felt the need of an HTPC/mediacenter/more-tech-in-livingroom (besides hardware projects don't cause eyestrain).

So anyway, I put a recent atom board into a C16, put an optical sensor into an amiga mouse and also added dvd-drive to a (unfortunately rare) 1551 floppy.
Playing games is awesome on this machine - especially on a crt.
At first I wanted record a small video with this machine playing Limey Lizard. But well - dx5 doesn't work too well with the embedded graphics and I somehow forgot about dx9, so these pics a currently I have to show around.




But what do you think? I guess this can be seen as outrage, especially if you really love the former machine. On the other hand - if you still have a vintage machine around, do you still use it? I bet with the upcoming 40$ Raspberry PI, more people will consider hacking their old stuff. And with it, more vintage hardware will cease to exist in it's original form.

Anyway, I'm happy to have a keyboard-computer around and my childhood computer was a TI99/4a, so my conscience is clear  8-)
How about you? Awesome or awful?
#32
...is here:

http://www.pixeljoint.com/forum/forum_posts.asp?TID=11299



Now please excuse me, I'm still reading :)


edit: I've just spotted, that this is from 2010, so I'm sorry if you already know about it.
#33
General Discussion / Jim Sachs rules
Tue 16/08/2011 13:53:06
Since the new topic count for today is pretty low, whereas the currently active users count is high, my wild guess is that everyone is busy and/or bored. So you could as well visit this gallery here and admire the pixelart of Jim Sachs :)

http://www.randelshofer.ch/animations/anims/jim_sachs/thu_jim_sachs.html

#34
I'll spend the next three weeks in Finland (near Rovaniemi) and currently I'm quite addicted to the womens soccer world cup.

Are those games being broadcasted on national TV?

Unfortunately I won't have a Sat-Receiver, just a "Digi Box" (whatever that is ;) )
#35
I hope this is right place to ask: I'd like to speed up the file operations in my tile engine. And since now the engine itself is fast again, this calls for bigger maps ;D. Unfortunately that also increases loading times dramatically, so I wonder if anyone could help me out and put these functions into native C code.

Code: ags

int noloopcheck Readword(this File*) {  
  char c1 = this.ReadRawChar();
  char c2 = this.ReadRawChar();
  return c2*256+c1;
}

int noloopcheck ReadDoubleword(this File*) {
  int i1 = this.Readword();
  int i2 = this.Readword();
  // cut 16th bit due to int being signed
  i2 = i2%16;
  return i2*65536+i1;
}

String noloopcheck BitString(int i, int bits) {
  int p = bits - 1,are;
  String s="";
  int q;
  while (p > -1) {
    q = FloatToInt(Maths.RaiseToPower(2.0, IntToFloat(p)), eRoundNearest);
   are = i/q;
    i = i -are*q;
    s = String.Format("%d%s",are, s);
    p--;
  }
  return s;
}

int noloopcheck BitStringToInt(String s) {
  int l = s.Length,are;
  int i;
  String ss;
  int add = 1;
  while (i < l) {
    ss = s.Substring(i, 1);
    if (ss == "1")are =are + add; 
    i++;
    add = add * 2;
  }
  returnare;
}


There's also a second thing I'd die to see as a plugin and that's a way to save data structures (whole arrays and/or structs) to a file. Currently I serialize everything into giant strings and save those. Of course it takes forever to finish ;)


Imagine the game turns out to be great if it weren' for the loading times...?  That would ruin your fun too! See.. it's a win/win situation  :=
Seriously, if anyone could lend a me helping hand, that would be totally great!
Eternal gratitude assured  ;D
#36
Hi there,

I'm currently trying to optimize my tile engine, but I'm out of thoughts right now.
Here's a sample tilemap:



I'm currently looping through my tile array like this:
Code: ags

    i = 0;
    k = 1; // please ignore ;)

    while ( i < num_tiles_x )
    {
      j = 0;
      
      while ( j < num_tiles_y )
      {
        int index = j * num_tiles_x + i; 
        if (tile[index].tileno[k] != 0) {
          // and so on...



Now this works fine and it  loops from index 0 to index 1380 all the time. But it would be only necessary to loop through the indices inside the red square, which is the viewpoint of the player.
(the tiles aren't drawn anyway, because I check the tile's coordinates inside the loop and compare it to the player's coordinates.)


My question is now: Is it possible to modify these two loops to consider only the tiles inside the red square? I do have the index of the player's tile, so it could be a starting point to calculate the index. But I'm terribly clueless at the moment.


Any help is appreciated :)




#37
Is this still possible? I mean in the good ol' days (tm) you just used playmusic(10) and AGS found the file itself.
But since now all music files are treated as objects, does that still work?
#38
This is a list of all recent and stable spriting tools I've been able to find. Of course there are countless raster based image editors, but only a few focus on spriting and/or pixelation.
So here it is:


==================================================
ASEPRITE
==================================================

General
---------
Last Release: 11/2010
URL: http://www.aseprite.org/
Price: free (open source)
OS: Windows, Mac

Advanced Features
---------
8-bit palette: yes
Layers: yes
Animation: yes
Tiles: yes
Iso-Grid: no


==================================================
Edge2
==================================================

General
---------
Last Release: 11/2010
URL: http://takabosoft.com/edge2
Price: 4000 yen (Edge1 is freeware)
OS: Windows
Language: japanese only

Advanced Features
---------
8-bit palette: yes
Layers: yes
Animation: yes
Tiles support: yes
Iso-Grid: yes


==================================================
Grafx2
==================================================

General
---------
Last Release: 04/2011
URL: http://code.google.com/p/grafx2/
Price: free (open source)
OS: multi platform

Advanced Features
---------
8-bit palette: yes
Layers: yes
Animation: no (only palette rotation)
Tiles: yes
Iso-Grid: yes


==================================================
GraphicsGale
==================================================

General
---------
Last Release: 01/2011
URL: http://www.humanbalance.net/gale/us/
Price: 1,995 yen (freeware without .avi and .gif support)
OS: Windows

Advanced Features
---------
8-bit palette: yes
Layers: yes
Animation: yes
Tiles: no
Iso-Grid: no


==================================================
MTPaint
==================================================

General
---------
Last Release: 04/2009
URL: http://mtpaint.sourceforge.net/
Price: free (open source)
OS: Windows, Linux

Advanced Features
---------
8-bit palette: yes
Layers: yes
Animation: basic (via Gifsicle)
Tiles: no
Iso-Grid: yes


==================================================
ProMotion
==================================================

General
---------
Last Release: 2008
URL: http://cosmigo.com/promotion/index.php
Price: 78 USD
OS: Windows

Advanced Features
---------
8-bit palette: yes
Layers: yes
Animation: yes
Tiles: yes
Iso-Grid: yes


@InC: sorry, no Art Gem ;)
#39
General Discussion / Valentine's Day
Mon 14/02/2011 12:32:13
I've just spotted the editor's hilarious easter egg!

Sweet!   ;D


Happy flower-buying day, everyone!
#40
I guess most of you have some hobbies, only the internet can appreciate ;D

For that reason please consider taking a look at my mini arcade cab here, which I've finished earlier this year.

http://www.youtube.com/watch?v=-qI4zYo7bjM


Btw. I'd really love to see the AGS engine on Linux, so I can finally write a sequel to Aeronuts and build a SCUMM cab afterwards.

SMF spam blocked by CleanTalk