This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

How to edit sp file and convert to smx ?


Post New Thread Reply   
 
Thread Tools Display Modes
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 11-29-2011 , 17:46   Re: How to edit sp file and convert to smx ?
Reply With Quote #11

powerlord - are you able to get pawnstudio to do proper ... I don't know what it's called, but when you start to type a function or something, it pops up a hint thing that shows you the actual function and what each variable is - whatever's in the include file?

like how NP++ does
TnTSCS is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 12-01-2011 , 09:35   Re: How to edit sp file and convert to smx ?
Reply With Quote #12

Quote:
Originally Posted by TnTSCS View Post
powerlord - are you able to get pawnstudio to do proper ... I don't know what it's called, but when you start to type a function or something, it pops up a hint thing that shows you the actual function and what each variable is - whatever's in the include file?

like how NP++ does
Yes, but only if the include file is in the SourceMod include directory or included using a relative path.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 12-01-2011 , 10:41   Re: How to edit sp file and convert to smx ?
Reply With Quote #13

I think I figured out what's going on...

it would put the small little hint box when you were typing but would only show more details if you put your mouse over it... I was hoping to have it always show more details instead of the smaller hint box.

I'm switching back to pawnstudio from NP++... just need to get the colors right... for some reason, pawn studio shows the following as a partial comment because of the //'s

#define URL "http://blahblah.com"

it shows //blahblah.com in the comment colors...

...:: TnT Edit ::...

Oops.. it looks like I'm trying to hijack this thread - not my intention

Last edited by TnTSCS; 12-01-2011 at 10:42.
TnTSCS is offline
Dr. McKay
Sir Dr. SourceMod Plugin Approver Esq. Ltd. M.D. PhD
Join Date: Aug 2011
Location: Atlantis
Old 12-01-2011 , 23:34   Re: How to edit sp file and convert to smx ?
Reply With Quote #14

Quote:
Originally Posted by TnTSCS View Post
I think I figured out what's going on...

it would put the small little hint box when you were typing but would only show more details if you put your mouse over it... I was hoping to have it always show more details instead of the smaller hint box.

I'm switching back to pawnstudio from NP++... just need to get the colors right... for some reason, pawn studio shows the following as a partial comment because of the //'s

#define URL "http://blahblah.com"

it shows //blahblah.com in the comment colors...

...:: TnT Edit ::...

Oops.. it looks like I'm trying to hijack this thread - not my intention
Wait wait wait. You got NP++ to do the little popup thing? HOW?? Is there one for PHP? That's all that NP++ is missing for me to be a complete IDE.
__________________
Dr. McKay is offline
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 12-02-2011 , 11:24   Re: How to edit sp file and convert to smx ?
Reply With Quote #15

ya... NP++ does the pop up hint box when you're coding - but only for <sourcemod> <cstrike> and <sdktools>

I'm going to either manually enter the other includes or run a script to add them to the sourcemod.xml.

The updated sourcemod.xml HERE is what I use for the hint pop up box thing... I use an older version of the userdefinedlanguage xml file because the one he posted incorrectly parses the text and creates funny looking colors sometimes
TnTSCS is offline
McFlurry
Veteran Member
Join Date: Mar 2010
Location: RemoveEdict(0);
Old 12-02-2011 , 11:39   Re: How to edit sp file and convert to smx ?
Reply With Quote #16

The pop up thing you mention is called auto complete. Enable it in Settings>Preferences>Backup/Auto-Completion
Tick Enable Auto-Completion on each input and Function parameter hints on input if you want it to help you with parameters. Also sourcemod.xml does highlight <tf2> and <tf2_stocks>.
McKay, it already has a php function library.
__________________
McFlurry is offline
Send a message via Skype™ to McFlurry
TnTSCS
AlliedModders Donor
Join Date: Oct 2010
Location: Undisclosed...
Old 12-02-2011 , 11:58   Re: How to edit sp file and convert to smx ?
Reply With Quote #17

I just wish there was an easy way to update the sourcemod.xml with extra includes - smlib, sdkhooks, colors, updater... those are the ones I use most

but I'm working on it - need to fix my linux box so a script can create it - pearl script from here

ya, the hint box is autocomplete and the coloring of the text is syntax highlighting

pawnstudio is cool, but it crashes sooooo much - yesterday especially when typing LoadTranslations("blahblah"); it will crash even if I just place the curser in between the quotes...

same when typing SDKHook(entity, SDKHook_Spawn, SDKHook_OnEntitySpawn);... it will crash as soon as I start typing entity

it was crashing so much I went back to NP++

The reason Pawnstudio is better, IMO, is that it will load the .inc for autocomplete as I type the include... if NP++ did that, I would just use it, but it doesn't. I switch between both

Last edited by TnTSCS; 12-02-2011 at 12:07.
TnTSCS is offline
Elpapuh
Member
Join Date: Aug 2017
Old 09-01-2017 , 10:01   Re: How to edit sp file and convert to smx ?
Reply With Quote #18

Quote:
Originally Posted by Powerlord View Post
It requires a third-party dependency, specifically the Socket extension.

In this case, you'll need to:
  1. Download SourceMod for your OS (Windows?)
  2. Extract the file you downloaded somewhere.
  3. Put Socket's socket.inc in SourceMod's addons/sourcemod/scripting/include/ folder.
  4. Put the plugin you want to compile in addons/sourcemod/scripting/ folder.
  5. Drag the sp file to spcomp.exe


One drawback of this is that the window will likely be immediately hidden if there's a compile failure.

Still assuming Windows, the other way requires you to run cmd.exe, navigate to SourceMod's scripting folder, and run spcomp.exe pluginname.sp

------------------------
But when I download SourceMod i dont have socket.inc
Elpapuh is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 09-01-2017 , 11:41   Re: How to edit sp file and convert to smx ?
Reply With Quote #19

Quote:
Originally Posted by Elpapuh View Post
------------------------
But when I download SourceMod i dont have socket.inc
As the post you helpfully quoted states, the Sockets extension is not part of SourceMod.
__________________
asherkin 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 07:20.


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