AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [EXE+EXTENSION]SourcePawn Compiler GUI (RC 30.1.11) (https://forums.alliedmods.net/showthread.php?t=142475)

FaTony 11-06-2010 09:32

[EXE+EXTENSION]SourcePawn Compiler GUI (RC 30.1.11)
 
3 Attachment(s)
SourcePawn Compiler GUI
Now with Auto Plugin Reload
[IMG]http://img543.**************/img543/1140/screenshotal.png[/IMG]

Features:
  • Easy-to-use user interface
  • Remembers up to 255 plugins
  • Automatic reloading of plugins on the server (requires extension)
  • Command line support for automation
  • Embeddable into IDEs.
  • 1 click compile-copy-reload

This application requires Visual C++ 2010 Redistributable.

Current version: RELEASE CANDIDATE 4
  • Added Plugin name field. Plugins are now selected based on their names. This solves the problem where it was difficult to choose the right one because of very long file paths.
  • Added Copy plugin button. You can now create new plugin (configs) faster.
  • Added Save plugins button. Should application fail, you will not lose last moment changes if you've saved them.
  • It is now possible to sort plugins.
  • Fixed occasional deadlocking of the application. (For real this time)
  • Decision to reload plugins is now saved separately of the server port. You can now set application not to reload plugins and still remember your server port.
  • Made server port default to 26196 to match that of APR.
  • Fixed bug in parsing the command line.

Source code will be available with the first stable release.

Zuko 11-06-2010 10:29

Re: [EXE]SourcePawn Compiler GUI (BETA 06.11.10)
 
1 Attachment(s)
Cool, but if someone wants to use bat file and "Windows SendTo":

http://zuko.ampaste.net/f3d95d143
Save as .bat and put in:
X:\Users\<user>\AppData\Roaming\Microsoft\Win dows\SendTo in Windows 7

Swixel 11-06-2010 10:57

Re: [EXE]SourcePawn Compiler GUI (BETA 06.11.10)
 
EDIT: I should add that this post isn't a joke, I'm serious. I may have gone about it in an indirect/comical way, but sed solves this problem just as easily as a command-line editor. I still do not see the purpose for this application, and until the source is opened I will fear it stealing my Steam blobs and/or my dog.

EDIT#2: According to my sources on IRC, some people may "need" this. However, if you have a GUI and find it hard to compile things, you could always drag the sourcefile onto spcomp.exe, or onto the compile file (compile.bat?), and then copy+paste the file.

Quote:

Originally Posted by FaTony (Post 1343137)
The name pretty much sums it up. No more command line gimmickry. You select all paths, you get smx where you wanted without need to write complicated bat's etc.

Default compile.sh:

PHP Code:

!/bin/bash

test 
-e compiled || mkdir compiled

if [[ $# -ne 0 ]]
then
    
for i in "$@";
    do
        
smxfile="`echo $i | sed -e 's/\.sp$/\.smx/'`";
      echo -
"Compiling $i...";
      ./
spcomp $i -ocompiled/$smxfile
    done
else

for 
sourcefile in *.sp
do
  
smxfile="`echo $sourcefile | sed -e 's/\.sp$/\.smx/'`"
  
echo -"Compiling $sourcefile ..."
  
./spcomp $sourcefile -ocompiled/$smxfile
done
fi 

So this checks for a 'compiled' directory ...
PHP Code:

test -e compiled || mkdir compiled 

Then compiles to it 'compiled' ...
PHP Code:

./spcomp $i -ocompiled/$smxfile 

Hrm ...

So two solutions...

Solution #1: Direct (no intermediate)
Code:

sed -ie 's/compiled/\.\.\/plugins/g' compile.sh
???
Profit?

Oh, but maybe I missed something ...

Quote:

Originally Posted by FaTony (Post 1343137)
Some clarification: it uses 2 step system mimicking original spcomp and Valve Hammer Editor. First, source file is compiled to the intermediate location. (Like scripting\compiled in compile.exe or sourcesdk_content in case of Hammer). And secondly, Intermediate file get copied to it's final location. (Usually \plugins directory).

Quote:

Originally Posted by FaTony (Post 1343137)
This program remembers all paths and saves it into the settings.ini on application closing.

So does env/screen!

Solution #2: Direct (no intermediate)

Oh, right, sorry, for some reason some of you only want to copy a file to plugins if it works (because, you know, there's some consideration that maybe the compiler will make a file when compilation fails).


PHP Code:

sed -ie 's/\.\/spcomp \$sourcefile -ocompiled\/\$smxfile/\.\/spcomp \$sourcefile -ocompiled\/\$smxfile \&\& cp compiled\/\$smxfile \.\.\/plugins\/\$smxfile/g' compile.sh 

Profit?


Quote:

Originally Posted by FaTony (Post 1343137)
Source code will be available with the first stable release.

Ew. Why would any run a closed-sourced Windows binary when they could run sed?

No sed on your windows install? I have it, and so can you.

Mavrick4283 11-06-2010 12:43

Re: [EXE]SourcePawn Compiler GUI (BETA 06.11.10)
 
I can not find the post to quote but grayscale said any one publishing programs or plugins with out the source code would be banned automatically so you HAVE to post the source with it even if it is not done.

asherkin 11-06-2010 13:02

Re: [EXE]SourcePawn Compiler GUI (BETA 06.11.10)
 
Quote:

Originally Posted by Mavrick4283 (Post 1343263)
I can not find the post to quote but grayscale said any one publishing programs or plugins with out the source code would be banned automatically so you HAVE to post the source with it even if it is not done.

Only SourceMod plugins and Extensions are under the GPL.
This is a utility program written from scratch.

Seta00 11-06-2010 16:09

Re: [EXE]SourcePawn Compiler GUI (BETA 06.11.10)
 
Quote:

Originally Posted by asherkin (Post 1343278)
Only SourceMod plugins and Extensions are under the GPL.

the world will end

Bacardi 11-06-2010 16:18

Re: [EXE]SourcePawn Compiler GUI (BETA 06.11.10)
 
Ok, how get this run ?
Coincidentally today I format my computer and re-install windows...

Now when I try run this it give me error
Quote:

SPCompilerGUI.exe - System Error
The program can't start because mfc100u.dll is missing from your computer.
Try reinstalling the program to fix this problem.
*edit
Do I need Visual C++ to get this run ? :P

FaTony 11-06-2010 18:19

Re: [EXE]SourcePawn Compiler GUI (BETA 06.11.10)
 
Quote:

Originally Posted by Bacardi (Post 1343398)
Do I need Visual C++ to get this run ? :P

Yes, forgot about that, added link to first post.

AtomicStryker 11-06-2010 19:10

Re: [EXE]SourcePawn Compiler GUI (BETA 06.11.10)
 
Why use an external program when theres scripts to compile directly from Notepad++

KyleS 11-07-2010 13:03

Re: [EXE]SourcePawn Compiler GUI (BETA 06.11.10)
 
Quote:

Originally Posted by AtomicStryker (Post 1343526)
Why use an external program when theres scripts to compile directly from Notepad++

Link?


All times are GMT -4. The time now is 22:27.

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