PBEM Helper

A military-oriented and sci-fi wargame, set on procedural planets with customizable factions and endless choices.

Moderator: Vic

User avatar
deMangler
Posts: 376
Joined: Sat Jul 13, 2013 9:37 am

RE: PBEM Helper

Post by deMangler »

ORIGINAL: macroman247

I feel as if I am 95% of the way there and just can't get to 100%. I might have a unique situation that is causing the problem. I own SE via Steam and want to play with my wife. Her on a laptop, me on another laptop. We only have the one Steam account and we can run SE just fine concurrently on the laptops...it just kicks the other person off Steam when you launch a second instance of SE, no biggie though...game doesn't close out.

I created 2 accounts on the site and each laptop is logged in and synced. Token is fine, no errors in log. I create the game and validate/activate it. Refresh list, both laptops can see the name of the game. I then start a new game in SE with our preferred setup. 2 human players, no saves during turn, password/pbem option ticked etc etc. Game starts, I set my password and take the turn. When I end the turn, the screen goes back to where you normally see the Player 1/2 it is your turn, login, save/quit yadda yadda...except it is just blank. I have the GUI of SE with the background and the X in the upper right, but that's it. I'm not sure where I have gone wrong here.

Update: I've mostly gotten past the issue with the blank screen. I can move the mouse over where the buttons should be and it causes them to appear. It's worth noting I do not have this issue in regular games and it happened on both laptops. Unfortunately, I'm still not quite able to get it working. I can now Save/Quit after Turn 1 and overwrite the overwrite me save file. It just doesn't seem to pass that file to the other laptop though (by means of downloading from the server). I have the game selected in the dropdown (still no error in log either) but there is no file for me to load.
Hi,
If you are using the normal save directory that steam syncs to save the file, it is possible that is causing the weird file issue. Steam can modify files in this folder and the client may be confused by this. It does look like your round 1 turn 1 file uploaded to the server ok, and it is 1.8mb in size which is what I would expect, so maybe steam is restoring the blank file at some point? Maybe try to use another folder for the save files and see if that fixes it.

In the meantime I will try to reproduce the problem and see what I can do.

There have been minor gui issues reported to me from other people, although yours seems to be different and worse.
It seems that the graphical interface library I am using does not display consistently for people in windows - it works fine on my linux machines. I cannot really debug this or reproduce the issue because I don't have windows 10, and I only have a virtual copy of windows 7 to build it.
My solution to this is to re-write it to use a different library. This may take a little while so please be patient.



Thanks for posting I will keep working on it.
User avatar
deMangler
Posts: 376
Joined: Sat Jul 13, 2013 9:37 am

RE: PBEM Helper

Post by deMangler »

The latest client version is 0.0.10, which is linked in the first post.
Now that there are more people using it isn't good that the only way to see if there are new client versions is to check this thread.

Therefore the next version (0.0.11) will have a way to detect new client versions and an option to download them. [s]This should be ready this week sometime.[/s]

:)
User avatar
BlueTemplar
Posts: 1074
Joined: Thu Apr 29, 2010 12:07 pm

RE: PBEM Helper

Post by BlueTemplar »

ORIGINAL: macroman247

I feel as if I am 95% of the way there and just can't get to 100%. I might have a unique situation that is causing the problem. I own SE via Steam and want to play with my wife. Her on a laptop, me on another laptop. We only have the one Steam account and we can run SE just fine concurrently on the laptops...it just kicks the other person off Steam when you launch a second instance of SE, no biggie though...game doesn't close out.

[...]
Does Steam ask and/or auto-inputs a CD key like the Matrix version does ?

Even games with only cd key antipiracy protection often have cd-key based "DRM" which prevents two people on different computers from playing together if they used the same cd key during the installation.

