Search found 97 matches

by Illiander42
Thu Dec 16, 2021 4:47 pm
Forum: Modding help
Topic: LuaTechnology.level not showing infinite tech level
Replies: 10
Views: 855

Re: LuaTechnology.level not showing infinite tech level

From my poking around, tech.level doesn't seem to exist for non-multi-levelled techs?

My lua isn't great, so what happens then?

And how does your code handle multi-level non-infinite tech? I know it's a flaw in mine.
by Illiander42
Wed Dec 15, 2021 6:02 pm
Forum: Modding help
Topic: LuaTechnology.level not showing infinite tech level
Replies: 10
Views: 855

Re: LuaTechnology.level not showing infinite tech level

So something like this should work in all cases? local numResearched = 0 local numTechs = 0 for _, tech in pairs(force.technologies) do if tech.enabled then numTechs = numTechs + 1 end if tech.researched then numResearched = numResearched + 1 else if not (tech.research_unit_count_formula == nil) the...
by Illiander42
Wed Dec 15, 2021 9:59 am
Forum: Modding help
Topic: LuaTechnology.level not showing infinite tech level
Replies: 10
Views: 855

Re: LuaTechnology.level not showing infinite tech level

Ok, that makes sense now that it's been pointed out to me. Tech.researched isn't "has this tech been researched ever" it's "has this tech been researched fully". Is tech.level == zero for all unresearched techs, and one for individual techs (eg. construction bots) that have been ...
by Illiander42
Wed Dec 15, 2021 8:37 am
Forum: Modding help
Topic: LuaTechnology.level not showing infinite tech level
Replies: 10
Views: 855

Re: LuaTechnology.level not showing infinite tech level

1) What do you mean by "rococo" code? I value clarity over conciseness in code.

2) That doesn't solve the problem that tech.level doesn't report infinite techs correctly.
by Illiander42
Tue Dec 14, 2021 11:06 pm
Forum: Modding help
Topic: LuaTechnology.level not showing infinite tech level
Replies: 10
Views: 855

LuaTechnology.level not showing infinite tech level

LuaTechnology.level is not showing infinite tech level Example: Energy Weapons Damage is at level 21, but Lua is reporting the highest level of any tech as 7. I am trying to determine the number of times any research has been completed in a way that handles mods being added/removed mid-playthrough (...
by Illiander42
Sun Sep 05, 2021 1:49 pm
Forum: Technical Help
Topic: Can't update mods /api/mods 414 - less mods in folder than before
Replies: 3
Views: 1890

Re: Can't update mods /api/mods 414 - less mods in folder than before

So on some further experimentation, it seems that the mod portal API has reduced its limit on the number of mods you can have installed to ~450.
by Illiander42
Thu Sep 02, 2021 10:18 am
Forum: Technical Help
Topic: Can't update mods /api/mods 414 - less mods in folder than before
Replies: 3
Views: 1890

Can't update mods /api/mods 414 - less mods in folder than before

Steam install, Linux OS.

The "API call failed, path /api/mods, status 414" error is back, and my mods folder has less items in it than the last time that I updated mods.

Is there a known fix for this that doesn't involve wiping my mods folder?
by Illiander42
Tue Aug 10, 2021 7:25 pm
Forum: Outdated/Not implemented
Topic: Remove notch's quote from the steam page
Replies: 7
Views: 3426

Re: Remove notch's quote from the steam page

I just responded to the first hit on google about Kovarex's Notch moments.

He's an ass, and I want to know if he's been removed from the public face of the company yet.
by Illiander42
Sun Aug 08, 2021 2:03 pm
Forum: Outdated/Not implemented
Topic: Remove notch's quote from the steam page
Replies: 7
Views: 3426

Re: Remove notch's quote from the steam page

Has Kovarex had his access to the official twitter account removed yet?
by Illiander42
Sat Dec 19, 2020 11:47 pm
Forum: Pending
Topic: [1.1.6] Continue Button stuck on host
Replies: 5
Views: 816

Re: [1.1.6] Continue Button stuck on host

Which file is/how do I get the log?
by Illiander42
Sat Dec 19, 2020 5:13 am
Forum: Pending
Topic: [1.1.6] Continue Button stuck on host
Replies: 5
Views: 816

[1.1.6] Continue Button stuck on host

After hosting a game for some friends, the "Continue" button on the main menu toggled to automatically re-host.

But after loading and playing some single player, it is still set to "Host", not single-player.
by Illiander42
Tue Dec 15, 2020 8:10 pm
Forum: Releases
Topic: Version 1.1.6
Replies: 26
Views: 25724

Re: Version 1.1.6

Barrelling and unbarrelling (intermediate products) is NOT allowed to use productivity modules. Are you suggesting to allow that? Or to move the un-/barelling to another tab? It must be the second. Allowing prodmods here, would create a perpetum mobile loophole. Agreed. Even with the barrels as cat...
by Illiander42
Tue Nov 10, 2020 12:38 am
Forum: Bob's mods
Topic: [1.1] - Artisanal Reskins: Bob's Mods
Replies: 78
Views: 17858

Re: [1.0] - Artisanal Reskins: Bob's Mods

kirazy wrote: ↑
Mon Nov 09, 2020 6:42 pm
Fixed and published.
Thank you :)
by Illiander42
Mon Nov 09, 2020 3:48 pm
Forum: Bob's mods
Topic: [1.1] - Artisanal Reskins: Bob's Mods
Replies: 78
Views: 17858

