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

#1
I'm currently fiddling around with a project that has its code divided among multiple script modules. There's two structs being used in the project and each struct has its own script module. Things kinda look like this:

Module with struct 1 header:

Code: ags
struct Apple
{
  int ID;
  import int Init(int index);
};

Apple Apples[10];


Module with struct 1 script:

Code: ags
function Apple::Init(int index)
{
  this.ID=index;
}


Module with struct 2 header:

Code: ags
struct Orange
{
  int ID;
  import int Init(int index);
};

Orange Oranges[10];


Module with struct 2 script:

Code: ags
function Orange::Init(int index)
{
  this.ID=index*2;
}


In the "room_load" section of the starting room, the following code is executed:

Code: ags
int i=0;
while (i<10)
{
  Apples[i].Init(i);
  Oranges[i].Init(i);
  i++;
}


Now there's a function I'd like to use that uses data from both structs looking something like this:

Code: ags
function Compare(int applenr, int orangenr)
{
  if (Apples[applenr].ID==Oranges[orangenr].ID) return true;
  else return false;
}


This function works fine in the room code, but when I tried putting it in a separate module (I wanted to create one specifically for all misc functions that use data from both structs), things malfunction. The misc-module is placed beneath the two struct-modules, so it can see the public variables of both structs just fine. However, the function when placed in the misc module always returns true and when looking at the values it retrieves, the only results were straight 0's for all ID-vars in both structs as if the init-process never took place. Any idea on how to fix this?

#2
AGD Interactive is proud to present one of the most awaited fangames ever. After a long and hard development process, the game went gold around midnight on the 24th/25th of august.





AGD Interactive has taken great care to maintain the charm, atmosphere and gameplay of the original while implementing features here and there to make the experience more enjoyable for both newcomers and veterans alike. Seeing how long it's been in production and how many people have heard of it, there's probably little I can add, other than...come and get it, Effendi.

Visit the completely revamped site at http://www.agdinteractive.com

#3




NEWSFLASH: The sultanate of Shapeir is currently enlisting brave and devoted adventurers who are willing to assist the authorities in making the country a more stable and enjoyable place to be. Some time ago, the land was overrun by a particularly elusive and persistent breed of creature, called a programming bug. In order to rid the land of these pests, Sultan Harun Al-Rashid (May He Live Forever!) in all His wisdom, sought out the help of a small band of heroes to do battle with these abominations. This band fought long and hard and the bug population was drastically reduced over time as a result of their efforts. However, the remaining members of the population have become wary and have gone into hiding, only showing their face in very specific circumstances.

Because of that, additional adventurers are requested to journey to Shapeir and assist the Sultan's bug-exterminators in tracking down the remaining bugs that still plague the land. Because there is no reward in Dinars posted, the adventurers Shapeir is looking for should be self-sacrificing Paladin-type personalities who do not shun long, hard and tedious work for no compensation but a boosted personal honor stat. In addition, these adventurers should have a keen eye, analytical mind, a long attention span and the ability to think outside the box. Prior experience with the land of Shapeir is not mandatory, but the previously stated personality traits most certainly are.

Those adventurers who are interested and understand that their journey to Shapeir will not so much be a vacation, but a noble and necessary quest that involves them sacrificing their own enjoyment of Shapeir for the cause of the Greater Good, can scroll down and click on the link below.

All the poetic analogies aside... Quest for Glory 2 VGA is going beta and AGD Interactive is looking for suitable volunteers to help us test. If you have a lot of time to spend and have the qualities stated above, please apply and you may find yourself picked as a QFG2VGA beta tester. If you enjoy rooting out and trying to replicate anomalies that could be dependant on a hundred different factors, you may be the person we're looking for.

Keep in mind that actual testing probably won't start until after new year, so testers will need a lot of time to spare even after the holidays.

If you think you have what it takes to help us give the game that extra bit of polish, please click on the link below and fill out the application form.

Sign up here.

#4
A new game, "Al Emmo & The Lost Dutchman's Mine," by start-up company Himalaya Studios (of AGDI fame) has been announced.Ã,  The game was postponed in 2002, but is now back in production full-time.

It will be an original and commercial product using the AGS engine.

Game resolution will be 640x400 with handdrawn backgrounds, as well as 3D models as sprites. The final game will come with digital music as well as a voiceover.

Currently, there's a competition on the website where visitors can win a free copy.

We're still looking for 3D artists for a paid position, as well as 3D artist interns (non-paid internship).

In addition to info about the upcoming game, the website also contains the travelling journals from the (former) AGDs if you're interested in a good read.

Website is at www.himalayastudios.com

Screenshots:






#5
Tierra's latest and greatest project is now available for download and is ready to rock the fangame world.

(our new site is at www.tierraentertainment.com)

SMF spam blocked by CleanTalk