View Single Post
ThatOneGuy
Veteran Member
Join Date: Jul 2012
Location: Oregon, USA
Old 07-12-2017 , 23:59   Re: TOGs SourcePawn Syntax Converter [MS Excel Based for now]
Reply With Quote #39

Quote:
Originally Posted by T1MOXA View Post
@ThatOneGuy Thanks!
Your welcome!

Quote:
Originally Posted by SnowTigerVidz View Post
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:
  1. 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.
  2. Make sure your include path is set. The includes arent edited, but are used to define variable types, natives, forwards, etc.
  3. Click the button, and find the .sp file you want converted, and click ok.
  4. 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.
  5. 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.
  6. 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.
ThatOneGuy is offline