Vice Underdogs

Scripting => Script Showroom => Topic started by: MaDKilleR on July 09, 2012, 05:14:01 pm

Title: Squirrel Pad - Multi Tabbed, Event / Functions with parameters etc!
Post by: MaDKilleR on July 09, 2012, 05:14:01 pm
Squirrel Pad VC:MP

Here's my little project Squirrel Pad VC:MP. Maybe, you'll thinking that i'm to good at copying but when i saw EazySquirrel, it gave me an idea to make something like it so i did. I haven't copied anything but yes somewhere, EazySquirrel was an inspiration for me. This was to be written in C++ rather then C# but i was unable to do that but surely, next version is going to be in C++. Not sure if it's totally free from bugs as there are one or two always in there but i didn't found one except some events..

So to the point,
- Squirrel Pad is multi-tabbed like Notepad++ and can be usefull for those who're writing there gamemodes from scratch as while clicking on the events / functions, it will be added with it's parameters, e.g if you double click on OnScriptLoad, it will add in the current opened tab:
Quote
function OnScriptLoad()
{

}

- You can hide the Events / Functions tab by clicking on "Hide Events / Functions" and if you need them again, go to Events / Functions -> Add an Event / Function and the section will be visible again :)

- A Taskbar at the top providing you shortcuts.

- A Style menu allowing you to change font color, background color, enable / disable word wrap ( disabled by default ).

So give it a try let me know about your views:
(https://viceunderdogs.com/proxy.php?request=http%3A%2F%2Fi49.tinypic.com%2F15xmji8.png&hash=e155a40409319516ef753bf5b779394b96d5c763) (http://www.mediafire.com/?cvnc20z33hma4wb)

You can view how Squirrel Pad looks by clicking here (http://humzakhan.co.cc/images/eee.jpg).

Important Note: You need .NET Framework v2.0 or higher in order to run this application. Sorry about this :X

Edit: the second 'line: column:' isn't working fine. Forgot to remove it so please ignore it..
Title: Re: Squirrel Pad - Multi Tabbed, Event / Functions with parameters etc!
Post by: Knucis on July 09, 2012, 05:42:06 pm
Nice job :)
Title: Re: Squirrel Pad - Multi Tabbed, Event / Functions with parameters etc!
Post by: Skirmant on July 09, 2012, 05:49:32 pm
Seems nice, but I have a couple complaints/suggestions.

Complaints:

As you mentioned 'Length', 'Lines' and 'Column' are flawed.
Functions and events are difficult to browse in those bottom boxes.
undo/redo buttons are flawed.

Suggestions:

Merge functions and events and place them as a vertical box on the right (and make them customizable too!).
Add syntax highlighting for data types.
Add basic error checking (invalid number of { } ect..) .
Add custom code formatting (people have different styles of coding).

I think that with a few tweaks and improvements this can become something usable :D
Title: Re: Squirrel Pad - Multi Tabbed, Event / Functions with parameters etc!
Post by: MaDKilleR on July 09, 2012, 05:56:18 pm
Seems nice, but I have a couple complaints/suggestions.

Complaints:

As you mentioned 'Length', 'Lines' and 'Column' are flawed.
Functions and events are difficult to browse in those bottom boxes.
undo/redo buttons are flawed.

Suggestions:

Merge functions and events and place them as a vertical box on the right (and make them customizable too!).
Add syntax highlighting for data types.
Add basic error checking (invalid number of { } ect..) .
Add custom code formatting (people have different styles of coding).

I think that with a few tweaks and improvements this can become something usable :D
Thankx alot for your suggestions. I wanted to add Syntax Highlighting and some other tweeks but now, the one and only purpose with me is to re-write this in C++. I didn't added much in this because that was for the next C++ Version and also, i didn't had much time but about the events / functions listboxes, i'll place them vertically tomorrow as early as possible.
Title: Re: Squirrel Pad - Multi Tabbed, Event / Functions with parameters etc!
Post by: Inferno on July 09, 2012, 07:43:49 pm
Good job,that gonna be usefull.Ehm,i was thinking of adding a compile button using writeclosuretofile()? then it would liek the pawno.
Title: Re: Squirrel Pad - Multi Tabbed, Event / Functions with parameters etc!
Post by: GranDoIz on July 09, 2012, 09:21:23 pm
Nice work bro  ;)
Title: Re: Squirrel Pad - Multi Tabbed, Event / Functions with parameters etc!
Post by: WiLsOn on July 09, 2012, 09:36:16 pm
Nice Work :P
Title: Re: Squirrel Pad - Multi Tabbed, Event / Functions with parameters etc!
Post by: stormeus on July 09, 2012, 09:42:53 pm
Although the interface looks bearable and all known events and functions are documented, there are many gripes that I have with this tool:


