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

#1
Quote from: Atelier on Thu 02/04/2015 22:39:46


I feel honored for Symbiosis to be on the "guidelines" image. :-D Good luck to all the contenders!
#2
Ok, thank for your replies! I'm aware of the Global Variables feature in the editor, but I didn't want to make that particular variable "global", and also I was hoping to apply the same principle to a non-managed type, so the Global Variable thing doesn't solve my problem in the end.
Anyway, I just coded it with a different approach to avoid the export/import thing.

Thanks!
#3
I know, I know, there are a bizillion threads talking about this error, but I couldn't find any that applies to my situation or with a solution that works for me. I've also checked the Wiki on scripting. So...
First, what I want to do is access a variable from a script (NOT a room script) that is declared in the global script. So I did this:

Code: ags

// GlobalScript.asc
int THING = 1;
export THING;


Code: ags

// GlobalScript.ash
// empty (I don't want to access THING from room scripts, so I don't have to import it here, right?


Code: ags

// AnotherScript.ash
import int THING;


Code: ags

// AnotherScript.asc
// ... some code ...
THING = 2;
// ... more code ...


The script order is:
AnotherScript
GlobalScript

The code compiles without any errors, but when I run the game, it crashes with the dialog "Script link failed: Runtime error: unresolved import 'THING'"

What I'm doing wrong?

PD: I'm using AGS 3.3.3.0
#4
Congrats on the release! I just completed it. I would like to see a "post-MAGS" version with some of the "rough edges" more polished (the rush to tell the background story and some arbitrary puzzles). Overall, I loved the atmosphere, I think it has a great potential for a larger game.
#5
Interesting theme! Hmmm... Maybe, maybe....
#6
Hey guys, a lot of things came up at work and college, so I won't be able to finish my game in time... Sorry :(
#7
Well, I did some scripting and drawing and plot writing, and I came with this:

----------------------------------------

Füd: The Vegetarian Dragon
Do you think that being a dragon is easy? Ha! What about being a vegetarian dragon? Yes, you read it right. No eating mighty adventurers. Only lettuce. And such.
This is the story of Füd, a little dragon harassed by his community just because... Well, his diet priorities.




----------------------------------------

