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 - Crimson Wizard

#14261
Here goes another bug. If game uses Sierra-style dialogs and character says something when GUI is open (I guess any gui, that pauses the game; I had this with inventory window), then speech text will be drawn over the gui, but character portrait stays behind.

This could be easily seen if window is placed where character portrait usually appears. At first I thought that portrait is simply not displayed, but then I made GUI 50% transparent and saw there IS a portrait, but beyond GUI.
#14262
Quote from: GarageGothic on Mon 20/04/2009 20:17:21
Dualnames reported a similar bug in the parallax scroll module thread.
Yeah, I have seen 100% same effect as on that screenshot.
It looks like character portrait uses screen-relative coordinates, while speech text uses absolute coordinates of a room.
#14263
As a result of some mistake in script I occasionally found that:

1. If you use Sierra-style dialogs, and...
2. (perhaps) 'Run game loops while dialog options are displayed' general setting is ON, and...
3. Your player character stands in large scrollable room, and...
4. Some character speech displayed, and...
5. Player character continues to move, causing room background to scroll,

then following occurs - speaking character portrait stays on same place relative to screen coordinates, but speech text flows away with the scrolling background.
#14264
Ah, yes, and "Watch" feature for runtime debugger, if possible!
#14265
I am sorry for being such a bore  :), nevertheless here's another small and pesky bug I noticed.

If you have a number of folders and subfolders in the 'Views' tree branch then when you change a name of the View (any View) in the properties table all 'Views' tree branch collapses; that is - all folders close.

Its hard to tell if this refers only to 'Views' node or any other nodes in objects viewer because only 'Views' branch can have subfolders.
#14266
Sorry if this was mentioned sometime ago (don't have a patience to read all this thread through  ::) )
I have couple of humble ideas, simply something that comes in mind when I trying to create my first game...

First of all, what about allowing user to define sprite metrics (width & height) manually when importing one from a bitmap. Sometimes that could be easier than to drag a selection box. Also maybe the input fields for these metrics could display currently selected width and height if user decided to drag the box anyway.

Secondly, a way to copy/paste GUI elements when editing GUI control - this would make it faster to create several buttons of same size.
#14267
Quote from: Trent R on Thu 16/04/2009 02:55:10
Ooops, sorry CW. I probably sounded a bit conceited before....

~Trent
No problem :)

Quote from: monkey_05_06
Although you probably do have a point that the dialog editor should have a better way of handling this (interpreting which lines are dialog script and ignoring all syntactical candy and which lines are script script (spaces first!) and detecting the appropriate information...).
Well, that's exactly what I meant.
#14268
Quite a small bug, but could be annoying sometimes.
In dialog scripts when there is a " ' " (apostrophe) symbol somewhere between "(" and ")" in character speech, as soon as I print ")", editor marks the ")" with a red colour as if there is some syntax mistake.

Example, that can cause this:

Code: ags

Ego: Okay, I will do this (actually I won't).

NOTE: you have to type ")", copy/paste doesn't reproduce the bug.


Also, just a remark: I found it a bit excessive that editor marks "(" / ")" pairs by yellow colour in character speech lines... only my opinion.
#14269
More info: I found myself able to avoid this crash by setting compatibility with Windows 98 mode for game executable.
#14270
Heh, if AGS was open source I could try build it and run with debugger :) but it is not.
So, can I help you somehow else in this, like providing more information about something?
#14271
Quote from: Trent R on Mon 12/01/2009 00:15:43
But I don't know what OS you have (I assume Crimson has XP because it is 'My' Documents)

Huh, no, I was talking about Vista, it's just that memorized that "My Documents" from earlier Win versions I used for so many years :)
Actual path was like:

C:\Users\Иван\Documents\AGS\MyGame (or whatever).

