Page 3 of 15
Re: mispad
Posted: 04 Mar 2011, 14:09
by elypter
wow, looks very nice already
Re: mispad
Posted: 04 Mar 2011, 17:28
by Pyro
Looks really cool
Since you mentioned you'll be able to pick what colours things like functions are, can you also change the colour of the background? Sorry if it's already been mentioned!

Re: mispad
Posted: 04 Mar 2011, 21:52
by B-$hep
Thanks guys.
Yep.
- The background color
- Font
- Font color
- etc...
Even color of commas, dots, brackets and else.
You see it already from screenshots also.
And more good news: my fever decreased to 36.9
Re: mispad
Posted: 06 Mar 2011, 15:18
by B-$hep
I got a question for you script coders here.
Is multi tabbed editing possibility needed?
I mean, do you edit multiple files at one time or your scripts are usually in one large file?
And you don't have multiple mis files required for one level?
For example: you do something in first script and then you must modify something in another script.
I'm just thinking here: to add the tabs or not.
Re: mispad
Posted: 06 Mar 2011, 15:27
by elypter
i have some maps that have muliple script files but i usually don't edit them at the same time. what happens more often is that i want to copy something or look up how something works on another map. A tab feature would be practical but it's not essential because i can use notepad++ for that too. So only do it if it is not too much work for you.

Re: mispad
Posted: 06 Mar 2011, 15:30
by B-$hep
OK, i will think about it and will see how it could look.
But i add the file monitor for sure. So if some other editor modifies the currently opened file in MisPad then MisPad will ask, if file should be reloaded.
Re: mispad
Posted: 06 Mar 2011, 19:29
by elypter
yeah, thats important. notepad++ and TMs editor have this feature too. there is one thing thats annoying with npp: when you reload the file it uncollapses everything. could you please try to preserve the code folding status. maybe it's not easy when nodes can be added or deleted but at least most should stay the same. Or even if it remembers it only when no nodes are changed would be very useful.
Re: mispad
Posted: 10 Mar 2011, 22:25
by B-$hep
elypter wrote:could you please try to preserve the code folding status. maybe it's not easy when nodes can be added or deleted but at least most should stay the same. Or even if it remembers it only when no nodes are changed would be very useful.
I have to dig into codefolding unit then and try to save it's state to INI or registry directly in codefolding unit. It should be easier that way.
Atm im working on highlighting color settings dialog stuff.
Because MIS highlighting settings & info (colors, styles etc) is saved in external file it needs some tricks to make work and editable by user.
Maybe not for the others but i seem to like hack things working rather than thinking more about the problem, probably because im lazy.
So it's biggest but very interesting task atm.
Re: mispad
Posted: 15 Mar 2011, 10:37
by B-$hep
OK, i found another VCL that actually is more stable than Synedit. I mean especially the codefolding stuff and managing the highlighting colors and stuff is a lot easier.
So atm im trying it out. Seems very pretty.
It looks like SynEdit but the core is actually completely different.
And i can use it in Delphi 3. Which makes very small exes.
Here is example screenshot with new VCL.
This will be final VCL i think. It has many good features: folding etc.
It has alot of things configurable.
Highlighting colors will be easier to modify.
This is just my todays completed highlighter. Added all known commands and assigned
colors to them. But i will change them of course, some colors do not look so well.
And when i get home from my job i will probably start messing with codefolding.
Folding is much nicer in this particular VCL. Again alot of stuff can be configured to suit one's needs.
Folding example (very basic):
EDIT
Bracket highlighting in action (again very basic example)

Re: mispad
Posted: 20 Mar 2011, 23:51
by B-$hep
Just to let you know where i am atm.
Colorizing stuff is working, user can modify the colors to fit his needs.
And now im trying to make autocompletion to work properly.
Actually it works but there are few "cosmetic" changes to make and small bugs to fix.
I really like it, because it speeds up script creation alot.
You basically type half of the command, for example:
and it will display the small popup at cursor with current command
and when you hit enter it completes it for you.
Most of the time you will hit enter, because it writes most of the code for you.
Soon i will try to post some demo or video about how it works.
It's very alpha atm to actually post it.
Stay tuned.
Re: mispad
Posted: 21 Mar 2011, 00:00
by elypter
very nice progress
Re: mispad
Posted: 21 Mar 2011, 00:10
by Pyro
Auto-complete sounds awesome, hope it works out
If there are multiple choices for auto-complete, how would we choose? Would it just be mouse and click the option or can we use the arrow keys to select and then press enter (I prefer the second option)? Of course, how many letters do you need to type before auto-complete kicks in? First letter? Second? If it was the first letter the list could end up pretty massive in some cases

Re: mispad
Posted: 21 Mar 2011, 10:50
by B-$hep
Tooltips are displayed when you typed some command. It shows you what parameters the current command expects:
Another:
But because most of the GTA2 mis commands are in such format:
Code: Select all
]somestringe = AWESOME_GTA2_COMMAND (bla, bla, bla
Another example:
Code: Select all
charname = CREATE_CHAR ( float X , float Y ) remap rotation occupation END
I mean there are more stuff after final closing bracket.
Because of this, my implementation doesn't fully work.
I have to parse it more carefully. But it will be done.
Because its useful, i don't have to remember every parameter the current function or command has.
Pyro
Yes, you can use arrow keys and hit enter. It's very fast and i like to use it myself also.
It's same like in Delphi. It makes writing code a lot faster.
To be honest, i haven't added all commands to autocomplete but only few, to see how it reacts.
Just the first look at this stuff.
Re: mispad
Posted: 21 Mar 2011, 22:51
by BenMillard
Could you prevent hangs due to valid but unsupported folder and file names? I just hit a problem where I had to rename a folder to make
.mis files compile.
- Fail: C:\Program Files\Rockstar Games\GTA2\Mods by Elypter\Tiny Tiny Tiny Town\tiny3-arena.mis
- Pass: C:\Program Files\Rockstar Games\GTA2\Mods by Elypter\Tiny3 Town\tiny3-arena.mis
Various other filenames failed, until I changed that folder name.
Re: mispad
Posted: 21 Mar 2011, 22:55
by B-$hep
Hmm, never tried so long path names.
But i already have one idea how to fix that.
But how it hangs? The compiler (miss2) or MisPad?
Re: mispad
Posted: 22 Mar 2011, 05:26
by Pyro
On a similar note, can you check various MIS file names not compiling properly? If you remember I made a post about it
here. Cheers.
Still want to finish my single player script tutorial with missions

Re: mispad
Posted: 22 Mar 2011, 09:59
by B-$hep
Ok, now i understand what crashes are there.
I had similar ones some times.
I already have few ideas how to fix it.
How you guys write your scripts mostly?
All in uppercase or all in lowercase or mixed?
Just wondering here, what the autocompleter should use.
Should it complete like this:
or like this
or like this
Of course it probably should be configurable, but atm it's hardcoded.
Re: mispad
Posted: 22 Mar 2011, 10:18
by Sektor
I write usually write commands in uppercase and parameters in lowercase.
GIVE_WEAPON ( p1, machine_gun )
Re: mispad
Posted: 22 Mar 2011, 11:08
by elypter
me too
Re: mispad
Posted: 22 Mar 2011, 18:05
by Pyro
Me three.
