Author Topic: [XP][VX][VXA] Custom Picture Path  (Read 5266 times)

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 851
  • LV: 517
  • Gender: Male
    • View Profile
    • ~
[XP][VX][VXA] Custom Picture Path
« on: June 20, 2011, 07: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

  • 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
Code: [Select]
custom_pict(folder_name, name_file, hue = 0)then use show picture command

Example use
Code: [Select]
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 ~
« Last Edit: August 03, 2013, 09:50:36 AM by LiTTleDRAgo »

Offline Zexion

  • Addicted to LoL
  • Chaos User
  • ******
  • Posts: 1519
  • LV: 69
  • Gender: Male
  • My anaconda don't...jk it does
    • View Profile
Re: [XP][VX] Custom Picture Path
« Reply #1 on: August 03, 2013, 08:36:29 AM »
Question, does this only work on the default directories, or will it work on say
Code: [Select]
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
Code: [Select]
custom_pict('graphics/pictures/Battle - HUD/' ,'button-01')In a common event, and it gave me a syntax error :s

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 851
  • LV: 517
  • Gender: Male
    • View Profile
    • ~
Re: [XP][VX] Custom Picture Path
« Reply #2 on: August 03, 2013, 08:47:23 AM »
I believe it's not case sensitive
try to use it like this

Code: [Select]
folder = 'graphics/pictures/Battle - HUD/'
file = 'button-01'
custom_pict(folder,file)

Offline Zexion

  • Addicted to LoL
  • Chaos User
  • ******
  • Posts: 1519
  • LV: 69
  • Gender: Male
  • My anaconda don't...jk it does
    • View Profile
Re: [XP][VX][VXA] Custom Picture Path
« Reply #3 on: August 04, 2013, 04:12:05 PM »
It still doesn't work :(
Is it because it won't work in a common event o.o

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 851
  • LV: 517
  • Gender: Male
    • View Profile
    • ~
Re: [XP][VX][VXA] Custom Picture Path
« Reply #4 on: August 04, 2013, 11: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)

Offline Zexion

  • Addicted to LoL
  • Chaos User
  • ******
  • Posts: 1519
  • LV: 69
  • Gender: Male
  • My anaconda don't...jk it does
    • View Profile
Re: [XP][VX][VXA] Custom Picture Path
« Reply #5 on: August 04, 2013, 11:37:15 PM »
Here ya go.
http://uppit.com/nr1hoyvniu1t/CommonEvents.rxdata
Edit:
It's the 10th event, should say Battle HUD

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 851
  • LV: 517
  • Gender: Male
    • View Profile
    • ~
Re: [XP][VX][VXA] Custom Picture Path
« Reply #6 on: August 05, 2013, 01:48:07 PM »
Here ya go.
http://uppit.com/nr1hoyvniu1t/CommonEvents.rxdata
Edit:
It's the 10th event, should say Battle HUD

(click to show/hide)

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

Offline Zexion

  • Addicted to LoL
  • Chaos User
  • ******
  • Posts: 1519
  • LV: 69
  • Gender: Male
  • My anaconda don't...jk it does
    • View Profile
Re: [XP][VX][VXA] Custom Picture Path
« Reply #7 on: August 05, 2013, 04:27:46 PM »

Offline LiTTleDRAgo

  • Astral Trancist
  • *****
  • Posts: 851
  • LV: 517
  • Gender: Male
    • View Profile
    • ~
Re: [XP][VX][VXA] Custom Picture Path
« Reply #8 on: August 05, 2013, 04:37:34 PM »
you typed it wrongly

Quote
folder = 'Graphics/Pictures/Battle
HUD/'

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

it should be

Quote
folder = 'Graphics/Pictures/Battle ' +
'HUD/'

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

or

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

Offline Zexion

  • Addicted to LoL
  • Chaos User
  • ******
  • Posts: 1519
  • LV: 69
  • Gender: Male
  • My anaconda don't...jk it does
    • View Profile
Re: [XP][VX][VXA] Custom Picture Path
« Reply #9 on: August 05, 2013, 04:50:56 PM »
Oh so if it passes the line then it doesn't count ? XD

Offline KK20

  • Master Scripter Fixer
  • Global Moderator
  • Guardian of Chaos
  • ****
  • Posts: 3197
  • LV: 385
  • Gender: Male
  • Choco Octo <3
    • View Profile
Re: [XP][VX][VXA] Custom Picture Path
« Reply #10 on: August 07, 2013, 03:22:44 AM »
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:
Code: [Select]
eval("folder = 'Graphics/Pictures/Battle")You can already see the problem: there's no second quotation mark to end the string. Hence, syntax error.
« Last Edit: August 07, 2013, 04:31:46 AM by KK20 »



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!

Offline Zexion

  • Addicted to LoL
  • Chaos User
  • ******
  • Posts: 1519
  • LV: 69
  • Gender: Male
  • My anaconda don't...jk it does
    • View Profile
Re: [XP][VX][VXA] Custom Picture Path
« Reply #11 on: August 07, 2013, 04:11:24 AM »
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: