Nestharus
Reaction score
83

Profile posts Latest activity Postings About

  • Hey this is regarding that post refering to x == 0 issues
    couldnt you do a boolean check on it? cuz isnt 0 = false and 1 = true?
    so: [ljass]if not x then[/ljass]
    Have you fixed the QSort already?
    Another Q
    I read somewhere that QuickSort is good for sorting lists for the first time, but after that MergeSort outspeeds it. Is this true?
    Nes your QSortI is broken, please fix it. I was trying to add a compare method and continued to fail, then tested it without my modding and it turned out to be failing big time >.>
    How about a timer that starts at initialization and never stops, when a timer it's created check the main timer's elapsed time and when does the new timer expire considering the main timer (like a time stamp), then sort them through a binary heap?
    Finally found the bug, It seems that units in my TD are DEINDEXED the second they enter the map, why? because they're instantly ordered to move to a location and they don't have the index ability yet, causing them to be deindexed. Another bug i found is because WorldBounds is bugged, looks like if the unit touches the border of the map it's deidexed and it shouldn't. Please fix thse weird bugs
    i JUST copied them from the webpage. Also checked the code and nothing seemed to be wrong with it. However there seems to be an issue regarding the "e" unit array in the unit indexer because some of my tests indicate that targetId returns an integer, but when i try to get an unit from that value it returns null.
    With [ljass]GetUnitById(DamageEvent.target)[/ljass] i hope you mean [ljass]GetUnitById(DamageEvent.targetId)[/ljass] which is basically what the operator returns. And yes, in my triggers DamageEvent.source returns an unit, but DamageEvent.target is null.

    I'll PM you my code

    In the version of unit indexer GetUnitId was commented, just downloaded it again from the webpage. Still using GetUnitUserData should be better

    EDIT: the weird thing is that targetId does return an integer, but GetUnitById(targetId) returns null
    So i decided to delete AIDS, Damage and Event (J4L libraries) from my map and replace them with yours.
    You should probaly fix the API in your Damage library from EVENT to ANY (in the post you submitted not the trigger)
    You should also mention that you commented the GetUnitId function from you UnitIndexer because users are meant to call GetUnitUserData directly

    EDIT: your damage library seems to not be returning the DamageEvent.target unit when the trigger fires. Why?
    Ok got it working now, i think that the LUA_FILE_HEADER from the quickstart tutorial is outdated.

    On a side note, i can't use your libraries now because you stole other library's names. For instance, you have your own "event" library different from J4L's, but if i replace his with yours then i can't use J4L's Damage system.
    Hm so i tried to install LUA into my map but returns an error with the ObjectMerger external block, plus, my luajass.myMap.j text file is EMPTY, why?
    This is the log from the grimex.txt file

    currentobjecttype
    setobjecttype abilities
    generateid Adef
    objectexists A!!!
    createobject A!!!
    makechange 0 anam
    makechange 0 ansf
    makechange 0 aart
    makechange 0 arac
    C:\DOCUME~1\UserName\LOCALS~1\Temp\V2CD9.tmp.lua:46: attempt to index global 'file' (a nil value)
    1 loop and 2 nested loops, that's just insane, i can't do it.
    The only thing i've done so far is put the compared values at the end of the linked list. Beyond that i don't know what else to do
    Great! the system surpasses all expectations then, it's ready for submission. Btw i'm completly lost on those algorithms you linked me, i can barely decipher the programming language they're using.
    Ok... at the very top of the heap, the root, the very first node you access... that's the biggest/smallest value >.>.

    It's O(1) access. It's like always being assured that the first node in a linked list is going to be the smallest or biggest values.
    i've been reading the lecture about heaps, it's very interesting, but there's one algorithm that i just don't get: the Heap-Max-Extract algorithm, it's not explained graphically anywhere
  • Loading…
  • Loading…
  • Loading…
General chit-chat
Help Users
  • No one is chatting at the moment.
  • tom_mai78101 tom_mai78101:
    I have a GIF though
  • tom_mai78101 tom_mai78101:
    In the GIF, I've configured it so the lower the "Main Value" is, the better. I had to compress it pretty far down though.
  • tom_mai78101 tom_mai78101:
    And this is the thread with the video that shows the wall clip. https://tasvideos.org/Forum/Topics/23453
    +2
  • tom_mai78101 tom_mai78101:
    Hmm, about the Headline News, I noticed threads are being moved into the subforum (Health News, Environmental News, etc.). When that happens, the TH Forum Home page loses the articles, and instead would show old articles posted 1 or 2 weeks ago.
  • tom_mai78101 tom_mai78101:
    What do we do with the Home page?
  • Ghan Ghan:
    I added those forums to the filter for that widget.
    +1
  • tom_mai78101 tom_mai78101:
    Oh nice. They're back. Thanks.
  • tom_mai78101 tom_mai78101:
    Now I think it makes more sense for me to put news in their own subforums, without worry.
  • The Helper The Helper:
    Awesome Ghan thanks! I was purposely not moving the first 15 news articles in Headline news to the different subforums but I guess I don't have to do that now?
  • tom_mai78101 tom_mai78101:
    Question: Is there a way to remove thread redirects? It creates a copy of the moved thread and takes up space, and I am leaning towards wanting to remove them in the Headline News. But if they have an expiration date, I guess I'm fine with it.
  • The Helper The Helper:
    If you move a thread please leave a permanent redirect. You can delete any redirects after 6 months. The redirects are left to help Search Engines find the moved content.
  • tom_mai78101 tom_mai78101:
    What if you move the permanent redirect, not the thread?
  • The Helper The Helper:
    I think that works but I have not messed with it. You can delete redirects though if you have to that will not delete the original thread
  • The Helper The Helper:
    if a redirect ends up in the same forum as the post it goes to though I think the redirect drops or fails or something but they are not bugged out and when you are working on an indirect the original post is safe.
  • The Helper The Helper:
    Happy Early Friday :)
    +1
  • V-SNES V-SNES:
    Happy Friday :)
  • tom_mai78101 tom_mai78101:
    Fun Friday for me
  • tom_mai78101 tom_mai78101:
    Happy Fun Friday to all.
    +2
  • The Helper The Helper:
    Happy Sunday everyone!!!
  • V-SNES V-SNES:
    Happy Sunday!!!
    +1
  • jonas jonas:
    Happy monday :p
  • jonas jonas:
    Everyone hates mondays?
    +1
  • The Helper The Helper:
    Happy Tuesday!
  • jonas jonas:
    Happy belated tuesday

    Affiliates

    Hive Workshop NUON Dome World Editor Tutorials

    Network Sponsors

    Apex Steel Pipe - Buys and sells Steel Pipe.
    Top