nerobot

Forum Replies Created

Viewing 15 posts - 601 through 615 (of 805 total)
  • Author
    Posts
  • in reply to: I volunteer to help build mx2 docs and samples. #6481

    nerobot
    Participant

    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 reply to: Monkey 2 App Methods #6462

    nerobot
    Participant

    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.

    in reply to: Ted2Go IDE #6460

    nerobot
    Participant

    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.

    in reply to: Ted2Go IDE #6455

    nerobot
    Participant

    ‘Print’ should work in debug mode. I always use it when debugging.

    in reply to: Ted2Go IDE #6448

    nerobot
    Participant

    @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.

    in reply to: Ted2Go IDE #6433

    nerobot
    Participant

    Ok. 🙂

    in reply to: Http GET/POST #6432

    nerobot
    Participant

    Here is a similar topic with Mark’s answer.

    in reply to: OOP for the novice #6430

    nerobot
    Participant

    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.

    in reply to: How fast does monkey2 compile? #6429

    nerobot
    Participant

    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.

    in reply to: OOP for the novice #6410

    nerobot
    Participant

    Cool! Notes:

    Some keywords starts with lowercase.

    I prefer to use update before draw.

    in reply to: module trimming #6405

    nerobot
    Participant

    Also, I plan to add “Clean” checkbox into Build dialog. So we can get update and rebuild results (clean+makemods=rebuild).

    in reply to: module trimming #6400

    nerobot
    Participant

    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.

    in reply to: How to init array? #6342

    nerobot
    Participant

    Somewhere on the forum is.. 🙂

    in reply to: I volunteer to help build mx2 docs and samples. #6333

    nerobot
    Participant

    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.

    in reply to: I volunteer to help build mx2 docs and samples. #6330

    nerobot
    Participant

    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.

Viewing 15 posts - 601 through 615 (of 805 total)