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?

Xp3r7 11-07-2010 13:18

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

Originally Posted by Kyle12 (Post 1344312)
Link?

Yea, same here!

I would like a link too.

YamiKaitou 11-07-2010 13:37

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

Originally Posted by Kyle12 (Post 1344312)
Link?

Somewhere in this thread, https://forums.alliedmods.net/showthread.php?t=93892

FaTony 11-07-2010 15:36

Re: [EXE]SourcePawn Compiler GUI (BETA 07.11.10)
 
Beta 2 released.
Stay tuned for Beta 3 with new features.

Bacardi 11-08-2010 07:35

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

Originally Posted by YamiKaitou (Post 1344364)

I use these post combination
#49
#52

FaTony 11-08-2010 18:36

Re: [EXE]SourcePawn Compiler GUI (BETA 09.11.10)
 
Beta 3 is out.

FaTony 11-22-2010 17:36

Re: [EXE]SourcePawn Compiler GUI (BETA 23.11.10)
 
Beta 4 is out. Now with command line support and embeddable into your favorite IDE.

FaTony 12-04-2010 16:07

Re: [EXE]SourcePawn Compiler GUI (BETA 4.12.10)
 
Beta 5 is out. This is most likely the last beta. Next version should be release candidate.

FaTony 12-15-2010 17:18

Re: [EXE+EXTENSION]SourcePawn Compiler GUI (RC 16.12.10)
 
Release Candidate 1 is out. Please see the first port. Next version should be final (with the source code too).

FaTony 01-01-2011 21:59

Re: [EXE+EXTENSION]SourcePawn Compiler GUI (RC 16.12.10)
 
Auto Plugin Reload updated. This is a small update. No new features added. Major source code cleanup.

EDIT: GUI RC2 released. Sorry, no source code for now as I've discovered major bug in RC1 and was fixing it. I want to clean the code before I release it because it was written quick and dirty and I'm partly ashamed of it.

EDIT2: RC3 released. Hotfix release.

FaTony 01-30-2011 01:23

Re: [EXE+EXTENSION]SourcePawn Compiler GUI (RC 30.1.11)
 
RC4 released. Major usability update. Again, if no bugs will be found in this one, the next version will be considered stable and I'll release the source.

FaTony 02-27-2011 20:46

Re: [EXE+EXTENSION]SourcePawn Compiler GUI (RC 30.1.11)
 
I really look forward for the next release to be "stable" with source code included. However, I also think I can separate all portable code from the MFC and make it easy to port to another GUIs. But I need to know if anyone is really interested in that being done. Opinions?

FaTony 08-16-2012 00:54

Re: [EXE+EXTENSION]SourcePawn Compiler GUI (RC 30.1.11)
 
Auto Plugin Reload has been updated to be compatible with the latest version of Sourcemod.

asherkin 02-25-2015 08:07

Re: [EXE+EXTENSION]SourcePawn Compiler GUI (RC 30.1.11)
 
Don't run the extension included with this, it causes server crashes due to using the SourceMod API from a different thread. It's also insecure as hell if internet-facing.


All times are GMT -4. The time now is 18:46.

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