[XP][VX][VXA] Custom Picture Path

Started by LiTTleDRAgo, June 20, 2011, 01:55:14 am

Previous topic - Next topic

LiTTleDRAgo

June 20, 2011, 01:55:14 am Last Edit: August 03, 2013, 03:50:36 am by LiTTleDRAgo
Custom Picture Path
Authors: LiTTleDRAgo
Version: 1.40
Type: Misc Add-on
Key Term: Misc Add-on



Introduction

Just another useless addon


Features


  • Allows you to use picture from another folder for Show Picture command




Screenshots




Script

Here


Instructions

To use it, go to script command and put
custom_pict(folder_name, name_file, hue = 0)

then use show picture command

Example use

Script :  custom_pict('Graphics/Panoramas/','003-StarlitSky01', 0)
Show Picture : 1,'',Upper Left(0,0),(100%,100%),255,Normal



Compatibility

Compatible with VX & VXA


Credits and Thanks


  • LiTTleDRAgo




Author's Notes

Enjoy ~

Zexion

Question, does this only work on the default directories, or will it work on say
custom_pict('graphics/pictures/custom folder/', 'pic')

Also is it case sensative, and does it work in common events?

Reason I asked is because I tried to use
custom_pict('graphics/pictures/Battle - HUD/' ,'button-01')

In a common event, and it gave me a syntax error :s

LiTTleDRAgo

I believe it's not case sensitive
try to use it like this

folder = 'graphics/pictures/Battle - HUD/'
file = 'button-01'
custom_pict(folder,file)

Zexion

It still doesn't work :(
Is it because it won't work in a common event o.o

LiTTleDRAgo

can you upload your common event? I mean, your CommonEvents.rxdata
preferably, in filehosting that doesn't need registration to download it (such as dropbox or mediafire)

Zexion


LiTTleDRAgo

Quote from: Zexion on August 04, 2013, 05:37:15 pm
Here ya go.
http://uppit.com/nr1hoyvniu1t/CommonEvents.rxdata
Edit:
It's the 10th event, should say Battle HUD


Spoiler: ShowHide
This website is offline.

The server may be down for maintenance, there may be a network problem, or the site may be experiencing excessive load.


sorry, but could you upload it to mediafire or dropbox?

Zexion


LiTTleDRAgo

you typed it wrongly

Quotefolder = 'Graphics/Pictures/Battle
HUD/'

file = '01 - Button - Attack'
custom_pict(folder, file)


it should be

Quotefolder = 'Graphics/Pictures/Battle ' +
'HUD/'

file = '01 - Button - Attack'
custom_pict(folder, file)


or

Quotefolder =
'Graphics/Pictures/Battle HUD/'
file = '01 - Button - Attack'
custom_pict(folder, file)

Zexion

Oh so if it passes the line then it doesn't count ? XD

KK20

August 06, 2013, 09:22:44 pm #10 Last Edit: August 06, 2013, 10:31:46 pm by KK20
Yeah, the way how RMXP handles the event command 'Script' is through use of the method eval.
It breaks each line up and tries to evaluate the code one-at-a-time.
Basically, it did this:
eval("folder = 'Graphics/Pictures/Battle")

You can already see the problem: there's no second quotation mark to end the string. Hence, syntax error.





   


   
   


   
   

Other Projects
RPG Maker XP AceUpgrade RMXP to RMVXA performance!
XPA TilemapTilemap rewrite with many features, including custom resolution!



Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

Zexion

To be honest, I had a feeling that this was happening, but I didn't think of what to do next. I seriously didn't even attempt to think about how to fix it. I just became a zombie and posted it on this thread. What is wrong with me ?? D: