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

[EXE+EXTENSION]SourcePawn Compiler GUI (RC 30.1.11)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
FaTony
Veteran Member
Join Date: Aug 2008
Old 11-06-2010 , 09:32   [EXE+EXTENSION]SourcePawn Compiler GUI (RC 30.1.11)
Reply With Quote #1

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.
Attached Files
File Type: zip SPCompilerGUI.zip (80.6 KB, 1257 views)
File Type: zip AutoPluginReload.zip (31.5 KB, 414 views)
File Type: zip AutoPluginReload-src.zip (17.7 KB, 307 views)
__________________

Last edited by FaTony; 09-27-2012 at 20:39.
FaTony is offline
Zuko
SourceMod Donor
Join Date: Sep 2006
Location: Poland
Old 11-06-2010 , 10:29   Re: [EXE]SourcePawn Compiler GUI (BETA 06.11.10)
Reply With Quote #2

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
Attached Thumbnails
Click image for larger version

Name:	bat.png
Views:	1200
Size:	40.9 KB
ID:	76815  
__________________
Zuko is offline
Send a message via ICQ to Zuko
Swixel
Senior Member
Join Date: Jul 2010
Location: Sydney, Australia
Old 11-06-2010 , 10:57   Re: [EXE]SourcePawn Compiler GUI (BETA 06.11.10)
Reply With Quote #3

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 View Post
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 View Post
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 View Post
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 View Post
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.

Last edited by Swixel; 11-06-2010 at 11:11.
Swixel is offline
Mavrick4283
Veteran Member
Join Date: Apr 2010
Location: 127.0.0.1@root
Old 11-06-2010 , 12:43   Re: [EXE]SourcePawn Compiler GUI (BETA 06.11.10)
Reply With Quote #4

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.
Mavrick4283 is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 11-06-2010 , 13:02   Re: [EXE]SourcePawn Compiler GUI (BETA 06.11.10)
Reply With Quote #5

Quote:
Originally Posted by Mavrick4283 View Post
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.
__________________
asherkin is offline
Seta00
The Seta00 user has crashed.
Join Date: Jan 2010
Location: Berlin
Old 11-06-2010 , 16:09   Re: [EXE]SourcePawn Compiler GUI (BETA 06.11.10)
Reply With Quote #6

Quote:
Originally Posted by asherkin View Post
Only SourceMod plugins and Extensions are under the GPL.
the world will end
Seta00 is offline
Bacardi
Veteran Member
Join Date: Jan 2010
Location: mom's basement
Old 11-06-2010 , 16:18   Re: [EXE]SourcePawn Compiler GUI (BETA 06.11.10)
Reply With Quote #7

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 ?

Last edited by Bacardi; 11-06-2010 at 16:49.
Bacardi is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 11-06-2010 , 18:19   Re: [EXE]SourcePawn Compiler GUI (BETA 06.11.10)
Reply With Quote #8

Quote:
Originally Posted by Bacardi View Post
Do I need Visual C++ to get this run ?
Yes, forgot about that, added link to first post.
__________________
FaTony is offline
AtomicStryker
Veteran Member
Join Date: Apr 2009
Location: Teutonia!!
Old 11-06-2010 , 19:10   Re: [EXE]SourcePawn Compiler GUI (BETA 06.11.10)
Reply With Quote #9

Why use an external program when theres scripts to compile directly from Notepad++
AtomicStryker is offline
KyleS
SourceMod Plugin Approver
Join Date: Jul 2009
Location: Segmentation Fault.
Old 11-07-2010 , 13:03   Re: [EXE]SourcePawn Compiler GUI (BETA 06.11.10)
Reply With Quote #10

Quote:
Originally Posted by AtomicStryker View Post
Why use an external program when theres scripts to compile directly from Notepad++
Link?
KyleS 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 13:26.


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