GTAMP.com

Grand Theft Auto Media Press
It is currently Wed Jun 19, 2013 5:48 am

All times are UTC




Post new topic Reply to topic  [ 263 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 14  Next
Author Message
 Post subject: Re: mispad
PostPosted: Thu Sep 02, 2010 3:19 pm 
Offline
Boss
User avatar

Joined: Tue Mar 04, 2008 6:51 am
Posts: 984
Location: GTAMP.com
You have to clear them from the folder that contains the .mis file and also from the mispad\compiler folder. I doubt it's a 64bit issue but I use Windows 7 32bit myself. It could be a filename or permissions issue but that should be easy to test.


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Thu Sep 02, 2010 7:04 pm 
Offline
User avatar

Joined: Wed Mar 17, 2010 4:07 am
Posts: 395
Location: Wales, UK
It makes you wonder why they even put generated .tmp files in to it when they are practically identical to the contents of a .mis file :roll: Could that be removed?

Also, it's still a pain in the ass compiling single player mission scripts (they need to be in a different folder inside the data folder, much like how there is wil, ste and bil folders with the .scr files), hence why I got completely fed up with them (and the crashing!) after getting back in to GTA2 a few months back. Was making good progress on my highly detailed single player example script with missions ;) I see why people do multiplayer scripts only now (but quite an art making own single player missions, especially "mission packs" for the original cities years back) :shock:

_________________


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Sat Sep 11, 2010 12:08 am 
Offline

Joined: Sat May 16, 2009 6:14 am
Posts: 784
Location: London, UK
Over the past week I've tried colouring simple GTA2 code. Follows the colours and general conventions of View Source in Firefox, re-interpreted to the different syntax. Constants are orange like, HTML special characters (aka entities or NCRs).

This generic approach to code colouring seems pretty powerful. Hope to deploy it across my whole site over the next year or so.

_________________
Multiplayer Levels | Mission Code Tutorials | Multiplayer Videos


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Fri Feb 25, 2011 1:33 pm 
Offline
User avatar

Joined: Fri Apr 24, 2009 9:43 pm
Posts: 415
Location: Estonia
I don't know what you guys use here for scripting.
T.M editor or MisPad but i personally work on new MisPad with code folding, better syntax highlighting and so on...

I will try to upload some very beta soon.
Because making code folding with SynEdit is PITA i choose another component.
And because it is a bit different (but with more powerful features) it takes a bit time.


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Fri Feb 25, 2011 3:47 pm 
Offline

Joined: Sat May 16, 2009 6:14 am
Posts: 784
Location: London, UK
Replace feature doesn't work in Mis Pad. The text is found and selected but isn't changed.

Please don't add code folding. The syntax of script is cluttered enough, without a bunch of extra lines and boxes to the left.

_________________
Multiplayer Levels | Mission Code Tutorials | Multiplayer Videos


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Fri Feb 25, 2011 4:27 pm 
Offline
User avatar

Joined: Sat Dec 26, 2009 11:53 pm
Posts: 933
BenMillard wrote:
Replace feature doesn't work in Mis Pad. The text is found and selected but isn't changed.

Please don't add code folding. The syntax of script is cluttered enough, without a bunch of extra lines and boxes to the left.


WTF, it is impossible to manage scripts over 500 lines without code folding!!!
if i did not have code folding it would have taken 3 times longer to make bc_ac or tyty army, just because of scrolling and searching for the place in the script i want to modify. Without it gta scripting would be a total mess and long scripts totally impossible.

_________________
yur sa'nok ngeyä


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Fri Feb 25, 2011 10:49 pm 
Offline
User avatar

Joined: Fri Apr 24, 2009 9:43 pm
Posts: 415
Location: Estonia
elypter, i will try to get some color ideas from your N++ highlighter.
Just to get something up quickly.


I can always modify it in future.


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Fri Feb 25, 2011 10:56 pm 
Offline
Boss
User avatar

Joined: Tue Mar 04, 2008 6:51 am
Posts: 984
Location: GTAMP.com
"Replace" doesn't work but "Replace all" works and fortunately that's usually what I want to do when I replace. I still want ctrl+h to bring up the replace dialog.


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Fri Feb 25, 2011 11:34 pm 
Offline
User avatar

Joined: Fri Apr 24, 2009 9:43 pm
Posts: 415
Location: Estonia
I wonder what version you use?
I downloaded the source from the first post in this thread (v1.8).
There isn't even such menu items like Replace / Replace All.

Anyway i will fix the bug you reported and will upload the fixed one asap.


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Fri Feb 25, 2011 11:48 pm 
Offline
Boss
User avatar

Joined: Tue Mar 04, 2008 6:51 am
Posts: 984
Location: GTAMP.com
The only way to access the replace feature is to click the icon in the toolbar. It's not on the menu.


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Sat Feb 26, 2011 12:43 am 
Offline
User avatar

Joined: Fri Apr 24, 2009 9:43 pm
Posts: 415
Location: Estonia
Ok, i attached "new" fixed version.
Included a small ReadMe.txt about what has been done.

Search and Replace should work now.


Any troubles? Tell me..
In the meantime, i will continue work on new version.

EDIT:
Thanks to Cuban-Pete for nice new icons.


Last edited by B-$hep on Sat Feb 26, 2011 2:11 pm, edited 1 time in total.

Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Sat Feb 26, 2011 1:02 pm 
Offline

Joined: Sat May 16, 2009 6:14 am
Posts: 784
Location: London, UK
That EXE is very much smaller in filesize than the one I had before. Just 360kB instead of 844kB. I'm using version 1.5 build 310904 (as in 31st September 2004) by JernejL.

I doesn't seem to know the settings I had in previous version. Such as "Use Friendly Colours" since those are perfect. It also forgot my "File" history, which I do sometimes use. Hmm, actually it seems you broke the settings entirely - opened it a second time and it's back to using the unfriendly colours.

Please make it save window size and position! That's probably the most-requested feature of all. From me, anyway...

Ctrl+Alt+Letter are used by Windows as a fast way to launch shortcut files. For example, I have Ctrl+Alt+G to launch Game Hunter. Don't use them within applications; Ctrl+W is the Windows standard for closing a single window.

Wow, the Replace window can now do Regular Expressions?! Awesome! That should allow RegEx hackers to replace code for all 6 players at the same time, by using a number range.

(EDIT) Also, I can't use Return to confirm my selected command from the Insert Command popup list.

_________________
Multiplayer Levels | Mission Code Tutorials | Multiplayer Videos


Last edited by BenMillard on Sat Feb 26, 2011 1:26 pm, edited 2 times in total.

Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Sat Feb 26, 2011 1:07 pm 
Offline
User avatar

Joined: Fri Apr 24, 2009 9:43 pm
Posts: 415
Location: Estonia
Quote:
Wow, the Replace window can now do Regular Expressions?!


Yep, "Search" window also.
But it's up to you or somebody else to test it. I haven't time to fully test it atm.


Sorry about that you lost the config.
I will look what's wrong in there.

And will do as you said.

Thanks for replying.


EDIT:
Just to tell you that the source of Mispad is big mess, that's why some things may get broken.
I had to do some code cleanup (code that caused random crashes and memory leaks).
Even one component that just didn't allow exe to close. The icon from taskbar was gone but exe was still running in background. I had to kill it with Task Manager.

But i will fix what i broke.


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Sat Feb 26, 2011 1:21 pm 
Offline

Joined: Sat May 16, 2009 6:14 am
Posts: 784
Location: London, UK
Ah, I see. Let's consider this an "alpha test version" for a while. Thanks for your efforts, I'm sure you'll make it better over time.

(EDIT) Reverted to the previous version and all is working, so nothing got corrupted.

_________________
Multiplayer Levels | Mission Code Tutorials | Multiplayer Videos


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Sat Feb 26, 2011 2:09 pm 
Offline
User avatar

Joined: Fri Apr 24, 2009 9:43 pm
Posts: 415
Location: Estonia
I made a bit improved version.
1) Settings are now saved in INI file (including MRU files list) instead of registry.
I dunno how Win7 or Vista look at this but if there is any problems i can always change that.
For some reason the old code that tried to save settings in registry didn't work on my XP Pro here. So i just commented out the old code and used INI file instead.

