Here is a link to a preview video of the updated External Resources system. Hopefully you good folk find it much improved!
Have Fun!
RobP
Here is a link to a preview video of the updated External Resources system. Hopefully you good folk find it much improved!
Have Fun!
RobP
This was not a post I was expecting to write.
A few weeks back my build server got hacked by ransomware, this is why there has been a delay in releasing the External Resources functionality.
In terms of your customer data, there is no danger at all. I don’t store any customer data whatsoever – that’s what my publisher does.
In terms of Sojour, it crippled the automated development environment that has resulted in the loss the following systems:
Confluence: My Wiki. This had a lot of information on architecture and many How-To-Do articles written from the experience gained of writing Sojour & Ancient Armies.
JIRA: Stories and Task Management. This stored all of my stories and tasks. In Sojour’s updates you would have seen these as RPG-XXXXX. These are now all gone and I will discuss the implications later.
Team City: Automated Builds. This system ran Sojour’s automated builds. It carried out a lot of tasks fully autonomously. These tasks ranged from automatic versioning, running tests, code obfuscation and the production of Sojour’s installers.
Other ancillary development systems were hit too.
How did it happen?
Most people are probably thinking that I visited a dodgy web site, or that I clicked a dodgy link or perhaps that I clicked or opened something in a dodgy email. But, none of these things happened.
The root cause of the security breach was simply an out of date Windows 10 installation, a weak implementation of the RDP protocol, and vulnerabilities in older versions of my development tools.
I had basically gone to visit the parents over a weekend, came back, and then noticed that I couldn’t raise any of my development systems through the browser.
I then RDP’d into the build server and at that point I realised something was very wrong.
The services running the various systems had disappeared and within each critical directory I found readme files like this one:
To re-iterate, I did nothing active to allow this hack. It was a lapse on my part with regard to keeping my systems up to date. In the case of the build server, it was a tiny computer that was out of sight and out of mind. It just worked, so I had no cause to ever visit it – until this incident that is.
The only real oddity is that LockBit don’t normally target small businesses like mine, they tend to go after the much larger corporate entities. I guess that when they see an easy target like this, they just go for it.
Obviously, this has massively impacted Sojour as a project. The only saving grace is that the source code and its history were untouched.
I’ve been spending the last few weeks trying to get a development environment up and running and re-securing all my current systems.
In the end, after many false starts, I decided to move everything into the Cloud using Microsoft’s Azure DevOps system. This provides me with a fully integrated development environment and a hopefully more secure one when compared to my home-based one.
Getting Azure DevOps to perform everything that my previous system could do took a lot of time and effort. In fact, I had taken for granted just how much my previous system did for me, until this migration that is!
After a lot of time spent, I can now generate versioned installer releases much like with my previous system:

Every cloud has a silver lining. In this case, it’s the way that I have configured Azure DevOps. It provides me with a lot more power and flexibility over my previous system and as a bonus it allows me to work remotely.
There is still a little more tweaking to do, but the system is pretty much there, which means that I can soon get back to software development again!
In terms of implications going forward, the main issue is that I have now lost all my stories – this means that any feature requests will be lost. If you had any, please let me know and I will add them to the new development system (there is an email address at the front of the manual or alternatively use Sojour’s Discord).
The other more minor issue is that without my Wiki, I’m going to have to relearn many of my processes, such as ‘How do I create Sojour’s manual?’. This will slow things down, but as I rediscover my old processes, they will get re-documented within Azure DevOps.
Apologies for the hack – that was on me for not taking security seriously enough.
I guess that the morale of the story is that if you have unpatched operating systems, such as Windows 10 (which is now out of support), make sure you switch to a supported operating system and that you keep it up to date. Otherwise, this could easily happen to you too!
Have Fun!
RobP
Howdy Folk!
This is post to give you a preview for what’s coming to Sojour.
The screenshots and video are from a very early build and there is still much more to do, but, hopefully you good folk will see some value in it.
Firstly, what do I mean by external resource?
An external resource is any web based resource.
Right now the system is coded to deal with just web pages, but in the future it will support direct API communications for the more advanced users here.
I guess the next question is, what can I do with external resources?
At their most basic level you will be able to embed web pages into Sojour as an asset:

