Hi everyone, I'm a new mod creator and I don't know how anything here works. The only sources of information I have are already existing mods, CK3 wiki and some luck, as well as vanilla game scripts.
The problem is that there is no documentation on what is available to the user, which of course if fine if there is some way to learn this by yourself. But here is a caveat: I didn't find such a way. CK3 wiki for example says that there is`debug_log_scopes` effect that evaluates to true and logs its internal scope. Which is exactly what I need in most cases to decide what I can use and how. But unfortunately it gives very little
So the question is: how are modders supposed to debug their mods or log what's happening? I hope devs can look at it and answer because I have asked this to multiple people in modding community and honestly it looks like no one there actually knows it. We all know that this game gets a lot of love from modders so please tell us how can we make our live better and actualy get some answers from code itself.
Ideally I'd like to have something like `console.log(JSON.stringify(obj))` so I can see all the capability of some scope/object/.. For now it's just a line and id I already know. But what properties does it have? DOes it have `level` property? does it have `is_under_construction`? Does it have `pending_levels`? It's unknown and I don't see how can I get this info.
The problem is that there is no documentation on what is available to the user, which of course if fine if there is some way to learn this by yourself. But here is a caveat: I didn't find such a way. CK3 wiki for example says that there is`debug_log_scopes` effect that evaluates to true and logs its internal scope. Which is exactly what I need in most cases to decide what I can use and how. But unfortunately it gives very little
[18:54:27][effectimpl.cpp:1110]: State Île-de-France (x906000)
So the question is: how are modders supposed to debug their mods or log what's happening? I hope devs can look at it and answer because I have asked this to multiple people in modding community and honestly it looks like no one there actually knows it. We all know that this game gets a lot of love from modders so please tell us how can we make our live better and actualy get some answers from code itself.
Ideally I'd like to have something like `console.log(JSON.stringify(obj))` so I can see all the capability of some scope/object/.. For now it's just a line and id I already know. But what properties does it have? DOes it have `level` property? does it have `is_under_construction`? Does it have `pending_levels`? It's unknown and I don't see how can I get this info.
Last edited: