Shoutbox

[Preview] MP - Development Environment - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [Preview] MP - Development Environment (/showthread.php?tid=91292)

[Preview] MP - Development Environment by effection on 07-01-2009 at 04:01 PM

A quick look for you guys, what's there is done but the interface designer is still in the early stages. Just post any bugs and preferably what you did to cause it.

I'll post a translation file for who ever wants to translate it in a few days!

Download the setup

Any suggestions also appreciated

[Image: 32976698.jpg]


*NOTE*

  • You must pick a plsc file to open, it will not open directories (i toyed with the idea of just directories but the options are there to open an installed version or a "working" version for a quick look at the script).

  • if it doesn't open a script file it's because the XML in it is bad, nothing i can do about someone writing bad xml. (yes it's still bad even if Plus! itself still opens it)
  • when a script is loaded, any bad xml files will generate an entry in the "interface log.txt" file. If the file was an interface file you can check here to see why it maybe wasn't parsed properly. This file is cleared once the application exits!


Common problems with XML files:
  • First line of scriptinfo.xml should read:
    code:
    <?xml version="1.0" encoding="utf-8"?>
    <ScriptInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:msgplus:scripts">

  • Not escaping characters like ">" "&" etc with their appropriate html escape codes

  • First line of interface files should read:
    code:
    <?xml version="1.0" encoding="UTF-16"?>
    <Interfaces xmlns="urn:msgplus:interface" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="urn:msgplus:interface PlusInterface.xsd">

RE: [Preview] MP - Development Environment by robert_dll on 07-01-2009 at 05:04 PM

Nice, but what about fixing this? :P

[Image: s0wm84.png]

Looks really ugly.


RE: [Preview] MP - Development Environment by effection on 07-01-2009 at 05:05 PM

clearly a bug with vista then, i'll have to make a custom one i guess. It'll do for now ;)


RE: [Preview] MP - Development Environment by robert_dll on 07-01-2009 at 05:19 PM

I can't open a script with the next code:

xml code:
<?xml version="1.0" encoding="utf-8"?>
<ScriptInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="urn:msgplus:scripts">
    <Information>
        <Name>Test</Name>
        <Description>Testing</Description>
        <Version>1.0.3</Version>
    </Information>
</ScriptInfo>

what's wrong?
RE: [Preview] MP - Development Environment by effection on 07-01-2009 at 05:30 PM

i created a new script, packaged it, opened it up with winrar pasted your code above in, and tried to open it again and it worked without any problems. What was the message appearing?

Try just creating a script with the "New" button/menu in the designer and try opening it just in case i've seriously overlooked something


RE: [Preview] MP - Development Environment by NanaFreak on 07-01-2009 at 05:36 PM

btw, it wont run in windows 7 RC1... even with compatibilities...


RE: [Preview] MP - Development Environment by robert_dll on 07-01-2009 at 05:43 PM

Got an error when trying to pack the script (see attachemnt), then the app crashed.


RE: [Preview] MP - Development Environment by Spunky on 07-01-2009 at 08:01 PM

Works on Windows 7. The open box is just a problem with dimensions. If you stretch it corrects it's self and reveals another button.

Had problems opening and saving files though. Looks promising so far


RE: [Preview] MP - Development Environment by NanaFreak on 07-02-2009 at 01:50 AM

ah it might be because im running 64bit windows 7... i dunno.... but it just wont run for me...


RE: [Preview] MP - Development Environment by vaccination on 07-02-2009 at 07:29 AM

quote:
Originally posted by NanaFreak
ah it might be because im running 64bit windows 7... i dunno.... but it just wont run for me...
Doesn't appear to work in x64 at all.
RE: RE: [Preview] MP - Development Environment by effection on 07-02-2009 at 10:44 AM

quote:
Originally posted by vaccination
quote:
Originally posted by NanaFreak
ah it might be because im running 64bit windows 7... i dunno.... but it just wont run for me...
Doesn't appear to work in x64 at all.

