CodeMaster Posted August 24, 2009 Share Posted August 24, 2009 You really underestimate power of Windows 7. Comparing to all other systems the users of Win 7 has the greatest backwards compatibility: If thing works on Vista, it should work on 7, if it works in XP it should work in XP Mode. I'll post you on my progress with fixing the editor to work under 7. Too bad you couldn't release this for native windows (which would provide full compatibility to all systems) or at least .NET 1.1 which is built-in XP (assuming that's the oldest system still in use by most of MTA community members), so it'd save us pointless downloading on slow connections like mine (256k unfortunately). Otherwise looks ok, too bad I haven't been able to use it since I really need a good Auto Completion (Notepad++ API by NeonBlack is incomplete, and so is the one by Caz unfortunately). EDIT: Found a good one - http://dracoblue.pastebin.com/f31d6a331 by SpZ Cheers Nidza Link to comment
Dark Dragon Posted August 24, 2009 Share Posted August 24, 2009 woot? it's out? yay ill test it edit: same crash but can't wait for it to work it looks cool! Link to comment
CodeMaster Posted August 24, 2009 Share Posted August 24, 2009 No luck on XP Mode, try to fix the XML troubles... Link to comment
Deddalt Posted August 24, 2009 Share Posted August 24, 2009 A few of things that I would love to see: Creating a new lua inside a resourceSaving new lua files into resourcesPossibly when you create a new file, if you want it to be in an existing resource, it would automatically add it to the meta.xmlRight-clicking on functions to add them to the meta.xml with But as soon as I can create a new lua file in a resource & save it, I'll start using this as my main method of editing / creating scripts in MTA. You've done a great job Link to comment
Zadara Posted August 25, 2009 Share Posted August 25, 2009 A few of things that I would love to see: Creating a new lua inside a resourceSaving new lua files into resourcesPossibly when you create a new file, if you want it to be in an existing resource, it would automatically add it to the meta.xmlRight-clicking on functions to add them to the meta.xml with But as soon as I can create a new lua file in a resource & save it, I'll start using this as my main method of editing / creating scripts in MTA. You've done a great job Awesome idea's! Link to comment
Dark Dragon Posted August 25, 2009 Share Posted August 25, 2009 yo, with the new patch the "oops" in the beginning is gone but now i get meta.xml errors for every race resource. (could not be changed to unicode or something) i love scripting with this tool Link to comment
iChris Posted August 25, 2009 Share Posted August 25, 2009 Nice job! But an installer would be nice. Link to comment
50p Posted August 25, 2009 Author Share Posted August 25, 2009 yo, with the new patch the "oops" in the beginning is gone but now i get meta.xml errors for every race resource. (could not be changed to unicode or something)i love scripting with this tool Could you please send me the meta.xml which shows the error message? Not just the content of the file but the file itself. I think it's problem with the file encoding. These meta.xml files were probably made with a map converter and saved in unusual encoding format or a format that .NET 2.0 doesn't support. Nice job! But an installer would be nice. I think installing it with MTA would be nicer, but again, it's just alpha with patches. I may create an installer when it'll be more stable. Link to comment
iChris Posted August 25, 2009 Share Posted August 25, 2009 Yeah, that would be nice. But I got those errors too, they had to do something with unicode converting. Link to comment
50p Posted August 25, 2009 Author Share Posted August 25, 2009 Yeah, that would be nice. But I got those errors too, they had to do something with unicode converting. Could you upload the meta.xml somewhere so I can download it and investigate? Link to comment
iChris Posted August 25, 2009 Share Posted August 25, 2009 Okay, Error itself: Meta file: http://www.upload.ee/files/171638/meta.xml.html This error occures every time when Script Editor is started and happens with every race resource. Link to comment
50p Posted August 25, 2009 Author Share Posted August 25, 2009 OK, I found out that it happens with every meta.xml that has the following XML Declaration, not the encoding the files was saved in but the declaration: <?xml version="1.0" encoding="utf-16"?> It doesn't happen with: <?xml version="1.0" encoding="utf-8"?> Nor: <?xml version="1.0" encoding="ASCII"?> Try to modify all meta.xml that has 'encoding="utf-16"' (remove the entire line or change it to utf-. If you get different error after you modify the meta.xml please post it here. Sorry to say that but it's raceconv's fault which was probably made with .NET > 2.0. Link to comment
eAi Posted August 25, 2009 Share Posted August 25, 2009 MTA won't support UTF-16, nor will it support UTF-8 properly (ASCII is a subset of UTF-8, but not a subset of UTF-16). Link to comment
50p Posted August 25, 2009 Author Share Posted August 25, 2009 MTA won't support UTF-16, nor will it support UTF-8 properly (ASCII is a subset of UTF-8, but not a subset of UTF-16). I can't seem to find a way to ignore the xml declaration in meta.xml files. I've been googling but can't find it. I guess I'll have to load the the file into string and remove text from <? to ?> before I parse it. Link to comment
eAi Posted August 25, 2009 Share Posted August 25, 2009 I'd check that the files aren't really UTF-16... Link to comment
Michael Sund Posted August 25, 2009 Share Posted August 25, 2009 OMFG, 50p Nice work! Can't wait til I get a new computer cuz my old one is broken and doesn't want to get repaired so I can test the new MTA:SA and this thing =( =P Anyay, I'll be back on the forums until I get a new PC, then I'll play. Not sure if you remember me tho ^^ Anyway you helped me a bit with that script Michaels RP which I didn't get too far with x) Link to comment
Deddalt Posted August 25, 2009 Share Posted August 25, 2009 One more thing I want is if you'll make it so I can delete a .lua file that I've created. I right click it and hit "delete", but nothing happens. That's one thing that I'd really like to be fixed. EDIT: I tried to make a new resource and it's telling me "Object reference not set to an instance of an object." Any idea what's wrong? Link to comment
gamer_star Posted August 26, 2009 Share Posted August 26, 2009 http://img199.imageshack.us/img199/1019/38528891.jpg Lol Link to comment
50p Posted August 26, 2009 Author Share Posted August 26, 2009 I'd check that the files aren't really UTF-16... I can't do anything about it. When the xml file is loaded, it's loaded... The .NET parser treats these files as it does.. If you can find a work around it I'd like to take a look at it. One more thing I want is if you'll make it so I can delete a .lua file that I've created. I right click it and hit "delete", but nothing happens. That's one thing that I'd really like to be fixed.EDIT: I tried to make a new resource and it's telling me "Object reference not set to an instance of an object." Any idea what's wrong? I'm going to make the delete item work once creating new resources will work properly. EDIT: This "Object reference not set to an instance of an object." bug is now eliminated in patch 0.1.8a, Deddalt. Go ahead and download it. Reply if it still doesn't work. I hope it will http://img199.imageshack.us/img199/1019/38528891.jpgLol Most race maps will give you that message read my recent posts on the previous page... Link to comment
CodeMaster Posted August 26, 2009 Share Posted August 26, 2009 Windows 7 compatibility status: Compatible Confirmed. Great job dude! BTW: Workaround for the XML parse error? Hold Enter Cheers Nidza Link to comment
Skull~Death Posted August 26, 2009 Share Posted August 26, 2009 Great job, but i'm having a problem with it I just cloned cdm resource to see if the resource manipulation would work, and i get a error in the meta.xml. I don't understand why, it's just like cdm, i just changed the credits and file names to "m"dm instead of "c"dm, i don't understand why should i get a error. Any idea? Link to comment
50p Posted August 26, 2009 Author Share Posted August 26, 2009 Does it show you a pop up window with the error message or does it crash and show bug report window? Also, what program did you use to save the changes (the credits are probably in meta.xml, right?) Also, what is the exact message you get? EDIT: To everyone who get "System.NullReferenceException" in 0.1.8a or 0.1.10a, could you please explain how to reproduce these crashes? I know it happens - after you change file name (by editing label in Resource Explorer) - press "Delete file" from the context menu in Resource Explorer - or change the resource from the combo box Thank you. Link to comment
iChris Posted August 27, 2009 Share Posted August 27, 2009 For some reason I can't post issues with bug tracer, it says that access is denied. Now about the bug, I got an issue with special letters (ä, ö, ü, õ), after using them in my script and saving the file and reopening it, there are boxes instead of these letters. Link to comment
DutchCaffeine Posted August 27, 2009 Share Posted August 27, 2009 It is a real nice editor, but i missing so much things, importand things: 1. Change the font type. (My programming font is courier new, 5 pt) 2. I hate the resource browser, just put every file in there, every xml file, every lua file, plus the meta.xml file. 3. Changing the resource path to an other folder, i keep my local server on my D: harddisk (seccond one) cuz of windows uac. 4. There was some more, but i don't remember. Please add/change does things Link to comment
Recommended Posts