|
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
|
07-12-2017
, 23:59
Re: TOGs SourcePawn Syntax Converter [MS Excel Based for now]
|
#39
|
Quote:
Originally Posted by T1MOXA
@ThatOneGuy Thanks!
|
Your welcome!
Quote:
Originally Posted by SnowTigerVidz
How in the world do you even get this too work?
|
It is a Microsoft Excel based tool for now. All you need to do to use it is: - Open the tool. If there is a yellow bar at the top asking if you want macros enabled, say yes (that allows the code to run). If there is a dialogue asking if ActiveX should run, say yes. This allows the button to work, though you could say no and run the code directly from the VBA window.
- Make sure your include path is set. The includes arent edited, but are used to define variable types, natives, forwards, etc.
- Click the button, and find the .sp file you want converted, and click ok.
- The file will now be processed. The original file is left as is, and the new one is in the same location and has the text " newsyntax" added to the end. After this, the tool is done.
- After processing, you will see the following at the top of the code:
PHP Code:
/* put the line below after all of the includes! #pragma newdecls required */
Move the line of code (#pragma newdecls required) to be just past the last inlude. I may automate this step in the future as well.
- Make final edits for anything not handled by the processor (see original post for what all that is) until it compiles.
__________________
Last edited by ThatOneGuy; 07-13-2017 at 00:01.
|
|
|
|