(For SE, there's always hotseat I guess ?)
macroman247
Posts: 69
Joined: Thu Mar 22, 2012 1:32 am

RE: PBEM Helper

Post by macroman247 »

ORIGINAL: deMangler

ORIGINAL: macroman247

I feel as if I am 95% of the way there and just can't get to 100%. I might have a unique situation that is causing the problem. I own SE via Steam and want to play with my wife. Her on a laptop, me on another laptop. We only have the one Steam account and we can run SE just fine concurrently on the laptops...it just kicks the other person off Steam when you launch a second instance of SE, no biggie though...game doesn't close out.

I created 2 accounts on the site and each laptop is logged in and synced. Token is fine, no errors in log. I create the game and validate/activate it. Refresh list, both laptops can see the name of the game. I then start a new game in SE with our preferred setup. 2 human players, no saves during turn, password/pbem option ticked etc etc. Game starts, I set my password and take the turn. When I end the turn, the screen goes back to where you normally see the Player 1/2 it is your turn, login, save/quit yadda yadda...except it is just blank. I have the GUI of SE with the background and the X in the upper right, but that's it. I'm not sure where I have gone wrong here.

Update: I've mostly gotten past the issue with the blank screen. I can move the mouse over where the buttons should be and it causes them to appear. It's worth noting I do not have this issue in regular games and it happened on both laptops. Unfortunately, I'm still not quite able to get it working. I can now Save/Quit after Turn 1 and overwrite the overwrite me save file. It just doesn't seem to pass that file to the other laptop though (by means of downloading from the server). I have the game selected in the dropdown (still no error in log either) but there is no file for me to load.
Hi,
If you are using the normal save directory that steam syncs to save the file, it is possible that is causing the weird file issue. Steam can modify files in this folder and the client may be confused by this. It does look like your round 1 turn 1 file uploaded to the server ok, and it is 1.8mb in size which is what I would expect, so maybe steam is restoring the blank file at some point? Maybe try to use another folder for the save files and see if that fixes it.


We're good here, 100% now. I changed the save folder to another location and everything is loading and saving to that spot just fine. The GUI issue is very minor since I can just hover to the location to get the button to appear. Test games went fine and I have a for real one loaded and ready to be played soon.

Thanks!
macroman247
Posts: 69
Joined: Thu Mar 22, 2012 1:32 am

RE: PBEM Helper

Post by macroman247 »

Any issues with trying to juggle the app on multiple computers? I've been bouncing between my laptop and desktop while my wife plays strictly from her laptop. I completed a turn on my laptop and then launched the app on my desktop before my wife took her turn. When she went to take her turn though, there was no load me file for the turn, just the overwrite me file. I manually sent it over and we are proceeding but I'm not sure if we will continue to have issues with me using multiple computers with the app.
User avatar
deMangler
Posts: 376
Joined: Sat Jul 13, 2013 9:37 am

RE: PBEM Helper

Post by deMangler »

Hmmmm....
There is no limit to the same player and game running a client on different machines or even on the same machine in different directories.
My experience is that if you run up the client and select a game and there is no load_me file for that turn in the saves directory, and it is that players turn, and poll server is checked then it will download the latest one.
If it does not do this then that is as bug. I will look into it.
macroman247
Posts: 69
Joined: Thu Mar 22, 2012 1:32 am

RE: PBEM Helper

Post by macroman247 »

I suppose we have broken it as a result now. It has happened each time moving between computers. Since it didn't update, I manually emailed the file (naming it what it should be and putting it where it should be) and continued playing. I would assume the app doesn't know what to work with now though. It thinks we are still in round 16 but are actually in 18.
User avatar
deMangler
Posts: 376
Joined: Sat Jul 13, 2013 9:37 am

RE: PBEM Helper

Post by deMangler »

Well, if you don't mind the game round being out of sync with the client round - Whoever's turn it is could save their game over the overwrite_me for the current round. The client won't know.
I will add the option to set starting round number in game creation, might be useful for starting new sessions with a game already in progress - but I bet it causes more problems than it solves...
Thanks for the information it really helps me think about ways to improve it.
User avatar
deMangler
Posts: 376
Joined: Sat Jul 13, 2013 9:37 am

RE: PBEM Helper

Post by deMangler »

First, a service update.

My server provider is scheduling a systems upgrade on Wednesday 21st July 2021 (2021-07-21) at 07:00 AM UTC. They expect approximately 10 min of downtime.

Second, a client dev update.

Work is ongoing to improve QOL and incorporate a lot of suggestions from people who use the software and have given feedback. Functionally it seems to be working well as-is but it is not as friendly as it could be.

Progress is a bit slow due to RL stuff but it has my free time.

More soon :)
User avatar
deMangler
Posts: 376
Joined: Sat Jul 13, 2013 9:37 am

RE: PBEM Helper

Post by deMangler »

There is a new client available here.

The only change with this version is that, once the client is authenticated, you can now check if you have the latest client by using the menu option server > check server status.
The info will appear in the info panel.

This avoids having to check in this thread.

There are some back-end preparatory code changes and refactors too, but they should not be noticeable yet.

The old clients should work ok still.

There are a lot of QOL and other changes coming but I am focusing mainly on keeping it stable for now and not interrupting the experience of people who are already using this for their multiplayer games.

:)


Daza99
Posts: 327
Joined: Tue Aug 01, 2017 7:02 pm

RE: PBEM Helper

Post by Daza99 »

Thanks for the update! Its a great tool for pbem games.
User avatar
deMangler
Posts: 376
Joined: Sat Jul 13, 2013 9:37 am

RE: PBEM Helper

Post by deMangler »

ORIGINAL: Daza99

