Lua Editor: Small Update on an Update... Syntax solution

Talk and share anything related to Star Wars Battlefront 2. No maps or mod announcements here. Use Work in Progress forum.

Moderator: Moderators

What framework do you think would be best for the program? Read about them

Microsoft .NET framework 3.5 Client Profile
6
75%
Microsoft .NET framework 4.0 Client Profile
2
25%
 
Total votes: 8
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: LUA Editer in progress - Update

Post by Fiodis »

For the record, the English word is spelt "editor".
501st_commander
Master Bounty Hunter
Master Bounty Hunter
Posts: 1570
Joined: Wed Dec 10, 2008 7:48 pm

Re: LUA Editer in progress - Update

Post by 501st_commander »

Fiodis wrote:For the record, the English word is spelt "editor".
rofl
I don't know why, but i always spelt it with an e.. I guess its because i pronounced it "edit-er" not "edit-or". Thanks for caching it. Fixing it in the program now and topic title...


Also, i have been working on the User Interface. Scren:
Hidden/Spoiler:
Image
Any Options?
myers73
Lieutenant General
Lieutenant General
Posts: 690
Joined: Fri Apr 03, 2009 11:04 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Atlanta, GA xfire=myers73 IngameName=mYers

Re: LUA Editor in progress - Update

Post by myers73 »

when you are done would you mind releasing the source code?
501st_commander
Master Bounty Hunter
Master Bounty Hunter
Posts: 1570
Joined: Wed Dec 10, 2008 7:48 pm

Re: LUA Editor in progress - Update

Post by 501st_commander »

myers73 wrote:when you are done would you mind releasing the source code?
If i would do so, may i ask what would you do with?

But for now, it will be closed source.
myers73
Lieutenant General
Lieutenant General
Posts: 690
Joined: Fri Apr 03, 2009 11:04 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Atlanta, GA xfire=myers73 IngameName=mYers

Re: LUA Editor in progress - Update

Post by myers73 »

I am currently learning to program, and I think that reading through the source code would be helpful.
501st_commander
Master Bounty Hunter
Master Bounty Hunter
Posts: 1570
Joined: Wed Dec 10, 2008 7:48 pm

Re: LUA Editor in progress - Update

Post by 501st_commander »

myers73 wrote:I am currently learning to program, and I think that reading through the source code would be helpful.
ah, ok.
myers73
Lieutenant General
Lieutenant General
Posts: 690
Joined: Fri Apr 03, 2009 11:04 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Atlanta, GA xfire=myers73 IngameName=mYers

Re: LUA Editor in progress - Update

Post by myers73 »

what language are you coding it in?
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: LUA Editor in progress - Update

Post by Maveritchell »

501st_commander
Master Bounty Hunter
Master Bounty Hunter
Posts: 1570
Joined: Wed Dec 10, 2008 7:48 pm

Re: LUA Editor in progress - Update

Post by 501st_commander »

Small Update:

I am working on the error checker. I have it working up to when you correct it.

