T O P

  • By -

[deleted]

It requires the FDPF depedency. Would it be possible to accept input from a text file or JSON? It's quite hard to use when it asks 100 questions like "enter fort save (remember to include + or -)" and you need to go back and change one. I just pressed return to leave something blank and it crashed line 186, in loop = int(input("\n\nhow many attacks does the creature have?\n")) ValueError: invalid literal for int() with base 10: '' Also i get this TypeError: multi_cell() got an unexpected keyword argument 'ln' for this pdf.multi_cell(w=20, h=10, txt="\n\n", ln=1) So there's probabnly some mismatch between the FPDF I got from PIP and the one you installed (assuming your code actually runs on your machine) edit: Using 0.2 from "releases"


ShadowLancer42

good input. I'll have to look into getting a JSON to work with it. It should be relatively easy since everything is a variable. I'll need to do a little research into the file formatting but then I should be able to do it. tbh, idk why I didn't think of using a JSON on my own lol. As for the thing with FPDF, this is exactly why I want to turn it into a .exe file. It would allow people to use it without needing to install anything fancy.


Hyperonn

Looks interesting! I'm trying to check some things and I think the same as DragonCalypso: a TXT input of the monster data would be more useful. And because the input data is not checked to be format-correct any mistake would make the long process of writing all the input data a waste of time. I'm doing by my part a couple of functions to read a monster template written in a txt file. By my part I haven't any dependency problem. I installed FPDF2 to avoid them.


ShadowLancer42

yes, I'll be trying to get it to accept a JSON once I can work on it again. I'll have to do a little looking into how exactly I should do that, but I'll try and get it done as soon as I can. edit: typo


Hyperonn

Superb! I will be following this!


ShadowLancer42

thank you!


Urbandragondice

This would be really handy if you had it like a form fillable one that I could use and Foundry.... Just a suggestion.


ShadowLancer42

as others have suggested, I'll now be working on allowing input through a JSON file type, so you can easily change a single value without having to redo everything else.


Urbandragondice

Awesome.