External resources have several advantages over using a web browser.
Firstly, the resource is easier to find and you don’t need yet-another-window open to use that resource.
Secondly, if the resource tab is left open and Sojour is closed down and restarted, it will reload that resource from exactly where you left off. In the above example it would remember your last map position.
Ok, we have established that we can embedded external resources into Sojour, but can it do anything else?
Yes. Yes it can!
Sojour’s external resources can have one or more triggers added to them. These triggers allow functionality within Sojour to be triggered based on various criteria from the external resource.
For example, if I wanted to integrate a third party dice roller, say DDDice, I could add a trigger to look out for when a dice is rolled in DDDice:

More triggers can be added or the existing ones edited by using the assets browser:
Now that DDDice is wired in, I can roll dice in it and have them trigger table rolls in Sojour automatically!

Sojour will initially support two types of trigger: A table roll trigger and a journal injection trigger. There are plans for a further 6 trigger types, but the implementation of these is further off.
Obviously, DDDice is just an example. This system can be used to integrate any web resource that uses HTTP/S! 😎
You can see external resources in action by watching the You-Tube video below:
That’s it for this post!
Please bear in mind that it’s an early preview of a very early iteration of brand new functionality. This will only get better as we go down the road!
Have Fun!
RobP
If the last post was unexpected, this one is really unexpected!
This hotfix addresses this issue:
RPG-470 [Fix]: This fixes an issue with the conversations system crashing if there are no NPC’s on the journals. The system tries to focus on the first NPC there, and fails because there isn’t one, which results in a crash. This is now fixed!
Once again, apologies for the hassles! Hopefully this is the last hotfix!
Have Fun!
RobP
This is an unexpected post!
It turns out that the new save system was having issues on completely fresh installs – notably, it was complaining about missing files.
RPG-469 [Fix]: This fixes a bug where Sojour will complain if you attempt to save on a completely clean installation.
This issue shouldn’t affect existing users, just new installations.
Either way I recommend all users upgrade.
Have Fun!
RobP
Sojour 1.4.0.0 has finally been released!
This release contains many enhancements, though the primary one is a much more robust save and loading system, which should make your data a lot safer.
Changes to 1.4.0.0:
RPG-465 [Upgrade]: Upgraded Sojour to latest .net framework version – 4.8.1. In the rare case that your Windows system does not have this, you will need to pop over to https://dotnet.microsoft.com/en-us/download/dotnet-framework/net481 and download the runtime.
RPG-462 [Enhancement]: A new global setting has been added for event tables to toggle on or off the injection of the table name into journals.
RPG-461 [Enhancement ]: The main character toolbar and NPC toolbars now include a horizontal scroll bar that will appear when there are too many characters/npcs to display at once. Hovering over a character/npc on a map will scroll the character/npc into focus on the relevant toolbar.
RPG-460 [Enhancement]: Event tables can now be hidden from journals.
RPG-455 [Upgrade]: The WebView component has been upgraded to the latest version.
RPG-453 [Enhancement]: Sojour now has a new Save button that is supported by a very robust saving system. This system automatically creates backups and it also verifies a new file’s data before overwriting the original. In the event that the original is corrupted, Sojour will offer the user a chance to use the backup instead.
RPG-452 [Fix]: Ctrl-Clicking tokens and characters on the map now toggles conversations again. (This was broken in the big UI refactor release)
RPG-451 [Enhancement]: Sojour now compresses all images imported into it which should make the system more stable. It defaults to reducing an image’s in-memory size down to 25% of its original size! This setting can be altered under settings. In addition, Sojour now performs backups prior to all map imports to protect your data in the event of a Windows GDI crash.
RPG-450 [Fix]: Changing a character’s character sheet should now update the preview pane immediately.
RPG-449 [Fix]: The scaling token can now be moved on the map again! Also reduced the minimum size a token can be from 1 metre to 10 cms.
RPG-448 [Enhancement]: The find dialog for journals now incorporates a find previous button.
RPG-447 [Fix]: Sojour no longer assumes a mouse and keyboard are connected to the computer.
RPG-446 [Enhancement]: Users can now use physical dice when rolling on Sojour’s tables. There is a new field to allow the user to enter their dice roll with modifiers.
RPG-443 [Enhancement]: Dice expressions can now be included in table results to allow for some variability in numbers. Sojour also supports the use of dice expressions for table re-directs too.
In addition, there are many other undocumented fixes that got put in as a result of testing the enhancements above.
More information on the release can be viewed in the preview video which can be found here:
A few additional features were snuck into Sojour after the preview video was published. I’ll quickly go over these below.
First up, the main character toolbar got the same enhancements as the new NPC toolbar:
This means that a new scroll bar is included for when the number of characters overflow the space available. In addition, highlighting a character on the map now auto-scrolls the toolbar to focus on that character.
Event tables can now be hidden from the journal using a new toggle button:
This new button will allow users to hide sub tables from showing in the journal drop downs (unless they want them to show).
You also get a new global option to hide or show table names when events are injected into journals:
The above setting is on by default.
When switched on, journal table entries are pre-fixed with the table name:
The same journal entry with this setting turned off:
That’s it for this post!
I hope you all have a lot of fun with 1.4.0.0 😊
RobP
This is a short fly by post to talk about two more features that have been added to Sojour Release Version 1.4.
These two features were added as a direct result of customer feedback from the You-Tube preview video.
The main character toolbar now gets the same scroll bar enhancement that the NPC toolbar received!
This scroll bar operates in exactly the same way as the new updated NPC toolbar’s scroll bar does. It will appear only where necessary.
The next requested enhancement is for tables. These can now be selectively hidden or shown from the Journal’s main drop down by toggling a new button on the upper right of the table:
For example, consider this scenario, we have three encounter tables:
The user is only meant to roll on the Encounters table. The other two are simply sub-tables that the Encounters table will occasionally roll on and are not meant to be directly accessed by the user.
Both of the Advanced Encounters tables have been set to be hidden from all journals.
From a journal, the result is this:
The two Advanced Encounters tables are now hidden!
This functionality will help streamline the list of tables available in the journals drop down to only those a player should be using!
That’s it for this fly by post. Only two additional enhancements, but I think they will make all the difference and I would like to thank the customers for providing the feedback.
From tomorrow onwards, I’m updating the manual, so I will have to freeze this release.
The result of this is that there will be no further new features in this release.
However, if you have ideas for new features, keep them coming! They will appear in a subsequent release.
Have Fun!
RobP
I have decided to temporarily put down the calendar Mk2 work to get out some fixes and enhancements out to you good folk. This is exactly what I did last year before Christmas for custom folders.
The idea is that once this release is out I will be going back to calendar system.
The reason the calendar system is taking so long is due to its flexibility. This leads to an inordinate number of corner cases each of which have to be tested. It’s amazing how many of them are exhibiting issues. The calendar work is headed the right way, but it’s going to take time!
Version 1.4 primarily focuses on how Sojour saves your data, though there are other enhancements that will be discussed below.
Why a new save mechanism?
It’s because over Sojour’s two years of public releases I have had 3 or 4 reports of users losing data due to the main Sojour.dat file being corrupted. This seems to happen when a network drive goes away during a save, or when Sojour itself crashes – which can happen during large image imports due to limitations with the Windows GDI.
To that end I decided to completely revamp the save system in order to prevent the core Sojour files ever being corrupted.
Sojour has moved away from an opaque system of saving frequently in the background, to one where the user has to explicitly choose to save their data – though there are exceptions to this.
To achieve this, Sojour got a brand new Save button on the main toolbar:
This save button saves almost everything, except PDF’s. This is a limitation of the free PDF component that Sojour uses. To save the PDF’s you have to use the save button directly on the PDFs themselves. (I’m looking at replacing this component with a more expensive commercial one, but that is a future endeavour)
Hovering over the new save button displays how long it was since your last save. We can see that this was 2 minutes ago in the above image.
If you change anything significantly within Sojour, the save button will change to let you know:
It might seem a backward step to remove the continuous background saving, but there are two main reasons for this:
The loading and saving now takes long enough that you will see a window telling you what’s going on:

