#Running Ruby Script with Absolute Paths

8 messages · Page 1 of 1 (latest)

cloud osprey
#

Hey all I have a ruby script that will generate a file depending on the paths you pass to it, ive been trying to get it to work by selecting the directories in Java with scenebuilder, and then running the ruby script with the passed paths.

Command: ruby C:\Users\SKYEWA~1\AppData\Local\Temp\makewad9069056469716641747.rb C:\Users\my name\Documents\github\fps\textures\textures C:\Users\my name\Documents\github\fps\textures\palette.lmp C:\Users\my name\Documents\github\fps\textures\wad\textures.wad
Building WAD...
Texture WAD exported to "C:\Users\my name\Documents\github\fps\textures\wad\textures.wad" successfully

It seems to run the ruby script, however when i open the output file it doesnt have any of the data it has when i just manually run the ruby scriptwith the paths

this is how the ruby script expects the arguments

Usage: makewad/makewad.rb: <in folder> <in palette> <out wad>

And this is my wad class on how i am making the wad
https://www.codebin.cc/code/cm12kpcb00001kw02e4iy9ywg:CDcZ8GXPBv2d6nKuBfJSvQT5k3TAyqXQC8MfBXYaqGvZ

wind wolfBOT
#

This post has been reserved for your question.

Hey @cloud osprey! Please use /close or the Close Post button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.

TIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here.

cloud osprey
scarlet holly
#

And that relates to Java, how?

cloud osprey
#

Because im coding the program in Java??????

#

Lmao

#

it is a java program that uses Java to run my ruby script