I would not recommend this tool for general use in any way until the above issues are solved. On top of this, there are other issues that have also been brought up:

Commendable effort, but I don't want to post "nice, good job" when it could be improved in so many ways. I do look forward to seeing you implement these improvements.
Title: Re: Squirrel Pad - Multi Tabbed, Event / Functions with parameters etc!
Post by: Nadeem on July 10, 2012, 03:19:16 am
Nice though
Title: Re: Squirrel Pad - Multi Tabbed, Event / Functions with parameters etc!
Post by: MaDKilleR on July 10, 2012, 06:24:39 am
Although the interface looks bearable and all known events and functions are documented, there are many gripes that I have with this tool:
  • Some functions/events (like onBannedConnectionAttempt) simply output function onBannedConnectionAttempt { }, with no parameters specified.
  • Regardless of where you put the cursor, any function or event that you type in is added to the bottom of the page, making editing pre-existing scripts an absolute nuisance.
  • Objects such as Pickup.IsSpawned are represented as functions instead of class members. Squirrel Pad, when you double click on the entry, will display it as Pickup.IsSpawned()
  • Classes like Pickup, Player, and Vehicle are treated as if they do not require FindPlayer or FindVehicle, possibly confusing new scripters and annoying current ones.
  • Some functions like GetGlobalPickupRespawnTime are given a "Not Found" parameter list instead of either unlisting the function or making an effort to document it in the editor. This helps absolutely no one. Either find out what the parameters are or don't list it.


I would not recommend this tool for general use in any way until the above issues are solved. On top of this, there are other issues that have also been brought up:
  • No syntax highlighting (but I wouldn't worry about that too much since it's a complex task that wouldn't be accomplished on initial release)
  • Non-functional line/column fields at bottom
  • Broken undo function

Commendable effort, but I don't want to post "nice, good job" when it could be improved in so many ways. I do look forward to seeing you implement these improvements.
Parameters for some events are badly bugged and i was unable to solve them and yes, also the parameters for some functions are also missing due to lack of time, the main issue. This was just a try, i hope next version will be far better then this one ;)
Title: Re: Squirrel Pad - Multi Tabbed, Event / Functions with parameters etc!
Post by: Skirmant on July 10, 2012, 10:49:02 am
Parameters for some events are badly bugged and i was unable to solve them and yes, also the parameters for some functions are also missing due to lack of time, the main issue. This was just a try, i hope next version will be far better then this one ;)

One thing that would save you time is not keeping them in exe's memory. Why not just store them in a plaintext file that everyone (including you) can easily customize?
Title: Re: Squirrel Pad - Multi Tabbed, Event / Functions with parameters etc!
Post by: Rocky on July 10, 2012, 11:14:04 am
Looking cool, i will give it a try after my tuition class. i will make some backup links too..  :thumbsup:
Title: Re: Squirrel Pad - Multi Tabbed, Event / Functions with parameters etc!
Post by: MaDKilleR on July 10, 2012, 12:52:00 pm
One thing that would save you time is not keeping them in exe's memory. Why not just store them in a plaintext file that everyone (including you) can easily customize?
I'll try this by using an XML File..