Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 [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 7,262 03-05-2023, 03:31 AM
Last Post: DerVVulfman
   Name Detector? (More info in thread) justpassingby 8 10,536 10-13-2017, 06:02 AM
Last Post: justpassingby
   The Self Data Suite support thread PK8 0 3,366 07-18-2015, 09:41 PM
Last Post: PK8
   Problem with drain script form the ATOA ACBS Djigit 2 4,897 07-12-2015, 09:17 PM
Last Post: Djigit
   Event collision problem with FPLE script ThePrinceofMars 2 5,206 11-11-2014, 06:30 PM
Last Post: ThePrinceofMars
  Custom meter problem daylights 13 13,985 08-12-2013, 03:34 AM
Last Post: daylights
   Ruby, RGSS & General Code Discussion Kain Nobel 6 9,776 12-22-2012, 05:11 AM
Last Post: MechanicalPen
   Advantages & Charlie Fleed CTB problem Yin 7 10,679 12-12-2011, 03:45 PM
Last Post: Yin
   Charlie Fleed's CTB - Problem with dual wielding characters MegaPowerNinja 2 5,248 04-25-2011, 09:51 AM
Last Post: Charlie Fleed
   Slight problem with Omega Quest script. Boot 4 7,678 03-08-2011, 02:53 AM
Last Post: BlackDragon 31



Users browsing this thread: