# PoraComp Mod Thread

**URL:** <https://discourse.cataclysmdda.org/t/poracomp-mod-thread/16354>\
**Category:** The Lab\
**Tags:** mod\
**Created:** [August 24, 2018, 12:07pm UTC](https://discourse.cataclysmdda.org/t/poracomp-mod-thread/16354 "2018-08-24T12:07:59Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Krisu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/krisu/32/11683_2.png) [@Krisu](https://discourse.cataclysmdda.org/u/Krisu)\
**Post date:** [November 30, 2018, 9:22pm UTC](https://discourse.cataclysmdda.org/t/poracomp-mod-thread/16354/21 "2018-11-30T21:22:52Z")

</div>

I think its getting closer, but it still doesnt quite work

 ![Screenshot_20181130-152147_Cataclysm%20DDA](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/5/53a9bc119d856d24d7f3d902fd8761e66e76d5b2.jpeg)

 ![Screenshot_20181130-152210_ES%20File%20Explorer](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/0/09d8342b0064b173a410c18cab028ad4f211b3b0.jpeg)

Is it because the Outside and Inside folder are both called “PoraComp”?

---

<div class="post-metadata">

**Author:** ![Poragon](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/poragon/32/4161_2.png) [@Poragon](https://discourse.cataclysmdda.org/u/Poragon)\
**Post date:** [November 30, 2018, 9:52pm UTC](https://discourse.cataclysmdda.org/t/poracomp-mod-thread/16354/22 "2018-11-30T21:52:59Z")

</div>

Nah, the second poracomp folder in there shouldn’t cause any issues. I’m actually having trouble replicating the issue at all, and the “…n.cataclysmdda/files/data/mods” bit of the error makes me think that android CDDA looks for LUA files differently than desktop CDDA.

I’ll have to tinker around and find some way of making them look for a relative path to find it, I didn’t know android did LUA a bit differently

Edit; Changed up the require function arguments… it might work? I don’t have any android I can test on and form the output it should have worked in the first place so it’s a bit of a blind fix :seacry:

---

<div class="post-metadata">

**Author:** ![Krisu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/krisu/32/11683_2.png) [@Krisu](https://discourse.cataclysmdda.org/u/Krisu)\
**Post date:** [December 1, 2018, 12:59pm UTC](https://discourse.cataclysmdda.org/t/poracomp-mod-thread/16354/23 "2018-12-01T12:59:33Z")

</div>

Ok, so i moved the preload.lua into the Inner Poracomp Folder and I stopped getting the big message. But now the zygote kit IV one is crashing me.

 ![Screenshot_20181201-070054_Cataclysm%20DDA](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/6/66edcb32ac487b769e2377c9bea7b7a26efc820f.jpeg)

Here’s the debug version:  
07:00:33.876 : Starting log.  
07:00:33.876 INFO : Cataclysm DDA version 0.C-34879-g0d38d2d  
07:00:35.812 INFO : SDL version used during compile is 2.0.8  
07:00:35.813 INFO : SDL version used during linking and in runtime is 2.0.8  
07:00:41.226 WARNING : opendir [/storage/emulated/0/Android/data/com.cleverraven.cataclysmdda/files/mods/] failed with “No such file or directory”.  
07:00:49.158 ERROR : couldn’t parse color: c\_grey  
07:00:49.970 ERROR : couldn’t parse color: c\_gray  
07:00:49.1000 ERROR : /var/lib/jenkins/workspace/Cataclysm-Android/android/app/jni/src/item\_factory.cpp:2484 [use\_function Item\_factory::usage\_from\_string(const std::string &) const] Received unrecognized iuse function Zygote\_Kit\_IV, using iuse::none instead

I think I can boil it down specifically to the iuse\_actions.lua file, but I don’t have any idea how to fix it, or where to move it.

 ![Screenshot_20181201-071343_ES%20File%20Explorer](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/1/1cad6e2c50aa0af14bdf2428354e6d72978f558f.jpeg)

---

<div class="post-metadata">

**Author:** ![Poragon](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/poragon/32/4161_2.png) [@Poragon](https://discourse.cataclysmdda.org/u/Poragon)\
**Post date:** [December 1, 2018, 1:29pm UTC](https://discourse.cataclysmdda.org/t/poracomp-mod-thread/16354/24 "2018-12-01T13:29:52Z")

</div>

Moving the preload.lua out of the outer PoraComp folder just makes it so the game loads none of the LUA components at all. The resulting zygote error is due to the item use\_action being missing, 'cause its in the LUA that is now not being loaded as the game found no preload.lua in the same directory as the modinfo.json .

As I still have no idea what the android directory is, or why its not loading correctly I can’t really directly fix the issue but I do think there’s a way to patch this verrryy specific issue for you.

The preload.lua file has several require() fields at its very start  
 ![Capture](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/b/ba1d62720d2225e7e0716cfef44c39c4fc038b07.png)

If you replace the contents inside the quotation marks with the exact directory of the files it’s asking for (eg. “somedirectory/moredirectory/catacylsmfolder/data/mods/PoraComp/LUA/monster\_attacks.lua” it should load.

---

<div class="post-metadata">

**Author:** ![Krisu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/krisu/32/11683_2.png) [@Krisu](https://discourse.cataclysmdda.org/u/Krisu)\
**Post date:** [December 1, 2018, 1:48pm UTC](https://discourse.cataclysmdda.org/t/poracomp-mod-thread/16354/25 "2018-12-01T13:48:09Z")

</div>

One thing I notice is that I don’t have the tk\_izu file. Could that be a reason?

Sorry for all the questions. Could this be the problem?

 ![Screenshot_20181201-081806_Cataclysm%20DDA](https://us1.discourse-cdn.com/flex016/uploads/cataclysmdda/original/2X/9/9316f06900d33d9aac47961653fe69a8ac2c7fae.jpeg)

You see the line where it says  
/storage/emulated/0/Android/data/com.cleverraven.cataclysmdda/files/lua/data/mods/PoraComp/LUA

Could that early lua be the problem? Also, I did add .lua to the ends of the require thing, but I’ll change it back, I was messing around with stuff.

---

<div class="post-metadata">

**Author:** ![Poragon](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/poragon/32/4161_2.png) [@Poragon](https://discourse.cataclysmdda.org/u/Poragon)\
**Post date:** [December 1, 2018, 4:33pm UTC](https://discourse.cataclysmdda.org/t/poracomp-mod-thread/16354/26 "2018-12-01T16:33:19Z")

</div>

No problem, this particular issue 'as even me stumped a bit so questions are to be expected.  
And the tk\_izu file is just a dev branch file, if you don’t have that particular one don’t worry. Just means you’re running release builds!

Now, this most recent error is interesting. Unless you moved the require() line that lists the corroutine files to the top, everything prior to that one successfully loaded including the monster\_attacks file that wasn’t loading before. Is there any difference between the two require line for monster\_attacks and the require line for coroutines?

---

<div class="post-metadata">

**Author:** ![Krisu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/krisu/32/11683_2.png) [@Krisu](https://discourse.cataclysmdda.org/u/Krisu)\
**Post date:** [December 1, 2018, 4:44pm UTC](https://discourse.cataclysmdda.org/t/poracomp-mod-thread/16354/27 "2018-12-01T16:44:04Z")

</div>

I moved it lol. I’m stumped.

---

<div class="post-metadata">

**Author:** ![Poragon](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/poragon/32/4161_2.png) [@Poragon](https://discourse.cataclysmdda.org/u/Poragon)\
**Post date:** [December 1, 2018, 4:52pm UTC](https://discourse.cataclysmdda.org/t/poracomp-mod-thread/16354/28 "2018-12-01T16:52:57Z")

</div>

Ah, if ya moved it that makes sense then. And yeah, I think CDDA might just have the wrong LUA\_PATH set for android. The extra /lua/ in there absolutely is the thing messing up the directory if it doesn’t match up 1 for 1 with that actual path you can see on your device. But, it’s handling the non-android part fine as I can see the top section “/data/mods/PoraComp/LUA” is all good aside from the .lua you were adding to test.

I’ll contact some more hardcode oriented people on the discord, see if this is an issue with how android handles the require field. Till then I don’t think this or any mod that uses the require field in LUA is usable on android :seacry:

---

<div class="post-metadata">

**Author:** ![Poragon](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/poragon/32/4161_2.png) [@Poragon](https://discourse.cataclysmdda.org/u/Poragon)\
**Post date:** [December 1, 2018, 8:55pm UTC](https://discourse.cataclysmdda.org/t/poracomp-mod-thread/16354/29 "2018-12-01T20:55:45Z")

</div>

Chatted with Zhilkin on discord and learned that the paths for android do differ a bit from the ones not. Added a couple LUA\_PATH bits and now it should work for ya c:

---

<div class="post-metadata">

**Author:** ![Krisu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/krisu/32/11683_2.png) [@Krisu](https://discourse.cataclysmdda.org/u/Krisu)\
**Post date:** [December 1, 2018, 9:42pm UTC](https://discourse.cataclysmdda.org/t/poracomp-mod-thread/16354/30 "2018-12-01T21:42:45Z")

</div>

Thank you so much! It works!

---

<div class="post-metadata">

**Author:** ![Shamir\_Demota](https://avatars.discourse-cdn.com/v4/letter/s/779978/32.png) [@Shamir\_Demota](https://discourse.cataclysmdda.org/u/Shamir_Demota)\
**Post date:** [December 8, 2018, 7:11pm UTC](https://discourse.cataclysmdda.org/t/poracomp-mod-thread/16354/31 "2018-12-08T19:11:31Z")

</div>

Can some1 help me with downloading the file and putting it on my phone

---

<div class="post-metadata">

**Author:** ![Krisu](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/krisu/32/11683_2.png) [@Krisu](https://discourse.cataclysmdda.org/u/Krisu)\
**Post date:** [December 9, 2018, 5:04pm UTC](https://discourse.cataclysmdda.org/t/poracomp-mod-thread/16354/32 "2018-12-09T17:04:42Z")

</div>

Download ES File explorer. Next, on this page go to the latest release at the top. On the github code page, scroll to the bottom and there is a desktop version. Click that, then click a green button labeled “Clone/Download”. Download as a 7zip file. When it’s done, go to your downloads in your browser then click it to open it, open it in ES File Explorer. A folder named Pora comp master should be there. Hold on to it, then press extract and pick choose path. Go to Android\>data\>com.cleverraven.cataclysmdda\>files\>data\>mods and press ok.

But you’re not done yet, go into the folder Pora comp master after and hold the PoraComp folder to extract it into the mods folder where you just extracted the but not inside Pora comp master. Then you can delete the empty master folder and you should be good to go.

---

<div class="post-metadata">

**Author:** ![Shamir\_Demota](https://avatars.discourse-cdn.com/v4/letter/s/779978/32.png) [@Shamir\_Demota](https://discourse.cataclysmdda.org/u/Shamir_Demota)\
**Post date:** [December 9, 2018, 5:16pm UTC](https://discourse.cataclysmdda.org/t/poracomp-mod-thread/16354/33 "2018-12-09T17:16:42Z")

</div>

Thank u for the help

---

<div class="post-metadata">

**Author:** ![Poragon](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/poragon/32/4161_2.png) [@Poragon](https://discourse.cataclysmdda.org/u/Poragon)\
**Post date:** [January 29, 2019, 7:44pm UTC](https://discourse.cataclysmdda.org/t/poracomp-mod-thread/16354/34 "2019-01-29T19:44:40Z")

</div>

Alright, it’s finally here! PoraComp v1.6 (:monihug:) is out! As usual check the OP for the detailed change-log links, but the major changes are;

A new, time based raid system! Experience attacks on your position which are generated as they happen, from multiple faction types. Difficulty is scaled from time passed and all aspects of the system can be changed in the settings file. Have a good run against something lategame!

Lipids, the fatty fat of fats. Consume food and have small portions of it converted to fat which will be used later when you’re hungry. The whole system is metabolism based and can be changed/disabled entirely in the settings file.

~~Goliath~~ TK Izu, online. The BioCo Space Station has reestablished communication with the post-cataclysm world. Venture in labs to find the required equipment and security clearance to talk to TK Izu, then use those useless ol’ pre-cata cash cards to drop-pod down some items! Warning, drop pod is a drop pod.

And of course, a small number of dangerous monsters ranging from the variably armored beserker, the time distorting echo, the acid boomer, and a couple others.

---

<div class="post-metadata">

**Author:** ![Belcanzor](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/belcanzor/32/1798_2.png) [@Belcanzor](https://discourse.cataclysmdda.org/u/Belcanzor)\
**Post date:** [March 12, 2019, 5:50am UTC](https://discourse.cataclysmdda.org/t/poracomp-mod-thread/16354/35 "2019-03-12T05:50:42Z")

</div>

Your mod is awesome!  
I m using it with the mod pack and compatibility patch Malkeus made.

The “best friend” guy comes with your mod? I found him and 2 amazing vehicles, but is in the middle of a forest 😛

---

<div class="post-metadata">

**Author:** ![Heartwawy](https://avatars.discourse-cdn.com/v4/letter/h/ce73a5/32.png) [@Heartwawy](https://discourse.cataclysmdda.org/u/Heartwawy)\
**Post date:** [March 13, 2019, 2:49am UTC](https://discourse.cataclysmdda.org/t/poracomp-mod-thread/16354/36 "2019-03-13T02:49:08Z")

</div>

Hey, with the removal of LUA support, does this mod still function or is completely FUBAR?

---

<div class="post-metadata">

**Author:** ![Axema](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/axema/32/10822_2.png) [@Axema](https://discourse.cataclysmdda.org/u/Axema)\
**Post date:** [March 13, 2019, 3:06am UTC](https://discourse.cataclysmdda.org/t/poracomp-mod-thread/16354/37 "2019-03-13T03:06:48Z")

</div>

LUA support removal isn’t a joke?

---

<div class="post-metadata">

**Author:** ![Heartwawy](https://avatars.discourse-cdn.com/v4/letter/h/ce73a5/32.png) [@Heartwawy](https://discourse.cataclysmdda.org/u/Heartwawy)\
**Post date:** [March 13, 2019, 3:08am UTC](https://discourse.cataclysmdda.org/t/poracomp-mod-thread/16354/38 "2019-03-13T03:08:26Z")

</div>

What? Well, sorry if my wording came off as too silly. I’m just asking if the mod still works with the removal of LUA support in the recent update.

---

<div class="post-metadata">

**Author:** ![Axema](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/axema/32/10822_2.png) [@Axema](https://discourse.cataclysmdda.org/u/Axema)\
**Post date:** [March 13, 2019, 3:09am UTC](https://discourse.cataclysmdda.org/t/poracomp-mod-thread/16354/39 "2019-03-13T03:09:50Z")

</div>

If LUA were to be removed, all benefits powered by LUA will be gone, like PoraComp monster raids mechanic… Generally speaking, the mod will not work and gets an error.

---

<div class="post-metadata">

**Author:** ![Poragon](https://sea2.discourse-cdn.com/flex016/user_avatar/discourse.cataclysmdda.org/poragon/32/4161_2.png) [@Poragon](https://discourse.cataclysmdda.org/u/Poragon)\
**Post date:** [March 13, 2019, 10:08am UTC](https://discourse.cataclysmdda.org/t/poracomp-mod-thread/16354/40 "2019-03-13T10:08:41Z")

</div>

Sadly with the removal of LUA support, no mod that depends on LUA will be able to function correctly. This does include PoraComp as the logic that LUA enabled is the driving force behind the fat system, the raid system, the TK Izu functionality as well as a lot of other things that aren’t on the top of the dome piece.

I may look into transitioning back into a completely .json mod, but I wouldn’t count too much on that occurring.

TLDR; We FUBAR :seacry:

[Previous page](https://discourse.cataclysmdda.org/t/poracomp-mod-thread/16354.md?page=1)

[Next page](https://discourse.cataclysmdda.org/t/poracomp-mod-thread/16354.md?page=3)
