[Bug report][Ace] RGSS3 player crash in Window#cursor_rect= assignment

Ancurio

Villager
Member
Joined
Aug 19, 2014
Messages
5
Reaction score
3
Primarily Uses
w = Window.neww.cursor_rect = Rect.new(0,0,0,0) # same as Rect.newThis code works fine in RGSS1 and 2, but crashes Player.exe in RGSS3. The conditions are that the first Rect object assigned to a Window instance after its creation must be empty. This for example works:

w = Window.neww.cursor_rect = Rect.new(0,0,1,1)w.cursor_rect = Rect.new(0,0,0,0)Am I crazy? Did Enterbrain really let something like this slip through?
 
Last edited by a moderator:

Venka

Veteran
Veteran
Joined
Jun 20, 2012
Messages
945
Reaction score
365
First Language
English
Primarily Uses
this is how they do it

#-------------------------------------------------------------------------- # * Update Cursor #-------------------------------------------------------------------------- def update_cursor if @cursor_all cursor_rect.set(0, 0, contents.width, row_max * item_height) self.top_row = 0 elsif @index < 0 cursor_rect.empty else ensure_cursor_visible cursor_rect.set(item_rect(@index)) end endso if you do w.cursor_rect.empty it'd probably work for you
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Does it give you an error message?
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
5,592
Reaction score
6,522
First Language
Indonesian
Primarily Uses
RMVXA
Here is the alternative way

Code:
w.cursor_rect.set(Rect.new(0,0,0,0))
 

Ancurio

Villager
Member
Joined
Aug 19, 2014
Messages
5
Reaction score
3
Primarily Uses
Does it give you an error message?
Nope, it's not an RGSS error in the sense that an exception is raised, the window just closes. I assume this means the player process just crashes.

Here is the alternative way

w.cursor_rect.set(Rect.new(0,0,0,0))
Interesting that this works. This means that Rect#set(rect) and object.rect_property=(rect) internally run on two different code paths.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,975
Members
137,563
Latest member
cexojow
Top