Smog: Visual Pollution


Now high pollution makes grey smog; good UPS optimization

Tweaks
3 years ago
0.17 - 1.1
2.14K

b Wrong whitelist/blacklist functions for remote_call (warptorio2 smog planet related)

Honktown β˜†
4 years ago

Error while running event warptorio2::on_tick (ID 0)
Error when running interface function warptorio_planet_smog.spawnSmog: No such function: SmogVisualPollution.whitelist
stack traceback:
warptorio_planet_smog/control.lua:11: in function <warptorio_planet_smog/control.lua:11>
stack traceback:
[C]: in function 'call'
warptorio_planet_smog/control.lua:11: in function <warptorio_planet_smog/control.lua:11>
stack traceback:
warptorio2/control_planets.lua:391: in function 'GeneratePlanetSurface'
warptorio2/control.lua:2348: in function 'BuildNewPlanet'
warptorio2/control.lua:2429: in function 'Warpout'
warptorio2/control.lua:2158: in function 'v'
warptorio2/control.lua:3115: in function <warptorio2/control.lua:3115>
stack traceback:
[C]: in function 'call'
warptorio2/control_planets.lua:391: in function 'GeneratePlanetSurface'
warptorio2/control.lua:2348: in function 'BuildNewPlanet'
warptorio2/control.lua:2429: in function 'Warpout'
warptorio2/control.lua:2158: in function 'v'
warptorio2/control.lua:3115: in function <warptorio2/control.lua:3115>

Looks like in control.lua the functions are wrong:

remote.add_interface("SmogVisualPollution", {
blacklist=smog.call_blacklist_surface,
whitelist=smog.call_whitelist_surface,
})

The functions are smog.call_blacklist and smog.call_whitelist. I reloaded my save and got a different planet, but I'll report back if it works.

Honktown β˜†
4 years ago

I think I ran across some polluted planets and it works. I grossly turned down the smog effect in general because otherwise every planet gets completely blanketed in gray.

4 years ago
(updated 4 years ago)
Honktown β˜†
4 years ago

Yeah, that's all it takes as far as I know: changing call_whitelist_surface to call_whitelist and call_blacklist_surface to call_blacklist in the remote call interface thing. The two functions are right above the remote_interface definition, and you can see they're not the same functions passed as the remote calls.

4 years ago

It's interesting, but the "smog planet" mod has worked with this code before.

PyroFire β˜†
4 years ago

Hi Darkfrei, this is on my end so i'll let you know if anything is needed in future

4 years ago

Thanks man! Is the update of Warptorio2 soon?

New response