Correct Text:
ReadDataFile("dc:SIDE\\rep.lvl",

Incorrect Text (common):
ReadDataFile("dc:SIDE\\rep.lvl"

What it does:
Hidden/Spoiler:
Image
I still have to fix some things. The text on the bottom need to go back to "No Errors." and the red is does not go way after you fix it. Also, if you save while it has an error, i will have a popup saying "There is an error. Do you what to save (filename)? NOTE: if you save it then munge, your mission will most likely will crash the game."

Any comments?
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: LUA Editor in progress - Update

Post by lucasfart »

501st_commander wrote:Small Update:

I am working on the error checker. I have it working up to when you correct it.

Correct Text:
ReadDataFile("dc:SIDE\\rep.lvl",

Incorrect Text (common):
ReadDataFile("dc:SIDE\\rep.lvl"
Sorry but, whats the difference between the two?

Sounds like a good idea though, especially for inexperienced scripters, who don't really know how to add punctuation properly....
Darth_Spiderpig
Sith Master
Sith Master
Posts: 2631
Joined: Fri Mar 27, 2009 10:23 am
Projects :: Something cool...
Games I'm Playing :: BF2 CoDBO BFBC2
xbox live or psn: Has no xbox....Yup
Location: Does whatever a Spiderpig does
Contact:

Re: LUA Editor in progress - Update

Post by Darth_Spiderpig »

lucasfart wrote:Sorry but, whats the difference between the two?

Code: Select all

ReadDataFile("dc:SIDE\\rep.lvl"
ReadDataFile("dc:SIDE\\rep.lvl",
The comma. :wink:


Nice, this will be very useful, commander. :thumbs:
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: LUA Editor in progress - Update

Post by lucasfart »

Lol, i think i'm gonna need to use this spell checker. Can't wait for the release...
501st_commander
Master Bounty Hunter
Master Bounty Hunter
Posts: 1570
Joined: Wed Dec 10, 2008 7:48 pm

Re: LUA Editor in progress - Update

Post by 501st_commander »

@Darth_Spiderpig: thanks.
lucasfart wrote:Lol, i think i'm gonna need to use this spell checker. Can't wait for the release...
no, not a spell checker, an error checker :P
myers73
Lieutenant General
Lieutenant General
Posts: 690
Joined: Fri Apr 03, 2009 11:04 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Atlanta, GA xfire=myers73 IngameName=mYers

Re: LUA Editor in progress - Update

Post by myers73 »

This is sounding better and better by the day. Will save a lot of time coding campaigns, but then again, people that dont know how to code are gonna try and use it and wont ever really learn, so when a problem arises they wont have a clue what they did wrong.
501st_commander
Master Bounty Hunter
Master Bounty Hunter
Posts: 1570
Joined: Wed Dec 10, 2008 7:48 pm

Re: LUA Editor in progress - Update

Post by 501st_commander »

I do plan on adding a "dedug help" popup of some kind. It will somehow tell you whats wrong line by line until there is no errors. The 0.5 beta release will be minimal. Mainly a test to see what operating systems it works on, and if it has any bugs. 1.0 release will be full. Hardly any bugs. Everything working, help docs, and for people who are just starting - a bit of lua docs (pm me if you want to help with this).

Edit:
Ok, the 0.5 relese my be longer. I am having troble with the syntax highlighter code. It crashes Visual Studio when i add it to the program.

Edit:
Stuped error EVER! fixed. Syntax highlighter now works. Expect screen soon.


Edit:

Update!
The syntax hilighter is working now!
Hidden/Spoiler:
Image
It updates as you type, and when you open a file.
Suggestions? (colors, additional keyword, etc.)
501st_commander
Master Bounty Hunter
Master Bounty Hunter
Posts: 1570
Joined: Wed Dec 10, 2008 7:48 pm

Re: LUA Editor in progress - Syntax Update pg2

Post by 501st_commander »

This will possibly be the last update before the 0.5 release.

I have been working on it trying to get it done within this month. I have lots of new features now than i did from the last post. I still have to get a few things working. Quickclick bar, and one new feature.

Feature List:
  • Now, you can make a project. You don't have to go to the scripts folder every time you edit a lua. (has some bugs)
    Notify Icon on taskbar - So you don't have to open it all the time.
    Options - You can enable and disable some of the features you dont want. They are:
    • Make this program default for opening Luas
      Create a project and manage them
      see a list of syntax highlighter sensitive words
      Enable or disable keyword, comment, string or integer highlighting
      manage the modtools directory location, and the type.
      Import scripts for reading. So if you need a ***c_eli.lua script, you can open it through the program
      Enable and disable the notify icon.
      Automatically open the last opened file.
      Show or hide the Quick Click Bar.
      Enable or disable the syntax highlighter all together.
I hope to have the error checker done my 1.5. You can go through hell to get it to work properly. Well, i'll post screens soon. 'Till then, please post comments.
User avatar
lucasfart
Sith
Sith
Posts: 1440
Joined: Tue Feb 24, 2009 5:32 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia

Re: LUA Editor in progress - Syntax Update pg2

Post by lucasfart »

oooh. Can't wait!

Just a quick question, Do you select a template lua(eli, con, hunt, ctf, etc.) inside the program and save it into the map you want, or do you load a pre-existing lua?
501st_commander
Master Bounty Hunter
Master Bounty Hunter
Posts: 1570
Joined: Wed Dec 10, 2008 7:48 pm

Re: LUA Editor in progress - Syntax Update pg2

Post by 501st_commander »

you select a pre-existing lua from the TEMPLATE or space_tempalte folder, then the program will auto remove the @#$ in the file to what your projects name is (aka: OOO).
501st_commander
Master Bounty Hunter
Master Bounty Hunter
Posts: 1570
Joined: Wed Dec 10, 2008 7:48 pm

Re: LUA Editor in progress - Syntax Update pg2

Post by 501st_commander »

Version 0.5 has been released. Please post any bugs in this topic.


I will psot the 1.0 list of things soon.




Edit:
1.0 Feature List
This list will contain what will be in the next version
  • MDI (Multi Document Interface) - Open more than one lua at a time
  • Better auto hide project panel
  • More BF2 Lua functions in the program
  • Support for the 3.5 framework (4.0 is recommended though)
  • Code comparator - popup of codes with the letters you typed in them
  • First Version of the error checker
  • Faster syntax highlighter
  • More customizable Interface
  • Better Options
  • Projects will be out of the options dialog.
  • One click open project
  • auto open last project
  • Format the rich text box for your needs
  • Make your own syntax higlighter colors and RTB backcolor
Please comment :)
501st_commander
Master Bounty Hunter
Master Bounty Hunter
Posts: 1570
Joined: Wed Dec 10, 2008 7:48 pm

Re: LUA Editor in progress - 1.0 feature list

Post by 501st_commander »

beta closed, read next post

Alright, private beta on 1.0 RC1 is coming. I need some people with one or more of the following operating systems:
  • Windows 7
    • Windows 7 Home Premium (64/32 bit) - CLOSED unless a staff member wants to test
      Windows 7 Professional (64/32 bit) - 4CLOSED unless a staff member wants to test
      Windows 7 Ultimate (64/32 bit) - 5 spots
    Windows Vista
    • Windows Vista Basic (64/32 bit) - 5 spots
      Windows Vista Home Premium (64/32 bit) - CLOSED unless a staff member wants to test
      Windows Vista Business (64/32 bit) - 5 spots
      Windows Vista Ultimate (64/32 bit) - 5 spots
    Windows XP
    • Windows XP Home Edition (64/32 bit) - CLOSED unless a staff member wants to test
      Windows XP Media Center (64/32 bit) - 3 spots
      Windows XP Professional (64/32 bit) - 3 spots
Windows 7 Starter will not be supported, but can be tested.

I need at least 2-5 people on each operating system.

Please PM me with computer specs, and I will get you a beta copy when ready and have further instructions. All entries will need to be in before August 14, 2010 - unless the operating system has no entries.

Update will be coming after beta test.


Edit:

Beta Testers so far:
Sky_216
AgentSmith_#27
Fiodis
fasty
stardestroyer001
darthtyren

------------------------------------------------------------------------------------------
Edit:
When you PM me, please make sure you have the specs in the following format:
Windows XP Media Center Edition Version 2002 Service Pack 3
AMD Athlon(tm) 64 Processor 3800+ : 1.8GHz
NVIDIA GeForce 6180 LE
3.00 GB RAM
500GB hard Drive
Framework 1.1, 2.0, 3.0, 3.5, 4.0 Client Profile
I need that information to make a compatibility chart.
To get the information, right click My Computer or Computer -> Properties

For the Frameworks:
Hidden/Spoiler:
How to determine which versions of the .NET Framework are installed
To determine which versions of the .NET Framework are installed, locate the %systemroot%\Microsoft.NET\Framework folder. To open this folder, you can paste this address into a Windows Explorer address bar. The following folders contain the released versions of the .NET Framework:
v3.5
v3.0
v2.0.50727
v1.1.4322
v1.0.3705
Note If you see other folders that have a vN.N.NXXXX format, they may contain beta versions or pre-released versions of the .NET Framework. Those versions are outside the scope of this article.

To determine which versions of the .NET Framework are installed on a computer, follow these steps:
1.Open any one of the folders in the previous list.
2.Right-click the Mscorlib.dll file, and then click Properties.
3.Click the Version tab, and then note the file version.
4.Use the previous list to determine which version of the .NET Framework is installed on the computer, and then click OK.
Repeat these steps for each version of the .NET Framework on the computer.
Thank you.
------------------------------------------------------------------------------------------
Post Reply