Forum Replies Created
-
AuthorPosts
-
My first try with dokuwiki is here: http://mx2wiki.fingerdev.com/ (my own domain)
I wrote simple monkeydoc -> dokuwiki parser, so you can read Module reference section.
I stopped to dev that to avoid useless work.
But… we can use it for the first time to collect useful data. And copy-paste (convert) into official doc-system later.
If it is useful solution – I’ll try to implement mx2 code highlighter. And can improve doc’s parser.
In my (incomplete yet) framework I go away from Window class, user know nothing about window – it hidden inside of my Application class that also don’t override monkey’s App class.
Inside of Application we have needed callbacks.
One way is to use OnUpdate, On… () virtual methods , other way is to use fields-as-func and subscribe to them . I preffer the second way because you shouldn’t extends class to use these callbacks .
OnUpdate – I think it’s normally in monkey2 to call it from render.
OnSuspend and OnResume logic you can extract from OnWindowEvent – see the docs.
1. You should run D:/Programme/Monkey2-v1.1.02/bin/ted2_windows/ted2.exe and open sources of ted2go – ted2.monkey2 as main ‘locked’ file. If you run from products – compiler can’t ovirwrite ted2.exe because you it is currently running.
2. If ted2go stop launching – open your windows task manager and kill all [mx2_…..] processes and try again.
3. Let’s find the problem. Ask any help from me.
‘Print’ should work in debug mode. I always use it when debugging.
@xaron There is save:Action inside of /src/ted2go/fileactions.monkey2, and we have simple setup for hothey that call method OnSave. Try to inspect this.
Ok.
Keywords : local, method, function, override . In some places starts with lower chars but in other with upper. Not consistent. I didn’t see the sources, only an article.
About update order. When you draw before update you will see previous logic frame, for example objects had moved in current frame but you can see it in the next frame.
RequestRender ask app to call render next frame, it doesn’t call actual render.
I have no a big project. Parse, semant and translate working fast in monkey2, but there are additional Compiling and Linking stages that takes more time. How much – need a big project to try. But about 5 secs at all for my small project.
Compiling time also depends on what files you modified – if code from this file is used in many other files than less cache will be used and it takes more time.
Cool! Notes:
Some keywords starts with lowercase.
I prefer to use update before draw.
Also, I plan to add “Clean” checkbox into Build dialog. So we can get update and rebuild results (clean+makemods=rebuild).
Also maybe there is a good idea to extend IDE’s “Build modules” – show checkable modules list to be able to build custom modules only.
Somewhere on the forum is..
Mark said that he going to expanding monkeydocs, and including samples right there.
But he said nothing about collective wiki.
To be honest, I’m not sure we’d be a good writers, but I hope it will be better than nothing. Especially if someone writes the whole article, not the short examples.
I don’t pretend to create the official documentation, but if I get a convenient system, it can be taken as a basis.
What about dokuwiki ? It’s database-free wiki engine. As there are plain text files then easy to write converter from monkeydoc to actualizing docs.
And also there is a way to combine monkeydocs with any samples on the fly by php script.
Just need to declare some rules for namespacing of samples to use php-grabber.
I need the same wiki for my proj, so I try to do it. If it will be as easy as I think…
And if anyone add libcurl module I can implement online docs into ted2go.
-
AuthorPosts