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

compiler .sp on mac


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Deadpool51
Junior Member
Join Date: Jun 2016
Old 12-28-2016 , 13:35   compiler .sp on mac
Reply With Quote #1

Hello

Here I would like to know how to compile a .sp on mac by what I do not find the .exe as on sourcemode for Windows. I download sourcemod for mac after I put the file scrpting on my desk and I have these files there:

http://img15.hostingpics.net/pics/83...a768140950.png

I do not know how to make, I can put the .sp in none the files to compile and when I click on the file spcomp the terminal opens but I cannot write inside to enter commands

Somebody would have already done it on mac please

Thank you

ps : Sorry my english is bad

Last edited by Deadpool51; 12-28-2016 at 13:37.
Deadpool51 is offline
JOMENVEST
Member
Join Date: Dec 2016
Location: Sweden
Old 12-28-2016 , 15:17   Re: compiler .sp on mac
Reply With Quote #2

Picture doesnt work lulz.
__________________
JOMENVEST is offline
Deadpool51
Junior Member
Join Date: Jun 2016
Old 12-28-2016 , 15:21   Re: compiler .sp on mac
Reply With Quote #3

Sorry http://img15.hostingpics.net/pics/83...a768140950.png
Deadpool51 is offline
JOMENVEST
Member
Join Date: Dec 2016
Location: Sweden
Old 12-28-2016 , 15:41   Re: compiler .sp on mac
Reply With Quote #4

It should work if you use the compile.sh file hmm.. Do you mind sending a pic what pops up when you open compile.sh?
Anyways, you can always use the website compiler: https://www.sourcemod.net/compiler.php
__________________

Last edited by JOMENVEST; 12-28-2016 at 15:42.
JOMENVEST is offline
Deadpool51
Junior Member
Join Date: Jun 2016
Old 12-28-2016 , 17:29   Re: compiler .sp on mac
Reply With Quote #5

The probleme it s that in the .sp there are includes so i dont use https://www.sourcemod.net/compiler.php
Deadpool51 is offline
JOMENVEST
Member
Join Date: Dec 2016
Location: Sweden
Old 12-28-2016 , 18:20   Re: compiler .sp on mac
Reply With Quote #6

I understand, are you sure that the compile.sh file doesnt work? What does it say on use?
__________________
JOMENVEST is offline
Deadpool51
Junior Member
Join Date: Jun 2016
Old 12-28-2016 , 20:03   Re: compiler .sp on mac
Reply With Quote #7

the file compile.sh : i cant compile with this file

#!/bin/bash
cd "$(dirname "$0")"

test -e compiled || mkdir compiled

if [[ $# -ne 0 ]]; then
for i in "$@";
do
smxfile="`echo $i | sed -e 's/\.sp$/\.smx/'`";
echo -e "Compiling $i...";
./spcomp $i -ocompiled/$smxfile
RETVAL=$?
if [ $RETVAL -ne 0 ]; then
exit 1;
fi
done
else
for sourcefile in *.sp
do
smxfile="`echo $sourcefile | sed -e 's/\.sp$/\.smx/'`"
echo -e "Compiling $sourcefile ..."
./spcomp $sourcefile -ocompiled/$smxfile
RETVAL=$?
if [ $RETVAL -ne 0 ]; then
exit 1;
fi
done
fi
/Users/leo/Desktop/scripting/thc_rpg.sp
Deadpool51 is offline
JOMENVEST
Member
Join Date: Dec 2016
Location: Sweden
Old 12-28-2016 , 20:14   Re: compiler .sp on mac
Reply With Quote #8

Try to use the windows version of sourcemod and compile at the same way. If that doesnt work, I can compile it for you.
__________________
JOMENVEST is offline
Deadpool51
Junior Member
Join Date: Jun 2016
Old 12-29-2016 , 15:29   Re: compiler .sp on mac
Reply With Quote #9

I try but i can't as it's window

Last edited by Deadpool51; 12-29-2016 at 15:29.
Deadpool51 is offline
JOMENVEST
Member
Join Date: Dec 2016
Location: Sweden
Old 12-29-2016 , 15:40   Re: compiler .sp on mac
Reply With Quote #10

Should I compile it for you?
__________________
JOMENVEST is offline
Reply



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 18:08.


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