Sojour has similar windows for loading and updating.
Although the system is now primarily a manual one, there are some occasions where Sojour will automatically save your data. These are:
Closing Sojour is an obvious use case, the other two items below it will need further explanation.
First up the map import.
Sojour initially imports all images using the Windows GDI’s Image class. I think it would be fair to say that this class is somewhat flaky when it comes to large images and it does occasionally crash. Sometimes, the crashes are so severe that they can take down Sojour (even with protective code to prevent this).
Performing full saves prior to the map imports mean that in the event of anything going wrong, you do not lose your data.
As for the latter item – automatic saves – they have always been in Sojour, but they are now a little more in-your-face as they display a window when the saves are happening.
By default, Sojour is set to automatically save every hour, but you can change this, or even disable it if you want to:
What makes the new system safer?
Simples, it’s the way it saves the three most important files within Sojour: Sojour.dat, AssetTreeView.dat and AppStatus.dat.
The first thing that Sojour does is to create duplicate versions of the files it is about to save. These duplicates are pre-pended with ‘PREVIOUS_VERSION_’. These can be seen below:
The next thing that happens, is that Sojour will then save its data into a temporary file which will be prepended with the words ‘VERIFICATION_TEST_’.
This is a file that the user will never normally see – unless something goes wrong.
Saving to a temporary file rather than directly to the original offers us the opportunity to verify its contents prior to overwriting the original file.
The screenshot below shows a paused Sojour within the debugger so that you can see this temporary file:
Sojour then verifies that file’s integrity by loading it in the background. If this verification step succeeds, the verification version of the file is copied over the original file – in this example it would be Sojour.Dat.
This system has several advantages over the old system:
This is a much more ‘enterprise’ level system than the original and one that I could not break, even under some rather arduous conditions.
That’s the new file system mechanism. What else got added?
First up is a new NPC bar for the journals:
The new bar is much larger than the original and now incorporates a scroll bar that will automatically appear and disappear as needed. This means that you can add as many NPC’s to your map, without the NPC bar cutting them off.
Waving your mouse cursor over an NPC on the map will scroll the NPC bar to bring the relevant NPC into view whereupon it is temporarily highlighted in light blue. The same also happens in reverse too.
This should make it much easier to associate NPC map tokens with their toolbar counterparts and vice-versa.
Another change added to Sojour is a new ‘Dice Roll’ field for lookup tables.
This field allows a user to enter external dice results, rather than have Sojour roll the dice:
A typical use case for this field is for when the user wants to roll physical dice on one of Sojour’s tables. Simply pick a table, roll your physical dice, then enter your dice result into that field along with modifiers. This will activate the chosen table with he results of your physical dice!
As an aside, the reason for the new UI colours is to enable users to easily associate the tables drop down list with the dice roll field – as one directly affects the other.
Another enhancement added to Sojour’s tables is the ability to insert dice expressions into your table results:
When this table is run a few times you could get results similar to this:
Thanks to the dice expressions, we how have a variable number of creatures that can turn up for each table row!
The tables support all four dice expression formats that the journals do (it’s the same code) and you can make those expressions as simple or as complex as you like.
Before we finish with tables and dice expressions, there is one more thing that you can do with them and it is exceptionally powerful!
You can now use dice expressions with table name redirects:
For the above screenshot, if the system (or user) rolls a 7 on the Encounters table, Sojour will then roll a 1d2 dice (an impossible dice in real life, but one that Sojour can roll). The result of this 1d2 dice determines which Advanced Encounters table the Encounters table will refer to.
For example, if it rolls a ‘1’, it will refer to the ‘Advanced Encounters 1’ table and if it rolls a ‘2’ it will refer to the ‘Advanced Encounters 2’ table.
This is a very powerful mechanism that allows you can go completely nuts and link as many tables together as you want! 🙂
Another new feature that got added is a ‘Find Prev’ button to the Journal Find window:
This should make finding things in your journals a lot easier!
The new table’s features and the find enhancement were both customer requested enhancements. If you have any ideas, send me an email using the address at the front of the manual and I’ll see what can be done!
Another thing that got upgraded is the image import function.
As noted earlier, the Windows GDI is somewhat flaky, especially with bigger images.
To get around this, Sojour now compresses all images imported into it via file or screenshot.
The compression setting can be set using a new setting within the Settings dialog called Graphic Import Quality:
Image compression makes a huge difference to memory usage.
For example, here is a large map imported with the previous version of Sojour:
38.2Mbs! That is a large image file.
Here is the same file imported with this new version of Sojour:
Note the difference in size.
The newly imported map is 1.52mb vs the 38.2mb of the original import. That’s quite a saving – around 25 times smaller for no appreciable loss of quality!
This vast reduction in image size should make Sojour a lot more stable when importing large images.
A full list of changes and fixes will be produced nearer the time of release.
I guess the next question is: ‘When can I get this version?’
The answer is in around 1 or 2 weeks time, assuming a fair wind.
The coding is done, but that leaves the large manual and all its screenshots to update – this is why the release is getting delayed. On the plus side, it gives me more time to exercise the new functions.
Also, for those that don’t know, all Sojour enhancements are free for paying customers!
That’s it for this post!
Have fun!
RobP