Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upNo Fungal Monsters mod #12798
Conversation
This comment has been minimized.
This comment has been minimized.
|
This is still going to have fungal tower terrain, but it won't have any monsters in it, right? |
This comment has been minimized.
This comment has been minimized.
|
Would it be too much work to enable the ability to blacklist terrain? |
This comment has been minimized.
This comment has been minimized.
|
Ah, hmm. Is there any way to blacklist terrain? I could've sworn when I poked around on the wiki, something claimed that removing the relevant monsters and/or monster groups would affect what terrain spawns. O.o EDIT: A clunkier way around this would be to add an overriding overmap_terrain and overmap_special file that replaces the fungal regions with fields, though I'd need to check whether fungal towers and similar are defined in the specials file. EDIT 2: Working on it and testing it. Mein Gott this terrain keeps spawning no matter how hard I try to break something. :V |
This comment has been minimized.
This comment has been minimized.
|
Well this is annoying. I've tried overriding with overmap_specials. I've tried overriding with overmap_terrain. I've tried overriding the MAPGEN files to place faked fields. Not sure if I can find any other workarounds using nothing but .json files, it seems. EDIT: Yeah, seems to be a source thing. ._. |
This comment has been minimized.
This comment has been minimized.
|
The fungal terrain has been in since Whales I think, so it's very likely hardcoded. |
This comment has been minimized.
This comment has been minimized.
|
You'd think my talent for breaking things would wreck something, but Whales seems to have made it fairly bulletproof. ;w; |
This comment has been minimized.
This comment has been minimized.
|
You can't blacklist terrain because there is no such thing as "lack of terrain". A better way would probably be to make a replacement table for terrain, so that when something tries to place the wrong type, you overwrite it. |
This comment has been minimized.
This comment has been minimized.
|
Hmm. Possible. Overwriting terrain would work, but it could only be functionally disguised as dirt, grass, or mundane equivalents in ASCII mode. In tiles mode it would still look fungal. Removing the "FUNGUS" flag from the respective terrain items is a good step though. Or...hmm. a replacement table? O.o |
This comment has been minimized.
This comment has been minimized.
|
Now that I think about it, replacement table would probably be an overkill: you'd have to define a json for terrain replacement, load it and implement it where relevant ( You could leave the weird fungal terrain for now. It would be a good idea to override fungal fruits, though. |
This comment has been minimized.
This comment has been minimized.
|
why not simply add an if statement in mapgen, and delegate fungal to dirt? it's a hack, sure, but it would still work. besides, doesn't Lua support mapgen now? you could use Lua code if so. |
This comment has been minimized.
This comment has been minimized.
|
And back, was dragged out so I'm on the laptop. Might remove the fungal effect from fungal terrain, and the ability to harvest marloss berries, as a good stopgap measure. |
This comment has been minimized.
This comment has been minimized.
|
Don't hack stuff up, please. Mapgen is quite ugly already. If fungal terrain is that evil, it would be better to rewrite the fungal sections of mapgen with jsons. Oh and another thing to override: fungal infestation effect. Not sure how to fix that one, though. It is hardcoded, but maybe there is a way to have it auto-remove with jsons alone. Even in the absence of real fungi, it can be caused by teleglow. |
This comment has been minimized.
This comment has been minimized.
|
fair enough, mapgen is an ugly son of a bitch, I can respect that statement. |
This comment has been minimized.
This comment has been minimized.
|
Hmm. I did try mapgen overwrites and it didn't really work. :V EDIT: If there was an option in terrain.json to allow terrain changing over time, we could have the modded fungal terrain immediately convert into mundane equivalents. |
This comment has been minimized.
This comment has been minimized.
|
That's because you can't always overwrite C++ sections of mapgen, only the json ones. |
This comment has been minimized.
This comment has been minimized.
|
As I figured from the fungal mapgen entries not being in the mapgen folder. 'w' EDIT: Gonna test a stupid idea involving bastardizing the "transforms_into": "t_underbrush", property. EDIT 2: Nope. Still doesn't work. |
This comment has been minimized.
This comment has been minimized.
tyrael93
commented
Jun 28, 2015
|
The way I did it I just removed any mentions of fungaloids from monster species, map specials and monstergroups, takes me thirty seconds. I mean, I have no idea how coding a removal works but couldn't you just do that |
This comment has been minimized.
This comment has been minimized.
|
Already got the monsters on a blacklist that makes them not exist, I'm mostly trying to figure out how to dummy out the mapgen effect. It's really just cosmetic, but still. |
This comment has been minimized.
This comment has been minimized.
tyrael93
commented
Jun 28, 2015
|
removing the mapgen should be a must, it'd just make getting mycus easymode. |
This comment has been minimized.
This comment has been minimized.
|
Heh. Already accounted for that, added an edit to terrain.json that makes marloss plants unharvestable, and makes all fungal terrain harmless. So while I've yet to figure out how to purge what little's left with modding, I can at least neutralize it. |
This comment has been minimized.
This comment has been minimized.
tyrael93
commented
Jun 28, 2015
|
Well, that looks good then. Hope you find a way around this. |
This comment has been minimized.
This comment has been minimized.
|
I could even add a overmap_terrain file that makes the now-harmless fungal zones show up as fields, and simply hope players don't stumble upon them to witness my fails. :V |
This comment has been minimized.
This comment has been minimized.
|
Why did you remove the fungal flag from the terrain? Does it spawn spores through the blacklist? |
This comment has been minimized.
This comment has been minimized.
|
Hmm. It potentially could, though I'll need to test whether it will in spite of this. Mostly a precaution. Now if I could instead figure out how to get the fungal zones removed entirely... EDIT: I am a derp. No spores spawn, so I can add the flag back. Also need to remove the ability to gather marloss seeds. |
This comment has been minimized.
This comment has been minimized.
|
Now, the question remains...to keep trying to find a way to get around the hardcoded fungify functions that create fungal regions, or to simply add an overmap_terrain that disguises the modded fungal zones as fields? EDIT: Oi, who told the marloss bush it was allowed to still give fruit? D: EDIT 2: Yeah...crap. Seems that I CAN'T stop the marloss terrain from bearing fruit, either. EDIT 3: Yeah, at this point I'm trying to figure out ter_set. Anyone posted an example I can stare at? :V |
This comment has been minimized.
This comment has been minimized.
|
Wait. Wait. WHAT. I think I might've fucked something up entirely. Einen Moment. Path...modinfo.json. Heh. Heheheh. Crap. |
This comment has been minimized.
This comment has been minimized.
|
What would be the best way to hide it then? ;A; |
This comment has been minimized.
This comment has been minimized.
|
Best would be to move the mapgen functions that generate those areas from c++ to jsons and then blacklisting those. Having some weird terrain is acceptable - better than having hacks in mapgen. |
This comment has been minimized.
This comment has been minimized.
|
If we had that option... :V |
This comment has been minimized.
This comment has been minimized.
|
It's always an option, it's just that it takes some work. |
This comment has been minimized.
This comment has been minimized.
|
True. Might be beyond the scope of this PR, or at least beyond the scope of my ability to not break things. |
This comment has been minimized.
This comment has been minimized.
|
Porting to json would def be in it's own PR. I wouldn't mind tackling it, but I seriously have to get that item rework in. |
This comment has been minimized.
This comment has been minimized.
|
Ah. For now this mod has the fungal terrain not harvestable for marloss, so that's a start. Still, it's weird that I can't simply use overmap_specials to blacklist the mapgen. O.o |
This comment has been minimized.
This comment has been minimized.
|
It could very well be hardcoded, hence why you can't |
This comment has been minimized.
This comment has been minimized.
|
Possibly. It does have entries in the overmap file though. The more likely cause is that none of the properties overmap_specials lets you play with can be used to dell it to not generate a per-defined area. Occurrences, for example, doesn't seem to accept "0" as a maximum. |
This comment has been minimized.
This comment has been minimized.
|
What happens when you change the "overmaps" field in overmap_specials.json? |
This comment has been minimized.
This comment has been minimized.
|
Nothing, sadly. Replacing with a field or crater has no effect, nor does trying to move the fungal terrain underground. I can't tell if that's a failure of overmap_specials or because the functions in the source create the terrain on the spot. |
This comment has been minimized.
This comment has been minimized.
|
Are you sure you created a completely new overmap after making the changes? Best way to check would be to delete world and make a new one. |
This comment has been minimized.
This comment has been minimized.
|
Had actually just copied the overmap entries for the three fungal zones. Which...didn't work. ._. |
This comment has been minimized.
This comment has been minimized.
|
Well. After more thorough testing involving screwing with overmap_specials.json and using a fresh world in each test, I have officially proven that fungal regions give zero fucks about what the overmap file says. Tell it to use 0/0 occurances? No. Tell it to spawn below ground level? Nein. Tell it that it has to be a minimum of 9001 map tiles from a city? Nyet. Give it the unique flag? Nej. Tell it to connect to a ROAD? Nachi. EDIT: I also tried to screw with it by telling the overmap section of each entry to use something absurd like a lab. Also no dice. EDIT 2: Editing overmap_terrain.json gave me a partial success. Changing the "extras" section does nothing, but I CAN mess with some cosmetic things like the display name. |
This comment has been minimized.
This comment has been minimized.
|
Well, turns out, you can't overwrite the "type": "overmap_special" entries in JSON because they are put into a vector, each new entry is appended, its ID is essentially ignored. That means if you make a new "overmap_special" with the same ID as an existing one, it will simply add the new the one, but the existing entry will be still be used. The fungal spawns you see on the overmap come from the original special definition. Your own special definition (in the mod) is loaded and considered, but does not spawn, which is essentially what you want. I'll look into a solution for this. |
This comment has been minimized.
This comment has been minimized.
|
As I suspected. One additional curious anomaly is that the "id" section in the overmap special entries is written in name format instead of id format. That is, it uses capitalization instead of all lowercase, and uses spaces instead of underscores. May or may not be relevant. Probably not. |
This comment has been minimized.
This comment has been minimized.
|
BevapDin's update for overmap specials landed. They can be overridden in mods now. |
This comment has been minimized.
This comment has been minimized.
|
Ooh, neat. Will test it out real quick. ^^ |
This comment has been minimized.
This comment has been minimized.
|
Fuck. Are you sure if it's in the latest compiled version (3368, cf3ca08)? Because well...still not working. ._. EDIT: Nevermind. I just had to break the overmap specials harder. Looks good, no sign of fungus now. |
This comment has been minimized.
This comment has been minimized.
|
How did you test it? I tested this by adding a simple copy of a definition taken from overmap_specials.json to mod, I only changed "location" to |
This comment has been minimized.
This comment has been minimized.
|
Ah. I started with simply changing occurrences to 0/0. It seems that removing the overmap and location entries also worked. ^^" EDIT: Huh, also had an unsynced update from before this fix, so getting rid of it before I add the new overmap_specials. Just to be sure, I'll use the method you used. |
This comment has been minimized.
This comment has been minimized.
|
VERY glad to see this! |
kevingranade
merged commit b472bb2
into
CleverRaven:master
Jul 4, 2015
1 check passed
This comment has been minimized.
This comment has been minimized.
|
Meep. Bloody thing didn't update to show that this did a thing. Thank you for the merge. |
This comment has been minimized.
This comment has been minimized.
|
Possibly the terrain adjustments are redundant since the overmap features don't spawn anymore, but that's not really a problem. |
This comment has been minimized.
This comment has been minimized.
|
They will appear for those portals that spawn fungi around them, though. Other than that, don't think they'd appear anywhere else. |

chaosvolt commentedJun 28, 2015
A blacklist mod that I've occasionally used, in one form or another, for
quite a while.
currently present.
of redundancy, AND to make things more likely to keep working if
additional fungal monsters are ever added in.
Now if only I could find where I found out about that "blacklist by
monstergroup" option...