TomToad

Forum Replies Created

Viewing 15 posts - 1 through 15 (of 41 total)
  • Author
    Posts
  • in reply to: Ted2Go IDE #15331

    TomToad
    Participant

    Fullscreen Editor is not really full screen. It is letterboxed to a 4×3 ratio and is even smaller than a non fullscreen editor. On my laptop monitor, with fullscreen window and my current font size and layout, I get 116 columns. In fullscreen editor mode, I get only 96. If I do fullscreen Window mode, and turn off all the dock views, I get 142 columns, an extra 46 columns. Problem with that solution is 1) I still get the icons and menu at top, so the vertical space is shorter, and 2) It is much easier to switch from Fullscreen editor and back with Shift-F11, instead of doing Alt-1-2-3-4-5-6-7 to switch back and forth.

    What would be a nice feature is to allow any dock to become fullscreen. At times I will try and read the documentation and have to drag the window up into the editor to see more at a time. Would be handy to switch between views with a single key combination.

    in reply to: Problems with download page of website #15280

    TomToad
    Participant

    I’ll post this here as I think this problem is related. When someone likes a post, you can’t click on any links in the post near the bottom. For example http://monkeycoder.co.nz/forums/topic/extracting-affinematrixes/#post-15276

    in reply to: Problems building modules for android #15213

    TomToad
    Participant

    It seems a fix was already on Github. Compiles fine now.

    in reply to: String question? #11967

    TomToad
    Participant

    If you want to read one line at a time, you need to open a stream and use ReadLine() method

    in reply to: New user here :) #11223

    TomToad
    Participant

    Revenge star is an Android game made in Monkey 2.
    https://play.google.com/store/apps/details?id=com.playniax.revengestar

    in reply to: Creating an empty class or struct array #10930

    TomToad
    Participant

    Arrays are a bit weird. A zero length array acts like a Null object, but at the same time has a Length property which it shouldn’t if the array is truly Null.

    in reply to: Creating an empty class or struct array #10912

    TomToad
    Participant

    To create a zero length array, use ArrayName:Type[]. Then you can use Resize or New to add to the array

    in reply to: MojoX Build Cleaner Utility #10836

    TomToad
    Participant

    Very useful. Thanks for sharing. 🙂

    in reply to: Load/save persistent data on mobile targets? #10834

    TomToad
    Participant

    On windows, you can use GetEnv(“appdata”) to get the aplication data directory, then append “/myprogramname/data/” to it.
    Local Dir:=GetEnv(“appdata”)+”/myprogramname/data/”
    CreateDir(Dir)
    etc…

    Don’t know if that would work on other platforms. Monkey probably should have a command like AppDataDir() to return the place to store persistent data across all platforms.

    in reply to: DataBuffer resizing #10636

    TomToad
    Participant

    Maybe possible that more data is received between lines 2 and 3 causing server.ReceiveFrom to read in more data than the buffer was originally allocated?
    Maybe try something like this

    in reply to: DataBuffer resizing #10621

    TomToad
    Participant

    Here is the code in the source.

    As you can see, the buffer is being resized properly. The problem is that the _length field is not being updated, so it is reporting the wrong size (and could cause an error if you read or write outside the true length).
    Should be a _length = length in there somewhere.

    Edit: just submitted an issue on Github.

    in reply to: SDL_PeepEvents error #10610

    TomToad
    Participant

    I get the same error. Don’t know why. If I run the below in a command window, I get this printed to STDOUT:
    SDL_PeepEvents error:

    and this printed to STDERR:
    AL lib: (EE) alc_cleanup: 1 device not closed

    This is true whether I compile in debug or release.
    Without the timer, the SDL error disappears, but the AL error remains.

    in reply to: Permission denied #10522

    TomToad
    Participant

    I have the same problem with Google Drive. Never did figure out the solution for it.

    in reply to: DrawText Alignment #10467

    TomToad
    Participant

    Didn’t even realize just how flexible using handles on text is until I started thinking about this more. Put text right where you want it without messing with too much math.

    Edit: Thinking this would be good in the Code Library.

    in reply to: DrawText Alignment #10465

    TomToad
    Participant
Viewing 15 posts - 1 through 15 (of 41 total)