Chaos Project

RPG Maker => RPG Maker Scripts => RMXP Script Database => Topic started by: LiTTleDRAgo on June 20, 2011, 01:55:14 am

Title: [XP][VX][VXA] Custom Picture Path
Post by: LiTTleDRAgo on June 20, 2011, 01:55:14 am
Custom Picture Path
Authors: LiTTleDRAgo
Version: 1.40
Type: Misc Add-on
Key Term: Misc Add-on



Introduction

Just another useless addon


Features




Screenshots

(http://4.bp.blogspot.com/-MUDpFuKXOq0/Uefyrkp52vI/AAAAAAAAAQE/eOXfzXxFsxM/s1600/No+Screenshot.png)


Script

Here (http://littledrago.blogspot.com/2013/03/rgss2-custom-picture-path.html)


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




Author's Notes

Enjoy ~
Title: Re: [XP][VX] Custom Picture Path
Post by: Zexion on August 03, 2013, 02:36:29 am
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
Title: Re: [XP][VX] Custom Picture Path
Post by: LiTTleDRAgo on August 03, 2013, 02:47:23 am
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)
Title: Re: [XP][VX][VXA] Custom Picture Path
Post by: Zexion on August 04, 2013, 10:12:05 am
It still doesn't work :(
Is it because it won't work in a common event o.o
Title: Re: [XP][VX][VXA] Custom Picture Path
Post by: LiTTleDRAgo on August 04, 2013, 05:21:04 pm
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)
Title: Re: [XP][VX][VXA] Custom Picture Path
Post by: 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
Title: Re: [XP][VX][VXA] Custom Picture Path
Post by: LiTTleDRAgo on August 05, 2013, 07:48:07 am
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?
Title: Re: [XP][VX][VXA] Custom Picture Path
Post by: Zexion on August 05, 2013, 10:27:46 am
https://dl.dropboxusercontent.com/u/59018752/CommonEvents.rxdata
There :P soz, had to dl dropbox again
Title: Re: [XP][VX][VXA] Custom Picture Path
Post by: LiTTleDRAgo on August 05, 2013, 10:37:34 am
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)
Title: Re: [XP][VX][VXA] Custom Picture Path
Post by: Zexion on August 05, 2013, 10:50:56 am
Oh so if it passes the line then it doesn't count ? XD
Title: Re: [XP][VX][VXA] Custom Picture Path
Post by: KK20 on August 06, 2013, 09:22:44 pm
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.
Title: Re: [XP][VX][VXA] Custom Picture Path
Post by: Zexion on August 06, 2013, 10:11:24 pm
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: