GTAMP.com

Grand Theft Auto Media Press
It is currently Thu May 23, 2013 6:35 am

All times are UTC




Post new topic Reply to topic  [ 260 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 13  Next
Author Message
 Post subject: Re: mispad
PostPosted: Fri Mar 04, 2011 2:09 pm 
Offline
User avatar

Joined: Sat Dec 26, 2009 11:53 pm
Posts: 933
wow, looks very nice already

_________________
yur sa'nok ngeyä


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Fri Mar 04, 2011 5:28 pm 
Offline
User avatar

Joined: Wed Mar 17, 2010 4:07 am
Posts: 395
Location: Wales, UK
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! :shock:

_________________


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Fri Mar 04, 2011 9:52 pm 
Offline
User avatar

Joined: Fri Apr 24, 2009 9:43 pm
Posts: 414
Location: Estonia
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


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Sun Mar 06, 2011 3:18 pm 
Offline
User avatar

Joined: Fri Apr 24, 2009 9:43 pm
Posts: 414
Location: Estonia
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.


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Sun Mar 06, 2011 3:27 pm 
Offline
User avatar

Joined: Sat Dec 26, 2009 11:53 pm
Posts: 933
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. ;)

_________________
yur sa'nok ngeyä


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Sun Mar 06, 2011 3:30 pm 
Offline
User avatar

Joined: Fri Apr 24, 2009 9:43 pm
Posts: 414
Location: Estonia
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.


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Sun Mar 06, 2011 7:29 pm 
Offline
User avatar

Joined: Sat Dec 26, 2009 11:53 pm
Posts: 933
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.

_________________
yur sa'nok ngeyä


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Thu Mar 10, 2011 10:25 pm 
Offline
User avatar

Joined: Fri Apr 24, 2009 9:43 pm
Posts: 414
Location: Estonia
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.


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Tue Mar 15, 2011 10:37 am 
Offline
User avatar

Joined: Fri Apr 24, 2009 9:43 pm
Posts: 414
Location: Estonia
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.

Image

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):
Image

EDIT
Bracket highlighting in action (again very basic example)
Image

_________________
Always wear safety glasses while programming.


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Sun Mar 20, 2011 11:51 pm 
Offline
User avatar

Joined: Fri Apr 24, 2009 9:43 pm
Posts: 414
Location: Estonia
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:
Code:
pl
and it will display the small popup at cursor with current command
Code:
player_ped
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.

_________________
Always wear safety glasses while programming.


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Mon Mar 21, 2011 12:00 am 
Offline
User avatar

Joined: Sat Dec 26, 2009 11:53 pm
Posts: 933
very nice progress

_________________
yur sa'nok ngeyä


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Mon Mar 21, 2011 12:10 am 
Offline
User avatar

Joined: Wed Mar 17, 2010 4:07 am
Posts: 395
Location: Wales, UK
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 :shock:

_________________


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Mon Mar 21, 2011 10:50 am 
Offline
User avatar

Joined: Fri Apr 24, 2009 9:43 pm
Posts: 414
Location: Estonia
Tooltips are displayed when you typed some command. It shows you what parameters the current command expects:
Image

Another:

Image

But because most of the GTA2 mis commands are in such format:
Code:
]somestringe = AWESOME_GTA2_COMMAND (bla, bla, bla


Another example:
Code:
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.

_________________
Always wear safety glasses while programming.


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Mon Mar 21, 2011 10:51 pm 
Offline

Joined: Sat May 16, 2009 6:14 am
Posts: 781
Location: London, UK
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.

_________________
Multiplayer Levels | Mission Code Tutorials | Multiplayer Videos


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Mon Mar 21, 2011 10:55 pm 
Offline
User avatar

Joined: Fri Apr 24, 2009 9:43 pm
Posts: 414
Location: Estonia
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?

_________________
Always wear safety glasses while programming.


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Tue Mar 22, 2011 5:26 am 
Offline
User avatar

Joined: Wed Mar 17, 2010 4:07 am
Posts: 395
Location: Wales, UK
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 :P

_________________


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Tue Mar 22, 2011 9:59 am 
Offline
User avatar

Joined: Fri Apr 24, 2009 9:43 pm
Posts: 414
Location: Estonia
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:

Code:
player_ped


or like this
Code:
Player_Ped


or like this
Code:
PLAYER_PED


Of course it probably should be configurable, but atm it's hardcoded.

_________________
Always wear safety glasses while programming.


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Tue Mar 22, 2011 10:18 am 
Offline
Boss
User avatar

Joined: Tue Mar 04, 2008 6:51 am
Posts: 981
Location: GTAMP.com
I write usually write commands in uppercase and parameters in lowercase.

GIVE_WEAPON ( p1, machine_gun )


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Tue Mar 22, 2011 11:08 am 
Offline
User avatar

Joined: Sat Dec 26, 2009 11:53 pm
Posts: 933
me too

_________________
yur sa'nok ngeyä


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Tue Mar 22, 2011 6:05 pm 
Offline
User avatar

Joined: Wed Mar 17, 2010 4:07 am
Posts: 395
Location: Wales, UK
Me three. ;)

_________________


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 260 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 13  Next

All times are UTC


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group