Home Crush your enemies... and create an EMPIRE!!! Space Empires V -- BUY NOW!!!

User login

  • Create new account
  • Request new password

Navigation

  • news
    • archive
    • blogs
    • books
    • forums
    • recent posts
    • groups
  • image galleries
  • projects & downloads
  • search
  • create content
  • news aggregator

Search

Who's online

There are currently 4 users and 225 guests online.

Online users

  • Captain Kwok
  • marhawkman
  • Pham Nuwen
  • Phunky Phantom

Languages

  • English English
  • French French

Browse archives

« July 2008  
Mo Tu We Th Fr Sa Su
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31      
Home » news » forums » Support & Feedback » Scenarios & Mods » SE:V MODs

Script editor

Submitted by CherryMoon on Mon, 2007-01-22 18:01. SE:V MODs

Hello everybody,

I'm for quite some time getting into the scripting side of SEV, but I found that the recomended notepad was crude, very crude. I'm not very used to code that isn't colorcoded, and that bothered me a lot. So, I decided to make a little scheme for programmers notepad, an open source editor which can color the code a bit. Here's an example screenshot:

Okay, it isn't that elegant, but I find it a vast improvement. Now I can read and find things faster then when it was black only. So, when done I reallized that perhaps other people would like it and that's why I'm here now. I've uploaded it on rapishare, it's a zip file with PN zipped in it with the modification file (the file "SEVScripting.scheme"), normally it doesn't need a register entry to run so I believe that it just needs to be unzipped somewhere.

Of course, I reallize that because I'm quite new here and that no AV is godlike that some people will doubt the 'goodness' of the version that I distribute. For them, there is the official site here and the needed file ("SEVScripting.scheme") is within the zip archive, it can't be overlooked. When found, just copy it to the "schemes" directory in your fresly installed PN dir. Just make sure that the circled field on my screenshot is set to "SEV Scripting" when you'll edit (you can set PN so that every .txt file that is oppened will be edited in "SEV Scripting" scheme.

Here is the rapidshare link, I hope that it'll be of good use to the modding community.

BTW, Programmers Notepad is open source, it is not illigal to download the program, as since I did not change a thing & all honor still go's to the person who did write PN. I merely maked a file that colorcode's SEV's style of scripting language. Of course, I know it can improve a lot, and that there are maybe mistakes from my part, let me know and I'll look to it.

EDIT: Updated the link to the newer PN with the compile anywhere within PN batchfile.

‹ AI Test Homeworld facility ›
» login or register to post comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Captain Kwok's picture
Mod Designer

Thanks!

Submitted by Captain Kwok on Mon, 2007-01-22 19:21.

Thanks for this doing this. At one point I was going to do the same thing for Textpad but I was too lazy. Sticking out tongue

-----

Space Empires Depot | SE:V Balance Mod

» login or register to post comments

Thanks!

Submitted by Riptokus on Mon, 2007-01-22 23:57.

This is helpful. Thank you!

» login or register to post comments

You're welcome

Submitted by CherryMoon on Tue, 2007-01-23 04:15.

I'm glad that somebody tried it at least. I feared that there wasn't much trust in a newcomer like me who suddenly distributed an exe.

If there are any comments, any requests for changes, or any bugs (not with PN itself ofcourse Sticking out tongue), just let me know here. I've already said that it's still crude. It's colorcoding is somewhat limited because I used the default cpp lexer, which didn't like many different keyword classes. So, if there are request to have more different colors for more things (example: now, variable definitions and function definitions are in the same keyword class, it can be splitted to have 2 sorts of keywords classes) or when I find it would be much better to have more keyword classes, I'll attempt to write a new lexer.

Okay, I guess that unzipping it worked just fine? I assumed that it didn't need a registry entry to be able to run, but I wasn't really sure. I did a test when I unistalled PN and unzipped it. It worked, but there is a chance that that is because my first PN version was a version without uninstall information (aka: some lost registry entry). Or did you just download PN from it's official site and putted the scheme file in it's right dir? If so, then I can better distribute a zip with the installer and the scheme file.

Now that I come to think of it, PN can use tools. So, perhaps it's possible to configure it so that the scriptparser will be used by it? Then you've one integrated development platform, writing and compiling code in the same program. But that's something that I need to figure out how to. I suppose that I also need commandline parameters to make it run, but these arn't really available, are they? Oh well, it's something that *could* be possible, but I never did something like that before. I'll take a look into it.

Annyway, thanks already for trying it out Smiling

EDIT: Blasted! I just tried out to use the scriptparser as a tool. It works, but it only takes a relative path (=> \blabla\script.txt) as a parameter, not an absolute (=> C:\yadeyade\blabla\script.txt). Or I'm doing something wrong, but I doubt that Sticking out tongue. Oh well, I'll experiment a bit further now.

