module-development

textPage 7 of 43
50 messages on this page
Wednesday, July 23, 2025
Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
No content
image.png

image.png

PNG โ€ข 803.5 KB

Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
2025-07-23T09:30:13 16831.408 INF Entity zombieYoElite 1297333 killed by Gangsta Monkey 1278
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Can you grab some of the logs for those please?
Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
It is the moded zombies. they do not count. We confirmed multiple times
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Thanks! That will be helpful
Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
It is possible I have hundreds of them. I can have an admin test tomorrow and see.
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Is it kills on custom/modded zombies perhaps?
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Do you know which ones dont get recognized properly?
Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
Ya it was better but still off. I use LP command and get player kills from that and pay that way
Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
Ya
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
There's a fix in 0.3.0 for that, did you try it since that?
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
You mean for earning currency from zombie kills?
Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
Ya the Api is missing so many I got tired of the reports and told ppl I would turn off economy. Thats how much it's off
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
As in total kills? Not really, but you can get their recent kills if you search in the events api
Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
Is there any Takaro api that can get a players kills?
Tuesday, July 22, 2025
Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
and use
cpm-resetunclaimedregions resetunclaimedregions => Reset ALL regions except the ones that have LCB/Normal Adv. Claim on.
Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
try
cpm-resetrwgprefabs resetrwgprefabs rrp => Reset all RWG prefabs. Exclude claimed prefabs in CpmSettings.xml
Avatar for ba46a06c2588e10d81b29da145f4e638e92e303e166d1e6a2b3a6505a2a70fad
User ba46a0
Or even a module that would reset all quest poi's and protect quest poi's from any lcd or bedroll overlap
Avatar for ba46a06c2588e10d81b29da145f4e638e92e303e166d1e6a2b3a6505a2a70fad
User ba46a0
I seriously want a chunk reset module. Something that can reset the 16x16 chunks rather than brute forcing a region file delete
Avatar for ba46a06c2588e10d81b29da145f4e638e92e303e166d1e6a2b3a6505a2a70fad
User ba46a0
You life you learn you make mistakes ๐Ÿ˜›
Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
damn. ya I would do this on a test server
Avatar for ba46a06c2588e10d81b29da145f4e638e92e303e166d1e6a2b3a6505a2a70fad
User ba46a0
server wasnt even able to boot anymore
Avatar for ba46a06c2588e10d81b29da145f4e638e92e303e166d1e6a2b3a6505a2a70fad
User ba46a0
well... funny story... i got it working and though it would work as a dry run.... we had to restore from backup as it killed all the regions
Avatar for ba46a06c2588e10d81b29da145f4e638e92e303e166d1e6a2b3a6505a2a70fad
User ba46a0
its still pretty stupid
Avatar for ba46a06c2588e10d81b29da145f4e638e92e303e166d1e6a2b3a6505a2a70fad
User ba46a0
and schemas it can use etc etc
Avatar for ba46a06c2588e10d81b29da145f4e638e92e303e166d1e6a2b3a6505a2a70fad
User ba46a0
I even gave it the github code to evauate Takaro to better understand the requirements
Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
I delt with AI and argued with it to send JavaScript for the coding. Set up youur module and run it as a cronjob till you get it working
Avatar for ba46a06c2588e10d81b29da145f4e638e92e303e166d1e6a2b3a6505a2a70fad
User ba46a0
and i have the python script that goes with it
Avatar for ba46a06c2588e10d81b29da145f4e638e92e303e166d1e6a2b3a6505a2a70fad
User ba46a0
it just tells me no
Avatar for ba46a06c2588e10d81b29da145f4e638e92e303e166d1e6a2b3a6505a2a70fad
User ba46a0
but mine looks like this lol
{   "name": "Toxics_Chunk_reset",   "versions": [     {       "tag": "v2",       "description": "**7D2D chunk cleanup module (v2)** that resets chunks older than a configured number of real-world days if they don't contain a Land Claim Block or Bedroll. Supports dry-run mode and posts detailed logs to a Discord channel specified via secrets.",       "secrets": [         {           "name": "DISCORD_CHANNEL_ID",           "description": "Discord channel ID where logs will be posted",           "required": true         }       ],       "configSchema": "{\"$schema\":\"http://json-schema.org/draft-07/schema#\",\"type\":\"object\",\"properties\":{\"count\":{\"type\":\"number\",\"default\":100,\"minimum\":1,\"description\":\"Max number of chunks to reset per run.\"},\"age\":{\"type\":\"number\",\"default\":7,\"minimum\":1,\"description\":\"Chunks older than this many days are eligible for reset.\"},\"dryRun\":{\"type\":\"boolean\",\"default\":true,\"description\":\"If true, only logs potential resets without deleting chunks.\"}},\"required\":[\"count\",\"age\"]}",       "functions": [         {           "name": "reset-unused-chunks",           "description": "Deletes or simulates deleting chunks older than the configured age threshold and posts results to Discord.",           "function": "reset-unused-chunks",           "script": "./scripts/resetChunks.js"         }       ],       "cronJobs": [         {           "name": "daily-cleanup",           "description": "Runs daily chunk cleanup at 4 AM server time.",           "temporalValue": "0 4 * * *",           "function": "reset-unused-chunks",           "config": {             "count": 100,             "age": 7,             "dryRun": false           }         }       ],       "permissions": []     }   ],   "takaroVersion": "main" } 
Avatar for ba46a06c2588e10d81b29da145f4e638e92e303e166d1e6a2b3a6505a2a70fad
User ba46a0
Yea I saw
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Typically, if you have a JSON file you wrote it inside Takaro first and then exported it. But that doesn't sound like the case here ๐Ÿค”
Did you see that you can go to modules and then open a module in the module builder? It's a whole suite of tools to help you create and edit modules
Avatar for ba46a06c2588e10d81b29da145f4e638e92e303e166d1e6a2b3a6505a2a70fad
User ba46a0
Yea I got to that part but kee pon getting schema issues or functions that not text. So need to know whatr version we running and json formatting as i cba atm to debug ๐Ÿ˜›
Avatar for e3fe97ad5c88ef8a349af7cf33a8e163e04c5ea1f848e41dbe4ead23e0a895f3
User e3fe97
Go to module builder, in the top right is a button to import a module
Avatar for ba46a06c2588e10d81b29da145f4e638e92e303e166d1e6a2b3a6505a2a70fad
User ba46a0
How do you upload a complete Module ?
Avatar for ba46a06c2588e10d81b29da145f4e638e92e303e166d1e6a2b3a6505a2a70fad
User ba46a0
ok then I am all set. Just not sure on how to add that to my Takaro for testing
Avatar for 2bffa0f5cab2a92d04b2e63aae81661c79638a7959c6e2f44f576d976e0aa78a
User 2bffa0
Yes, as far as I know only that is used.
Avatar for ba46a06c2588e10d81b29da145f4e638e92e303e166d1e6a2b3a6505a2a70fad
User ba46a0
or is the json and python script good enough ?
Avatar for ba46a06c2588e10d81b29da145f4e638e92e303e166d1e6a2b3a6505a2a70fad
User ba46a0
Ok so I built a module. Is there prompts I need to be aware of that is Takaro specific that need to be included ?
Avatar for 2bffa0f5cab2a92d04b2e63aae81661c79638a7959c6e2f44f576d976e0aa78a
User 2bffa0
@User 53442821 Do you have updated prompt and project instructions to use in chatgpt?
Avatar for ba46a06c2588e10d81b29da145f4e638e92e303e166d1e6a2b3a6505a2a70fad
User ba46a0
So what is needed to submit a module ?
Saturday, July 19, 2025
Avatar for a12f6e80e9d89b5470e3311f9d8388d6d4bc834b3825be85bf1f6a4e71dd314f
User a12f6e
Nice thanks!
Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
Fixed it looks like @User 22055452
image.png

image.png

PNG โ€ข 73.2 KB

Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Soon โ„ข
Avatar for bddf696212701f4e2e40cc177bb39c1f9c5f0a4ce49c307b79e8101c2a98158e
User bddf69
Friday, July 18, 2025
Avatar for a12f6e80e9d89b5470e3311f9d8388d6d4bc834b3825be85bf1f6a4e71dd314f
User a12f6e
I don't think this is exactly true. Though making this user friendly would require a Discord Channel parameter option for modules. Is there such an option?
Avatar for a12f6e80e9d89b5470e3311f9d8388d6d4bc834b3825be85bf1f6a4e71dd314f
User a12f6e
Are there any helper functions that can help with parsing cronjob expressions? Or to query a cron for the next scheduled time of occurrence?
Thursday, July 17, 2025
Avatar for 2fc02addfc2b08cf731c591ce3ec1458095131979eff88a05d79d32a80be0d20
User 2fc02a
None specifically but it would need to be done on a usage basis. Each regex would need to be programmed separately
Avatar for 5c75f2ead9539cedf84becdac7befc72fa3bc877c1541fb168d92420c32b6730
User 5c75f2
No content
image.png

image.png

PNG โ€ข 40.9 KB