Raised This Month: $12 Target: $400
 3% 

Help with spcomp switch


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Facksy
Senior Member
Join Date: Apr 2017
Location: +2+2
Old 07-03-2018 , 17:42   Help with spcomp switch
Reply With Quote #1

hey guys, i got problems with changing the output of spcomp when i want to convert .sp to .smx. What I usually do is to drap the .sp into the spcomp.exe and it compile it and the .smx is created in this folder (scripting), I'd like to change the output so the .smx automatically spawn into the plugins folder. I created a shortcut to be able to add a command line:
Code:
C:\hlserver\tf2\tf\addons\sourcemod\scripting\spcomp.exe -o"..\plugins\test.smx"
Now when I drag a .sp into the spcomp, it compile and the .smx is sent to the plugin folder under the name "test.smx", but me I'd like the .smx to take the same name of the .sp and idk how to do that:
Code:
C:\hlserver\tf2\tf\addons\sourcemod\scripting\spcomp.exe -o"..\plugins\"
This doesnt work
__________________
My Steam I take private requests if related with TF2
My Plugins
Facksy is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 07-03-2018 , 21:15   Re: Help with spcomp switch
Reply With Quote #2

The switch takes the full output path including filename. Instead, changing the shortcut so the working directory is the output path might work. If not, you'll probably have to make a batch file or PowerShell/other script to put in the middle to provide your desired argument to -o.
Fyren is offline
Facksy
Senior Member
Join Date: Apr 2017
Location: +2+2
Old 07-04-2018 , 05:33   Re: Help with spcomp switch
Reply With Quote #3

I dont know how to do a batch file to deal with that :/
__________________
My Steam I take private requests if related with TF2
My Plugins
Facksy is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:39.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode