Search results

  1. Trokkin

    The community is hopelessly done for

    Thanks to email notifications I came back here to read the thread. Nice to see you all again lol. From my point of view, as long as battle.net servers are live, the game will live too, the community just won't die that easily. While it's sad that long overdue promises are still not being held...
  2. Trokkin

    [Lua] Effect

    Code is pretty self-explanatory, so here you go: 1. Fixes pre-1.32 setHeight function to consider terrain height 2. Implements GetHeight, GetAlpha and Show/Hide functionality for effects 3. Doubles all Blz-prefixed functions into ones with better naming All of that is achieved with function...
  3. Trokkin

    Reputation (+4): (Post) Exactly what I was thinking about recently. Great advancements!

    Reputation (+4): (Post) Exactly what I was thinking about recently. Great advancements!
  4. Trokkin

    Ceres - a WC3 build tool for Lua maps

    SetUnitUserData(u, {whatever, i, would, like, to, put, in, here}) I doubt it would work though, since natives still (seem to) expect correct types. But if you write your own, it would be only one function to do the attachment and only one to get it. Hashtable (now useless) has a set of HasX...
  5. Trokkin

    Ceres - a WC3 build tool for Lua maps

    Less chunky syntax Execute code directly Callbacks with arguments, including vararg Native lambdas with by-reference variable capturing Code arrays Dynamic memory Classes and objects without non-unique ID referencing extra-large static arrays No strict typing Modifying environment at will...
  6. Trokkin

    I'm getting this rolling: https://github.com/Trokkin/CeresStdLib

    I'm getting this rolling: https://github.com/Trokkin/CeresStdLib
  7. Trokkin

    Ceres - a WC3 build tool for Lua maps

    Why do that, when JassHelper can already do what Ceres do with Lua? I mean, replace 'require' with 'import' and run JH from console? Worked for me several years before I switched for a better language.
  8. Trokkin

    LUA tests and benchmarks

    It exists and returns true, provided you use FourCC to convert 'hfoo' into integer. Meaning yes, at least this function is available.
  9. Trokkin

    Reputation (+4): (Post) Yes indeed. Checked, shell is indeed a possibility. Awesome!

    Reputation (+4): (Post) Yes indeed. Checked, shell is indeed a possibility. Awesome!
  10. Trokkin

    LUA tests and benchmarks

    You mean, replace? Yes, you can simply overwrite the native/function -- but you better store old version, especially if you're going to use it once. But I didn't check if we can use common.ai from Lua. If we can, we should be able to straight use it. Declaring function Name(...) end would...
  11. Trokkin

    LUA tests and benchmarks

    Benchmarked another two things. Natives seem to never be efficient. And since we can substitute natives now, I suggest we slowly replace the entire common.j and blizzard.j for good, for those GUI users. E: thanks to KeepVary, load() can indeed be used to load code in runtime.
  12. Trokkin

    Lua VSCode Integration

    I'm using Ceres - a WC3 build tool for Lua maps for that reason. Having code in separate files helps a lot, especially when pulling someone's libraries.
  13. Trokkin

    Lua VSCode Integration

    Great. Although I found sumneko Lua extension much handier for myself, as it automatically browses every Lua file in project directory, and compiled Lua file from your snippets file that does kinda the same thing.
  14. Trokkin

    LUA tests and benchmarks

    It isn't hard to translate vjass to lua, at least without language specific optimizations. I've heard there is already a translator that does it automatically. Also I'm currently working on kind of a standard library for Lua, so I'd like to hear what exactly is holding you back on vJass, that...
  15. Trokkin

    LUA tests and benchmarks

    Last time I tried that out, my linux complained about something something achtung dll injection something something. Anyways, my interest in researching JASS fades away any second I write in Lua, so I'm definitely not going to do that. I'm a bad guy, I know that :grin: lol, that's hilarious but...
  16. Trokkin

    LUA tests and benchmarks

    pcall seems to be very performant (~20% less than direct calls), especially compared to old ways of error handling. Except for cases when an error is thrown - a pcall with an error throw is equivalent to both coroutine creation and exploit, other kinds of errors seems to take even more time...
  17. Trokkin

    LUA tests and benchmarks

    That's exactly how I benchmarked Lua here, if you wonder. I was asking because Jass has zero functionality to measure time spent frozen, without dll injections with stopwatch natives. If someone with those injections is willing do this benchmarking, I'm willing to provide tests.
  18. Trokkin

    LUA tests and benchmarks

    Dr Super Good, is there a way to use Lua functions from jass? If there's any, then I'd be willing to benchmark jass alongside with Lua of course.
  19. Trokkin

    Ceres - a WC3 build tool for Lua maps

    Is there any forums or chats or anything for the community around ceres?
  20. Trokkin

    LUA tests and benchmarks

    Updated again: fixed indirect calls to not waste time on local variables and added another coroutine benchmark, showing that .resume is twice as heavy as .create. Also rerun tests on 10x to increase precision. Coroutines provide a unique way to run code, so although they are way less performant...
  21. Trokkin

    LUA tests and benchmarks

    Updated. I could have made similar benchmarks for JASS to compare their performance, but I honestly don't think it is worth the trouble. I don't even consider JASS worth of using anymore. I mean, prove me wrong, but I can't see anything that JASS does better than LUA, with the fact that a...
  22. Trokkin

    LUA tests and benchmarks

    When I say "coroutines", I mean LUA coroutines, which is native language feature. And they are indeed much heavier than plain function calls but enables function to yield more than one value at a time. Also, easy producer-consumer solving and other benefits that aren't quite fit to what is...
  23. Trokkin

    LUA tests and benchmarks

    I've been asked to check several statements about LUA, so here's a bunch of tests and benchmarks from me. This compilation might be supplemented should any questions appear. Ask any! I'm using Trokkin/CeresStdLib for utility. [/SPOILER] [/SPOILER]
  24. Trokkin

    Max Map limit for Campaigns

    Do you mean 128 is the limit for the buttons that are visible to player at main campaign screen? You made a lobby to appear first, but then show other maps aside from it? If so, then it's I who was not clear. I meant that you can make lobby the only map accessible from campaign screen, and then...
  25. Trokkin

    Max Map limit for Campaigns

    Hm, if I recall correctly, the first time you click any of original campaigns you're immediately set into its first mission or cinematics or whatever. But only the first time you enter the campaign, which probably means that there's no game cache yet. I wonder if that could be used to achieve...
  26. Trokkin

    Max Map limit for Campaigns

    You could probably use a lobby map to transit to any of your missions. I saw this in a campaign about scarlet crusade which name I don't remember, pretty cool decorated and impressively scripted to act like a person walking through his camp. I don't remember for it to have the possibility to...
  27. Trokkin

    Reputation (+4): (Post) For hating all 4 of them <3

    Reputation (+4): (Post) For hating all 4 of them <3
  28. Trokkin

    [Feedback] Request Features for JASS and the World Editor

    I noticed Blight API to act in a really strange way, so I can't properly paint with blight as I did with other tiles. I know blight is a different matter than tiles, but I suppose redoing the concept so that I at least could have painted with it the same way I do with tiles. And it's important...
  29. Trokkin

    [linux] how to World Editor now?

    Oh well. it just started working somehow. Watching YT videos does automatically solve problems, lol.
  30. Trokkin

    [linux] how to World Editor now?

    As stated on WineHQ, to get Warcraft III 1.31 working it is to be run with this option -graphicsapi Direct3D9, but the same solution doesn't seem to fix World Editor. When I start it up, terrain editor doesn't render its minimap, model viewer and terrain view, while every other editor properly...
  31. Trokkin

    Producer Update: Natives List

    Sure, that's definitely not trackables. Your screenshot itself suggests that it is a tooltip. In that case - sure, it would be very nice to have interface API in general, not only this feature.
  32. Trokkin

    Producer Update: Natives List

    I didn't understand the thing about messages. Aren't trackables just plain effects that has a special event for hovering over? Probably one would want to attach more than one trackable to a widget, so acquiring it as a native would be a problem. While it's done with some jass overhead pretty...
  33. Trokkin

    I'm willing to help anyone who wishes to get into Wurst programming but struggles at something...

    I'm willing to help anyone who wishes to get into Wurst programming but struggles at something. You're welcome to ask!
  34. Trokkin

    thanks man

    thanks man
  35. Trokkin

    JASS Benchmarking Results

    TriggerHappy, could you test that case? And probably it's desirable to have more different cases with different amount of regions. And one case to check if enter/leave events are processed completely during the setX/Y call, like it is with damage event.
  36. Trokkin

    Reputation (+4): (Post) Awesome discovery.

    Reputation (+4): (Post) Awesome discovery.
  37. Trokkin

    Dynamically Retrieve Object Editor Fields

    Awesome. So with it custom interfaces become somewhat more general and lightweight. Just a note, you could optimize your function if you won't care for original description. And you could also implement error case handling.
  38. Trokkin

    Reputation (+4): (Post) oh hell yeah

    Reputation (+4): (Post) oh hell yeah
  39. Trokkin

    [vJASS] [Legacy] Add Base Attack

    Yep. This shouldn't be used in any modern maps, though in legacy-supporting maps it can still be useful as a way to implement 1.29 feature with some limitations.
  40. Trokkin

    Some tips with vJass on Linux

    Nah, that's fine. But in last autumn I discovered wurst for myself and since then I have no problems developing in linux since native vscode and it's wurst extension works there out of the box, just show them warcraft 3 path. Somehow my wine setup, despite being constantly updated from devel...
  41. Trokkin

    Compiling vJass and Wurst using VSCode

    Tutorial is great. Everything else was already said. Actually, instead of updating jasshelper, one could create proper vscode extension that will solve compilation problems with vjass. And maybe add proper language support, at least for syntax highlighting. There is already one extension, but...
  42. Trokkin

    Reputation (+4): (Post) Really nice stuff, love that randomness

    Reputation (+4): (Post) Really nice stuff, love that randomness
  43. Trokkin

    Now in Wurst!

    Now in Wurst!
  44. Trokkin

    [Wurst] Lightning

    Hey, most of this your package were added in recent stdlib2 update as a new handle wrapper package. The rest of your code - the struct - is useful though I feel it need some perfection. For example, I'd recommend you use HashMap instead of Table. Well, anyway, it's nice to see another man into...
  45. Trokkin

    That's seems even more strange... It's 1.26a. Both before and now I had a wc3 logo popping up...

    That's seems even more strange... It's 1.26a. Both before and now I had a wc3 logo popping up, which does happen only with Frozen Throne.exe or Warcraft III.exe - war3.exe starts only ... wah - I noticed my War3.exe was named with capital 'W', and when i renamed it to "war3.exe" it got working...
  46. Trokkin

    [vJASS] [Legacy] Add Base Attack

    Well, I'm not absolute sure, but it seems that "use item" does issue an order. At least it was so in collaboration with a bunch of my very own systems: I did mimic original wc3 attribute mechanics, and set that hero gets exp from dealing damage, then in test ordered him to attack, and whenever...
  47. Trokkin

    [vJASS] [Legacy] Add Base Attack

    Huh, thanks a lot for review. I felt like nobody is interested in this anymore. Yep, I was writing some changes from my phone, so I could broke it eventually. Thanks for the iaa1. Yeah, it does mess with orders, though it seems to be the only way to modify base value of a unit without upgrades...
  48. Trokkin

    BonusHandler

    Yep it's outdated since stdlib got updated and many functions have been renamed, but it's the only problem with this (as far as I'm concerned), so you can fix this manually./ I fixed it by doing this three things: - Rename all "printWarning" to just "print" - Rename all "idString2IdInteger" to...
  49. Trokkin

    Customizable Effects (+ a tool)

    You mean, to use fire orb from the effect without having it rotating around on it's own? That would require model editing, because it is the animation of the effect itself. If you'll use orb of fire effect with this tool, you should get trajectory of the orb that looks just like the Moon's...
  50. Trokkin

    Some tips with vJass on Linux

    Hmm... I didn't see that thread before. Thanks, it is probably needed to mention in the guide. But well, it seems I don't need JNGP anymore, since there's nothing I can't do with .j scripts aside from terrain editing. And it is much more easy for me to use. (It seems that none of the stuff from...
Top