module-development
textPage 7 of 43
50 messages on this page
Wednesday, July 23, 2025
User 2fc02a
2025-07-23T09:30:13 16831.408 INF Entity zombieYoElite 1297333 killed by Gangsta Monkey 1278User bddf69
Can you grab some of the logs for those please?
User 2fc02a
It is the moded zombies. they do not count. We confirmed multiple times
User bddf69
Thanks! That will be helpful
User 2fc02a
It is possible I have hundreds of them. I can have an admin test tomorrow and see.
User bddf69
Is it kills on custom/modded zombies perhaps?
User bddf69
Do you know which ones dont get recognized properly?
User 2fc02a
Ya it was better but still off. I use LP command and get player kills from that and pay that way
User 2fc02a
Ya
User bddf69
There's a fix in 0.3.0 for that, did you try it since that?
User bddf69
You mean for earning currency from zombie kills?
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
User bddf69
As in total kills? Not really, but you can get their recent kills if you search in the events api
User 2fc02a
Is there any Takaro api that can get a players kills?
Tuesday, July 22, 2025
User 2fc02a
and use
cpm-resetunclaimedregions resetunclaimedregions => Reset ALL regions except the ones that have LCB/Normal Adv. Claim on.User 2fc02a
try
cpm-resetrwgprefabs resetrwgprefabs rrp => Reset all RWG prefabs. Exclude claimed prefabs in CpmSettings.xmlUser ba46a0
Or even a module that would reset all quest poi's and protect quest poi's from any lcd or bedroll overlap
User ba46a0
I seriously want a chunk reset module. Something that can reset the 16x16 chunks rather than brute forcing a region file delete
User ba46a0
You life you learn you make mistakes ๐
User 2fc02a
damn. ya I would do this on a test server
User ba46a0
server wasnt even able to boot anymore
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
User ba46a0
its still pretty stupid
User ba46a0
and schemas it can use etc etc
User ba46a0
I even gave it the github code to evauate Takaro to better understand the requirements
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
User ba46a0
and i have the python script that goes with it
User ba46a0
it just tells me no
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" } User ba46a0
Yea I saw
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
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 ๐
User e3fe97
Go to module builder, in the top right is a button to import a module
User ba46a0
How do you upload a complete Module ?
User ba46a0
ok then I am all set. Just not sure on how to add that to my Takaro for testing
User 2bffa0
Yes, as far as I know only that is used.
User ba46a0
or is the json and python script good enough ?
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 ?
User 2bffa0
@User 53442821 Do you have updated prompt and project instructions to use in chatgpt?
User 2bffa0
User ba46a0
So what is needed to submit a module ?
Saturday, July 19, 2025
User a12f6e
Nice thanks!
User bddf69
Soon โข
User bddf69
You can import
nextCronJobRun , see this command for an example: https://github.com/gettakaro/takaro/blob/development/packages/lib-modules/src/modules/lottery/commands/nextDraw.jsFriday, July 18, 2025
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?
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
User 2fc02a
None specifically but it would need to be done on a usage basis. Each regex would need to be programmed separately