2) Friendly colors is now ON by default.

Attached new version. ReadMe has also updated.


Attachments:
MisPad1803.rar [339.37 KiB]
Downloaded 48 times
Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Sat Feb 26, 2011 3:11 pm 
Offline
User avatar

Joined: Fri Apr 24, 2009 9:43 pm
Posts: 415
Location: Estonia
Just to show where i am atm.
1) Syntax highlight
2) Folding

Whole huge part of LEVELSTART - LEVELEND hidden:

Image

And visible:

Image

EDIT: of course not final hightlighting and folding.


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Wed Mar 02, 2011 11:46 pm 
Offline
Mugger
User avatar

Joined: Sun Feb 21, 2010 10:03 pm
Posts: 17
B-$hep wrote:
Just to tell you that the source of Mispad is big mess, that's why some things may get broken.


It worked fine until you started fiddling with it, don't blame me if it's not post-xp compatible out of the box and you don't know (or want to ask me) how to fix it.

Anyways, this approach is totally wrong, at this stage the only thing useful out of mis pad is the compiler hack, which should be put into a real text editor - like emeditor as a plugin..


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Wed Mar 02, 2011 11:53 pm 
Offline
Boss
User avatar

Joined: Tue Mar 04, 2008 6:51 am
Posts: 984
Location: GTAMP.com
I like the little improvements. It would be best if the compiler was turned into a proper command line app that could be integrated with any standard IDE but improving the mispad IDE is the next best thing and doesn't require ASM knowledge.


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

