Forum Replies Created
-
AuthorPosts
-
ok, so I’m now refactoring all the code to make it unique.
As far as I was aware I wasn’t using any ‘hidden’ api’s, but take the point about mojox. I’ll need to refactor this as well
slight news:
left code view list is completely bugged to hell. I’m currently rewriting it from scratch.
Looks like a number of the crashes were down to this beastie…
mmm, so it’s not the script it’s mx2cc behaviour? I’m not sure if that’s a good/fair test or not?
I will agree that it is an error that isn’t being caught, but it’s not the editor that is at fault – I might be wrong on this though?
@ gcmartin
I’ve run the code and your right about the memory violation. I tested it in ted2 and it’s still there so I am raising it as a mx2cc bug!!!
some more progress notes:
clicking on the status bar:
left side will take you through the error (if there are any
right side will take you to the current line of code
Right overview now shows the current line (where the cursor is in highlight blue)
buttons in button bar now enable and disable correctly
added back and forward buttons, so you can travel around your code. Great for editing a bit of code, going to another bit and then instantly returning
Use Color (in the color panel) will insert logical RGB text. either (,1, 0, .7) etc if it is a shade of the main color. or the actual color text (Red, UIBlue, Phlox) etc if it is a main color
F1 when over text will enable quick help
Escape when help is showing will hide it.
new ttf font view
Known issues:
code view gets corrupted – working on this at the moment
close document crash – fixed
MakeCurrent( doc:Ted2Document ) is your friend there
Monkey123456789If doc.Time < GetFileTime( path ) Thendoc.Load()doc.DirtyChanged = Lambda()UpdateTabLabel( doc )EndMakeCurrent( Cast<Ted2Document>( doc ) )' SaveDocument( doc )EndIt would be much nicer to be able to to all of that from the editor. and get it to be properly compiled.
:/
Mark?
Excellent. any help is gratefully worked on until i find the cause.
one more thing. you on windows or mac?
@gcmartin. if this is something that you can easily reproduce. can it be done with different files or just one project. I can look at doing a compile with your source code and see if I can track down the crashes?
I’m tracking down crashes and error at the moment. If there are any you can repeat – let me know
The new file-paste-close is being dealt with
Thanks, but I’ve already got automatic reloading.
P.S. I did have a look at your code to see how you did it – which was a different approach but using the same GetFileTime mechanism.
My version works by tracking program activation and then doing the check. if there is a time difference then reload the file.
new updates should stop the crashes
Github updated with important code view fixes that prevent some immediate crashes
If you have any issues please let me know
not yet, but it’s coming
Here’s a thought for you.
I’m busy with Ted21, but my aim is to try and integrate other systems directly into the editor. Sprite editor, atlas, vector editor, sound editor, etc. Sort of one stop shop for the basic development.
I haven’t really looked beyond the concept, but you showing the code for the base vector system is a start. I would need to firm up a lot first though.
What are your thoughts?
-
AuthorPosts