Ah, odd. I thought the "Any CPU" target took care of both x64 and x86 processors. I'll see what i can do, send me your msn so i can send you some ones to test if you'd like (i've got a 64bit processor but only 32bit XP at the minute)
RE: RE: RE: [Preview] MP - Development Environment by pollolibredegrasa on 07-02-2009 at 11:16 AM

It didn't work at all for me on my Windows XP machine, I just got an "application has stopped working and needs to close" error. I'll look into it later to try find out why.

On my Vista installation it worked, and it looks good so far, although I find the "are you sure you want to close this tab" message kinda annoying (especially when you have a few open tabs and then try exit, meaning you have to click through a few message boxes before it actually quits) :P


quote:
Originally posted by effection
quote:
Originally posted by vaccination
quote:
Originally posted by NanaFreak
ah it might be because im running 64bit windows 7... i dunno.... but it just wont run for me...
Doesn't appear to work in x64 at all.

Ah, odd. I thought the "Any CPU" target took care of both x64 and x86 processors. I'll see what i can do, send me your msn so i can send you some ones to test if you'd like (i've got a 64bit processor but only 32bit XP at the minute)

I've had this problem a few times :P If your app is it's reading any Messenger Plus! registry key (and I assume it will be), you'll need to set it to x86 mode. Any CPU means that on an 64-bit version of Windows, registry calls will read from the 64-bit area in the registry, whereas Plus! always saves its settings in the x86 area.
RE: RE: RE: RE: [Preview] MP - Development Environment by effection on 07-02-2009 at 12:40 PM

quote:
Originally posted by pollolibredegrasa
It didn't work at all for me on my Windows XP machine, I just got an "application has stopped working and needs to close" error. I'll look into it later to try find out why.

On my Vista installation it worked, and it looks good so far, although I find the "are you sure you want to close this tab" message kinda annoying (especially when you have a few open tabs and then try exit, meaning you have to click through a few message boxes before it actually quits) :P



Take a look in the options box, you can disable it.

quote:

I've had this problem a few times :P If your app is it's reading any Messenger Plus! registry key (and I assume it will be), you'll need to set it to x86 mode. Any CPU means that on an 64-bit version of Windows, registry calls will read from the 64-bit area in the registry, whereas Plus! always saves its settings in the x86 area.

I'll work on this!

RE: [Preview] MP - Development Environment by SmokingCookie on 07-02-2009 at 12:54 PM

Bug (see attachment). Visual Studio output window:

quote:
The program '[856] Messenger Plus - Development Environment.exe: Managed' has exited with code -1073741819 (0xc0000005).

I'm on Windows Vista x64 SP 1. The app crashes immediately upon starting; no window is shown at all.
RE: [Preview] MP - Development Environment by matty on 07-02-2009 at 01:01 PM

quote:
Originally posted by pollolibredegrasa
It didn't work at all for me on my Windows XP machine, I just got an "application has stopped working and needs to close" error. I'll look into it later to try find out why.
Make sure you are running the .Net 3.5 SP1 framework.

quote:
Originally posted by pollolibredegrasa
On my Vista installation it worked, and it looks good so far, although I find the "are you sure you want to close this tab" message kinda annoying (especially when you have a few open tabs and then try exit, meaning you have to click through a few message boxes before it actually quits) :P
Disable the Close Tab Confirmation in the options.


On a side note I can't get it to run at all on Vista Business 32Bit. Does it rely on having MP!L installed? If so that explains it as this is my work computer.

Suggestion:
Extend the intellisense feature. What exactly do I mean by this? What I mean is with Javascript we can create our own classes:

js code:
var hello = function () {}
hello.prototype = {
    "world" : function () { Debug.Trace ( 'hello world ' );
}

var h = new hello();
h.world();

It would be nice to have a full list of these class functions. Also much like with the VB6 IDE if you type var h = new it would populate a list of classes then each function/parameter when you try to access it. I think this would be a nice added feature.
RE: [Preview] MP - Development Environment by effection on 07-02-2009 at 08:17 PM

Yeah it does rely (at the minute) on MP!L being installed. And yes matty that is something i have previously thought about but i wont be working on anything new until i get these current errors ironed out :(


RE: [Preview] MP - Development Environment by effection on 07-05-2009 at 05:55 PM

Anyone with 64bit versions of XP/Vista/7 give me your email so i can give you a test version :)

I've (hopefully) fixed the OS problem and i've fixed a problem with some files not opening.

To Do:
Fix open scrip dialog
Fix the folding strategy for code (not a priority)

Hopefully that's all the bugs for now sorted.