Joined: Fri Apr 24, 2009 9:43 pm
Posts: 415
Location: Estonia
JernejL wrote:
It worked fine until you started fiddling with it, don't blame me if it's not post-xp compatible out of the box and you don't know (or want to ask me) how to fix it..


No JernejL, i don't blame you, the MisPad 2.0 is rewritten from scratch.
The plugin idea is good, so there is a opion for users to choose from.

If you are against that im rewriting it, just tell me, i will stop the whole project.


I will add commandline support. I will even try to add it as plugin to some popular editors.
Will let you know.


Top
 Profile  
 
 Post subject: Re: mispad
PostPosted: Fri Mar 04, 2011 11:01 am 
Offline
User avatar

Joined: Fri Apr 24, 2009 9:43 pm
Posts: 415
Location: Estonia
Ok, few more images. I had to replace one editor VCL, because it was extremly slow with big files. I asked the support why it's so slow, they told me that it's designed for small files. Too bad.
So i had to switch bacl to SynEdit. I tried with full color highlighting and DAFESDeathValley.mis (158KB) and it's still very fast. So i decided to continue using it.
Because im bit sick atm, got a fever 37.6 - 38.2 and i don't feel pretty well, i don't code it everyday. Just time by time, if i feel better.

So here are some new pics:
All collapsed:

Image

Only IF..ENDIF collapsed:
Image

All uncollapsed:
Image

What's planned?

[*]Any user will be able to edit highlighting colors to fit their needs, they are not hardcoded.
[*]I have plan to add autocompletion support like Delphi has. If works correctly, then it will speed up script writing alot.
[*]The commandline support.
[*]More...


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 263 posts ]  Go to page Previous  1, 2, 3, 4, 5 ... 14  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:  
cron
Powered by phpBB® Forum Software © phpBB Group