By the way, I tried starting the game on another machine that has XP installed (reproducing similar condition), and I got absolutely same error.
#14272
Well, "Иван" for instance (that's my user name in Windows), or "Мои документы" (= My Documents). I just do not know if copying this from forum thread to your machine will keep these characters as they are.
#14273
I guess there's a slight mistake in how GetTextHeight calculates number of lines needed for a text.

For example, if you write this:
Quote
int width = GetTextWidth(Text, Font);
int height = GetTextHeight(Text, Font, width); // here we use actual width of text as a width limit

- in this case value calculated will be equal to height of 2 lines, while there obviously should be 1 line.

If you make width limit 1 pixel larger it gives correct result:
Quote
int height = GetTextHeight(Text, Font, width + 1);


Also, I suggest to implement another function (unless it is already implemented and I am just not aware of it) that returns simply Font Height, that is if you wish to know a height of single line of text.
#14274
Looks like this is not needed; I investigated problem futher and finally managed to detect reason of the problem. It appears that this only happens when the path to compiled game includes non-latin characters.
That is, if path has only strict latin characters it works and play music normally, but if there's some folder named in other (cyrillic in my case) it crashes. This does not depend on game (I tried creating new game from Default template) and on music type (tried different mp3s, oggs, wavs).

Also, I think this did not happen in AGS 3.0.
#14275
It crashes anytime music from vox package is about to play. I tried both setting startup room music or playing music from room script after some delay, same results. It only works if I put MP3 file into Compiled folder and pay it using PlayMP3File function.


Crash dump:
http://www.fotomaterial.narod.ru/_temp/CrashInfo.3.11.1057.zip
(you will be redirected to another page to confirm you want to download the file; everything is in russian there, but you just need to find same link)
#14276
I met this bug in script editor only once and could not reproduce it no matter how long I tried.
Bug does not cause any crash nor annoyance though.

Error message I got:
QuoteError: Значение StartIndex не может быть меньше нуля.
Имя параметра: startIndex
Version: AGS 3.1.1.67

System.ArgumentOutOfRangeException: Значение StartIndex не может быть меньше нуля.
Имя параметра: startIndex
   в System.String.InternalSubStringWithChecks(Int32 startIndex, Int32 length, Boolean fAlwaysCopy)
   в AGS.Editor.ScintillaWrapper.CheckFunctionForLocalVariables(Int32 currentPos, ScriptFunction func, String scriptExtract)
   в AGS.Editor.ScintillaWrapper.GetListOfLocalVariablesForCurrentPosition(Int32 currentPos)
   в AGS.Editor.ScintillaWrapper.FindLocalVariableWithName(Int32 startAtPos, String nameToFind)
   в AGS.Editor.ScintillaWrapper.GetFinalPartOfExpression(Int32 currentPos, ScriptStruct& memberOfStruct, Boolean functionsOnly)
   в AGS.Editor.ScintillaWrapper.ShowCalltip(Int32 openingBracketPos, Int32 parameterIndex, Boolean functionsOnly)
   в AGS.Editor.ScintillaWrapper.scintillaControl1_DwellStart(Object sender, DwellStartEventArgs e)
   в Scintilla.ScintillaControl.DispatchScintillaEvent(SCNotification notification)
   в Scintilla.ScintillaControl.WndProc(Message& m)
   в System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   в System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   в System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

As you may notice, there are cyrillics there, perhaps because it uses some predefined system error text. I decided to leave it as is in sake of message authentity :), but in english that means following (approximate translation):
Quote
Error: Value of StartIndex cannot be less than zero.
Name of parameter: startIndex


Now, I did I get this error... it's interesting question. I was thinking of something and unintentionally dragging mouse over script text. When I selected all the text in editor window this bug happened. Since no crash occured I decided to check what could cause it and finally realized that this error message occurs when I place mouse cursor over function word in the first function definition in the script. It did not happen when I put cursor over function word anywhere else. When I cancelled selection I did earlier error was still happening each time I put cursor there.
After I closed script editor and opened it again, I could not reproduce this anymore.
#14277
Good time of the day to everyone.
I met this problem when launching my game in compiled form with digital music, game crashes and following error message appears:

---------------------------
Illegal exception
---------------------------
An exception 0xC0000005 occurred in ACWIN.EXE at EIP = 0x004623C0 ; program pointer is +207, ACI version 3.11.1057, gtags (0,1)

It does not happen when I run game in debug mode, and since I believe it uses raw music files then, this all happens only when music package (*.vox) is being used.
Digital music consist of couple of MP3 files. I am using Windows Vista 32bit.
I do not know what else information I need to report; error message noted I may be asked to upload crash dump file, I have one, but currently I do not see the way I can upload it :)
SMF spam blocked by CleanTalk