bicobus Posted July 22, 2025 Author Posted July 22, 2025 Okay, it's not the libpng issue. I don't know what exactly is going on (though I did find a bug I introduced trying to fix libpng). It appears that the background isn't being drawn fully when running on windows. If you were to open each event individually, the background loads fine, but updating it doesn't. That may be a bug with the GUI framework itself, as the behavior doesn't exists on OS other than windows.
bicobus Posted July 22, 2025 Author Posted July 22, 2025 5 minutes ago, Antonio1038 said: is it normal to be so bright bcause yours isnt Yes, my screenshot are made using the equivalent of "darkmode" of my system. The GUI Framework takes its color from the operating system itself. If you were to tinker with how your desktop windows looks like, that would affect the application too.
Antonio1038 Posted July 22, 2025 Posted July 22, 2025 9 minutes ago, bicobus said: Okay, it's not the libpng issue. I don't know what exactly is going on (though I did find a bug I introduced trying to fix libpng). It appears that the background isn't being drawn fully when running on windows. If you were to open each event individually, the background loads fine, but updating it doesn't. That may be a bug with the GUI framework itself, as the behavior doesn't exists on OS other than windows. i now how to let the picture load on Windows if i take the preview and swipe it out of my screen it loads why i dont now i not that good with thos things and one question can i edit the events thanks
bicobus Posted July 22, 2025 Author Posted July 22, 2025 1 hour ago, Antonio1038 said: i now how to let the picture load on Windows if i take the preview and swipe it out of my screen it loads why i dont now i not that good with thos things and one question can i edit the events thanks I found out what happens, not why it happen. The way the code work is by destroying the children of the window, then redrawing the whole with new widgets and a new background. Normally, that should trigger a full redraw of the window but, as you can see, only a partial redraw is called. By wiggling your window off screen, you are probably triggering said full redraw. So I made a bit of a change and forced a full redraw every time the user click a button in the preview window. Update incoming.
bicobus Posted July 22, 2025 Author Posted July 22, 2025 The following should have the various issues fixed: https://github.com/BannerlordCE/pyCEStoriesEditor/releases/download/debug-workflow-28/pyCeStoriesViewer-win64-debug-workflow.7z Will wait a bit before doing a proper update. Could you please test the build in the meantime?
Antonio1038 Posted July 22, 2025 Posted July 22, 2025 1 hour ago, bicobus said: The following should have the various issues fixed: https://github.com/BannerlordCE/pyCEStoriesEditor/releases/download/debug-workflow-28/pyCeStoriesViewer-win64-debug-workflow.7z Will wait a bit before doing a proper update. Could you please test the build in the meantime? thanks
Antonio1038 Posted July 22, 2025 Posted July 22, 2025 so i tetest debug workflow 27 and 1.1.5 and now it dosent load at all strange
bicobus Posted July 23, 2025 Author Posted July 23, 2025 Thanks. Found the cause (for real this time). You can verify yourself by downloading the artifact from https://github.com/bicobus/wxpython_debug/actions/runs/16457917408 This feature has been a thorn in my side for a long time, as the history of the repository I just linked can attest. The behavior being different between operating systems is what is weird. I'll be pushing an update later today.
Lemlim22 Posted July 27, 2025 Posted July 27, 2025 Firstly i would like to say thank you for making this. I got it working quickly and it has helped me to understand how the overall mod works. Is it possible to have an edit function, Would be awesome to be able to select the default mod and use to create our own. I'm currently inspired to make one for Shokuho. (Though that mod overrides the background pictures for events, unsure how to get past that)
bicobus Posted July 28, 2025 Author Posted July 28, 2025 12 hours ago, Lemlim22 said: Firstly i would like to say thank you for making this. I got it working quickly and it has helped me to understand how the overall mod works. Is it possible to have an edit function, Would be awesome to be able to select the default mod and use to create our own. I'm currently inspired to make one for Shokuho. (Though that mod overrides the background pictures for events, unsure how to get past that) Yep, the tool's been written to provide a visual aid and help troubleshoot event chains. Them chains can become rather long and unwieldy. I originally wanted to create a graphical editor to ease the pain of writing events, however such function is most likely never going to be implemented. The reason being that the anatomy of one event is way too complex and possess way too many potential elements, most of which you usually don't need. I really don't want to suffer the pain of implementing such feature. There are existing tools that supports xml editing guided by an XSD, though most are pricey (oxygenxml, liquid technology). There is one free editor from Microsoft though, called XML Notepad which I invite you to try.
Lemlim22 Posted July 28, 2025 Posted July 28, 2025 Thank you. I appreciate the response and difficulty in such things. Have you any thoughts in how to over ride the event back ground images.
bicobus Posted July 29, 2025 Author Posted July 29, 2025 With images files of the same name in an overriding module loaded after the module being overridden.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now