Re: [1.0] - Artisanal Reskins: Bob's Mods

Hi, I'm using your library to help with angelbob intergration for some of my mods, and I've run into a bug when icon sprites aren't 64x64. Here's the fix: icon-handling.lua function reskins.lib.append_tier_labels(tier, inputs) -- Inputs required by this function -- icon - Table containing an icon/ic...
by Illiander42
Mon Nov 09, 2020 7:20 am
Forum: Bob's mods
Topic: [1.1] Bob's Mods: Alternate Textures mod
Replies: 17
Views: 16273

Re: [0.18.x] Bob's Mods: Alternate Textures mod

Icons are broken due to icon size again.
by Illiander42
Wed Oct 28, 2020 5:06 pm
Forum: Modding discussion
Topic: surface.set_tiles() and ungenerated chunks?
Replies: 7
Views: 1039

Re: surface.set_tiles() and ungenerated chunks?

So I looked a bit more into that, and found some notes that imply that this code should do what I want: local surface = game.get_surface("nauvis") local mgs = surface.map_gen_settings mgs.property_expression_names = {["tile:deepwater:probability"] = 100} surface.map_gen_settings ...
by Illiander42
Wed Oct 28, 2020 10:21 am
Forum: Modding discussion
Topic: surface.set_tiles() and ungenerated chunks?
Replies: 7
Views: 1039

Re: surface.set_tiles() and ungenerated chunks?

What I mean is if you remove all autoplace settings, the map is filled with "grass-1". I'd like to know if there's an easy way to change that to "deepwater" without using OnChunkGenerated(), because the autoplace documentation is really unclear, and I can't undertand how to do so...
by Illiander42
Wed Oct 28, 2020 7:17 am
Forum: Modding discussion
Topic: surface.set_tiles() and ungenerated chunks?
Replies: 7
Views: 1039

Re: surface.set_tiles() and ungenerated chunks?

Cheers.

Follow-up question:

Is there an easy way to set a default tile? I'm having trouble navigating the docs about autoplace settings.
by Illiander42
Tue Oct 27, 2020 9:06 pm
Forum: Modding discussion
Topic: surface.set_tiles() and ungenerated chunks?
Replies: 7
Views: 1039

surface.set_tiles() and ungenerated chunks?

Can anyone confirm the behaviour of using surface.set_tiles() to set tiles in chunks that aren't generated yet?

Go to advanced search