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

#341
I've probably missed something; anyway this question bothers me long enough to ask here.

Why it is made impossible to change executable name after you started your project? And why it should stay the same for winsetup to work properly?
#342
It looks like there's no way to do this except for creating Dynamic Sprite first, as at cut from source drawing surface.
I explained why this could be needed here:
http://www.adventuregamestudio.co.uk/yabb/index.php?topic=38863.0
#343
This is rather confusing... can someone tell me is it possible to draw a part of the dynamic sprite to the drawing surface without creating intermediate sprite(s)?

It's like I created a DynamicSprite from a graphic file (DynamicSprite.CreateFromFile), and that file actually contained several images/tiles/whatever; now, if I want to draw only piece of that image on screen, should I really create another one DynamicSprite using DynamicSprite.CreateFromDrawingSurface function and paint it instead?

If there's no other way, the second question is, will creating dynamic sprites on-fly (assuming, for this example, I will have to repaint room quite often) slow game down much?
#344
This happens to me as long as I remember playing AGS games, that is I am really not sure which run-time version this referes to. Latest game I played and noticed this bug in was "Colin Simpson Leaves Employment".

Bug itself occurs as soon as I change to another window by hitting ALT+TAB, then return back to the game. All displayed text, speech and messages, begin to dissapear a moment after they are shown, as if game thinks that user constantly presses a key or something.
This happens both for Fullscreen and Window mode. Interesting thing is, that if igame was launched in windowed mode and I change window by clicking on "minimize" button or just clicking outside game window, then switch back, this bug does not occur. It occurs only if I use ALT+TAB combination.
#345
On another thread I found this piece of discussion
Quote
Quote
Basically, I'm asking for a way to disable the text skip button(s) for a short moment right after a line change, but only if the previous line timed out. Thereby ensuring that if the line you want to skip times out just as you're clicking, you don't miss the next line. Personally, this is a feature I wish all games had. (If I finish reading a line a bit early, I'm often afraid to click to skip it, because this might happen and I'll miss the next one.)

That is a very good idea actually, I have the same problem when playing games. I'll look into it.

I had something similar in my mind as well for quite some time, but now I have different proposal. What if a new option will be added to game setup, that will allow player to customize the text skipping method which matches his/her own preference? It could also include "Game Default" selection.

I ask this because along with problem mentioned in an excerpt above, I sometimes could not read speech fast enough (I am not native english speaker, and most games are in english). There were times when I had to re-read same lines to make sure I understood them properly and - blam - speech is gone. I remember I had reload few times because of that.
#346
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.
#347
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.
#348
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.
#349
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.
#350
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.
#351
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.
#352
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