Feynman's Mod

  • cj646464
    21st May 2015 Member 0 Permalink
  • FeynmanLogomaker
    25th May 2015 Member 3 Permalink

    I've gotten a user settings api fully functional, and I should be releasing a new version tomorrow.

    The api basically works like this:

    tpt.option("name", "description", callback(status))

     

    callback() is called with the state the button is being changed to, and if it returns a boolean, the button's status is set to the return value.

    For example, this function call:

    tpt.option("Test button", "foo", function() return true end)

    will allow the option to be selected, but not de-selected.

     

    Screenshots of the new interface:

    The icon:

     

    Also,

    @cj646464 (View Post)

     sure, I'll make you one


    EDIT: Here you go:

    Edited once by FeynmanLogomaker. Last: 25th May 2015
  • jacob1
    25th May 2015 Developer 0 Permalink
    @FeynmanLogomaker (View Post)
    :O that's really cool.

    I really wanted to do this in tpt but I needed to redo the settings interface first (it sucks right now). I'll have to look at the code later. When I put it in tpt it will probably have a bit more features :P
  • Mdkar
    25th May 2015 Member 0 Permalink

    @FeynmanLogomaker (View Post)

     

    So can/are you going to make it a .app file?

  • Factorial
    25th May 2015 Banned 0 Permalink
    This post is hidden because the user is banned
  • FeynmanLogomaker
    25th May 2015 Member 1 Permalink

    Yes, releases coming in about 1 hour.

     

    EDIT: Just added another function: tpt.getOption(int option_index)

    tpt.option() returns the index of the created option, which can be used to get its value at another time. For example, this code:

    local num = tpt.option();
    print(tpt.getOption(num));

    will print "false", as the option's value won't have changed in the meantime.

     

    Now I'm just working on setting up all the compilers to use LuaJIT.

     

    EDIT EDIT: oh my god i just had the best idea I'll be writing an example script to allow multiplayer afk to be toggled from there. Also i'm pushing my source to github now, which I should have been doing the whole time. I am an organized and efficient human being.

     

    EDIT 3: Linux builds are available for download, but other os builds are still out of date.

    EDIT 4: Compilers should be set up soon, I might even have LuaJIT working for mac

     

    also oH MY GOD JACOB1 ACTUALLY THOUGHT ONE OF MY FEATURES WAS COOL

    Edited 5 times by FeynmanLogomaker. Last: 25th May 2015
  • ChargedCreeper
    26th May 2015 Member 0 Permalink

    @FeynmanLogomaker

    The download for version 9.4 gives me version 8.5 renamed as 9.4

    Edited once by ChargedCreeper. Last: 26th May 2015
  • FeynmanLogomaker
    26th May 2015 Member 0 Permalink

    I know, the Linux version is the only one that's up-to-date. I'm having severe computer issues - right now, I can't boot into a graphical environment, and I managed to break sudo. I may have to wipe and reinstall ubuntu, but other builds will hopefully be available within a few days.

    If anyone else can make builds (@jacob1, @wolfy1339?) that would be nice, since I'm busy trying to save my computer.

  • jacob1
    26th May 2015 Developer 0 Permalink
    @FeynmanLogomaker (View Post)
    Interestingly enough, I can't compile my mod for windows either ...

    I updated from LMDE to LMDE2 on Saturday (basically, just upgraded my packages to be a year less old). It did something to my mingw installation and i'm currently trying to figure it out.

    Edit:
    is this changelog normal >_>

    image

    I'm using version 8.5 on linux
    Edited once by jacob1. Last: 26th May 2015
  • ChargedCreeper
    26th May 2015 Member 0 Permalink

    FeynmanLogomaker:

    I know, the Linux version is the only one that's up-to-date. I'm having severe computer issues - right now, I can't boot into a graphical environment, and I managed to break sudo. I may have to wipe and reinstall ubuntu, but other builds will hopefully be available within a few days.

    If anyone else can make builds (@jacob1, @wolfy1339?) that would be nice, since I'm busy trying to save my computer.

     

    Compiling it cant be that hard. I think I'll have a go at doing it if nobody beats me to it. Heh, while I'm at it I might as well make myself a nice AVX2 enabled build to try to get a bit more FPS since I have an Intel Haswell refresh Core i7.

     

    Edit: nope. This isn't simple to compile. Anyone mind telling me how to compile this? I use Code::Blocks IDE.

    Edited 2 times by ChargedCreeper. Last: 26th May 2015