• We have updated our Community Code of Conduct. Please read through the new rules for the forum that are an integral part of Paradox Interactive’s User Agreement.
MMh, perhaps I am doing something wrong, but when I select a folder the main window blink or refresh and what I picked is nowhere to be seen.
 
MMh, perhaps I am doing something wrong, but when I select a folder the main window blink or refresh and what I picked is nowhere to be seen.

Can't select folder on v0.1.2

Sorry, I'll set up some tests to catch silly things like this...

As a workaround you can go to:
Code:
\CK2Events\resources\app\bin\userSettings.json
and change it to something like
Code:
{"userSettings":{"gameDirectory":"C:/path/to/folder/Crusader kings 2","bundleEdges":false}}
 
v0.1.3
I've released v0.1.3, which adds support for multiple event files in one graph as well as temporarily fixing some problems with settings.

v0.1.3
* Support multiple event files in one graph
* Fix settings saving/game folder validation

Next I'll probably work on the "first run" experience, make settings less clumsy, then try some layout options
 
Looks very good. Can you build it for linux?

Here's a build just for you. Completely untested and built on windows so permissions might be broken :).
I'll add linux into my build scripts so I'll have real builds going forwards.
 

Attachments

  • CK2Events-linux-0.1.3.7z
    91,7 MB · Views: 4
Here's a build just for you. Completely untested and built on windows so permissions might be broken :).
I'll add linux into my build scripts so I'll have real builds going forwards.

Thank you. i am set executre permision to /CK2Events/CK2Events and /CK2Events/resources/app/bin/CK2 Events
When i load "Localisations" programm return error:
(Strict pass, # rows added, error)
(False, 566, Couldn't parse row 503 according to schema: Expected 15 columns, got 16)

And more. https://i.imgur.com/ndwNb5t.png
What went wrong?

Anyway, "Events" works as well: https://i.imgur.com/gabGpuH.png
 
Thank you. i am set executre permision to /CK2Events/CK2Events and /CK2Events/resources/app/bin/CK2 Events
When i load "Localisations" programm return error:
(Strict pass, # rows added, error)
(False, 566, Couldn't parse row 503 according to schema: Expected 15 columns, got 16)

And more. https://i.imgur.com/ndwNb5t.png

The CSV parser makes two passes, first with "strict" and if that fails then with "ignoreErrors".
If "strict pass" is true, then all rows were added.
If "strict pass" is false, then the first error is shown and the "# rows added" might not be all rows. Additionally, all rows past the one that had the error *may* be broken.

What went wrong?

Basically, the base game's localisation files have tons of errors :p The tool should still include localisation unless there are really bad errors though.
 
Ok, are you a mind reader or is this a brilliant minds think alike kinda thing? I have been building a program too, that does the same from the exact opposite direction - I was making an event builder, that I would later figure out how to parse existing events with and provide a visual interface. :)
 
Ok, are you a mind reader or is this a brilliant minds think alike kinda thing? I have been building a program too, that does the same from the exact opposite direction - I was making an event builder, that I would later figure out how to parse existing events with and provide a visual interface. :)
My parser is pretty much lossless (keeps comments, loses formatting), so it can output event files again. It could add/modify nodes and write them to files with a few minor tweaks. The hard bit is making those edits in a sensible way!

If there's demand I'd be happy to pull the parser out and publish it as a library, could probably build a shared modfile toolkit of some kind. I'd have to tidy it up a fair bit first though :)
 
My parser is pretty much lossless (keeps comments, loses formatting), so it can output event files again. It could add/modify nodes and write them to files with a few minor tweaks. The hard bit is making those edits in a sensible way!

If there's demand I'd be happy to pull the parser out and publish it as a library, could probably build a shared modfile toolkit of some kind. I'd have to tidy it up a fair bit first though :)
Heh, I took a different approach indeed. I myself started with a simple domain for the event structure (excuse me for the untidy Astah)
upload_2017-12-13_14-51-22.png
It's simple at this point, using a lot of Strings that I want to replace by enums in the end, so you can only add commands in places where you are supposed to add them, taking scope into account, but Strings work for now.
Which I tried writing a Antler4 parser for too, but I couldn't figure out how to make it parse elements (such as rules) regardless of the order in which they appear ;_; I'd love to look at your parser :)
 
Heh, I took a different approach indeed. I myself started with a simple domain for the event structure (excuse me for the untidy Astah)
It's simple at this point, using a lot of Strings that I want to replace by enums in the end, so you can only add commands in places where you are supposed to add them, taking scope into account, but Strings work for now.
Which I tried writing a Antler4 parser for too, but I couldn't figure out how to make it parse elements (such as rules) regardless of the order in which they appear ;_; I'd love to look at your parser :)

Yup, very much coming at it from the other end :D. Mine is super general and just parses the syntax at a minimum.
I basically have three stages:
  1. Parser: Takes event file, turns it into a tree structure of "Statements" which are Comments or KeyValue pairs (which themselves are either primitives or blocks of statements).
  2. Processing: Take the tree and map it into strongly typed objects. Most generic is just "Node" with children, but I have specific types for the "Event" and "Option" nodes.
  3. Queries: Take the typed tree and run functions through it. These do things like replace descriptions with localisation text or find the events each option triggers.
I'll PM you more details.
 
Bug report: The event source code window on the right turns "yes" and "no" into "Bool true" and "Bool false".
Version: 0.1.3
 
v0.1.4
I've released v0.1.4 which is mainly background fixes but also adds support for HOI4.

v0.1.4
* Fix details view to correctly output event file data
* Add HOI4 event support
 
How exactly does the bundle edges work, or what does it do? I don't think I'm seen any differences.

I check the bundle edge box, save, select the event file and I see the same thing as before. I click on setting and the edge box is unchecked.
08vnPHs.png


But I do not seriously expect this spaghetti to be fix-able. It is a real web of 30 events referring to each others all the time with other event chains interacting with it.
 
Last edited:
How exactly does the bundle edges work, or what does it do? I don't think I'm seen any differences.

I check the bundle edge box, save, select the event file and I see the same thing as before. I click on setting and the edge box is unchecked.


But I do not seriously expect this spaghetti to be fix-able. It is a real web of 30 events referring to each others all the time with other event chains interacting with it.

Should look something more like
upload_2017-12-19_15-20-43.png


But yeah, will likely still be a mess! :D

For some reason that particular setting isn't updating unless you close and reopen the application, how useful of it...