Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Apr 14 20:07

    timfel on master

    allow using the Unit() function… (compare)

  • Apr 09 18:21
    timfel closed #183
  • Apr 09 18:21
    timfel closed #184
  • Apr 09 18:21

    timfel on master

    Fix when looking for objectives… Merge pull request #184 from as… (compare)

  • Apr 08 22:49
    asbernardi edited #184
  • Apr 08 22:49
    asbernardi edited #184
  • Apr 08 22:49
    asbernardi opened #184
  • Apr 08 17:47
    asbernardi opened #183
  • Apr 03 08:07
    timfel commented #284
  • Apr 03 08:07
    timfel commented #27
  • Apr 03 08:07

    timfel on master

    Update InAttackRange() to check… Merge pull request #327 from ip… (compare)

  • Apr 03 08:07
    timfel closed #327
  • Apr 02 17:50

    timfel on master

    add a little docs on map buildi… Merge branch 'master' of github… (compare)

  • Apr 01 18:02
    ipochto opened #327
  • Apr 01 15:25
    77Mynameislol77 commented #27
  • Apr 01 15:25
    77Mynameislol77 commented #27
  • Apr 01 15:01
    77Mynameislol77 commented #284
  • Mar 31 15:28
    ManOfFlash closed #326
  • Mar 31 15:28
    ManOfFlash commented #326
  • Mar 31 15:05
    ManOfFlash opened #326
WargusCI
@WargusCI
[discord] <Andrettin> generally when thinking of Warcraft lore, I consider WC2 to have primacy as canon, then WC1, then everything else
[discord] <Andrettin> but that's just my personal take on it
[discord] <ipochto> Hmm, do you mean Blizzard's novels or fanfic?
[discord] <ipochto> I never hear about official Blizzard's novels
[discord] <Andrettin> the official novels
[discord] <Andrettin> the ones I've read weren't very good
[discord] <Andrettin> decidedly below the quality of the writing in the WC2 manual IMO
WargusCI
@WargusCI
[discord] <timfelgentreff> yeah, quality of wiring isn't great for these novels. Lord of the Clans is just a summary of the point and click adventure, for example. The only one I actually enjoyed was The Last Guardian. That has some pretty good background about Medivh and Khadgar
WargusCI
@WargusCI
[discord] <Andrettin> I'm not sure I've read that one
[discord] <Andrettin> the high point of Tides of Darkness for me were the new named characters like the troll Krul'tan
[discord] <Andrettin> I thought "oh, it would be cool to have him as a hero in the Zul'jin mission"
WargusCI
@WargusCI

[discord] <timfelgentreff> @Andrettin btw, I've thought a bit more about including xBRZ from a legal perspective. Zenju writes this in his license:

Additionally and as a special exception, the author gives permission
to link the code of this program with the MAME library (or with modified
versions of MAME that use the same license as MAME), and distribute
linked combinations including the two.

Mame is GPLv2. Now, there are two options:
a) the inclusion of xBRZ in MAME does not make MAME "linked with" or "derivative work of" xBRZ in the meaning of the GPL. In that case, the exception doesn't matter, since it isn't even needed, and also the same argument would be used for Stratagus and so the license doesn't matter here, either
b) xBRZ as included in MAME is now GPLv2. And GPLv2 explicitly forbids making any further restrictions other than those put forth in the GPL itself. That means, the version of xBRZ is GPLv2 for anyone, it is not valid to restrict it to be used in MAME only. So Stratagus can always claim that its version of the xBRZ shader was derived from the GPLv2 version that is included in MAME, and is this fully under GPLv2.

WargusCI
@WargusCI
[discord] <Arvex> It was a summary of a point and click adventure that never got released, specifically (but did leak out a few years ago.)
WargusCI
@WargusCI
[discord] <ipochto> @timfelgentreff, is there possibility to call static function-member from lua? F.ex. CViewPort::SomeMethod()
[discord] <ipochto> Not viewport.SomeMethod()
WargusCI
@WargusCI
[discord] <timfelgentreff> i don't know of any, probably easiest to export it with a C wrapper function
[discord] <ipochto> I thought maybe there is some more elegant way )
WargusCI
@WargusCI
[discord] <Mynameislol> So can i do something like this?
[discord] <Mynameislol> AddTrigger( function() return GetPlayerData(3, "UnitTypesCount", "unit-man-of-light") == 1 end, function() return RescuedFrom(0) end)
[discord] <Mynameislol> cause it crashes, dunno how i can call "RescuedFrom" from within "IfRescuedNearUnit"
WargusCI
@WargusCI
[discord] <Mynameislol> did you manage to find out what caused this?
WargusCI
@WargusCI
[discord] <ipochto> const char DefaultGroupKeys[] = "0123456789`";/// Default group keys
[discord] <ipochto> Does anyone know know why '`' is here?
[discord] <ipochto> It in the interface.cpp and stratagus.lua.
WargusCI
@WargusCI
[discord] <ipochto> C++ const char DefaultGroupKeys[] = "0123456789`";/// Default group keys
[discord] <ipochto> C++ const char DefaultGroupKeys[] = "0123456789`";/// Default group keys
WargusCI
@WargusCI
[discord] <ipochto> C const char DefaultGroupKeys[] = "0123456789`";/// Default group keys
WargusCI
@WargusCI
[discord] <ipochto> Does anyone know why '`' is here?
WargusCI
@WargusCI
[discord] <timfelgentreff> because on the US keyboard layout, `` comes left of1`
[discord] <ipochto> But this key don't work for binding groups.
[discord] <ipochto> *I've tried to use it for calling debug menu, but it seems that it catched by units control keyboard handler
WargusCI
@WargusCI
[discord] <ipochto> So had to enable another binding
WargusCI
@WargusCI
[discord] <ipochto> One more question. Is there way to tell lua to look for deckaration of called (but not declared yet) function later?
[discord] <ipochto> Something like in C

[discord] <ipochto> ```C
void someFunction();

void anotherFunction()
{
someFunction();
}
void someFunction()
{
// do something.
}
```

WargusCI
@WargusCI
[discord] <timfelgentreff> you don't need to, the lookup is only at call time
[discord] <timfelgentreff> you can have
function foo() bar() end
function bar() foo() end
WargusCI
@WargusCI
[discord] <ipochto> Ok... and does it works with variables?
[discord] <ipochto> I declared 2 drop down lists, and in certain circumstances they may update each other
[discord] <ipochto> It works, but I don't like how it looks (
[discord] <ipochto> I have to declare list much earlier than use it
WargusCI
@WargusCI
[discord] <Simone Starace> Good evening from where I live gentlemen
WargusCI
@WargusCI

[discord] <ipochto> I'm afraid not:
this:

variable = 0;
function foo() bar() end
function bar() variable = 2 end
print (variale)

prints 0

[discord] <ipochto> I'm afraid not:
this:

variable = 0;
function foo() bar() end
function bar() variable = 2 end
print (variale)

prints 0

[discord] <timfelgentreff> you have a typo, and you didn't call foo?
[discord] <ipochto> 🤦
WargusCI
@WargusCI
[discord] <timfelgentreff> the code above uses 'variable' as a global, that definitely works. I'm not sure if you can assign to locals in the enclosing scope, depends how lua implements closures
[discord] <timfelgentreff> the faster version lets you not assign to outer locals
[discord] <timfelgentreff> so languages have taken different approaches