Search:

Type: Posts; User: Banbury

Page 1 of 4 1 2 3 4

Search: Search took 0.01 seconds.

  1. Replies
    46
    Views
    7,822

    Thanks for your interest anyway. All I wanted to...

    Thanks for your interest anyway.
    All I wanted to do, was to collect useful code for the community. I didn't want to debate anything. That's never ending well, as you can see.

    I still have a few...
  2. Replies
    46
    Views
    7,822

    That's no debate. That's plain old bullying. ...

    That's no debate. That's plain old bullying.

    @dzikakulka, @onelivesleft: You're on my ignore list now. I like your work, actually. But I'm not willing to deal with your rudeness.
  3. Replies
    46
    Views
    7,822

    Fisher-Yates allows cards to change position...

    Fisher-Yates allows cards to change position multiple times. Pulling cards from a deck, reduces the number of cards that can be shuffled. Also cards cannot end up in the same place where they...
  4. Replies
    46
    Views
    7,822

    math.random(n) returns a number from 1

    math.random(n) returns a number from 1 <= x <= n. And that's what I want.
  5. Replies
    46
    Views
    7,822

    @maximo Please, look at the first post in this...

    @maximo Please, look at the first post in this thread. If you don't want to use the whole library, you can copy the relevant function into your own code.

    TTS is pulling cards randomly from a deck...
  6. Replies
    46
    Views
    7,822

    http://ilspy.net/ :)

    http://ilspy.net/ :)
  7. Replies
    46
    Views
    7,822

    I have added a real shuffle method to Objects....

    I have added a real shuffle method to Objects. Unlike the na´ve randomize implementation used in Tabletop Simulator this uses the Fisher-Yates algorithm.
  8. Replies
    31
    Views
    6,472

    I worked around it, by putting the cards back on...

    I worked around it, by putting the cards back on the same deck. It works for my particular problem.
  9. Replies
    4
    Views
    1,818

    Create deck from table

    getObjects() returns a table of cards in a deck. It would be nice to have a function (putObjects?) to create a new deck from this table.

    It would make it much easier to sort decks.

    Even better...
  10. Replies
    31
    Views
    6,472

    I'm trying to create an all-purpose library....

    I'm trying to create an all-purpose library. Scripting zones are too much setup for a utility function.
  11. Replies
    31
    Views
    6,472

    The deck object still exists. It just doesn't...

    The deck object still exists. It just doesn't return the last card. I consider this a bug now, since the release notes state clearly that this should work.
  12. Replies
    31
    Views
    6,472

    takeObject() doesn't take last card from deck

    -- o is a deck
    local cards = o.getObjects()

    for i=#cards, 2, -1 do
    o.takeObject({ guid = cards[i].guid })
    end

    local c = o.takeObject()
    print(c) -- prints nil
  13. Replies
    46
    Views
    7,822

    I'm finding this stuff out myself as I go along,...

    I'm finding this stuff out myself as I go along, too. So if I can help, just ask.

    It would be nice to have an #ifdef command to avoid including stuff twice.

    Re Github: The user doesn't seem to...
  14. Replies
    46
    Views
    7,822

    I have added another module. Vectors This...

    I have added another module.

    Vectors
    This provides a class Vector, that has all the necessary functions for working with vectors, including adding and subtracting vectors, cross and dot product,...
  15. Replies
    46
    Views
    7,822

    You have a strange way of showing your...

    You have a strange way of showing your appreciation. I found your comments unhelpful.
  16. Replies
    46
    Views
    7,822

    @dzikakulka Since I started this last week, I...

    @dzikakulka Since I started this last week, I literally got nothing but criticism and snarky remarks.

    Try being constructive for a change. Maybe you could tell me, what functions you could use?
  17. Replies
    46
    Views
    7,822

    I have addded another module. Objects This...

    I have addded another module.

    Objects
    This module contains three functions, that help operating on multiple objects at once. They allow filtering objects according to criteria and executing code...
  18. Replies
    46
    Views
    7,822

    Do you know why Github has a fork feature?...

    Do you know why Github has a fork feature? Because there are a lot of people who enjoy forking other peoples code and working on it. But that's not even what I've been asking for. All I suggested was...
  19. Replies
    46
    Views
    7,822

    And what about the users, who depend on that...

    And what about the users, who depend on that library? They would be left with nothing. With one repo they have at least the last working version. This also protects against the occasional crazy...
  20. Replies
    46
    Views
    7,822

    That's exactly why I want one repo. Then everyone...

    That's exactly why I want one repo. Then everyone shares responsibility that everything works together. Tabletop Simulator's Lua has severe limitations with scopes and avoiding conflicts between...
  21. Replies
    46
    Views
    7,822

    For me it is a question of control (as it is for...

    For me it is a question of control (as it is for you I guess) and standardization. If you clone my repo and add your code to it, you still can maintain your code separately. If you want your changes...
  22. Replies
    46
    Views
    7,822

    I will have a look at those submodules for sure....

    I will have a look at those submodules for sure.

    I think a standard library in one repository is good for useful functions, that are written once and won't change much. If you have ever programmed...
  23. Replies
    46
    Views
    7,822

    Standard Library for Tabletop Simulator

    Download latest release.

    With the new #include feature in the Atom plugin it is finally possible to modularize code.

    This gave me the idea to create a Standard Library for Tabletop Simulator...
  24. Replies
    7
    Views
    1,670

    Well that works. But it isn't LUA for sure. ...

    Well that works. But it isn't LUA for sure.

    Thanks anyway.
  25. Replies
    7
    Views
    1,670

    Variable arguments do not seem to work

    function test(...)
    print(arg)
    end

    test("test")


    The arg value is nil.
Results 1 to 25 of 92
Page 1 of 4 1 2 3 4