Show Posts

You can view here all posts made by this member. Note that you can only see posts made in areas to which you currently have access.


Topics - kyodai

Pages: [1]
1
OK my first fight was with a midi file that i ripped from Space Quest 6. Imported it into AGS and on preview AGS practically crashed (Actually it came up with an error message but you could not get rid of it as the message constantly re-appears, so killing the task was the only way...). Okay i thought maybe its just the preview and played it in a room without fumbling around in the preview - that only resulted in weird glitched glibberish coming from the speakers.


Okay i thought - maybe bad midi. So i fixed the problem using a WAVE file as the music which works actually fine.

Now what I am doing is using room 1 as my intro screen (Also startup screen of my character), added a nice intro GUI to select "New", "load", quit", which works pretty well.

On New i just beam my character to room 2 which works fine.

The weird thing is that as soon as the character starts walking some weird glitched sounds come from my speaker.

I was a bit surprised as i stop the sound upon clicking "new", but i thought maybe its related to the intro sound. As a cross check i edited out the whole intro music but still i get the weird sound as soon as i walk around.


The funny thing is i had no problems while walking around in my original room 1 (Which was just a playground for testing before i made it my intro screen).


I searched a bit for stuff like "AGS sound glitch" "AGS weird sound" and so on, but no usable results so far. Does anyone have a clue what I am doing wrong?

2
OK, so what i wanted to do seems to be fairly easy, make a global function for my Text output to be displayed in a textbox in my GUI, to have a neat way of calling it.


So i go to GlobalScript.asc, place my function which looks like this:

[code]
function TextOut(string myText)
{
  txtMainGUI.Text = myText;
}
[/code]



So after a while when trying to call it i noticed the global script is "not so global" as my room script cant find the function in the global script. After reading a bit i see i have to "import" it in the header. God knows why. Anyways, so I am trying the import im my Globalscrip.ash.


[code]

import function TextOut (string);

[/code]


And now i get the error "Error (line 80): Type mismatch: cannot convert 'const string' to 'string'"



Damn it, where did i say const? Can it really be so hard? I am out of ideas. I hope some gurus can enlighten me how to just make a simple global function. It should be very easy, but although i can program a bit VB6 and .net I am biting in my keyboard here.


3
I have already spent hours trying to get this looking neat. I followed the help file and created a new Text Window in my GUI tree. I managed to find out the correct text number (1536), also i edited the general settings to use my new Text Window for text Output.

The reason is that i have a part for Text in my GUI that i would like to use for the main text output with a Space Quest 6 alike GUI. So far i worked with "Display At", but i thought a Text Window would be what i need. However, i can't find a way to scale it and set the font, it always appears on the middle of the screen with "Display()".


So can a Text  Window be alligned and the font changed?


Or am I using the totally wrong function for this? I am getting a feeling that Text window is not what i am looking for...


Ideally i would want to have a text box on the bottom, integrated in my GUI that catches all standard text or comes with a function similar to "display" or "DisplayAt", that would be very convenient. Like in Space Quest 6 i would also love to have a vertical scrollbar and have the text be "non blocking". I am sure this is technically possible, but so far I am just not so experienced with AGS 3. Is a vertical scrolling textbox possible? Or could a Listbox be abused for that?



On another side note - I am having problems with the font anti-aliasing. If i use anti-aliasing then my DisplayAt font looks very nice but the text of my buttons disappears. Is that a bug or is there some reason i haven't found out yet?

Pages: [1]