Thanks for the update! Its a great tool for pbem games.
Thanks! :)
Ironically I haven't had any time at all to play for well over a month now, but I can't wait to have more free time.
At least I can fit in a bit of improving this code when I have a few minutes here and there, it's great to see people using it.
User avatar
Nsf665
Posts: 727
Joined: Tue Aug 14, 2018 6:53 pm
Contact:

RE: PBEM Helper

Post by Nsf665 »

Is there a way how to change username? (if there is, I cant see one :) )
AMD Ryzen Threadripper 1950X 16core 3.4ghz
Nvidia GTX 1080
64gb ram, Win 10
User avatar
deMangler
Posts: 376
Joined: Sat Jul 13, 2013 9:37 am

RE: PBEM Helper

Post by deMangler »

Not currently. I will add it to list of things to do.

User avatar
deMangler
Posts: 376
Joined: Sat Jul 13, 2013 9:37 am

RE: PBEM Helper

Post by deMangler »

Just an update on continued development.

I have had no time lately to put out a new tested version, however I have had some good feedback and suggestions via e-mail that I will work on as soon as I can.

Top of the list is the ability to save the settings so that repeatedly entering tokens, or editing the pbem4se_settings.json file is not needed.

Next is some kind of ability to manage people you play with so that you don't have to choose from all other users, or be visible to all other users. This will be a friend-list kind of thing.

Then e-mail notifications to do with game state, etc.

There are also a fair few good QOL suggestions I plan to implement, and much tidying of interface and website.

Finally I plan to open-source the server soon. The only reason it is not already is that it is integrated into another server I run that I have properly tested for security. I don't know if the standalone code would be secure yet. Once I have the separated code deployed and tested I will put it on gitlab. It is a pretty simple Django REST project so should be easy for people deploy.

Unfortunately there is no timeframe for this as I have a lot of juggling things atm so don't want to make any promises - it does seem to have been working well so far, the couple of hiccups that have been resolved by e-mail have been pretty minor and make me feel pretty confident that it is going in a solid direction.

Thanks to those people who have used it/helped test it so far.





User avatar
deMangler
Posts: 376
Joined: Sat Jul 13, 2013 9:37 am

RE: PBEM Helper

Post by deMangler »

Service update.

My server provider is scheduling a systems upgrade on Wednesday 20th October 2021 (2021-10-20) at 06:00 AM UTC. They expect approximately 30 min of downtime.

The website and client may not work during this time.
User avatar
deMangler
Posts: 376
Joined: Sat Jul 13, 2013 9:37 am

RE: PBEM Helper

Post by deMangler »

Development update.

There has been a lot of helpful feedback and feature requests since this was first released. I have been a bit blocked in implementing many of them because they require more interface functionality than can easily be implemented in Tk.

Therefore I am writing a completely new client using the godot engine - a bit of overkill maybe but it is good at making interfaces and has a good licence.

The old clients and any forks will still work as I am not changing the API.

Anyway. Just keeping you in the loop, so to speak. More soon.
User avatar
deMangler
Posts: 376
Joined: Sat Jul 13, 2013 9:37 am

RE: PBEM Helper

Post by deMangler »

It has come to my attention that the server is currently down and the site has the message:

Site down for planned maintenance...
We'll be back soon!

This was not planned as far as I know and I am looking into it.
My provider is normally really good, so maybe I missed something.

Anyway my apologies and I will update as soon as I can.

*edit* - it turns out they are having problems.
Here is a link to their twitter feed in case anyone wants immediate updates. I will be going to bed soon.

https://twitter.com/pythonanywhere

*edit* - It's all back working ok now.


User avatar
deMangler
Posts: 376
Joined: Sat Jul 13, 2013 9:37 am

Re: PBEM Helper

Post by deMangler »

Just a headsup for people who may have games on the server that have been dormant for a while. The save files can get quite large and many of them can be stored on the server. For this reason I may in future have to deactivate long dormant games and archive the saves somewhere. If I do I will notify in advance. This should not affect anyone's local saves. Backups are always a good idea though....

If you do have a game that is abandoned you can choose to delete it from the website interface then the save files can get cleaned up automatically, which would help postpone any intervention.


It's good to see people using this service. There are some long-running games being played and maintained by the server.
The new client I am working on is coming along, I am kind of busy with lots of stuff, not least Distant Worlds 2... ;)
In any case the whole idea was for something that is as simple as possible and just works... so if it aint broke...
Groomy
Posts: 5
Joined: Sat May 29, 2010 10:44 am

Re: PBEM Helper

Post by Groomy »

We use it for our multi game, it's great. It would be nice if the game list was refreshed automatically and, when you have only one running game, automatically loaded too.
Post Reply

Return to “Shadow Empire”