» login or register to post comments

Nice.

Submitted by Fallen Haven on Tue, 2007-01-23 05:07.

That's something that might be really useful. Scanning through tons of code like i do might become a bit easier with color... Good work!

» login or register to post comments

Re: Script editor

Submitted by Santiago on Tue, 2007-01-23 10:33.

That's really nice- works well

» login or register to post comments

Re: Script editor

Submitted by CherryMoon on Tue, 2007-01-23 14:13.

Hehe, I did it! I wrote a simple batch file that integrates the ScriptParser into Programmers Notepad. I uploaded PN with scheme and now with the batch file again [URL=http://rapidshare.com/files/13044029/PNForSEV.zip.html]here[URL]. Pitty enough I don't have the time currently for making a quickinstaller, I hope I will do soon, when I've more time. So, that's why I give here step by step instructions *with* pictures Eye-wink

Step 1: put the SEV.bat file in the Utilities\scriptparser directory (the same directory as the scriptparser)

Step 2: We are going to add a tool (the scriptparser). Goto the "tool" menu and select the "options" tab.

Step 3: Goto the tool entry (circled by red) make sure that the scheme is set to the SEV Script scheme (if not, the tool is used by another scheme, you can however make it a global tool, but since I didn't wanted to mix my SEV tools with my more profesional toosls, I only made it a scheme local one) and click then on "Add" (circled by red).

Step 4: The most difficult step: Give it a name (I gave mine the name "Compile SEV Script", at command, click on the button with "..." on it, locate the SEV.bat file that sits in the scriptparser directory, and use it. Then, goto the Folder line, and enter there the same path as above, but without the SEV.bat. Then, enter with parameters "-s %d %f %n" and click ok

Step 5: Use your new SEV Scripting IDE. it can compile from annywhere and will give feedback in the output window.

I hope you'll enjoy it! And I hope that I can find the time to make a one click installer that does everything for you. But for now, this has to work.

Oh, and if somebody finds a bug with it, or when the batch doesn't want to run, let me know it. I can test it only on 1 computer here, so I don't know if it will run everywhere. And of course I can always have made a mistake.

» login or register to post comments
Badger's picture

3 cheers for CherryMoon!

Submitted by Badger on Tue, 2007-01-23 14:22.

Do you by chance work Customer/Tech Support?

if not, you should?

very considerate, and VERY thorough! Well Done!

Anyone who wants power; by definition, cannot be trusted with it...

» login or register to post comments

Re: 3 cheers for CherryMoon!

Submitted by CherryMoon on Thu, 2007-01-25 10:34.

Badger wrote:
Do you by chance work Customer/Tech Support?

if not, you should?

very considerate, and VERY thorough! Well Done!

Anyone who wants power; by definition, cannot be trusted with it...

Hehe, thanks! It's just that when I seek for a tool, most of the times it's usage and setting the right settings is so obscure/not documented that I ditch it. Now, since I do know that this is far from an open source users/writers community, I assume that they are less willing to spend much time in figuring out how it works, that's why I make that step by step guide.

Annyway, I'm currious what the experiences are with the 'IDE' (PN + Compile anywhere batch file)? If someone who uses (if annyone for that matter) would be so kind to say if it works like it should be (editing + using the compiler without hassle) or if something is broken (I'm not very good with batch files, so, I could perhaps have used commands that are only supported by win XP, etc) or if something needs improvement (more colors for different keywords for example).

Annyway, I hope I'll recieve some feedback on it's use. I did spend some time to get it working here, now I would like to know if it works over there Eye-wink

» login or register to post comments

Re: Script editor

Submitted by zelos on Tue, 2007-03-13 10:42.

i downloaded the program and so but it was an exe file not an zip where is tehc ip file taht can be downloaded? id really like having tihs program:)

» login or register to post comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Now on STEAM

Now on STEAM!Space Empires V via STEAMSpace Empires IV via STEAMSTEAM online by Valve Corporation

Popular content

Today's:

  • Research By Percentage SUCKS
  • Governmet mod/patch/addon
  • Space Empires V 1.74
  • Tweaking the planet art without going all the way to FQM
  • Shipsets, Empires, and dead AIs

All time:

  • Space Empires V and VI: Expansions and the Future: Tell the Company What's on Your Wish List
  • Space Empires V
  • Gritty Galaxy Fleet Clash
  • Damn Dirty Bugs/Annoyances
  • Space Empires V: General Thoughts, Observations, and Suggestions

Last viewed:

  • Norak_Splash.jpg
  • Remaking the Empires
  • Space Empires V 1.74
  • Ordering SEV
  • Superior AI
(c) Strategy First, Inc. All rights reserved.