Picture Gallery Modification

MartaLualdi

Lullaby~
Veteran
Joined
Jan 6, 2014
Messages
35
Reaction score
5
Primarily Uses
I can't believe what I found, this must be the most beautiful picture viewer for RPG Maker VX Ace I've ever seen (It is like two years old too). But it comes with some flaws...

Just look at it omg...




Basically you select a switch that needs to be turned on in order to unlock a single image. However, whenever I try to change any switch to 11 and higher, it sends a cache error, like if there was no image for it (when there actually is).

And this is the reason why it can't show more than 10 images (corresponding to switches 1-10), which is pretty sad for something this awesome.

Can anyone help me with updating this already awesome script?

Here is the official demo download link.

http://www.mediafire.com/download/rznjacdax5q9i0y/CRM+Gallery.exe

UPDATE: This previous bug has been fixed, however I noticed another one.

Whenever you choose an image to zoom and pan it, and go back to the image selection screen, it ALWAYS goes back to the 3rd image, instead of that one you were looking at. This can be pretty tedious, lets say you have 100 images. If you want to see all images at once, you will need to overuse the right button for those images with a high ID, since it always goes back to 3, it means that i need to click 47 times right to see image #50, and 46 times if i want to see image number 49 AFTER exiting viewing #50... That would be horrible D:

So yea, basically the issue here it is that it resets to image #3 every time .

Thanks To Anyone That Helps!!!!! <333
 
Last edited by a moderator:
  • Like
Reactions: BCj

Venka

Veteran
Veteran
Joined
Jun 20, 2012
Messages
945
Reaction score
365
First Language
English
Primarily Uses
If you look inside the script, the first part after setting your images you see a def with this n the middle of it

    until @gallery.size > 6      for n in 0...CRM_Gallery::Gallery.size - 1        @gallery.push(CRM_Gallery::Gallery.key(n + 1)) if $game_switches[CRM_Gallery::Gallery.values[n]]      end      if @gallery.size == 0        terminate        return_scene        return      end    end
you want to chage this line

      for n in 0...CRM_Gallery::Gallery.size - 1to this

Code:
      for n in 0...CRM_Gallery::Gallery.size
 

MartaLualdi

Lullaby~
Veteran
Joined
Jan 6, 2014
Messages
35
Reaction score
5
Primarily Uses
If you look inside the script, the first part after setting your images you see a def with this n the middle of it

    until @gallery.size > 6      for n in 0...CRM_Gallery::Gallery.size - 1        @gallery.push(CRM_Gallery::Gallery.key(n + 1)) if $game_switches[CRM_Gallery::Gallery.values[n]]      end      if @gallery.size == 0        terminate        return_scene        return      end    endyou want to chage this line

      for n in 0...CRM_Gallery::Gallery.size - 1to this

      for n in 0...CRM_Gallery::Gallery.size
Oh my gosh, no wonder... stupid -1... but regardless

THANK YOU VERY MUCH <333~~!!
 

Venka

Veteran
Veteran
Joined
Jun 20, 2012
Messages
945
Reaction score
365
First Language
English
Primarily Uses
np :) glad it was just something simple
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
Reopened at OP's request
 

MartaLualdi

Lullaby~
Veteran
Joined
Jan 6, 2014
Messages
35
Reaction score
5
Primarily Uses
New issue found :(

It resets to image #3 every time you quit viewing an image.

Detailed problem on main post.
 

Raizen

Veteran
Veteran
Joined
Oct 24, 2012
Messages
381
Reaction score
660
First Language
Portuguese
Primarily Uses
RMMV
Oh, that's my script k, sorry for not seeing the thread open xD.

It's an old script of mine, so sorry for the flaws :( , I'll fix that one for you as soon as I can ;) .
 

MartaLualdi

Lullaby~
Veteran
Joined
Jan 6, 2014
Messages
35
Reaction score
5
Primarily Uses
Oh, that's my script k, sorry for not seeing the thread open xD.

It's an old script of mine, so sorry for the flaws :( , I'll fix that one for you as soon as I can ;) .
OH MY GOD!! THANK YOU VERY MUCH!!! >~<

Also, mind if I ask you something...? How can I move the whole line of images to another position? I upgraded my graphics to 640x480, and so I wish to move it a little to the right (already moved it down as much as I wanted), but whenever I move it either right/left, when I enter the scene, the screen starts to shake... maybe I changed the wrong part.. but anyway, THANK YOU~ :) , I REALLY APPRECIATE THAT. ;_;
 

MartaLualdi

Lullaby~
Veteran
Joined
Jan 6, 2014
Messages
35
Reaction score
5
Primarily Uses
here I correct both issues, I was kind of noob on the time with scripting, so I made a lot of mistakes :( , but now I think its ok xD.

http://pastebin.com/raw.php?i=DffPRQBL
I tested it, but it didn't work as I expected (sorry for telling you that T^T)

If you check one image, it goes back to it, however if you enter and exit several, it starts to randomize which image you exit at, and sometimes it throws me an error on this line:

    @current_gallery = @current_gallery.flatten.rotate!($current_pic*2)

It was regarding the * used, something that said it was unable to convert it (unable to convert NIL to something).

I can give more details, l used 11 images just to try it out, on a clean project, every time I chose one image, it sent me back to the image before it, but the second time I chose an image, it sent me back to image 5.

It looped like this: Image before the one I chose>Image 5>Image before the one I chose>Image 5>etc...
 
Last edited by a moderator:

MartaLualdi

Lullaby~
Veteran
Joined
Jan 6, 2014
Messages
35
Reaction score
5
Primarily Uses
here I correct both issues, I was kind of noob on the time with scripting, so I made a lot of mistakes :( , but now I think its ok xD.

http://pastebin.com/raw.php?i=DffPRQBL
Umm, think I can ask for a little add-on? >~<

Just that whenever you are checking an image, you are able to switch to other images directly (via 2 input buttons, Q-W or something).

Basically the ability to go to the next/previous image while already viewing one, so you don't have to exit one image to view the next everytime.

Please ignore this if I'm asking too much... But regardless, thank you <33
 

Halfmoon Media

Illustrator, Eventer, Writer
Veteran
Joined
Aug 17, 2014
Messages
61
Reaction score
9
First Language
English
Primarily Uses
Was the issue where the image selector would reset to a specific picture ever fixed? In this demo, it doesn't seem like it has been...
 

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

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,862
Messages
1,017,045
Members
137,569
Latest member
Shtelsky
Top