I've coded a few dialogues and the first puzzle. I don't have all the details on the story yet, so we'll see if I can make the deadline for this one... The game will be available (if I manage to finish it in time) in English and Spanish.
#8
Played them all (I should be working on my own MAGS game, shouldn't I?) and vote sent to Atelier via PM!
Congratulations guys, I liked all the entries, so It was a difficult choice to make!
#9
Wow, I love Lovecraft! And those screenshots look very promising!
Looking forward to this one!
#10
I have some ideas... I'll try!
#11
Hey guys, I need some advice with my character sprite here. He is a little dragon, and I'm trying to keep it simple. Somewhat, I don't like the leg on the right and the tail. Also, I'd like some advice on shading the belly.

[IMGzoom]http://s29.postimg.org/tc2dvqm83/lil_drake.png[/IMGzoom]

Thanks in advance!
#12
Hey guys, sorry if I caused confusion with this. I'll try to explain what the problem was the best I can (or the best my poor English allows me to). This is part of my AGSLife program.

I'm using a fixed size array of a user defined structure:

Code: ags

// Pattern struct
struct Pattern
{
  String name;
  String type;
  String discoverer;
  String year;
  bool patternGrid[CELL_NUMBER];
};

// [GLOBAL] Loaded patterns
import Pattern patterns[200];
import int patternCount;


This array is loaded with Patterns saved as files (the .pat files in the game folder). At the same time, I have a ListBox containing all the patterns in the array. So, whenever the user creates a new pattern, I have to update the array AND the list, and I wanted the most recently created pattern to be selected in the ListBox, so I have to do something like this:

Code: ags

// Add the new pattern to the array
patterns[patternCount].name = txtPatternName.Text;
patterns[patternCount].type = txtPatternType.Text;
patterns[patternCount].discoverer = txtDiscoverer.Text;
patterns[patternCount].year = txtYear.Text;

// Add the new pattern item to the list
lstPatterns.AddItem(String.Format("%s", patterns[patternCount].name.Truncate(13)));

// Increase pattern count
patternCount = patternCount + 1;  

// Select the new pattern in the list
lstPatterns.SelectedIndex = lstPatterns.ItemCount - 1;
lblName.Text = patterns[lstPatterns.SelectedIndex].name;
lblType.Text = patterns[lstPatterns.SelectedIndex].type;
lblDiscoverer.Text = patterns[lstPatterns.SelectedIndex].discoverer;
lblYear.Text = patterns[lstPatterns.SelectedIndex].year;


OK, that is the working code. Before that version, I think I was increasing the array index (patternCount) in the wrong place, and that was the reason why, when something like this tried to execute:

Code: ags
lblName.Text = patterns[lstPatterns.SelectedIndex].name;


... indeed, that string IS null, because the pattern in that position was never set. The problem was that I was receiving the "Null string" error that I mentioned in the first message, not a "Out of bounds" message; wich is correct, because the array was no technically "out of bounds", but the pattern in the referenced position was never set, due to my incompetence.
I'm sorry that I don't have the "broken" code anymore, this was a small project, so I didn't use any versioning system.

Well, that's it. Again, hope I didn't generate too much confusion with my noooooooooooooob mistake. :(
#13
AGSLife






AGSLife is a simple AGS version of Conway's Game of Life.

Features:
* Save/Load patterns.
* Pattern gallery, including the most common and famous patterns.
* Configurable HUD.

#14
I've solved it. It was an array out of bounds ("patterns" array index) problem. The error message misled me, though.
Thanks anyways!
#15
Quote from: Crimson Wizard on Mon 03/11/2014 23:20:57
Which line in your script is highlighted when you got this error?

Line 5:
Code: ags
lblName.Text = patterns[lstPatterns.SelectedIndex].name;

#16
Hi guys, this error is driving me crazy. I'm just updating a ListBox, like this:

Code: ags

function lstPatterns_OnSelectionChanged(GUIControl *control)
{
  if (lstPatterns.SelectedIndex != -1)
  {
    lblName.Text = patterns[lstPatterns.SelectedIndex].name;
    lblType.Text = patterns[lstPatterns.SelectedIndex].type;
    lblDiscoverer.Text = patterns[lstPatterns.SelectedIndex].discoverer;
    lblYear.Text = patterns[lstPatterns.SelectedIndex].year;
  }
  else
  {
    lblName.Text = "- - -";
    lblType.Text = "- - -";
    lblDiscoverer.Text = "- - -";
    lblYear.Text = "- - -";
  }
}


When I click in certain list items, the game crashes with this error:



The thing is:
1) I'm not using any translations whatsoever.
2) None of the given strings are null (I manually checked).

I'm using Build 3.3.0.1160. What's going on?
#17
Luckily it was not a "breaking game" bug, but it was difficult to solve the puzzle because of that... It really should be fixed.

I've finished the game. Overall, it's enjoyable, some puzzles were clever, some were a bit off and anticlimactic (the "guess were the coin is" one). The voices were a nice touch, but the sound quality was a bit poor and IMHO affected the immersion. Maybe slasher could release a more "polished" version (i.e. fixing the missing hotspots, walkable areas and walk-behinds).
Overall, it's a very enjoyable game. Congratulations slasher!
#18
slasher, I think the game has a major bug (or I'm completely lost). I've collected all but one of the ravens...

Spoiler

Inside Room 6, I can walk through the pit, but when I try to pick the raven up, it says that "I can't do it from this side".


[close]

EDIT: Ok, the bug is not "major", I managed to advance in the game... The problem is that the bug misleads the puzzle solution...
#19
Sorry to bump this... Can you upload the Convertor again, please?
#20
Wow slasher, you're making games at a furious rate! 8-0
SMF spam blocked by CleanTalk