Spiderless mod for arachnophobia?

Ask for help about creating mods and scripts for Grimrock 2 or share your tips, scripts, tools and assets with other modders here. Warning: forum contains spoilers!
Post Reply
Kermamorjens
Posts: 7
Joined: Wed Jan 21, 2015 6:26 pm

Spiderless mod for arachnophobia?

Post by Kermamorjens »

Hello. I know this has been discussed in another thread, but for some reason a mod closed it, so we can't get updates (boo) and it's been a few months. Just wondering if there's a mod that would replace the spider graphics with something else?

I think the best option would be the silly cow enemy from the youtube vid (including sounds if possible!). It would suitably mock us for our hardships with confronting fictional bugs.


(Well actually I can play it on windowed mode, but would prefer modded fullscreen. The level of arachnophobia is highly individual of course, and for me it's just a bit much when they come at me taking the entirety of this 27" monitor, so it's not only all of the screen but also like half of my field of vision. For a similar reason I now back away from the screen and nervously open chests after almost getting a heart attack from a first unexpected mime chest. Thanks for the camera pan there guys! :D)
minmay
Posts: 2780
Joined: Mon Sep 23, 2013 2:24 am

Re: Spiderless mod for arachnophobia?

Post by minmay »

For the most part this is trivial to do in LoG2. Simply paste the following into the console during the game:

Code: Select all

for l = 1, Dungeon.getMaxLevels(i) do
 for ent in Dungeon.getMap(l):allEntities() do
 if ent.name == "spider" then spawn("turtle",ent.level,ent.x,ent.y,ent.facing,ent.elevation) ent:destroy()
 elseif ent.spawner and ent.spawner:getSpawnedEntity() == "spider" then ent.spawner:setSpawnedEntity("turtle")
 elseif ent.name == "spider_eggs" then spawn("barrel_crate_block",ent.level,ent.x,ent.y,ent.facing,ent.elevation) ent:destroy()
 elseif ent.name == "tiny_spider" then ent:destroy() end
 end
 end
Note that this will leave 2 spiders in the game that are necessary to solve puzzles. It is not possible for either of these spiders to reach the party. This will also leave any spiders that happen to be summoned by the final boss, but I don't recall if any such spiders exist (the boss is generally dead before the 2nd wave even starts and there are certainly none in the first few waves).
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Kermamorjens
Posts: 7
Joined: Wed Jan 21, 2015 6:26 pm

Re: Spiderless mod for arachnophobia?

Post by Kermamorjens »

minmay wrote:For the most part this is trivial to do in LoG2. Simply paste the following into the console during the game:
Cool, thanks a lot! Can't imagine what a relief that is for those with real arachnophobia.

Looks like it replaces the spiders completely (not just graphics), right? Not that it should make any significant difference, I'm sure the monsters are similar enough in terms of stats etc.

Is there some kind of penalty for using the console? (I'm still in my first playthrough so want to keep it otherwise legit.)
minmay
Posts: 2780
Joined: Mon Sep 23, 2013 2:24 am

Re: Spiderless mod for arachnophobia?

Post by minmay »

It completely replaces them with turtles. Keeping spiders the same gameplay-wise would require making many new animations so that their actions line up with the right frames.

There is no penalty associated with using the debug console in the standalone version. Possibly the Steam version prevents you from getting achievements or something; I haven't tried it.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Kermamorjens
Posts: 7
Joined: Wed Jan 21, 2015 6:26 pm

Re: Spiderless mod for arachnophobia?

Post by Kermamorjens »

Great. Thanks again.
Post Reply