[RUBY] Depack Thread Problem
#1
Welcome. I have a small problem.

I'm created packing system to RMXP.

To depack resources I used the application Depack.exe. Sample use of depack.exe from cmd is:
Code:
depack.exe 'audio/bgm/grass.mid'
('Audio/BGM/Grass.mid') is the path of the resource

I try to make a method get_res in RGSS to use this application to depack resources.
Application depacks resource from PAK file to 'temp.rbx'.

It's my method, but this doesn't work.

Code:
module PAK
def self.get_res(res)
Thread.new(res){ system('depack.rb') }
end
end

Can any people help me solve this?
}
#2
To close. I solve it myself.

To make thread:

arguments = 'Audio/Bgm/Grass.mid'
Thread.new{ system("depack.rb #{arguments}") }
}


Possibly Related Threads…
Thread Author Replies Views Last Post
   The z-space problem of displaying sprites icogil 28 13,240 03-05-2023, 03:31 AM
Last Post: DerVVulfman
   Name Detector? (More info in thread) justpassingby 8 12,315 10-13-2017, 06:02 AM
Last Post: justpassingby
   The Self Data Suite support thread PK8 0 3,724 07-18-2015, 09:41 PM
Last Post: PK8
   Problem with drain script form the ATOA ACBS Djigit 2 5,651 07-12-2015, 09:17 PM
Last Post: Djigit
   Event collision problem with FPLE script ThePrinceofMars 2 5,861 11-11-2014, 06:30 PM
Last Post: ThePrinceofMars
  Custom meter problem daylights 13 16,475 08-12-2013, 03:34 AM
Last Post: daylights
   Ruby, RGSS & General Code Discussion Kain Nobel 6 11,079 12-22-2012, 05:11 AM
Last Post: MechanicalPen
   Advantages & Charlie Fleed CTB problem Yin 7 12,146 12-12-2011, 03:45 PM
Last Post: Yin
   Charlie Fleed's CTB - Problem with dual wielding characters MegaPowerNinja 2 5,966 04-25-2011, 09:51 AM
Last Post: Charlie Fleed
   Slight problem with Omega Quest script. Boot 4 8,776 03-08-2011, 02:53 AM
Last Post: BlackDragon 31



Users browsing this thread: 1 Guest(s)