Search found 2552 matches

by minmay
Sat Aug 17, 2019 5:55 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3203
Views: 633052

Re: Ask a simple question, get a simple answer

It is not possible to remove items from SurfaceComponents or SocketComponents except by destroying the items or getting the player to click on the items and pick them up. Attempting to remove an item from one of these components via script (by destroying the Surface/SocketComponent, adding it to ano...
by minmay
Fri Aug 16, 2019 12:56 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3203
Views: 633052

Re: Ask a simple question, get a simple answer

change

Code: Select all

lighting = false,
to

Code: Select all

lighting = true,
by minmay
Wed Aug 14, 2019 8:42 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3203
Views: 633052

Re: Ask a simple question, get a simple answer

It really looks like that branch is facing away from the camera to me. Does it look dark from the other side too? If so, I have no idea what's going on.
by minmay
Wed Aug 14, 2019 6:08 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3203
Views: 633052

Re: Ask a simple question, get a simple answer

doubleSided materials are still only properly lit on the front side, the back side will be darker regardless of your normals - you can observe this in many of the models in the standard assets, such as the heather. Again, are you sure these faces are pointing the direction you want? Look at the mode...
by minmay
Wed Aug 14, 2019 12:39 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3203
Views: 633052

Re: Ask a simple question, get a simple answer

If you're getting "black parts", that doesn't sound like an issue with the default normals in the first place. Are you sure these faces are pointing outwards? I confess I never tested the custom normal part after I made my changes to the plugin, so you could try using the original version of the plu...
by minmay
Tue Aug 13, 2019 12:01 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3203
Views: 633052

Re: Ask a simple question, get a simple answer

No, you need ProjectileColliderComponent for that.
by minmay
Mon Aug 12, 2019 9:21 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3203
Views: 633052

Re: Ask a simple question, get a simple answer

Minmay you're a beast! But where did this "GameMode.damageRecurse" come from? Umm...my brain I guess? Naming variables is hard. It would be cleaner to use an upvalue instead of sticking it in GameMode of course, but I don't remember whether that hook gets serialized (if it does, using an upvalue in...
by minmay
Mon Aug 12, 2019 8:21 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3203
Views: 633052

Re: Ask a simple question, get a simple answer

For champions, you can effectively reduce (or increase) damage taken by using the onDamage hook. For example, if you want to reduce all damage by the champion's level, to a minimum of 1: onDamage = function(self, champion, damage, damageType) if GameMode.damageRecurse then GameMode.damageRecurse = n...
by minmay
Mon Aug 12, 2019 7:48 pm
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3203
Views: 633052

Re: Ask a simple question, get a simple answer

Yes, use GameObject:setWorldPosition() or GameObject:setSubtileOffset() to adjust the positions of the items. Oh one more question, I saw a video where someone set up a transition between 2 areas, but you could see what was on the other side, does anyone know how to set that up? It isn't really show...
by minmay
Mon Aug 12, 2019 2:20 am
Forum: Mod Creation
Topic: Ask a simple question, get a simple answer
Replies: 3203
Views: 633052

Re: Ask a simple question, get a simple answer

Functions in Lua are limited to 65536 constants at compile time. Because dungeon.lua uses a string constant for every GameObject id and GameObject ids are unique, every GameObject placed in your dungeon corresponds to at least one constant (more if one of its name, or one of its x,y,facing,elevation...